MCP server for building and querying code indexes from C# solutions, projects, and source directories with semantic search, symbol navigation, and reference tracking capabilities.
Code Index MCP has well-structured tool definitions with complete schemas and descriptions for all 7 tools. All tools use verb_noun naming (build_index, find_symbol, get_symbol, get_children, find_references, semantic_search, get_callees). Input schemas are properly typed with descriptions for all parameters. Tool annotations (ReadOnly, Destructive, Idempotent, OpenWorld) are present and correct. However, descriptions are somewhat generic and lack actionable guidance for LLM selection. Output schemas are not explicitly documented in the visible code, return types are inferred from method signatures (SymbolRecord, IReadOnlyList<SymbolRecord>, BuildIndexToolResult) but not formally described in tool metadata. Error handling is minimal, no recovery guidance or categorization visible. Parameter constraints (e.g., valid values for 'kind', 'accessibility', 'sort') are mentioned in descriptions but not formalized as enums.
Builds JSON code-index artifacts from a solution, project, or supported source directory.
Finds cached reference locations for a symbol.
Finds symbols by simple name or qualified name from an existing code-index directory.
Gets direct call targets for a method or constructor.
Gets child members for a symbol.
Gets one symbol by symbol ID or qualified name.
Searches file and symbol embeddings using deterministic cosine similarity.
Output schemas not formally documented. Return types (SymbolRecord, BuildIndexToolResult, IReadOnlyList) are inferred from method signatures but not declared in tool metadata. LLMs cannot plan downstream calls without knowing what fields to expect.
Parameter constraints (kind, accessibility, sort) are described as free-form strings with examples ('class, method, property') but not formalized as enums. LLMs may hallucinate invalid values like 'interface' or 'struct'.
Descriptions lack actionable guidance for LLM selection. E.g., 'Finds symbols by simple name or qualified name' does not explain when to use find_symbol vs get_symbol vs semantic_search. No dependency hints or prerequisites stated.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 68 | 2025-06-18+ | v2 |
No error handling or recovery guidance visible. If a symbol is not found, or an index directory is invalid, the tool returns an exception. LLMs receive no actionable next steps (e.g., 'Try searching with a partial name' or 'Ensure the index directory exists').
build_index tool accepts optional 'outputDirectory' and 'incrementalFromIndex' parameters as strings. No validation or path traversal protection visible. LLMs could pass malicious paths; tool should sanitize and validate file paths.