Skip to content

feat: expose file outline and symbol lookup as MCP tools #139

@jordanpartridge

Description

@jordanpartridge

SymbolIndexService has getFileOutline() and getSymbol() methods that allow structural code navigation — browsing symbols in a file and looking up symbol metadata by ID.

These should be exposed as MCP tools so Claude can navigate codebases structurally, not just semantically.

Suggested tools:

  • FileOutlineTool — given a file path + repo, return the symbol hierarchy
  • SymbolLookupTool — given a symbol ID + repo, return metadata and source

Files:

  • app/Services/SymbolIndexService.php (existing methods)
  • app/Mcp/Servers/KnowledgeServer.php (register new tools)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions