Skip to content

Tech-Debt: Implement get_dependencies endpoint #67

@raifdmueller

Description

@raifdmueller

Description

Implement get_dependencies MCP tool as specified in 02_api_specification.adoc:582-607.

API Response Format

{
  "include_tree": {
    "arc42.adoc": [
      "chapters/01_introduction.adoc",
      "chapters/02_constraints.adoc"
    ]
  },
  "cross_references": [
    {
      "from": "decisions.adr-001",
      "to": "constraints.technical",
      "type": "reference"
    }
  ]
}

Implementation Requirements

include_tree (Medium effort)

  • Extend StructureIndex to store include information from parsing
  • Access AsciidocDocument.includes (IncludeInfo) during indexing
  • Build tree structure mapping files to their includes

cross_references (Higher effort)

  • Implement xref:: and <<>> parsing in AsciiDoc parser
  • Track references between sections
  • Map references to section paths

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    tech-debtTechnical debt to be addressed later

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions