Context
Reviewer on #721 suggested a GAIA code-index MCP server would let Claude Code, Cursor, and other external code assistants use GAIA's semantic search over the gaia codebase during development.
Goal
Wrap CodeIndexSDK behind an MCP server under src/gaia/mcp/servers/code_index/ exposing:
search_code(query, scope, top_k)
get_index_status()
rebuild_index(max_files, model)
Acceptance
- Server registered via
gaia mcp add flow and listed by gaia mcp list.
- Documented in
docs/sdk/infrastructure/mcp.mdx.
- Claude Code in the amd/gaia repo can call
search_code("how does authentication work") and get ranked results.
- Unit + MCP integration tests under
tests/mcp/.
References
src/gaia/mcp/ — MCP bridge and existing servers
src/gaia/code_index/sdk.py — SDK to wrap
docs/sdk/infrastructure/mcp.mdx — docs target
Deferred from #721.
Context
Reviewer on #721 suggested a GAIA code-index MCP server would let Claude Code, Cursor, and other external code assistants use GAIA's semantic search over the gaia codebase during development.
Goal
Wrap
CodeIndexSDKbehind an MCP server undersrc/gaia/mcp/servers/code_index/exposing:search_code(query, scope, top_k)get_index_status()rebuild_index(max_files, model)Acceptance
gaia mcp addflow and listed bygaia mcp list.docs/sdk/infrastructure/mcp.mdx.search_code("how does authentication work")and get ranked results.tests/mcp/.References
src/gaia/mcp/— MCP bridge and existing serverssrc/gaia/code_index/sdk.py— SDK to wrapdocs/sdk/infrastructure/mcp.mdx— docs targetDeferred from #721.