Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
NEXUS_LOG_LEVELNoLogging levelINFO
NEXUS_LOG_FORMATNoLog format: text or jsontext
NEXUS_SEARCH_MODENoSearch mode: hybrid, vector, or bm25hybrid
NEXUS_STORAGE_DIRNoStorage directory for indexes.nexus
NEXUS_MAX_MEMORY_MBNoMemory budget350
NEXUS_CHUNK_MAX_CHARSNoMax code snippet size per chunk4000
NEXUS_EMBEDDING_MODELNoEmbedding model (jina-code, bge-small-en)jina-code
NEXUS_EMBEDDING_DEVICENoDevice for embeddings: auto (CUDA > MPS > CPU), cuda, mps, cpuauto
NEXUS_MAX_FILE_SIZE_MBNoSkip files larger than this10
NEXUS_FUSION_WEIGHT_BM25NoBM25 engine weight in RRF0.3
NEXUS_FUSION_WEIGHT_GRAPHNoGraph engine weight in RRF0.2
NEXUS_FUSION_WEIGHT_VECTORNoVector engine weight in RRF0.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..." -> search

  • functions, 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

CapabilityDetails
tools
{
  "listChanged": true
}
logging
{}
prompts
{
  "listChanged": false
}
resources
{
  "subscribe": false,
  "listChanged": false
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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 (parse_config RetryPolicy) bring their definitions first. For the full code of a cut result, call find_symbol.

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 graph.

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 references, the whole-word uses of the name, so no grep is needed. For a method, pass Class.method: the result also lists the overrides in subclasses. Edges are static: calls through callbacks, reflection or dynamic dispatch show only in references.

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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

TDQS

A4.3/5.0

Scored across 5 tools

Disambiguation5/5

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.

Naming Consistency3/5

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.

Tool Count5/5

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.

Completeness4/5

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.

Maintenance

ActivityActive
ResponsivenessNo recent community issues