Nexus-MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| NEXUS_OFFLINE | No | Set NEXUS_OFFLINE=1 to run without network calls after the package and embedding model have been downloaded. | |
| NEXUS_EXTRA_TOOLS | No | Set NEXUS_EXTRA_TOOLS=all to show the three opt-in tools. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Nexus-MCP is a local code-intelligence index of the project you are working in. Use it for any question about how this codebase works: where something is, what calls what, what breaks if a symbol changes, and how the project is laid out. One call here replaces several greps and file reads.
No setup call is needed: the index of an earlier session attaches at start and keeps itself fresh. Only if a tool answers "No codebase indexed", call index once with the absolute project path.
Which tool answers which question:
"where is...", "how does...", "find the code that..." ->
searchfunctions, classes or constants you can name ->
find_symbol(all names in one call)"who calls X", "what breaks if I change X" ->
graph(transitive=true before a change)"give me an overview", "where do I start" ->
map
search and find_symbol return the whole code, so do not follow them with a grep or file read for the same name. Each call costs one more read of the whole conversation. Use your built-in grep or file read when you know the exact file or string. Results can be a little old: read the file before you edit it.
Results name each file by its path from the project root. When your answer names a file, or a function or class from a result, write that full path (src/pkg/setup.py:148, not setup.py:148): a bare file name can fit many files, and the reader cannot open it.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| logging | {} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| indexA | Build the code index. Call it only when a tool says "No codebase indexed". Pass an absolute path, or comma-separated paths for a monorepo. A file watcher then keeps it fresh. |
| searchA | Find code by meaning or keyword: "where is...", "how does... work",
"find the code that...". Returns ranked results with file and line range; the
first three carry the whole function or class. Exact names in the query
( |
| find_symbolA | Get the whole code of functions, classes, methods or constants by name ("show
me create_order"), with file, line range, callers and callees. Use it instead of a
file read or grep for a definition. Pass several names in one call. A class over
2,000 characters gives an outline; ask for "Class.method" for one method. For
every use of a name, use |
| graphA | Trace the call graph: who calls a function (direction='callers') or what it
calls ('callees'). transitive=true covers everything that depends on it; use it
before you change, rename or delete a shared function ("what breaks if I change
X"). A callers result also has |
| mapA | Get an overview of the project: "give me an overview", "how is this structured", "where do I start". 'summary' lists files, languages, top modules and quality. 'architecture' gives layers, dependencies, entry points and hub symbols. 'full' gives both. Use it first in an unfamiliar repository. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
Each tool maps to a distinct stage of code navigation: indexing, semantic/keyword discovery, definition retrieval, call-graph tracing, and project overview. The main fuzzy boundary is between 'search' and 'find_symbol', since exact-name queries in search surface definitions first, but the descriptions explicitly hand off between them ('for the full code of a cut result, call find_symbol').
Names are all lowercase and readable, but the convention is mixed: single ambiguous verb/noun tokens (index, search, graph, map) plus one verb_noun compound (find_symbol). There is no predictable pattern an agent can rely on, though nothing is genuinely confusing.
Five tools is a tight, well-scoped surface for a code-intelligence server, and each tool covers a distinct capability with no filler. Nothing feels missing count-wise or redundant.
The core lifecycle for code navigation is covered: index the codebase, search it, retrieve symbols, trace callers/callees, and get architecture overviews; callers results even include references so grep is unnecessary. Minor gaps exist around index management (no explicit reindex/reset/status tool) and file-level access, but these are workarounds rather than dead ends.