Skip to content

feat: return source code in search-code MCP tool responses #138

@jordanpartridge

Description

@jordanpartridge

The SearchCodeTool MCP tool returns embedding text but not the actual source code of matched symbols.

SymbolIndexService::getSymbolSource() already exists and does O(1) byte-offset reads. Wire it into the search results so Claude gets the real code, not just metadata.

Files:

  • app/Mcp/Tools/SearchCodeTool.php
  • app/Services/CodeIndexerService.php (search method)

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