nexus-mcp-ci
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| NEXUS_LOG_LEVEL | No | Logging level | INFO |
| NEXUS_LOG_FORMAT | No | Log format: text or json | text |
| NEXUS_SEARCH_MODE | No | Search mode: hybrid, vector, or bm25 | hybrid |
| NEXUS_STORAGE_DIR | No | Storage directory for indexes | .nexus |
| NEXUS_MAX_MEMORY_MB | No | Memory budget | 350 |
| NEXUS_CHUNK_MAX_CHARS | No | Max code snippet size per chunk | 4000 |
| NEXUS_EMBEDDING_MODEL | No | Embedding model (jina-code, bge-small-en) | jina-code |
| NEXUS_EMBEDDING_DEVICE | No | Device for embeddings: auto (CUDA > MPS > CPU), cuda, mps, cpu | auto |
| NEXUS_MAX_FILE_SIZE_MB | No | Skip files larger than this | 10 |
| NEXUS_FUSION_WEIGHT_BM25 | No | BM25 engine weight in RRF | 0.3 |
| NEXUS_FUSION_WEIGHT_GRAPH | No | Graph engine weight in RRF | 0.2 |
| NEXUS_FUSION_WEIGHT_VECTOR | No | Vector engine weight in RRF | 0.5 |
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 has a clearly distinct job: `index` builds the index, `search` discovers code, `find_symbol` retrieves full definitions, `graph` traces callers/callees, and `map` gives project overview. The descriptions actively cross-reference each other to route the agent (e.g. 'use `graph` instead of grep', 'for a cut result, call `find_symbol`'), eliminating the search-vs-symbol ambiguity.
Names are all lowercase and snake_case-compatible, but the pattern is inconsistent: `find_symbol` is verb_noun while `index`, `search`, `graph`, and `map` are single bare words that are sometimes verbs and sometimes nouns. Still readable and non-chaotic, but not a predictable convention.
Five tightly scoped tools map cleanly onto the code-intelligence workflow (index → discover → inspect → trace → orient), with no redundancy or filler. Nothing is missing at the count level and no tool feels bolted on.
The surface covers the core lifecycle: building the index, finding code, retrieving definitions, tracing dependencies, and getting an architectural overview, with references bundled into `graph` so no grep fallback is needed. Minor gaps exist around index management (no status check, explicit refresh, or reset) if the watcher ever falls out of sync.