Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
NEXUS_OFFLINENoSet NEXUS_OFFLINE=1 to run without network calls after the package and embedding model have been downloaded.
NEXUS_EXTRA_TOOLSNoSet 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..." -> 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.2/5.0

Scored across 5 tools

Disambiguation4/5

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').

Naming Consistency3/5

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.

Tool Count5/5

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.

Completeness4/5

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.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues