Code intelligence MCP server — graph-powered semantic search, call graph traversal, and impact analysis for any codebase
Code-Nexus provides 9 tools with detailed descriptions (avg 180 chars) and clear use cases. All tools have input schemas with type definitions and parameter descriptions. However, output schemas are not explicitly documented in the visible source, and error handling guidance is minimal. Tool naming follows verb_noun convention (search_code, find_all_callers, analyze_impact). The server targets code analysis, a specialized domain where descriptions are strong, but schema completeness and error recovery patterns are underdeveloped.
Transitive blast radius — walks callers-of-callers up to `depth` levels to find everything affected by a change. Use BEFORE modifying a function to understand what could break (Grep only finds direct references). Requires reindex first; returns an empty tree if the entity isn't in the indexed call graph. Returns {root, depth, total_affected, affected_files, impact_tree}.
Find all functions/modules called by a given function — understand dependencies before modifying. Requires reindex first; returns an empty list if the entity isn't in the indexed call graph. Name matching is case-insensitive and supports short names (e.g. 'embed_batch' matches 'ElixirNexus.EmbeddingModel.embed_batch'). Returns resolved entities (file_path, start_line, entity_type) or unresolved names for external calls.
Find all callers of a function (inverse of find_callees). Use BEFORE renaming or changing a signature. Requires reindex first; returns an empty list if the entity isn't in the indexed call graph. Uses AST-parsed call edges — no false positives from comments or strings. Name matching is case-insensitive and supports short names. Returns caller entities with file_path, entity_type, start_line.
Find exported functions/methods with zero callers — use before cleanup PRs or when deleting a module to confirm nothing depends on it. Requires
find_dead_code description is truncated ('Requires' with no completion), LLM cannot determine prerequisites or expected output format
Output schemas not documented in visible source, LLMs cannot plan downstream tool calls or extract structured data from results
No error handling guidance in descriptions, LLMs cannot recover from 'empty list if nothing is indexed' or other failure modes
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 63 | 2026-07-28+ | v2 |
Find an entity's parents (uses/implements), children (contained members), and implementors. Works for Elixir modules, Go/Rust/Java types, and TS classes, interfaces, and type aliases. Use to understand API surface and contracts (e.g. 'what callbacks does this GenServer implement?', 'what are this interface's methods?'). For an INTERFACE, `implementors` lists the functions/consts that satisfy it (return-type / typed-const edges) — the port→adapter mapping in hexagonal code. Requires reindex first. Returns {name, entity_type, file_path, parents, children, implementors} with resolution status.
Answer 'what other files should I read or edit alongside this one?' — finds files that call into or are called from the given file via AST call-graph edges. Use when starting work in an unfamiliar file to surface related context. Requires reindex first; returns an empty coupled_files list if the file isn't in the indexed graph. Returns {file, coupled_files} sorted by coupling strength with connection details.
Structural overview of the indexed codebase — use as a FIRST STEP to orient. Returns node/chunk counts, entity type breakdown, edge counts (calls/imports/contains), language distribution, top connected entities (by call fan-in/out), architectural `layers` (entities per derived layer: ports/adapters/services/domain/…), `critical_files` (deterministic betweenness centrality — stable across calls), and project_path. Returns zeros / empty distributions when nothing is indexed yet (run reindex first). No arguments needed.
Index or re-index a project directory to build the call graph, semantic embeddings, and architectural layers. Scans for Elixir, JavaScript/TypeScript/TSX, Python, Go, Rust, Java, Ruby, Kotlin, and Swift files. Parses with tree-sitter (NIF), chunks by function/class, embeds with Qdrant, and stores in the active collection. Auto-detects project root from a lib/ subdirectory. Returns {files_indexed, chunks_created, errors, duration_ms, project_path}. Long-running (120s timeout); use async_reindex for non-blocking.
Hybrid semantic + keyword search ranked by TF-IDF similarity, name matching, and call-graph centrality. Requires reindex first — returns an empty list if nothing is indexed in the current Qdrant collection. Better than Grep for intent-based queries (e.g. 'error handling in HTTP client'). Returns [{entity, score}] with file_path, entity_type, start_line, end_line, parameters, calls.
reindex tool lacks dry-run or confirmation step, destructive indexing operation (WRITE risk) with no safeguard against accidental re-indexing
Parameter descriptions lack format/constraint details, e.g., 'query' in search_code does not specify max length, character restrictions, or expected format (natural language vs regex)