codebase-memory-mcp
codebase-memory-mcp is a local MCP server that indexes a repository into a queryable code knowledge graph and exposes 17 tools for searching, tracing, and analyzing that codebase.
Index & manage projects: build a graph for a repo in
full,moderate,fast, orcross-repo-intelligencemode; list, inspect status/coverage, or delete projects; optionally write a shared.codebase-memory/graph.db.zstsnapshot.Search the graph: structural search by name/qn/file/regex, BM25 full-text queries, or bundled semantic vector search (no API key), with degree, label, and relationship filters.
Run Cypher queries: read-only openCypher subset for multi-hop traversals, aggregation, complexity, and cross-service analysis, with cursor-based paging.
Trace relationships: follow callers/callees, argument-aware data flow, or cross-service paths up to depth 15, with optional risk labels and resolver evidence.
Read code: fetch a symbol's source by qualified name (auto/full/outline modes) or get a file's declaration outline with paging and label filters.
Explore architecture: get counts, languages, packages, entry points, routes, hotspots, dependencies, layers, clusters, cycles, boundaries, and file trees, scoped to a directory.
Search code text: graph-ranked grep over indexed files with compact, full-source, or file-path modes and byte-level paging.
Assess impact: map a Git diff to affected files, symbols, and blast radius, with configurable depth and direction.
Compare snapshots: diff two indexed projects to find added and removed nodes/edges.
Inspect the schema: list node-label and edge-type counts, plus queryable properties with full diagnostics.
Manage ADRs: outline, read, replace, or surgically rewrite named sections of an architecture decision record.
Ingest traces: validate and count observed call paths (note: graph edge creation is not yet implemented).
Everything runs locally: no hosted service, API key, Docker, or language runtime required; a browser UI (CBM Lens Beta) adds visualization and local code chat.
codebase-memory-mcp: local MCP server for code search, lower token usage and visualization
Search your code, follow call graphs, and explore software architecture in your browser. codebase-memory-mcp is a local Model Context Protocol (MCP) server that gives Claude Code, Codex, and other coding agents a persistent code knowledge graph. It indexes functions, classes, imports, HTTP routes, and their relationships across 162 languages. Hybrid LSP adds semantic type resolution for Python, TypeScript, JavaScript, JSX/TSX, PHP, C#, Go, C, C++, Java, Kotlin, Rust, and Perl.
About 120× fewer tokens in the project's reported five-query comparison: ~3,400 vs ~412,000 with file-by-file exploration. Published backend benchmarks also report Linux kernel indexing in ~3 minutes (28M lines of code) and Cypher relationship queries under 1 ms on an Apple M3 Pro. Benchmark details.
CBM Lens Beta helps you understand unfamiliar code and stay in control as it grows. Use it to get up to speed in a new codebase, tackle rescue engineering on an inherited project, or make sense of 50,000 lines of AI-generated code from a single day. Its IDE-style source reader, local code chat, 3D architecture map, and Galaxy graph let you see how the code fits together and follow dependencies and call paths back to the source. Use that context to review changes, investigate fragile areas, and keep code quality high. Architecture decisions stay alongside the project's index.
The native C backend exposes 17 MCP tools and supports 45 automatic or conditional client integrations. Indexing and graph queries need no hosted service or API key.
CBM Lens Beta is new on
main: it arrived with PR #2068 and is not part of the current v0.11.0 release, whose installer still ships the previous graph UI. To run the interface shown below now, build from source.
Quick start · Explore CBM Lens · Chat with your codebase locally · MCP tools · Build from source
Research: The preprint compares agents across 31 repositories, reporting 10× lower token use and 2.1× fewer tool calls, with answer-quality scores of 83% for CBM versus 92% for file-by-file exploration. These backend results are separate from the five-query comparison above and from CBM Lens.
Local processing: Source analysis and graph storage run on your machine. CBM Lens can optionally download a model for browser AI after you enable it; inference stays on the device. The installer writes agent configuration for the clients you select. See Security for release verification and SECURITY.md for reporting issues.
Architecture overview. Folders become nested platforms, files and symbols become selectable blocks, and arrows show indexed relationships. The recording zooms into the map of this repository, selects src/pipeline, opens the area, selects artifact.c and opens its source. Height can show source size; hotspot gravity reflects static fan-in. Still image.
Galaxy. Explore the code knowledge graph in 3D. The recording searches cbm_pipeline_run, follows its outgoing calls one layer further, switches to the hierarchy and shows the path to cbm_store_check_integrity. Edge pulses show relationship direction; they do not represent live execution. Current still: two dependency layers around cbm_max_file_bytes.
Explore. Browse files in an IDE-style workspace, read syntax-highlighted source in Monaco, and keep the code graph alongside it. File impact shows what depends on the open file, and Code details shows the callers and calls of the symbol under the caret. Select code to ask the local chat about it.
These captures show CBM Lens Beta on 12–13 October 2026, using public source from this repository. See capture details for each capture's build, indexed scope and recording setup.
Why codebase-memory-mcp
Indexing performance: Linux kernel (28M LOC, 75K files) in 3 minutes. RAM-first pipeline: LZ4 compression, in-memory SQLite, fused Aho-Corasick pattern matching. Memory released after indexing.
Plug and play: native executable plus authenticated release-owned assets for macOS (arm64/amd64), Linux (arm64/amd64), and Windows (arm64/amd64). The native install needs no Docker, language runtime, or API keys. Download →
install→ restart agent → done.162 languages: vendored tree-sitter grammars compiled into the binary. No separate parser installation.
About 120× fewer tokens in the reported five-query comparison: ~3,400 tokens vs ~412,000 via file-by-file search. See Performance for the scope and sources.
45 supported automatic/conditional client surfaces:
installconfigures detected clients and safely activates conditional clients only when their documented platform, marker, or explicit existing config path is present. See Multi-Agent Support for the complete matrix and manual/UI-only boundaries.CBM Lens Beta: read source, chat about selected code with a local model, explore architecture and call graphs, inspect coverage gaps, and edit architecture decision records in your browser.
Infrastructure-as-code indexing: Dockerfiles, container images, docker compose, Kubernetes manifests, and Kustomize overlays indexed as graph nodes with cross-references.
Resourcenodes for K8s kinds and compose services,Imagenodes joining the images that are built and run,Modulenodes for Kustomize overlays withIMPORTSedges to referenced resources; a Service walks to the program its container runs.17 MCP tools: search, trace, architecture, impact analysis, targeted index-coverage checks, Cypher queries, dead code detection, cross-service HTTP linking, ADR management, and more.
Related MCP server: Orihime
Quick Start
Install the latest release (macOS / Linux). For CBM Lens Beta shown above, build from source until the next release.
curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.sh | bashThe released graph UI is included in the standard installer.
Windows (PowerShell):
# 1. Download the installer
Invoke-WebRequest -Uri https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/install.ps1 -OutFile install.ps1
# 2. (Optional but recommended) Inspect the script
notepad install.ps1
# 3. Unblock the downloaded file (removes Mark-of-the-Web restriction added by browsers/Invoke-WebRequest)
Unblock-File .\install.ps1
# 4. Run it
.\install.ps1
Note: If you see a script execution policy error, run
Set-ExecutionPolicy -Scope Process Bypassfirst, or invoke withPowerShell -ExecutionPolicy Bypass -File .\install.ps1.
Options: --skip-config (binary only, no agent setup), --dir=<path> (custom location).
Antivirus note: Microsoft Defender may flag a release binary as
Trojan:Script/Wacatac.B!ml. This is a known false positive; typically 61 of ~62 engines return clean, and the same detection family hitsgh, llama.cpp, Godot and Microsoft's own Go toolchain. See Antivirus False Positives for the evidence, how to verify the artifacts yourself, and how to report it if you think we are wrong.
Restart your coding agent. Say "Index this project": done.
Download the archive for your platform from the latest release:
codebase-memory-mcp-<os>-<arch>.tar.gz(macOS/Linux) or.zip(Windows)
Extract and install (each archive includes
install.shorinstall.ps1):macOS / Linux:
tar xzf codebase-memory-mcp-*.tar.gz ./install.shWindows (PowerShell):
Expand-Archive codebase-memory-mcp-windows-amd64.zip -DestinationPath . Unblock-File .\install.ps1 .\install.ps1Restart your coding agent.
The install command automatically strips macOS quarantine attributes and ad-hoc signs the binary; no manual xattr/codesign needed.
The install command auto-detects installed coding agents and configures their documented MCP entries plus durable instructions, skills, and lifecycle hooks where supported.
Session Coordination Daemon
CBM automatically shares one per-account coordination daemon across Claude Code, Codex, OpenCode, and every other configured client. There is no opt-in setting for MCP servers or hook clients: the first daemon-backed CBM session starts it, each session registers its own work, and a session-managed daemon stops after the final session. A daemon started with daemon start remains running until stopped. The daemon owns long-lived background services such as watchers, shared indexing jobs, and the optional UI. Closing one session cancels work owned only by that session, while work still needed by another session continues.
The detached daemon does not depend on an MCP frontend's stderr. It keeps owner-only durable records under the canonical ${CBM_CACHE_DIR}/logs directory (default ~/.cache/codebase-memory-mcp/logs):
File | Contents |
| Daemon lifecycle, watcher/indexing, UI, resource, and error events. |
| Exact-build, coordination-ABI, and cache-root admission conflicts. |
| Install/update/uninstall activation progress and outcomes. |
Thin frontends still write immediate startup and session-specific errors to their own stderr; MCP JSON-RPC stdout remains clean.
All active CBM processes must run the exact same version, executable build, coordination ABI, and canonical cache root. Equivalent CBM_CACHE_DIR aliases resolve to the same root; a genuinely different root is rejected while any CBM process is active. MCP servers, hooks, one-shot CLI commands, temporary index workers, and the daemon share a crash-safe OS admission barrier; starting an ordinary conflicting process fails before doing work and records an explicit conflict in ${CBM_CACHE_DIR}/logs/daemon-conflicts.ndjson.
The native install, update, and uninstall commands are the deliberate exception to that conflict rule. Download, verification, and private same-filesystem staging happen first so a bad candidate never disrupts active work. Activation then publishes account-wide maintenance intent, asks the daemon and every temporary local operation to cancel, and waits to a finite deadline for all coordinated CBM processes to exit. It holds the admission and lifetime barriers exclusively while changing the active binary, configuration, PATH, or indexes. New CBM work cannot enter during this window. Activation progress and results are recorded in ${CBM_CACHE_DIR}/logs/activation-events.ndjson, and a successful command tells you to restart open coding-agent sessions so they launch the activated build.
Package-manager setup (npm, PyPI, or Go) verifies and caches the native executable for that package. It does not replace the active native installation and therefore does not stop running CBM sessions. When that cached binary is executed, it still enters the same exact-build admission barrier. The shell and PowerShell installers invoke the verified candidate's native install command, so they do receive the full account-wide activation guarantee.
The ordinary cli mode runs one command locally, but it is not disconnected from the daemon above: it connects to the shared coordination daemon (starting one if none is already running) for that same admission barrier plus per-project locks on graph mutations. Its connection is a cli_session: it never registers with the background watcher and never starts a UI, and it holds the admission lease only for the command's lifetime. If the command's own connection is what started the daemon, that daemon exits again once the command closes and no other session is attached; if a daemon was already running, the command simply joins and leaves it exactly as found. While the command is running, a temporary monitor separately lets activation cancel that operation and its supervised worker safely; the monitor exits with the command and never becomes a standing daemon. See CLI Mode for details.
CBM Lens Beta: code visualization and source navigation
CBM Lens Beta is the browser interface built into the binary. It builds on CodeAtlasWeb by Bernhard Jackiewicz (design and tracking in #1964). It runs on loopback; the only request that leaves your machine is the optional model download from Hugging Face, and only after you start it. Each panel names where its facts come from, and what the index did not record is shown as a gap. Start the local server:
./build/c/codebase-memory-mcp daemon start --open --port=9749The browser opens at http://127.0.0.1:9749. A permanent daemon keeps the UI available after the command exits. Use daemon status to inspect it and daemon stop when you are finished. For an MCP session, --ui=true --port=9749 enables the same shared UI. Active clients must use the same executable build and cache directory.
Open your first repository
Open the project menu and choose Add project index. You can also use
Alt+P.Choose a local repository folder and name the index. Files stay in place.
Start indexing and follow its reported status. You can close the dialog while it runs and reopen its activity from the project menu.
Open the indexed project. Start with Architecture for an overview or Explore to read a file.
To bookmark a view, use ?project=<name>&workspace=architecture. Other workspace values are explore, galaxy, adr, coverage, and system.
Workspace | What you can do |
Explore | Navigate the indexed file tree and read source in Monaco. File impact shows what depends on the open file; Code details shows the callers, calls, references and related tests of the symbol under the caret. |
Galaxy | Search and focus graph nodes, load their neighbors layer by layer, switch to hierarchy, follow a path, and open source. Back and Forward return to earlier views. The coverage shadow marks known gaps around the loaded graph. |
Architecture | Explore the folder map, entry points, routes, hotspots, system structure, and behavior paths. Select a node or connection to inspect its evidence. |
ADR | Read and edit the project's architecture decision record. Save explicitly; the document is stored with the index and shared with |
Coverage | Check indexed, partially parsed, skipped, and excluded paths, together with available freshness information. |
System | Inspect daemon activity, indexes, and logs. Filter logs by project, severity, or text. |
Architecture views
Overview: move through source folders and files on a 3D map. Choose source-size or uniform height, language or kind colors, and relationship filters. Switch to Entry points to follow a static call graph from a starting symbol.
Routes: switch between the service map and endpoint connections. Deployment metadata and indexed route evidence are shown separately; unresolved registrations remain visible.
Hotspots: inspect symbols using measured signals such as fan-in and complexity. Gravity wells help locate frequently referenced areas. They are not a code-quality score.
System structure: inspect component dependencies, expand groups, isolate cycles, and follow connections back to source evidence.
Behavior: choose a source and a reachable destination to inspect static call paths and their source statements. These paths show possible relationships, not a recorded execution order. Runtime observations require separately ingested traces.
Drag a 3D view to orbit, scroll to zoom, and select a node or edge to inspect it. Edge colors distinguish relationships, and pulses indicate their direction. Reduced-motion preferences pause the pulses. Large views show their limits and omitted counts. A missing edge can reflect an indexing or display limit, so check Coverage and the source before drawing conclusions.
Chat with your codebase locally
Open Chat with the panel button at the top right to ask about the code you are looking at. In Explore it uses the open file or the exact text you have selected; in Galaxy it uses the selected node and its loaded neighbors. You can also attach graph evidence through Add context.
Click the robot icon at the top right to open the agent configuration.
Choose a local model. The default Qwen2.5 Coder 0.5B downloads about 567 MB; Qwen3 0.6B, LFM2.5 1.2B and Qwen3.5 2B are larger options. All need WebGPU with
shader-f16support.Click Download & load. Model files come from Hugging Face; inference runs in your browser, with no hosted chat API or API key. A model that is already in the browser cache loads with Load model (cached, no download).
Ask a question. The composer shows the file or selection that will accompany it. Select a smaller range when you want to focus the answer.
Questions about callers and callees, such as "Who calls cbm_pipeline_run?", are answered from the loaded graph without the model, and the answer says so. When you select a symbol, the chat lists its indexed facts and the lines of its code, and the model adds one sentence; that sentence is left out when it claims something the source does not show. Text written by the model is labelled as such.
The recording shows a question about callers answered from the indexed graph, next to the automatic explanation of the selected symbol. Still image.
The chat history is kept for 24 hours in this browser, per project. Each new message uses the source currently open in the reader; earlier source snapshots are not silently accumulated, and messages about another file or selection are not sent along. If a prompt is too long for the model, older messages are left out first; if it still does not fit, CBM Lens asks you to select less code instead of cutting the code. This chat explains the context you give it; it cannot edit files or run tools. Check its answers against the source. The small default model words things loosely, especially in languages other than English.
Search
Cmd+K or Ctrl+K opens the Galaxy search. It finds symbols, files and folders by name or path in the whole index, also nodes that are not loaded yet. For callers and callees, ask in the chat; the answer is listed from the graph.
Architecture decisions
The ADR workspace keeps an unsaved draft per project in this browser tab. It checks whether the stored document changed before saving, but the API does not provide an atomic document lock. The editor accepts up to 8,000 UTF-8 bytes. Saving changes the indexed decision document, not a file in your repository.
The Agents workspace and activity overlays are hidden in normal builds. To include them in a source build:
VITE_EXPERIMENTAL_AGENTS=true scripts/build.sh --with-uiActivity comes from explicitly configured tool hooks. The bundled adapter supports Claude Code PostToolUse; other clients need their own adapter. Recorded events go to the local daemon, and the reader must enable activity before the browser polls them. This does not automatically observe every agent. See the frontend setup guide.
For troubleshooting, open System logs. Frontend errors and failed requests are recorded locally. GET /api/ui-log reads frontend entries from the daemon's SQLite journal; ${CBM_CACHE_DIR}/logs/ui.log is also retained as a rotating JSONL export. See the frontend README for log scope, model setup, and development details.
Auto-Index
Enable automatic indexing on MCP session start:
codebase-memory-mcp config set auto_index trueWhen enabled, new projects are indexed automatically on first connection. Previously-indexed projects are registered with the background watcher for ongoing git-based change detection. Configurable file limit: config set auto_index_limit 50000.
The watcher follows MCP sessions: it watches the project each open MCP session is rooted in (the client's working directory) and stops when the last session for that project closes. A repository indexed with cli index_repository, or indexed from a session rooted somewhere else, is not watched; re-run index_repository after changing it. index_status reports this in its watch object: watched, and either the poll cadence and last scan time or the reason it is not watched.
Watcher registration is controlled separately by auto_watch (default true). Set config set auto_watch false to keep a session from registering its project with the background watcher; useful when working across many projects and you want each session contained to explicit indexing.
To turn the watcher off entirely, set config set watcher_enabled false (default true): the background poll thread never starts and no project is registered, while auto_index and manual index_repository keep working. Unlike auto_watch, which is consulted per session, watcher_enabled is read once when the background daemon starts, so run codebase-memory-mcp daemon stop after changing it; reconnecting your MCP client alone will not restart the daemon. See docs/CONFIGURATION.md.
The watcher follows git projects only by default: a project indexed from a directory that is not a git repository is not watched and stays at its last index until you run index_repository again. To have such roots polled too, set config set watch_non_git true (default false, read when the daemon starts): they are then checked on the same cadence with a file-tree scan that uses the indexer's own ignore rules.
Keeping Up to Date
Updates run from the install script on every platform, not from inside the running binary. codebase-memory-mcp update validates your flags and then prints the exact command to run:
# macOS / Linux
bash "<install-dir>/install.sh"# Windows
powershell -ExecutionPolicy Bypass -File "<install-dir>\install.ps1"The install script is placed next to the binary at install time, so the printed path resolves beside the executable. It is idempotent, so re-running it is the update: it stops the daemon, retires the running binary, installs the new one, and cleans up.
Why it works this way. On Windows it is a hard requirement; a running executable cannot replace its own image, so the swap has to happen from a process that is not the binary being replaced. On macOS and Linux it is a deliberate choice: an in-process updater is structurally a downloader (fetch an archive, verify it, unpack it, mark a file executable, run it), and shipping that composite in every binary to serve a command most people run a handful of times is a poor trade. The release archives now carry no download URLs at all, and cbm makes no network request of its own accord: it does not check for new versions in the background, and nothing phones home. You find out about releases from the install script, your package manager, or GitHub.
If PowerShell refuses to run the script because the file came from the internet, Unblock-File it first.
Installed through npm or pip? Update with your package manager on every platform (npm install -g codebase-memory-mcp@latest / pip install -U codebase-memory-mcp).
Uninstall
codebase-memory-mcp uninstallRemoves owned agent config entries, skills, hooks, instructions, and the installed binary. Existing graph indexes are listed and kept by default. -y/--yes, -n/--no, and noninteractive input keep them unless --delete-indexes is explicitly given. An interactive terminal without that flag is asked separately; the default answer is to keep them.
codebase-memory-mcp uninstall -y --delete-indexes # also delete every project index
codebase-memory-mcp uninstall --dry-run --delete-indexes # preview; change nothing--delete-indexes is explicit consent and takes precedence over --no; --dry-run always preserves the files. When indexes are kept, uninstall prints their cache directory (${CBM_CACHE_DIR:-~/.cache/codebase-memory-mcp}) and how to remove them.
The install script placed beside the binary is reported, not deleted: uninstall prints its path and the rm command for it. It is left alone on purpose: it may be your own copy, a symlink into a checkout, or managed by a package manager, and an uninstaller should not delete a file it cannot prove it owns.
Features
Graph & analysis
Architecture overview:
get_architecturereturns a compact summary by default. Request specificaspectsfor routes, hotspots, dependencies, clusters, or cycles.system_structureprovides the projection used by CBM Lens and must be requested on its own.Architecture Decision Records:
manage_adrpersists architectural decisions across sessionsLouvain community detection: Discovers functional modules by clustering call edges
Git diff impact mapping:
detect_changesmaps uncommitted changes to affected symbols with risk classificationCall graph: Resolves function calls across files and packages (import-aware, type-inferred)
Dead code candidates: find functions with no indexed callers, excluding entry points. Check dynamic dispatch, coverage gaps, and framework conventions before removing code.
Cypher-like queries:
MATCH (f:Function)-[:CALLS]->(g) WHERE f.name = 'main' RETURN g.name
Search
Semantic search (the
semantic_queryparameter ofsearch_graph, not a separate tool): vector search across the entire graph, powered by bundled Nomicnomic-embed-codeembeddings (40K tokens, 768d int8) compiled into the binary; no API key, no Ollama, no Docker. 11-signal combined scoring (TF-IDF, RRI, API/Type/Decorator signatures, AST profiles, data flow, Halstead-lite, MinHash, module proximity, graph diffusion).BM25 full-text search via SQLite FTS5 with
cbm_camel_splittokenizer (camelCase / snake_case aware)Structural search (
search_graph): regex name patterns, label filters, min/max degree, file scopingCode search (
search_code): graph-augmented grep over indexed files only
Cross-service linking
HTTP route ↔ call-site matching with confidence scoring
gRPC, GraphQL, tRPC service detection with protobuf Route extraction
Channel detection (
EMITS/LISTENS_ON) for Socket.IO, EventEmitter, and generic pub-sub patterns across 8 languages with constant resolution
Cross-repo intelligence
CROSS_*edges link nodes across multiple repos indexed under the same storeCross-repo architecture summary combining services, routes, and dependencies across the indexed fleet
Run status:
index_status(and the UI layout next tolinked_projects) carries across_repoobject,{"status":"never_run"}untilindex_repository(mode="cross-repo-intelligence")has run with that project as the source, then"ran"withlast_run_at,outcome,targets,projects_scanned,total_cross_edgesandskipped_projects. That is how you tell "never linked" apart from "linked, nothing matched". The status is stored in the project's own index next to itsCROSS_*edges, so a reindex that rebuilds the index drops both at once and the status goes back tonever_run.Skipped stores:
target_projects: ["*"]skips an index built before the #768 schema change rather than failing the whole run. The response lists each one asskipped_projects: [{"name", "reason": "pre_768_schema", "hint": "reindex this project"}].
Edge types (selected)
CALLS: a callable is invoked at the source siteCALL_REFERENCE: a callable is used at a supported reference site (for example, a direct value argument) and resolves to one exact targetUSAGE: an identifier is used, but a unique callable target is not proven (including ambiguous or complex expressions)IMPORTS,DEFINES,IMPLEMENTS,INHERITSHTTP_CALLS,ASYNC_CALLS(cross-service); a shell script, Make recipe or CI step runningcurl/wgeton a URL it states (constant words resolved, unknown parts{}) to itsRoutewith the method its flags give: a Kubernetes Service of the repository by the path, as code clients do, any other host (a download, localhost) with the host kept; the edge keepsvia,method,url_path,host, never the user info or the querySPAWNS: the caller starts another program (subprocess.run,exec.Command,posix_spawn,Process.Start, a shell command or Make recipe running a program by path, ...); the target is aProcessnode named after the program, or<dynamic>when the program is not a literal. When a shell script, Make recipe, GitHub Actions step or Prow job runs a script of the repository (./hack/x.sh,bash hack/x.sh), the target is that script'sModule(else itsFile);make TARGET(also$(MAKE),-C,-f) targets the rule of that target, followed through included makefiles; edges from CI carryciandjob. A Dockerfile's last stageENTRYPOINT(elseCMD) spawns what the container runs (api: dockerfile): the repository script or source copied into the image, the Gomainof a binary a stage builds withgo build -o, else aProcessINFRA_MAPS: a Kubernetes Service to each workload whose pod labels carry everykey: valueof the Service's selector, within one namespaceCONNECTS_TO: a Kubernetes workload or compose service to the Service its containers' environment addresses (PRODUCT_CATALOG_SERVICE_ADDR: productcatalogservice:3550, a URL's host,<svc>.<ns>.svc..., a bare name on an*_ADDR/*_HOST/*_URL/ ... key; compose: the project's.envinterpolated): a Kubernetes Service of the same bundle and namespace, or a compose service of the same file. The edge keepsvia: env,keyandcontainer, never the valueUSAGEwithref: image: a Kubernetes workload (any pod template: containers, initContainers, CronJobs, custom resources) or a docker compose service to theImageit runsDEPLOYS: what puts manifests, kustomizations or charts on a cluster, to what it puts there: a Flux Kustomization or Argo Application to the kustomizations / manifests / chart of its path, a Flux HelmRelease to its chart (spec.chartorchartRef→ OCIRepository), a shell command or Make recipe (kubectl apply -f/-k,kustomize build | kubectl apply,helm install/upgrade/template), a Go installer loading a chart with the Helm SDK, a Terraformhelm_release, a Terraformkubernetes_*resource the object it declares (aResourcelike a manifest's,ecosystem: terraform, when its name is a literal), a kustomization inflating a chart (helmCharts; its values file anIMPORTS). A chart outside the repository is an externalChart, keyed by its publisher when its repository URL is stated (__chart__<repository>/<name>, the same node in every project, the URL inrepository), else one per project and name; the edge saysvia(flux,argo,helmrelease,kubectl,kustomize,helm,helm-sdk,terraform,helmcharts, ...)DEPENDS_ON: a Helm chart to the charts it declares (the local chart for a resolvablefile://repository, otherwise an externalChart; the edge keepsrepository), and ago.mod/requirements.txtfile to an externalPackage; a Dockerfile to theImages it builds on (via: from,copy-from); anImageto the Dockerfile it is built from (via: build;tool:skaffold,compose,docker-buildfordocker/podman/nerdctl/buildahbuild commands in scripts, Make and CI); a compose service to the services itsdepends_on/linksnameCONFIGURES: code reading an environment variable to the sharedEnvVarof that name (strategy: env_access); a Kubernetes container, compose service or Dockerfile (ENVof the image) setting one to that container's ownEnvVar(strategy: env_set, withsource:value,configMapKeyRef,secretKeyRef,fieldRef, ...,compose,dockerfile; values are never stored); and that container'sEnvVarto the code reading the name inside the files its image is built from (strategy: env_read, withdockerfile): the image's files are the sources its Dockerfile'sCOPY/ADDput into it, less the context's.dockerignoreCONFIGURESwithstrategy: key_symbol: a code symbol to the config key it names (config_key). A YAML, JSON, HCL (Terraform, OpenTofu, tfvars), TOML or INI key links by exact name (maxRetryCount=max_retry_count) and only to code inside the config file's component: its directory, or the one around aconfig/,configs/,conf/,settings/oretc/directory. A.envor.propertieskey also links by substring (confidence 0.75)OVERRIDEwithvia: patch: a Kustomize patch to each object of its kustomization's build it changes (child → base): a patch file's documents to the object of the same kind and name; an inline patch (from the kustomization) or a JSON6902 operation file to what itstargetselects (group, version, kind, name, namespace, label selector); a component's in the build of each kustomization including it. The edge keepskustomization,patchandline; a patch file is anIMPORTS(local_name: patches) of its kustomization, never a member of the buildOVERRIDEwithvia: namePrefix/nameSuffix: an object a kustomization renames, from its variant: aResourcenamed with the deployed name (capi-+controller-manager; the prefixes of nested kustomizations outermost first, suffixes innermost first) in the namespace that build gives it,ecosystem: kustomize, which the kustomization's fileDEFINES. CRDs, Namespaces and API services keep their names, as kustomize does. The edge keepskustomizationandlineUSAGEwithvia: terraform: a Terraform / OpenTofu reference (var.X,local.X,module.X,data.T.N,T.N) from the top-level block holding it to the block of its module (the.tf/.tofufiles of its directory) that declares it (alocalsentry: itslocalsblock); an entry of the block'sdepends_onlist is aDEPENDS_ONinstead. The edge keepsref(var,local,module,data,resource) andline; a name only mentioned in string text is no reference. A module call with a local source (module "net" { source = "./modules/net" })IMPORTS(local_name: the module's name) theFolderof that directory (the root directory: theProject), andmodule.net.id(alsomodule.net[0].id,module.net[*].id)USAGEs (ref: output) theoutput "id"there, besidemodule.netOVERRIDEwithvia: tfvars: a.tfvarsassignment to a variable the module of its own directory declares, from the file'sVariableto thatvariableblock (the edge keepsline); a.tfvarsfile whose own directory declares none of its names sets the nearest ancestor module's that does, the edge markedinferred(such a file is applied by a-var-filethe repository does not state)Terragrunt (
via: terragrunt): a unit (terragrunt.hcl), evaluated in its own context: anincludeIMPORTS(local_name) the file itspathnames; aread_terragrunt_configIMPORTS(read: the file holding the call) the file it names, from the block holding the call or, for a call in an included file, from the unit'sincludeblock that brings it in; adependencyDEPENDS_ONthe other unit; a localterraformsourceIMPORTSitsFolder. Paths may usefind_in_parent_folders,dirnameandget_terragrunt_dir; anything else is unknown and links nothingAnsible (
via: ansible): a playbook or task file (a YAML file whose top level is a sequence)IMPORTS(local_name: the directive) what its directives name:import_playbooka playbook,include_tasks/import_tasks/includea task file (from its directory, else its role'stasks/),roles:items andinclude_role/import_rolea role'sFolder(roles/<name>at or above its directory). A templated target links nothing. Each task and handler is aFunction(named by itsname:, else its module;source: ansible,kind,module) that its fileDEFINES: in a playbook's plays, a role'stasks/andhandlers/files, and the files those include; a block's tasks, not the block. AnotifyCALLS(via: notify) each handler of that name orlistentopic in the task's own role (else its file). Akube(kubespray's module) orkubernetes.core.k8staskDEPLOYS(via: ansible,module) the repository file its play rendered the applied manifest from: thetemplate(in the role'stemplates/) orcopy(itsfiles/) task whosedestis the task'sfilename, item by item throughregister/with_items/looplists the play states (a literal list, aset_fact, the role'sdefaults/vars), or ak8stemplate:argumentEMITS,LISTENS_ON(channels)DATA_FLOWSwith arg-to-param mapping + field access chainsSIMILAR_TO(MinHash + LSH near-clone detection, Jaccard scored)SEMANTICALLY_RELATED(vocabulary-mismatch, same-language, score ≥ 0.80)
Indexing pipeline
162 vendored tree-sitter grammars compiled into the binary
Generic package / module resolution: bare specifiers like
@myorg/pkg,github.com/foo/bar,use my_crate::fooresolved via manifest scanning (package.json,go.mod,Cargo.toml,pyproject.toml,composer.json,pubspec.yaml,pom.xml,build.gradle,mix.exs,*.gemspec)Infrastructure-as-code indexing: Dockerfiles (
Dockerfile.*,*.Dockerfile,Containerfile: bases, what the container runs,ENV), container images (Image: the normalised repository, tag and digest on the edges; a repository built from several Dockerfiles, one per component tag, gets anImageper component), docker compose services (Resource), Kubernetes manifests (Resource, withgroup,version,kind,namespace,labelsask=v,k2=v2), Kustomize overlays (IMPORTSto their entries and patch files,OVERRIDEfrom their patches), Helm charts (Chart,DEPENDS_ON), Terraform / OpenTofu (.tf,.tofu,.tfvars) as graph nodes. A Service walks to the code it runs: Service → workload →Image→ Dockerfile →mainHybrid LSP semantic type resolution for Python, TypeScript / JavaScript / JSX / TSX, PHP, C#, Go, C, C++, Java, Kotlin, Rust, and Perl; a lightweight C implementation of language type-resolution algorithms, structurally inspired by and compatible with major language servers including tsserver / typescript-go, pyright, gopls, Roslyn, Eclipse JDT, and rust-analyzer (parameter binding, return-type inference, generic substitution, JSX component dispatch, JSDoc inference for plain JS files, namespace + trait + late-static-binding resolution for PHP, file-scoped namespaces + records + LINQ method syntax for C#, class-hierarchy + overload + lambda resolution for Java, extension-function + scope-function resolution for Kotlin, trait-method + UFCS resolution for Rust)
RAM-first pipeline: LZ4 compression, in-memory SQLite, single dump at end. Memory released after.
Distribution & operation
Native runtime set, zero infrastructure services: SQLite-backed, persists to
~/.cache/codebase-memory-mcp/Auto-sync: Background watcher detects file changes in the project an MCP session is working in and re-indexes it automatically (other indexed repos: re-run
index_repository)Route nodes: REST endpoints are first-class graph entities
CLI mode:
codebase-memory-mcp cli search_graph --project my-project --name-pattern ".*Handler.*"Available on: npm, PyPI, Homebrew, Scoop, AUR,
go install
Indexing modes
Mode | Use it for |
| Full indexing with semantic analysis. This is the default. |
| A filtered index with semantic analysis. |
| A filtered index without semantic analysis. |
| Link services across indexed projects, optionally limited by |
Team-Shared Graph Artifact
Share a compressed graph snapshot so teammates can reuse an indexed baseline.
.codebase-memory/graph.db.zst is a zstd-compressed snapshot of the knowledge graph that lives next to your source. The artifact is opt-in: index_repository writes it only with persistence: true (the default is false), and once it exists later indexes refresh it. Local indexes persist regardless. When a teammate indexes a clone with an existing artifact, CBM imports that baseline and applies their local changes incrementally.
Format: SQLite database, indexes stripped,
VACUUM INTOcompacted, then zstd 1.5.7 compressed (8 to 13:1 ratio typical)Two tiers:
Best (
zstd -9+ index strip +VACUUM INTO); written byindex_repositorywithpersistence: trueFast (
zstd -3); refreshes an existing artifact on every other index, including the watcher's low-latency incremental updates
Bootstrap: when no local DB exists but the artifact is present,
index_repositoryimports the artifact first, then runs incremental indexing, reusing the shared baseline where possibleMerge policy: the first export creates
.codebase-memory/.gitattributeswithmerge=ours. Check your repository's Git merge-driver setup before relying on it for concurrent artifact updates.Commit it deliberately: the artifact is rewritten on every index, including the watcher's Fast tier, and git stores each rewrite as a full new blob. Committing every refresh is what turns a 20 MB file into gigabytes of history; one team reached ~6 GB across ~350 commits of this single path. Pick a cadence (a release, a milestone, a nightly job) rather than committing every save.
Git LFS, if it must move on every commit: track it from the repo-root
.gitattributesand leave the auto-created.codebase-memory/.gitattributesin place; the nearer file goes on supplyingmerge=ours, and onlyfiltercomes from the root:.codebase-memory/graph.db.zst filter=lfs diff=lfs merge=lfs -textTrack only the
.zst;artifact.jsonis small and carries the schema version. The attribute applies to future commits only. Removing existing blobs requires a separate history migration. Two costs to weigh before adopting it: GitHub meters LFS storage and bandwidth, and its objects cannot be pruned without contacting support; and every teammate needsgit lfs install; without it their checkout leaves a pointer file where the artifact should be, the integrity-checked import refuses it, and they fall back to a full reindex.Optional: shared export is opt-in, and Git commits remain your choice. Add
.codebase-memory/to.gitignoreif you prefer everyone to reindex from scratch.
The artifact provides a shared baseline while each developer keeps a local query database.
How It Works
codebase-memory-mcp is a structural analysis backend: it builds and queries the knowledge graph. The backend does not require a generative model. It relies on your MCP client (Claude Code, or any MCP-compatible agent) to be the intelligence layer.
You: "what calls ProcessOrder?"
Agent calls: trace_path(function_name="ProcessOrder", direction="inbound")
codebase-memory-mcp: executes graph query, returns structured results
Agent: presents the call chain in plain EnglishWith MCP, your coding agent translates a question into tool calls. CBM Lens can also use an optional browser model for explanations; this does not change how the backend indexes or queries code.
Performance
Published backend benchmarks on Apple M3 Pro. These are separate from the CBM Lens checks:
Operation | Time | Notes |
Linux kernel full index | 3 min | 28M LOC, 75K files → 4.81M nodes, 7.72M edges |
Linux kernel fast index | 1m 12s | 1.88M nodes |
Django full index | ~6s | 49K nodes, 196K edges |
Cypher query | <1ms | Relationship traversal |
Name search (regex) | <10ms | SQL LIKE pre-filtering |
Dead code detection | ~150ms | Full graph scan with degree filtering |
Trace call path (depth=5) | <10ms | BFS traversal |
RAM-first pipeline: All indexing runs in memory (LZ4 HC compressed read, in-memory SQLite, single dump at end). Memory is released back to the OS after indexing completes.
Token efficiency: The project's original README report lists ~3,400 tokens for five structural queries via codebase-memory-mcp versus ~412,000 via file-by-file exploration. That is approximately 120× fewer tokens, or a 99.2% reduction, for that comparison. The separate 31-repository study reports a 10× token reduction. Its system-performance measurements include Linux kernel indexing in about 3 minutes and Cypher relationship queries under 1 ms on an Apple M3 Pro.
To measure comparable quality, latency, and agent-efficiency metrics on your own workload, see Measuring quality, latency, and agent savings. Exact reproduction of the figures above requires the original inputs and raw artifacts.
Troubleshooting & Diagnostics
codebase-memory-mcp runs 100% locally and collects no telemetry: your code, queries, environment, and usage never leave your machine. That privacy guarantee also means that when you hit something we can't reproduce on our side (a slow memory climb over hours, a performance regression, a leak that only appears after days of real use), we have no data at all unless you choose to send it. Here is how to capture it yourself.
Capture a diagnostics log
Set CBM_DIAGNOSTICS=1 before the first daemon-backed MCP session starts, then reproduce the problem (let it run as long as it takes; a slow leak needs time to show in the trend). The shared daemon captures this setting from the session that starts it. If it is already running, close all daemon-backed sessions so it exits before changing the setting. The daemon creates a fresh owner-private cbm-diagnostics-<pid>-<random> directory below the system temp directory ($TMPDIR or /tmp on macOS/Linux, %TEMP% on Windows). The exact paths are recorded by the diagnostics.start event in ${CBM_CACHE_DIR}/logs/cbm-daemon.log:
File | What it is |
| The memory trajectory: one JSON line every 5 s with |
| The latest snapshot only; handy for a quick live check. Removed on clean exit. |
The private randomized directory prevents another local account from pre-placing a link or special file at a predictable diagnostics path. Its <pid> component is the shared daemon's process ID, also recorded by the daemon.start event. Set the variable consistently in the env block of each agent's MCP server config, or export it before launching the first session.
What to share
When you open a memory/performance issue, attach the .ndjson trajectory: it contains no source code or query text, only resource counters. If you'd rather not attach a file, paste it (or an agent's summary of it) into the issue: your assistant can read the NDJSON directly and report whether rss/committed grow monotonically, how fast, and relative to query count; which is exactly what we need to find the cause.
Installation
Pre-built Binaries
Platform | Archive |
macOS (Apple Silicon) |
|
macOS (Intel) |
|
Linux (x86_64) |
|
Linux (ARM64) |
|
Windows (x86_64) |
|
Every release includes checksums.txt with SHA-256 hashes. The executable is self-contained; no adjacent data file is required. Linux -portable archives contain the fully static builds; ordinary platform archives use their native system ABI.
Windows note: SmartScreen may show a warning for unsigned software. Click "More info" → "Run anyway". Verify integrity with
checksums.txt.
Setup Scripts
macOS / Linux:
curl -fsSL https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/scripts/setup.sh | bashWindows (PowerShell):
irm https://raw.githubusercontent.com/DeusData/codebase-memory-mcp/main/scripts/setup-windows.ps1 | iexAUR (Arch Linux)
yay -S codebase-memory-mcp-binparu -S codebase-memory-mcp-binThe codebase-memory-mcp-bin package is available at: https://aur.archlinux.org/packages/codebase-memory-mcp-bin
Nix (flake)
The flake exposes two server packages plus the standalone frontend:
Package | Contents |
| Standard server, no UI |
| Server with CBM Lens embedded ( |
| Just the built CBM Lens assets ( |
Run directly without installing:
# Standard server
nix run github:DeusData/codebase-memory-mcp
# Server with CBM Lens embedded
nix run github:DeusData/codebase-memory-mcp#codebase-memory-mcp-ui -- --ui=true --port=9749
# then open http://127.0.0.1:9749Or build a binary into ./result/bin/codebase-memory-mcp:
nix build github:DeusData/codebase-memory-mcp # standard
nix build github:DeusData/codebase-memory-mcp#codebase-memory-mcp-ui # with UIWorking in a clone? Use . in place of the flake URL, e.g. nix run .#codebase-memory-mcp-ui -- --ui=true, or drop into a shell that puts the binary on PATH with nix shell .#codebase-memory-mcp-ui.
Note: launched by hand (not from an MCP client) the server exits as soon as
stdincloses; that's normal MCP behaviour. Keepstdinopen while testing the UI, e.g.sleep infinity | codebase-memory-mcp --ui=true --port=9749. Thecodebase-memory-mcp-uipackage embeds the UI at build time;nix run'ing the standarddefaultpackage with--ui=truewill refuse to start the HTTP server.
Install via Claude Code
You: "Install this MCP server: https://github.com/DeusData/codebase-memory-mcp"Build from Source
Requirement | Check | Install |
C compiler (gcc or clang) |
| macOS: |
C++ compiler |
| Same as above |
zlib | n/a | macOS: included, Linux: |
Git |
| Pre-installed on most systems |
Node.js 22+ and npm |
| Required for |
git clone https://github.com/DeusData/codebase-memory-mcp.git
cd codebase-memory-mcp
scripts/build.sh --with-ui # the shipped composition (CBM Lens embedded, needs Node.js)
scripts/build.sh # without the UI (development only)
# Binary at: build/c/codebase-memory-mcp (codebase-memory-mcp.exe on Windows)The --with-ui build embeds CBM Lens and the agent integration templates into the native executable. You do not need Node.js to run that executable. Optional browser model weights are downloaded separately after opt-in.
Tests
Counts on main at 4d9592b5, where CBM Lens arrived. Native and Go counts use the macOS configuration; platform-specific registrations differ.
Suite | Count | Checked for this README |
Native C | 9,388 tests across 189 suites | 9,376 passed, 11 skipped, 1 failed on macOS ( |
UI unit tests (Vitest) | 3,970 tests in 310 files | All passed |
Go package wrapper | 30 top-level tests | Counted in the source |
npm package wrapper | 24 tests | Counted in the source |
Python package wrapper | 43 tests | Counted in the source |
Run the test suite (9,388 tests across 189 suites):
scripts/test.sh # full: clean sanitizer build + all suites + guards
scripts/test.sh --suites <name> # one suite, incremental, seconds
build/c/test-runner --list-suites # what is availableFrontend development and validation:
cd graph-ui
npm ci
npm run test:unit
npm run build
npm run devThe dev server listens on port 5173 and proxies /api and /rpc to port 9749. Start the matching CBM backend first.
Package wrappers have their own test commands: go test ./... in pkg/go, npm test in pkg/npm, and python3 -m unittest discover -s tests -p 'test_*.py' in pkg/pypi. The Go wrapper requires Go 1.26.1 or newer.
scripts/test.sh is the C test entry point used by CI. The canonical local artifact-flow check builds both stripped/unstripped candidates, defaults to the stripped candidate for this explicitly unscanned local run, packages those exact bytes, extracts the archive, and smokes it:
scripts/ci/smoke-artifact.sh <linux|darwin|windows> <amd64|arm64>scripts/package-release.sh is intentionally a lower-level immutable boundary:
it accepts only an already-final --selected-binary plus its
--expected-sha256; it never builds, strips, signs, or relinks the executable.
Manual MCP Configuration
Add to ~/.claude.json (user scope) or project .mcp.json:
{
"mcpServers": {
"codebase-memory-mcp": {
"command": "/path/to/codebase-memory-mcp",
"args": []
}
}
}Restart your agent. Verify with /mcp; you should see codebase-memory-mcp with 17 tools.
Multi-Agent Support
install configures 45 client surfaces: 39 detected automatically and 6
conditional or explicit. “Conditional” means the installer writes only when the
documented platform or an explicit, already-existing config path proves the
target is active. It never flips experimental feature flags, enables plugins,
YOLO modes, global permission bypasses, or third-party instruction trust.
Where a client has a documented custom-agent format, the installer creates three exact-owned definitions from one canonical contract:
Scout (Tier 1): about 3 to 4 narrow calls for fast positive, provisional discovery; no absence, exhaustive-impact, or dead-code claims.
Verify (Tier 2, default): task-directed graph evidence, exact source checks, path coverage for every cited file, and scope coverage before negative claims.
Auditor (Tier 3): bounded scope, current index generation, complete relevant pagination, broader relationship checks, and explicit unresolved limitations.
Every direct tier batches check_index_coverage for its evidence paths and reads
flagged ranges or skipped/excluded files directly. A clean coverage result means
only “no recorded gap,” never proof of completeness. Clients without safe child
MCP access receive the same three tiers as parent-handoff agents; the parent must
supply project, generation, pagination state, graph evidence, and coverage
results. Updates migrate only byte-identical prior Verify definitions and never
overwrite user-modified agents.
Agent | Activation | MCP config | Durable context / augmentation |
Claude Code | Detected |
| Skill + three exact-tool graph agents; |
Codex CLI | Detected |
| Managed |
Gemini CLI | Detected |
|
|
Zed | Detected | platform |
|
OpenCode | Detected |
|
|
Antigravity | Detected |
|
|
Aider | Detected | none |
|
KiloCode | Detected |
| Rule + three graph-tool subagents with deny-by-default permissions |
VS Code | Detected | platform |
|
Cursor | Detected |
| Skill + three read-only parent-handoff agents; context hooks withheld because session injection races and |
Windsurf | Detected |
| Always-on |
Augment / Auggie | Detected |
| Rule, three read-only handoff subagents, |
OpenClaw | Detected |
| Active-workspace |
Kiro | Detected |
| Steering, skill, three JSON agents with isolated Scout/Analysis-profile MCP and explicit graph-tool selectors ( |
Junie | Detected |
| Skill + three graph subagents for EAP-capable builds; Scout and Analysis server aliases hard-limit the tier tool surfaces; no ineffective EAP |
Hermes | Detected |
| Skill + fail-open |
OpenHands | Detected |
| Shared |
Cline | Detected |
| Rule + skill; automatic file hooks withheld because they auto-activate and their output is not reliably consumed; child agents cannot use MCP |
Warp | Detected, skill only | UI, Warp Drive, or per invocation (manual) | Shared |
Qwen Code | Detected |
|
|
GitHub Copilot CLI | Detected |
| Instructions, skill, three read-only agents; |
Factory Droid | Detected |
|
|
Crush | Detected |
| Managed context path with explicit parent-to-child handoff |
Goose | Detected |
|
|
Mistral Vibe | Detected |
|
|
Grok Build | Detected |
| Owned |
Qoder CLI | Detected |
| Skill, three directly MCP-attached agents with named-server scoping and exact per-tier graph-tool lists; |
Kimi Code CLI | Detected |
| Same-root |
GitLab Duo CLI | Detected |
| Fail-open user |
Rovo Dev CLI | Detected | configured override or | Global |
Amp | Detected |
| Colocated skill + |
Devin CLI / Local | Detected |
| Same-root |
Tabnine | Detected |
| MCP only; no experimental/YOLO setting |
Continue / cn | Conditional | Existing | MCP only |
Visual Studio | Conditional, Windows |
| MCP only |
TRAE | Conditional | Existing | MCP only |
Roo Code | Conditional | Existing | MCP only |
Amazon Q Developer IDE | Detected |
| MCP only |
CodeBuddy Code CLI | Detected |
|
|
IBM Bob Shell | Detected by |
| Shared rule; no invented hook or agent |
Pochi | Detected |
|
|
Pi | Detected | none |
|
IBM Bob IDE | Conditional | Existing | Shared rule + IDE skill; no invented hook or agent |
Oh My Pi (omp) | Detected | Effective agent directory ( | Skill and three direct-MCP graph-tool subagents (Scout/Verify/Auditor); preserves user |
Sourcegraph Cody | Explicit opt-in | Existing | MCP only |
For Codex, install keeps only a tiny managed activation pointer in global
$CODEX_HOME/AGENTS.md; all detailed behavior lives in the installed codebase-memory skill.
Fresh installs create the pointer, upgrades replace the legacy full managed block while preserving
all user-owned bytes, and uninstall removes only the managed pointer.
Sessions, compaction, and subagents
Hooks installed by this project are fail-open and context-only. Claude Code's
PreToolUse observes Grep/Glob/Bash and injects matching graph symbols as
additionalContext; PostToolUse on Read adds targeted coverage context when
the graph could not fully parse or index that file. It never denies or replaces
the requested tool call.
Claude Code, Codex CLI, Qwen Code, GitHub Copilot CLI, and VS Code's Copilot
runtime receive paired session/subagent context where the vendor exposes a
documented context-output contract. Codex users must review and trust installed
hooks through /hooks; changing a hook definition changes its trust hash, so an
update can require re-trust. Qoder uses SessionStart, SubagentStart, and
post-Read coverage, including its documented PowerShell executor on Windows.
Kimi uses UserPromptSubmit, while Hermes uses pre_llm_call; both retain their
documented Windows execution paths. Devin installs
UserPromptSubmit and PostCompaction on macOS/Linux and adds SessionStart
only when Claude's equivalent managed hook is not present. GitLab Duo gets a
narrowly scoped macOS/Linux user SessionStart entry on its experimental hook
surface. GitLab Duo, Devin, and Factory hooks are withheld on Windows
because those vendors do not document a deterministic shell/executor contract
there. Gemini CLI, Factory Droid, and Augment also add documented post-read/view
coverage context but expose no equivalent documented child-start context.
For runtimes without a stable context-producing lifecycle event, durable files
carry the contract across fresh sessions and compaction: verify the graph project
and index freshness, query structural facts in the parent, then pass the project,
qualified symbols, paths, and call-chain evidence in every delegated task.
Claude, Codex, Gemini, Kiro, Qwen, Copilot, CodeBuddy, OpenCode, Kilo, Vibe,
Qoder, Junie, Factory, and Grok Build receive Scout, Verify, and Auditor graph profiles.
Kiro embeds this MCP server with --tool-profile scout for Scout and
--tool-profile analysis for Verify/Auditor. Junie registers equivalent named
server aliases because its subagent schema filters by server rather than by
individual tool. Both process profiles use positive allowlists: Scout exposes
seven fast inspection tools, Analysis exposes eleven, and future or mutating
tools remain unavailable until explicitly reviewed. If either Junie alias
collides with user configuration, the installer preserves it and installs
parent-handoff profiles instead. Qoder combines its documented named-server
selection with exact tier-specific MCP tool IDs. Factory uses exact registered
MCP tool IDs without its additive mcpServers field, which would expose the
whole server. Codex, Kilo, Vibe, and other capable formats likewise enumerate
the narrowest supported tool set. Rovo, Cursor, Augment, Pochi, and Cline use parent handoff where direct
child MCP is unavailable or unsafe; Pochi is limited to readFile, and Cline
child agents cannot use MCP.
Cline's file hooks auto-activate when present, and current Cline does not
reliably consume their context output, so automatic adapters are withheld and
older owned adapters are cleaned up. CodeBuddy's beta, version-gated hooks are
not auto-installed. Junie's EAP
SessionStart output is documented as ignored, so no context hook is installed.
Junie custom agents remain EAP-dependent. Qoder can resolve higher-priority
project or plugin agents before user agents with the same name; reload the
client after installation or profile changes.
Cursor context
hooks are withheld: session context injection has a known race, subagentStart
is control-only, and read-only subagents cannot safely receive MCP access. Grok Build's
passive hook events (SessionStart, SubagentStart, PostToolUse) discard
stdout and PreToolUse honors only deny/rewrite decisions, so its context hooks
are withheld; Grok also reads Claude and Cursor MCP, skill, and hook files
through its compat layer, and the native config.toml entry shadows that copy
by name. Rovo
has no documented session context-output hook, and Bob
documents neither a suitable hook nor a custom-agent surface. Those surfaces are
not approximated with invented augmentation. Kimi plugins, Amp plugins, and
GitLab experimental global skills remain opt-in.
OpenClaw reinjects the Codebase Knowledge Graph (codebase-memory-mcp) AGENTS
section after compaction and places the same guidance in TOOLS.md, the bootstrap
files inherited by its subagents. Automatic augmentation covers the active/default
workspace. Separate agents.list[].workspace directories require making that
workspace active for installation or copying the managed block there.
The installed Claude shim is named cbm-code-discovery-gate for backward
compatibility; despite the legacy name, it never gates or blocks.
Manual or UI-managed integrations
These are intentionally not counted as automatic installs: Qodo MCP is added through its UI and may be governed by enterprise allowlists; Warp MCP is managed through Warp Drive/UI or per invocation (only the shared skill is automatic); JetBrains AI Assistant / ACP is IDE-managed; GitHub Copilot coding agent, Jules, and CodeRabbit are cloud/repository-managed; Replit exposes a remote/service integration rather than a stable local user-global client; BLACKBOX AI does not document a stable arbitrary user-global MCP/instruction/agent schema; Plandex has no stable global registry safe to mutate; and SWE-agent uses explicit YAML and is no longer a suitable automatic global target.
CLI Mode
Every MCP tool can be invoked as a local, one-shot command. CLI tools connect to the shared coordination daemon (starting one if none is already running) to get a crash-safe exact-build admission lease for the command's lifetime; they never register with the background watcher, and a daemon a command had to start itself exits again once the command's connection closes and no other session is using it. index_repository is the only exception internally: it starts a temporary, exact-build supervised worker for the index, then stops that worker before the CLI command exits; the worker holds its own lease until exit.
Commands that mutate graph data use shared OS-backed, per-project locks. This serializes conflicting work from CLI and MCP sessions on the same project while allowing unrelated projects to proceed independently.
When stderr is an interactive terminal, the CLI automatically shows lifecycle and indexing progress. Pass --progress to force the same feedback when stderr is redirected or the command is run non-interactively. Pass --quiet to disable automatic terminal progress and ordinary diagnostics while retaining errors; it cannot be combined with --progress or outer cli --verbose. Routine informational logs are quiet by default; pass outer cli --verbose to include them. Progress and logs use stderr while stdout remains reserved for the command result. Read tools return a compact tree by default; pass a tool's --format json for machine-readable payload JSON, or outer --json for the full MCP envelope.
Large compact-tree tables may start with a response-local <section>_refs directory and an explicit <section>_ref_rule. A cell such as @0+handler.go reconstructs to ref 0's prefix plus handler.go. References are local to that sibling <section> table and expansion is non-recursive: entries inside <section>_refs are always literal prefixes. This is limited to declared path and qualified-name columns and activates only when the exact rendered table is at least 15% and 64 bytes smaller and a conservative model-neutral token-shape proxy also improves by at least 1%. Search and trace likewise render direct and prefix-grouped tree shapes and keep the smaller complete representation, so singleton or scattered answers do not pay directory overhead. Keys are declared once per table but never cryptically abbreviated, and --format json keeps stable literal strings for machine consumers. Both gates are deterministic; exact token counts still depend on the caller's tokenizer.
Lean responses truncate semantically, never by cutting arbitrary bytes from code or identifiers. Ranked graph rows are retained ahead of raw grep rows and diagnostic summaries; omitted rows/sections report totals, has_more, and a strictly advancing continuation offset or cursor. If even the first whole row cannot fit, CBM asks for a higher budget and emits no self-looping cursor. max_output_tokens is model-neutral sizing guidance: CBM enforces a deterministic ceiling of four UTF-8 bytes per requested token, so it is not a tokenizer-exact count. Detail flags such as diagnostics, source_mode, and detail opt into heavier fields. search_code pages ranked rows with result_limit/result_offset (limit remains a compatibility alias), raw rows with raw_limit/raw_offset, and directory summaries with directory_limit/directory_offset. Raw lines default to a UTF-8-safe match-centered preview; each row reports content_start_byte, returned/total byte counts, match byte bounds when known, and a content continuation offset. Pass raw_content_offset to page the original line without moving the raw-row cursor. match_limit and source_max_lines bound per-result details, with exact omission metadata. detect_changes pages changed files, impacted symbols, and module summaries independently; prefer its snapshot-bound *_cursor continuations, which reject changed commits, worktree bytes, graph generation, or semantic arguments instead of silently skipping or duplicating rows.
Every response is standard UTF-8. Identifiers, paths, and raw search previews preserve POSIX byte-string identities: a preserved value containing malformed UTF-8 is emitted reversibly as @bytes:<lowercase hex of every original byte>. A valid preserved value that literally begins with the reserved @bytes: or @utf8: prefix is emitted as @utf8:<original value>, so decoding is unambiguous: strip one @utf8: prefix for literal UTF-8, or hex-decode one @bytes: prefix for original bytes. Ordinary valid UTF-8 is unchanged and pays no output-token overhead. To keep code readable, source bodies replace malformed UTF-8 with U+FFFD; use the pageable raw search preview when byte-exact source inspection is required.
Use cli <tool> --help to see the flags generated from that tool's input schema:
codebase-memory-mcp cli index_repository --repo-path /path/to/repo
codebase-memory-mcp cli list_projects
# Use the "name" returned by list_projects as the project value.
codebase-memory-mcp cli search_graph --project my-project --name-pattern '.*Handler.*' --label Function
codebase-memory-mcp cli trace_path --project my-project --function-name Search --direction both
codebase-memory-mcp cli query_graph --project my-project --query 'MATCH (f:Function) RETURN f.name LIMIT 5'
# Force human-readable progress without contaminating stdout.
codebase-memory-mcp cli --progress index_repository --repo-path /path/to/repo
# Suppress automatic terminal progress and non-error diagnostics.
codebase-memory-mcp cli --quiet list_projects --format json
codebase-memory-mcp cli search_graph --project my-project --label Function --format json
codebase-memory-mcp cli list_projects --format json --detail stats | jq '.projects[].name'JSON arguments can also be piped on stdin, for tools that take arguments. A tool whose input schema declares none; list_projects; never reads stdin, so it stays responsive when it inherits a pipe the caller never closes (the default for child_process.spawn and similar wrappers). Inline JSON remains accepted for backward compatibility but is deprecated in favor of flags, --args-file, or stdin.
MCP Tools
Indexing
Tool | Description |
| Index a repository into the graph. Auto-sync keeps it fresh only while it is the project of an open MCP session; repos indexed from the CLI or from another project's session need a re-run ( |
| List all indexed projects with node/edge counts. |
| Remove a project and all its graph data. |
| Check indexing status of a project. |
| Check whether exact paths or a scope are indexed and fresh. A clean result means no recorded gap, not proof of completeness. |
Long indexes and client call deadlines. A synchronous index_repository on a large
repository can take longer than an MCP client allows one tool call (some IDE clients give up
after a fixed deadline). When a client cancels or disconnects, the daemon cancels an index that
nobody else is waiting for, so retrying the same blocking call never finishes. Use the async
mode instead:
index_repository(repo_path="/abs/path", async: true)starts the index in the daemon (or joins the one already running for that project) and returns immediately withstate(queued/running). The job keeps running even if the client cancels, times out or disconnects; only stopping the daemon ends it.index_repository(repo_path="/abs/path", status: true)reportsstate(queued,running,cancelling,succeeded,failed,cancelled),started_at,finished_atand anerrorsummary. Poll it until the state issucceeded,failedorcancelled. Pass the samerepo_path(andname, if the index call used one).
async and status are exclusive; async does not apply to cross-repo-intelligence. Both
need the daemon-backed server (the default codebase-memory-mcp entry point). A temporary
daemon (started on demand rather than by codebase-memory-mcp daemon start) stops, and
cancels its jobs, when its last client disconnects. A connected MCP session keeps it alive, so
async from your editor works. A one-shot codebase-memory-mcp cli index_repository --async
that is the daemon's only client is refused with a clear error, because the job would die the
moment the command exits: run codebase-memory-mcp daemon start first, keep an MCP session
open, or call without --async. status works everywhere. When a synchronous call was cut
short, the next
index_repository or status call for that project carries a notice suggesting the async
mode. index_status keeps describing the published graph and its freshness.
Querying
Tool | Description |
| Structural, BM25, and semantic search. Page structural rows with |
| Trace callers, callees, data flow, or cross-service paths (alias: |
| Map git diff to affected symbols + blast radius with risk classification. |
| Execute Cypher-like graph queries (read-only). |
| Node/edge counts, relationship patterns, property definitions per label. Run this first. |
| Compare two indexed snapshots: node/edge additions and removals between a base and a target. |
| Read source code for a function by qualified name. |
| Declaration outline of one repository-relative file in source order, with optional label filter and paging. |
| Codebase overview: languages, packages, routes, hotspots, clusters, ADR. |
| Grep-like text search within indexed project files. |
| CRUD for Architecture Decision Records ( |
| Store observed call paths or caller/callee pairs under a run label. Both endpoints must resolve to indexed symbols; unresolved names are reported. |
manage_adr(mode='set_sections') writes one or more sections by name and splices them into the stored document, so text outside the named sections (including a preamble, code fences and section ordering) is preserved byte-for-byte. Any ## Heading works, not just the conventional PURPOSE / STACK / ARCHITECTURE / PATTERNS / TRADEOFFS / PHILOSOPHY set; names match exactly, including case. Writing the same section twice is a no-op, so a retry after a lost response cannot duplicate content.
manage_adr query modes (get and sections) use the server's cached query store so they can proceed while a same-project reindex is running. If another process publishes a replacement store during reindexing, they can return the pre-publication ADR until idle eviction refreshes that cache. Updates remain serialized through the project mutation guard.
Graph Data Model
Node Labels
Project, Package, Folder, File, Module, Section, Class, Struct, Interface, Trait, Enum, Type, Function, Method, Field, Variable, Constant, Macro, Decorator, Route, Channel, Table, Process, EnvVar, Resource, Chart, Image, Branch
Edge Types
CONTAINS_FOLDER, CONTAINS_FILE, DEFINES, DEFINES_METHOD, IMPORTS, CALLS, CALL_REFERENCE, USAGE, INHERITS, IMPLEMENTS, OVERRIDE, DECORATES, RAISES, THROWS, WRITES, DATA_FLOWS, HTTP_CALLS, GRPC_CALLS, ASYNC_CALLS, EMITS, LISTENS_ON, HANDLES, SPAWNS, CONFIGURES, INFRA_MAPS, CONNECTS_TO, DEPLOYS, DEPENDS_ON, REFERENCES_FILE, MENTIONS, TESTS, TESTS_FILE, SIMILAR_TO, SEMANTICALLY_RELATED, FILE_CHANGES_WITH, HAS_BRANCH, and the cross-repo CROSS_HTTP_CALLS, CROSS_GRPC_CALLS, CROSS_GRAPHQL_CALLS, CROSS_TRPC_CALLS, CROSS_ASYNC_CALLS, CROSS_CHANNEL
MENTIONS links a documented definition to the code its doc comment references (C# <see cref>, <seealso cref>, <exception cref>, <inheritdoc cref>), one edge per pair with via, syntax, tier (exact or unique), first line and count. A reference is bound only when it names exactly one definition under the language's own lookup rules; the rest are counted by reason in index_status under doc_links (samples with diagnostics='full').
Qualified Names
get_code_snippet uses qualified names: <project>.<path_parts>.<name>. Use search_graph to discover them first.
Supported Cypher (openCypher read subset)
query_graph is a read-only openCypher subset:
Clauses:
MATCH,OPTIONAL MATCH, multipleMATCH,WHERE,WITH(+WITH … WHERE),RETURN,ORDER BY,SKIP,LIMIT,DISTINCT,UNWIND,UNION/UNION ALL,CASE.Patterns: labelled nodes, label alternation
(n:A|B), relationship types/direction, variable-length paths[*1..3], inline property maps.WHERE:
= <> < <= > >=,AND/OR/XOR/NOT,IN,CONTAINS,STARTS WITH,ENDS WITH,IS [NOT] NULL, regex=~, label testn:Label, andEXISTS { (n)-[:TYPE]->() }(single-hop existence; great for dead-code, e.g.WHERE NOT EXISTS { (f)<-[:CALLS]-() }).Aggregates:
count(+DISTINCT),sum,avg,min,max,collect.Functions:
labels,type,id,keys,properties;toLower/toUpper/toString/toInteger/toFloat/toBoolean;size,length,trim/ltrim/rtrim,reverse;coalesce,substring,replace,left,right.
Anything outside this subset (write/MERGE/CALL clauses, unsupported functions, list/map literals, comprehensions, path functions, parameters) fails with a clear unsupported … error rather than returning empty results.
Ignoring Files
Layered: hardcoded patterns (.git, node_modules, etc.) → .gitignore hierarchy → .cbmignore (project-specific, gitignore syntax). Symlinks are always skipped.
See docs/cbmignore.md for the full .cbmignore how-to: syntax, precedence across the ignore layers, and negation semantics.
Configuration
codebase-memory-mcp config list # show all settings
codebase-memory-mcp config set auto_index true # auto-index on session start
codebase-memory-mcp config set auto_index_limit 50000 # max files for auto-index
codebase-memory-mcp config set auto_watch false # don't register background git watcher (default: true)
codebase-memory-mcp config set doc_candidates false # skip doc<->code candidate scoring on huge repos (default: auto = on for full, off for moderate/fast)
codebase-memory-mcp config set watcher_enabled false # stop the watcher thread entirely (default: true)
codebase-memory-mcp config set watch_non_git true # also poll non-git project roots (default: false)
codebase-memory-mcp config set index_max_files 250000 # optional per-index source-file limit
codebase-memory-mcp config set index_max_source_mb 16384 # optional per-index source-size limit
codebase-memory-mcp config reset auto_index # reset to defaultThe two index_max_* settings default to off. Exceeding one fails the complete
index attempt rather than publishing a partial graph; an existing serving index
is preserved. See Index resource limits.
Environment Variables
Variable | Default | Description |
| (unset) | Confine |
|
| Override the database storage directory. All project indexes and config are stored here. One account can use only one canonical cache root at a time; close active CBM sessions/commands before switching it. |
|
| Set to |
| (GitHub releases) | Override the download URL for updates. Used for testing or self-hosted deployments. |
| role-aware | Set the minimum log level. Thin MCP/CLI/hook frontends default to |
| (detected) | Override the parallel-indexing worker count returned by |
| (detected) | Override the in-memory graph budget with an explicit cap in MiB, taking precedence over the |
|
| After indexing, compare persisted SQLite node count to the in-memory dump count. When persisted nodes fall below this fraction of committed nodes (and committed > 50), |
Environment used by daemon-owned components (such as diagnostics, daemon logging, and process-wide indexing resource limits) is captured from the first daemon-backed session that starts the daemon. Later sessions join that process and cannot replace those values. To change them, close all daemon-backed sessions, update the relevant agent configurations consistently, and restart a session. CBM_ALLOWED_ROOT remains session-specific, a conflicting CBM_CACHE_DIR is rejected, and a one-shot CLI command is not exempt from the rule above: it connects to the coordination daemon like any other session, starting one if none is running. Its own environment becomes the captured daemon-owned environment only when its invocation is the one that starts the daemon; joining an already-running daemon, it inherits that daemon's already-captured values instead.
# Store indexes in a custom directory
export CBM_CACHE_DIR=~/my-projects/cbm-dataCustom File Extensions
The JSON config files support a single key, extra_extensions, which maps additional file extensions to supported languages. Useful for framework-specific extensions like .blade.php (Laravel) or .mjs (ES modules). (For other tunables, see Environment Variables and the config subcommand above.)
Need the full config-file reference? See docs/CONFIGURATION.md.
Per-project (in your repo root):
// .codebase-memory.json
{"extra_extensions": {".blade.php": "php", ".mjs": "javascript"}}Global (applies to all projects):
// ~/.config/codebase-memory-mcp/config.json (or $XDG_CONFIG_HOME/...)
{"extra_extensions": {".twig": "html", ".phtml": "php"}}Each entry maps an extension (which must start with .) to a language name. Language names are matched case-insensitively. Accepted values (aliases in parentheses) are:
bash (sh), c, c++ (cpp), c# (csharp), clojure, cmake, cobol, common lisp (commonlisp, lisp), css, cuda, dart, dockerfile, elixir, elm, emacs lisp (emacslisp), erlang, f# (fsharp), form, fortran, glsl, go, graphql, groovy, haskell, hcl (terraform), html, ini, java, javascript, json, julia, kotlin, lean, lua, magma, makefile, markdown, matlab, meson, nix, objective-c (objc), ocaml, perl, php, protobuf, python, r, ruby, rust, scala, scss, sql, svelte, swift, toml, tsx, typescript, verilog, vimscript, vue, wolfram, xml, yaml, zig.
Project config overrides global for conflicting extensions. An entry whose language name is unknown, or whose extension does not start with ., is skipped and a warning is logged to stderr (shown at the default info log level). Missing config files are ignored.
Persistence
SQLite databases stored at ~/.cache/codebase-memory-mcp/. Persists across restarts (WAL mode, ACID-safe). To reset: rm -rf ~/.cache/codebase-memory-mcp/.
Troubleshooting
Problem | Fix |
| Check |
| Pass absolute path: |
| Start it with |
| Use |
Queries return wrong project results | Add |
Binary not found after install | Add to PATH: |
UI not loading | Ensure you ran |
CBM Lens shows "server unreachable" or "Architecture is not available yet." | Check that |
Hybrid LSP
Semantic type resolution beyond tree-sitter.
Tree-sitter alone gives a syntactic AST. That handles naming, structure, and call sites well, but it can't tell you that user.profile.display_name() resolves to Profile.display_name declared three modules away; tree-sitter doesn't track imports, generics, inheritance, or stdlib types.
codebase-memory-mcp ships a lightweight C implementation of language type-resolution algorithms, structurally inspired by and compatible with major language servers (tsserver / typescript-go, pyright, gopls, Roslyn, Eclipse JDT, rust-analyzer), embedded directly into the native executable. No language server process, no per-project setup, no API key. We call this layer Hybrid LSP: it runs alongside tree-sitter on every parse and refines invocation resolution (CALLS / RESOLVED_CALLS) and callable-value resolution (CALL_REFERENCE, with ambiguous values retained as USAGE) using type information, so the resulting graph mirrors what an IDE "Go to Definition" would resolve.
Languages with full Hybrid LSP:
Language | What it handles |
Python (new in v0.7.0) | imports + dotted submodule walks, dataclasses, |
TypeScript / JavaScript / JSX / TSX | generics, JSX component dispatch, JSDoc inference for plain JS, |
PHP (new in v0.7.0) | namespaces, traits, late-static-binding, PHPDoc inference, parameter binding, return-type inference |
C# (new in v0.7.0) | global usings, file-scoped namespaces, records (incl. C# 12 primary constructors), LINQ method syntax, |
Go (sharpened in v0.7.0) | pre-built per-package cross-file registry, generics, embedded structs, interface satisfaction, package-aware import resolution |
C / C++ (sharpened in v0.7.0) | pre-built per-language cross-file registry shared across C and C++; C side handles macros + |
Java (new in v0.8.0) | imports (single-type, on-demand, static), class hierarchies with |
Kotlin (new in v0.8.0) | imports + same-package resolution, classes / objects / companion objects, extension functions, data classes, nullable-type unwrapping, scope functions ( |
Rust (new in v0.8.0) |
|
Perl | packages + |
Two-layer architecture:
Tree-sitter pass: fast, syntactic, runs for every one of the 162 languages. Extracts definitions, calls, imports.
Hybrid LSP pass: type-aware, runs above the tree-sitter pass per-language. Refines call edges using the import graph plus a per-file or pre-built cross-file definition registry. Languages without a Hybrid LSP pass yet fall back to textual resolution, with coverage varying by language and construct.
The result is a knowledge graph accurate enough to drive trace_path across packages, inheritance hierarchies, and stdlib calls; without paying for a language server process per project.
Language Support
162 languages, counted by the vendored grammar directories in the parser manifest. Benchmarked against 64 real open-source repositories (78 to 49K nodes):
Tier | Score | Languages |
Excellent (>= 90%) | Lua, Kotlin, C++, Perl, Objective-C, Groovy, C, Bash, Zig, Swift, CSS, YAML, TOML, HTML, SCSS, HCL, Dockerfile | |
Good (75-89%) | Python, TypeScript, TSX, Go, Rust, Java, R, Dart, JavaScript, Erlang, Elixir, Scala, Ruby, PHP, C#, SQL | |
Functional (< 75%) | OCaml, Haskell |
Also supported (not yet benchmarked): Ada, Agda, Apex, ArkTS, Assembly (NASM), Astro, AWK, Beancount, BibTeX, Bicep, Bitbake, Blade, Cairo, Cap'n Proto, CFML, CFScript, Chialisp, Clojure, CMake, COBOL, Common Lisp, Crystal, CSV, CUDA, D, Devicetree, Diff, .env, Elm, Emacs Lisp, F#, Fennel, Fish, FORM, Fortran, FunC, GDScript, .gitattributes, .gitignore, Gleam, GLSL, GN, Go module, Go template, GraphQL, Hare, HLSL, Hyprlang, INI, ISPC, Janet, Jinja2, JSDoc, JSON, JSON5, Jsonnet, Julia, Just, Kconfig, KDL, Lean 4, Linker Script, Liquid, LLVM IR, Luau, Magma, Makefile, Markdown, MATLAB, Mermaid, Meson, Mojo, Move, Nickel, Nix, ObjectScript (UDL and routines), Odin, Pascal, Pine Script, Pkl, PL/SQL, PO (gettext), Pony, PowerShell, Prisma, .properties, Protobuf, Puppet, PureScript, QML, Racket, Regex, requirements.txt, ReScript, RON, reStructuredText, Scheme, Slang, Smali, Smithy, Solidity, SOQL, SOSL, Squirrel, SSH config, Starlark, Svelte, Sway, SystemVerilog, TableGen, Tcl, Teal, Templ, Thrift, TLA+, Typst, Verilog, VHDL, Vim script, Vue, WGSL, WIT, Wolfram, XML, Zsh.
Architecture
src/
main.c Entry point (MCP stdio server + CLI + install/update/config)
daemon/ Per-account session coordination, IPC, lifecycle, shared jobs/watchers
mcp/ MCP server (17 tools, JSON-RPC 2.0, session detection, auto-index)
cli/ Install/uninstall/update/config (45 client surfaces, hooks, instructions)
store/ SQLite graph storage (nodes, edges, traversal, search, Louvain)
pipeline/ Multi-pass indexing (structure → definitions → calls → HTTP links → config → tests)
cypher/ Cypher query lexer, parser, planner, executor
discover/ File discovery (.gitignore, .cbmignore, symlink handling)
watcher/ Background auto-sync (git polling, adaptive intervals)
traces/ Runtime trace ingestion
ui/ Local HTTP server + embedded CBM Lens frontend
foundation/ Platform abstractions (threads, filesystem, logging, memory)
graph-ui/ CodeAtlasWeb: React, Monaco, and Three.js browser frontend
internal/cbm/ Vendored tree-sitter grammars (162 languages) + AST extraction engineSecurity
Every release is verified through a multi-layer pipeline before publication:
VirusTotal: all 24 executable candidates (unstripped, debug-stripped and stripped) across the eight release products are scanned before smoke/soak (clean is preferred and only the single-Microsoft
!mltolerance documented in SECURITY.md may pass; the number of engines that returned a decisive result is recorded as evidence but is VirusTotal fleet availability, not a pass condition). The selected executable is packaged without changing its SHA-256, release notes link the verdict for the exact bytes shipped, and the full per-candidate evidence is published alongside the release as TSVs for anyone auditing the selection. Every distinct object extracted from the shipped containers;install.sh,install.ps1,LICENSE,THIRD_PARTY_NOTICES.md, the MCPBmanifest.jsonand the unpacked UI assets; is then scanned as well, so the full published surface is covered, not just the executables.SLSA Level 3: cryptographic build provenance generated by the trusted GitHub Actions build workflow; verify with
gh attestation verify <file> --repo DeusData/codebase-memory-mcp --signer-workflow DeusData/codebase-memory-mcp/.github/workflows/_build.ymlSigstore cosign: keyless signatures on all artifacts; bundles included in every release
SHA-256 checksums:
checksums.txtpublished with every release; verified by both install scripts before extractionCodeQL SAST: blocks release pipeline if any open alerts remain
No language-runtime dependency chain: the native backend uses libraries vendored at compile time, and the frontend is embedded by the UI build
VirusTotal release scans
The v0.11.0 release notes report clean scans for all eight shipped binaries. Each result is tied to the exact executable hash. The links below show the reports for those binaries; the displayed hashes are shortened for readability.
Binary | SHA-256 prefix | Reported verdict |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
The release also publishes candidate scan results, binary provenance, and selection records. For subsequent versions, use the scan evidence linked from the latest release.
License
MIT
Available Tools
17 toolscheck_index_coverageARead-onlyIdempotent
Best-effort exact-path/scope coverage and freshness, paged separately. full diagnostics adds raw detail. Clean is not proof of completeness.
| Name | Required | Description | Default |
|---|---|---|---|
| paths | No | ||
| format | No | tree | |
| scopes | No | ||
| project | Yes | ||
| path_limit | No | ||
| diagnostics | No | none | |
| path_offset | No | ||
| scope_limit | No | ||
| scope_offset | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description adds meaningful behavioral context beyond the readOnly/idempotent annotations: 'Best-effort' signals potential incompleteness, 'paged separately' discloses pagination behavior, 'full diagnostics adds raw detail' explains an output mode, and 'Clean is not proof of completeness' is a crucial caveat for interpreting results. No contradiction with annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is three short sentences with no filler. The main purpose is front-loaded, followed by a diagnostics tip and a critical caveat. Every sentence earns its place, and the density is appropriate for the tool's complexity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With no output schema and sparse parameter documentation, the description provides a useful high-level concept but leaves gaps: it does not explain what 'coverage' or 'freshness' outputs look like, how tree vs json differ, or how to interpret 'clean'. The caveat about completeness is helpful but does not fully compensate for missing return-value semantics.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate. It does add meaning for paths/scopes ('exact-path/scope'), pagination ('paged separately'), and diagnostics ('full diagnostics'). However, it leaves several parameters (project, format, limits, offsets) semantically unexplained, though some are self-evident from their names and defaults.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific resource and scope: 'exact-path/scope coverage and freshness'. It clearly indicates a read-only check operation with pagination, going beyond a mere restatement of the tool name. It does not explicitly differentiate from siblings like index_status, but 'exact-path/scope' is distinctive enough.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Usage context is implied: you would call this when you need granular coverage or freshness for specific paths/scopes. The phrase 'full diagnostics adds raw detail' hints at when to set diagnostics=full. However, no explicit when-not-to-use guidance or alternatives (e.g., index_status) are mentioned, leaving routing decisions to inference.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
compare_graphsARead-onlyIdempotent
Compare two indexed snapshots: deterministic target-only additions and base-only removals of stable node/edge identities; each set capped by limit and a 512 KiB budget with exact totals and truncation reasons.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| scan_limit | No | ||
| base_project | Yes | ||
| target_project | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Beyond the read-only and idempotent annotations, the description discloses meaningful behavior: deterministic diffing, cap enforcement via limit and a 512 KiB budget, and exact totals with truncation reasons. This is especially valuable because there is no output schema to convey what the tool returns.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single dense sentence with no filler. It front-loads the core purpose and then packs in behavioral details about caps, totals, and truncation reasons without redundancy.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
The description covers the core behavior and output well, especially given no output schema. However, it leaves scan_limit unexplained and does not mention alternatives or prerequisites beyond 'indexed snapshots', so an agent may not fully understand all input semantics or when to prefer a sibling tool.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 0%, so the description must compensate, but it does not explain scan_limit at all and only implicitly covers limit. base_project and target_project are inferable from 'Compare two indexed snapshots', and limit's role is hinted by 'capped by limit', but the parameter semantics remain under-specified for an agent.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description names a specific operation ('Compare two indexed snapshots') and states what it returns: target-only additions and base-only removals of stable node/edge identities. This is clear and specific, though it does not explicitly distinguish the tool from sibling tools such as detect_changes.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides clear context on when to use the tool: comparing two indexed snapshots to identify deterministic additions and removals. It does not state exclusions or point to alternatives, but the usage context is clear enough to guide selection.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
delete_projectBDestructiveIdempotent
Delete a project from the index
| Name | Required | Description | Default |
|---|---|---|---|
| project | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare destructiveHint=true, idempotentHint=true, and readOnlyHint=false, covering the safety profile. The description adds the 'from the index' scoping, which clarifies that deletion is limited to the index rather than the underlying project, but it does not disclose side effects, reversibility, or permissions. Given that annotations carry the main behavioral burden, a 3 is appropriate.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The entire description is a single front-loaded sentence that directly states the action and object. No unnecessary words or redundant information; it is appropriately sized for a simple tool.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a destructive one-parameter tool, the description states the core operation but leaves out practical details such as the expected format of the project parameter and the exact consequences of deletion. However, the annotation set (destructive, idempotent) partially compensates, so the description is minimally adequate but not fully complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
With 0% schema description coverage, the description is the only source of parameter meaning, but it merely repeats the parameter name ('project') without explaining what value it should take (e.g., ID, name, path) or any constraints. This is tautological and provides no semantic value beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific action verb 'Delete' and names the exact resource and scope ('a project from the index'), making the tool's function immediately clear. It is clearly distinct from sibling tools like list_projects, search_graph, or get_architecture.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives no guidance on when to use this tool versus alternatives, nor does it mention any prerequisites, exclusions, or side conditions. Usage is only implicitly derived from the purpose, but nothing tells an agent when deletion is appropriate or how it differs from other index management tools.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
detect_changesCRead-onlyIdempotent
Map a Git diff to files and impact. Page with snapshot cursors.
| Name | Required | Description | Default |
|---|---|---|---|
| via | No | Add via_qn, via_edge. | |
| depth | No | ||
| limit | No | ||
| scope | No | impact | |
| seeds | No | List changed-symbol seeds with independent pagination. | none |
| since | No | ||
| format | No | tree | |
| project | Yes | ||
| fixpoint | No | Walk to closure; no depth. | |
| direction | No | inbound=callers; outbound=dependencies; both=union. | inbound |
| edge_types | No | Inbound walk; default CALLS. | |
| seed_limit | No | ||
| base_branch | No | Default: origin/HEAD, else main, else master, else the upstream. | |
| config_path | No | Project config override; absolute or project-relative. | |
| seed_cursor | No | Continue seeds:list; excludes nonzero seed_offset. | |
| seed_filter | No | Product excludes indexed test metadata and configured test globs. | all |
| seed_offset | No | ||
| module_limit | No | ||
| changed_limit | No | ||
| impact_cursor | No | ||
| impact_offset | No | ||
| module_cursor | No | ||
| module_offset | No | ||
| changed_cursor | No | ||
| changed_offset | No | ||
| max_output_tokens | No | Sizing hint; hard ceiling is 4 UTF-8 bytes/token. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint/idempotentHint/non-destructive, so safety is covered. The description's only behavioral disclosure is 'Page with snapshot cursors', which is a useful but vague hint about the pagination model; it says nothing about the multiple walk modes (depth vs fixpoint), base-branch resolution, or config overrides that dominate this tool's behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two tightly written, front-loaded sentences with no padding. However, for a 26-parameter tool the brevity crosses into under-specification rather than true conciseness.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
No output schema and no annotation gaps to lean on; the description omits the multi-dimensional pagination model, the base-branch defaults, and the scope/direction modes. For a tool this complex it is not remotely complete.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
With 26 parameters and only 38% schema description coverage, the description must carry significant param meaning, yet it clarifies none. It only loosely gestures at 'files and impact' (scope) and cursors, leaving depth, fixpoint, seeds, edge_types, direction, and the many offset/limit knobs undocumented in both places.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ('Map a Git diff to files and impact'), which is concrete and understandable. It does not differentiate this from plausible siblings like compare_graphs or query_graph, and 'Page with snapshot cursors' is jargon that adds little clarity.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No when-to-use guidance, no prerequisites, and no pointer to an alternative tool. An agent cannot tell from the description whether to reach for this versus compare_graphs or search_graph when analyzing changes.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_architectureBRead-onlyIdempotent
Bounded static architecture; poll pending jobs. include_behavior_evidence=true adds indexed call arguments, parameter declarations and return types; not full dataflow or runtime traces.
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Directory prefix. | |
| format | No | tree | |
| aspects | No | Default: languages/packages/entry_points. overview omits file_tree. cycles/system_structure opt-in; system_structure alone, no path. | |
| project | Yes | ||
| entry_node_id | No | Start symbol. | |
| target_node_id | No | Requires entry_node_id. | |
| expected_generation | No | Required generation. | |
| include_behavior_evidence | No | system_structure only. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already cover read-only/idempotent/non-destructive, so the bar is lower, and the description adds two things annotations cannot: that results are bounded/static rather than full dataflow or runtime traces, and that jobs may be pending and require polling. The polling hint is a material async behavior not derivable from the schema.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Roughly 30 words, front-loaded with the core scope statement and then the key parameter behavior. It is telegraphic to the point of terseness, but no sentence is wasted and the most important constraint leads.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With 8 parameters, no output schema, and no explanation of entry_node_id, target_node_id, expected_generation, or the return format, the description leaves the agent to reconstruct invocation details from the schema alone. It compensates only partially, covering include_behavior_evidence but neglecting the async/generation mechanics implied by "poll pending jobs" and expected_generation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 75%, and the description goes beyond it by explaining what include_behavior_evidence actually adds (indexed call arguments, parameter declarations, return types) and what it excludes (full dataflow, runtime traces) — the schema only says "system_structure only." That is real added meaning for at least one key parameter.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states the tool returns a "bounded static architecture," which conveys the resource and distinguishes it from runtime-trace tools, but the verb is implied rather than explicit and "bounded" is jargon. It does not differentiate itself from obvious siblings like query_graph, get_graph_schema, or get_file_outline.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no when-to-use guidance and no named alternative among the many siblings that could serve similar queries. The only routing signal is a negative scope note ("not full dataflow or runtime traces"), which excludes some cases but never says when this tool is the right choice.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_code_snippetBRead-onlyIdempotent
Read a search_graph symbol. auto bounds source and outlines large containers; full restores up to 500 lines. Source/outline pages continue; coverage_note marks gaps.
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | tree | |
| project | Yes | ||
| max_lines | No | ||
| start_line | No | ||
| source_mode | No | auto outlines 200+ line containers; full returns source; outline lists members. | auto |
| member_limit | No | ||
| member_offset | No | ||
| qualified_name | Yes | search_graph qn, or short name. | |
| include_neighbors | No | ||
| max_output_tokens | No | auto/outline sizing hint (default 2500), hard ceiling 4 UTF-8 bytes/token. Lines stay whole; explicit full is uncapped unless set. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already establish read-only, idempotent, non-destructive behavior. The description adds useful behavioral detail: auto mode bounds source, full mode restores up to 500 lines, pagination continues across pages, and coverage_note marks gaps. This goes beyond the annotations, though 'full restores up to 500 lines' is slightly ambiguous given the uncapped note on max_output_tokens.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three short sentences with the core purpose front-loaded. The phrasing is terse, bordering on cryptic, but every clause carries relevant information and there is no filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given 10 parameters, only 30% schema coverage, and no output schema, the description is not complete enough for reliable tool invocation. It hints at paging and coverage notes but omits how to configure pagination, what output formats look like, and how optional features such as include_neighbors behave.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is only 30% across 10 parameters, so the description carries a heavy burden. It adds some meaning for source_mode and line limits, but it does not clarify qualified_name, project, format, start_line, member_offset, member_limit, include_neighbors, or max_output_tokens. This is not enough compensation for the large undocumented parameter set.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description uses a specific verb ('Read') and resource ('a search_graph symbol'), making the core purpose clear. It does not explicitly distinguish from siblings like get_file_outline or search_graph, so it falls just short of a 5.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description gives some usage context around source modes and pagination ('auto bounds source and outlines large containers; full restores up to 500 lines; Source/outline pages continue'). However, it never tells an agent when to prefer this tool over alternatives such as get_file_outline or search_code, nor states exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_file_outlineBRead-onlyIdempotent
Declaration outline of one exact repository-relative file: optional exact label filter, source order, exact total/offset/limit paging; file/folder/container nodes excluded.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| format | No | tree | |
| labels | No | Optional exact node-label filter | |
| offset | No | ||
| project | Yes | ||
| file_path | Yes | Exact repository-relative file path |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, non-destructive, closed-world, so the safety profile is covered. The description adds real behavioral context beyond that: results are returned in source order, paging is exact total/offset/limit, and structural nodes are filtered out. It does not disclose the tree-vs-json output difference or rate/auth behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single dense sentence with the core resource stated first, followed by scope qualifiers and exclusions. Every clause carries information, though the semicolon-heavy telegraphic style compresses several distinct facts (filter, ordering, paging, exclusions) at the cost of some readability.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a read-only outline tool with no output schema, the description covers purpose, ordering, paging, and excluded node types. However, the format enum (tree vs json) and the project parameter are unexplained, and the shape of a returned outline is not characterized, leaving moderate gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is only 33% (labels and file_path), so the description must compensate. It does clarify paging semantics for offset/limit and reaffirms the exact label filter, but it says nothing about the 'format' enum (tree/json) or the 'project' parameter, leaving two of six parameters to be inferred from bare types.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Names a specific verb+resource ('Declaration outline of one exact repository-relative file') and clarifies scope by treating it as a single-file view. It implicitly separates itself from repo-wide siblings like get_architecture or search_graph, but never names an alternative, so differentiation is inferential rather than explicit.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description is a feature list (label filter, source order, paging, node exclusions) with no when-to-use statement and no routing to competing siblings such as get_code_snippet or search_code. The only constraint given ('file/folder/container nodes excluded') describes output content, not when to select this tool.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
get_graph_schemaBRead-onlyIdempotent
Get node-label and edge-type counts. diagnostics=full also lists queryable properties.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| format | No | tree | |
| offset | No | ||
| project | Yes | ||
| diagnostics | No | none |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations indicate read-only, idempotent, and non-destructive, so the description does not need to repeat safety traits. It adds the 'diagnostics=full' behavior for listing properties, which is beyond annotations. However, it doesn't detail output structure or limitations, but annotations cover a lot.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is concise (two sentences) and front-loads the primary purpose. It mentions the diagnostics special case without excess detail, though it could be slightly more structured.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's moderate complexity (5 params, enums) and lack of output schema, the description provides minimal but sufficient context for basic usage. It does not explain parameter interplay or output format, but annotations cover safety. Overall adequate but with gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 0% and the description mentions only the diagnostics parameter's effect, not explaining others like limit, format, offset, or project. With 5 parameters and no schema descriptions, the description fails to compensate, leaving agents to guess parameter purposes.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool retrieves node-label and edge-type counts, which is a specific resource and data type. It does not explicitly differentiate from siblings like query_graph or get_architecture, but the focus on schema/counts is distinctive.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies usage for schema inspection but does not provide explicit guidance on when to use this over alternatives like query_graph or compare_graphs. It lacks context on typical use cases or exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
index_repositoryAIdempotent
Index a repository. full/moderate add semantics; fast omits them; cross-repo-intelligence links services. Reports coverage gaps. Waits for the whole index by default; a large repo can exceed a client's per-call deadline. async:true starts (or joins) the index in the daemon and returns at once; poll with status:true (same repo_path) until state is succeeded, failed or cancelled. async needs a daemon that outlives the call: an MCP session or daemon start.
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | full: all+semantic; moderate: filtered+semantic; fast: filtered only; cross-repo-intelligence: link services. | full |
| name | No | Name override; Non-ASCII bytes are encoded; unsafe characters normalized. | |
| async | No | Start the index in the background and return immediately; it keeps running if this call is cancelled or times out. Not with status or cross-repo-intelligence. Refused for a one-shot cli call that is the only client of a temporary daemon (run daemon start). | |
| status | No | Report the running or last index job (queued/running/succeeded/failed/cancelled) instead of indexing. Pass the same repo_path (and name, if any) as the index call. | |
| repo_path | Yes | Repository path | |
| persistence | No | Write .codebase-memory/graph.db.zst. | |
| doc_candidates | No | Doc-code candidates; default: the doc_candidates setting, else on for full, off for moderate/fast. | |
| target_projects | No | Cross-repo targets; ["*"] means all. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Goes well beyond the annotations by disclosing non-obvious operational traits: the default call blocks until the whole index finishes and can blow a client's per-call deadline, async runs in the daemon and survives call cancellation/timeout, polling terminates at succeeded/failed/cancelled, and async requires a daemon that outlives the call (MCP session or `daemon start`). The idempotent/readOnly hints are silently consistent with re-indexing, and no annotation is contradicted.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Front-loaded with the core action, then compact fragments that each carry information (mode semantics, async mechanics, daemon requirement). The telegraphic style ("full/moderate add semantics; fast omits them") is dense but parseable. Slightly clipped wording costs it the top score.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For an 8-parameter mutation tool with no output schema, the description covers the essential decision points: mode selection, sync-vs-async, the polling workflow and its terminal states, and the daemon lifetime requirement. Remaining gaps are minor – it does not say what the index call returns on success or how long a typical index takes.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is already 100%, so the baseline is 3, but the description adds real value: it explains what full/moderate/fast/cross-repo-intelligence mean in terms of semantics vs filtering, describes the async→status polling pairing including that the same repo_path/name must be reused, and notes the daemon constraint on async. It does not expand on doc_candidates or persistence beyond the schema text.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
Opens with a specific verb+resource ("Index a repository") and immediately distinguishes the four mode behaviors (semantics, filtered, service linking). An agent knows exactly what the tool produces. It stops short of naming siblings like index_status or check_index_coverage, even though status:true overlaps with the former and "Reports coverage gaps" overlaps with the latter.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
Gives concrete when-to-use guidance: default blocks for the whole index, large repos may exceed a client deadline, so use async:true and poll with status:true. It also states exclusions (async not with status or cross-repo-intelligence) and the daemon prerequisite. It never routes the agent to the sibling index_status tool that covers the same polling job, so it is not a full 5.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
index_statusARead-onlyIdempotent
Project readiness, counts, root, watch state, coverage gaps, and doc_links (doc-comment references: MENTIONS edges, unresolved by reason). diagnostics adds coverage rows; verbose adds Git paths. Best-effort only; verify cited paths with check_index_coverage.
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | tree | |
| project | Yes | ||
| verbose | No | Add worktree/shadow Git paths for index-location debugging. | |
| diagnostics | No | Coverage rows: counts, five samples, or up to 500. | none |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnly/idempotent/non-destructive, and the description adds a genuine reliability caveat: results are 'Best-effort only' and cited paths should be verified. It also discloses that doc_links reports unresolved references by reason, which is behavioral context beyond the annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The content list is front-loaded and the second sentence packs two parameter effects plus the verification caveat without padding. The parenthetical defining doc_links is dense but earns its place; structure is efficient though slightly compressed.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
With no output schema, the description carries the burden of explaining returns and does so by enumerating the reported fields and doc_links semantics. Safety and idempotency are covered by annotations, so nothing an agent needs to call this correctly is missing.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 50%; verbose and diagnostics are already documented in the schema, and the description only restates their effect (coverage rows, Git paths). It adds nothing for the undocumented 'format' parameter (tree/json) or the required 'project' parameter, so it neither compensates for the gap nor meaningfully exceeds the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description enumerates the specific content returned (readiness, counts, root, watch state, coverage gaps, doc_links), which lets an agent recognize this as an index status/report tool. There is no explicit verb, but the resource and output scope are concrete rather than tautological, and it implicitly differentiates itself from check_index_coverage.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
It names one alternative ('verify cited paths with check_index_coverage') and a caveat ('Best-effort only'), giving partial routing guidance. However, it never states when to reach for index_status versus index_repository, list_projects, or compare_graphs, so usage is largely implied.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
ingest_tracesADestructive
Record observed runtime calls so the graph can distinguish observed from merely possible paths. Each trace is a call path (qualified names, adjacent = caller→callee) or a bare caller/callee pair. Stored per run label, keyed by qualified name (reindex-proof). Only pairs whose both endpoints are indexed symbols are stored; the response reports unresolved names (up to 10) so the producer can fix its naming.
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Run identity, e.g. 'pytest 2026-08-27' (default 'unlabeled'); counts accumulate per label and whole runs age out together | |
| traces | Yes | ||
| project | Yes |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare the write profile (readOnlyHint=false, destructiveHint=true, idempotentHint=false), and the description adds genuinely new behavior: storage is keyed per run label with whole runs aging out together, only pairs with both endpoints indexed are persisted, and unresolved names (up to 10) are reported back. It does not explicitly state the destructive/accumulating semantics in prose, but the per-label accumulation is consistent with idempotentHint=false, so there is no contradiction.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three sentences, purpose front-loaded, each carrying distinct information (goal, accepted formats, storage/reporting behavior). Dense but no filler; slightly compressed for the amount of behavior packed in.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a destructive mutation tool with no output schema, the description usefully covers what happens on write (partial acceptance, unresolved-name reporting, per-label accumulation). The main gap is the unexplained 'project' parameter and the absence of any explicit statement about permission or auth requirements.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is only 33%, so the description must carry more than the baseline. It compensates for the undocumented caller/callee fields by explaining a trace may be a bare caller/callee pair and clarifies adjacency ('adjacent = caller→callee') and the per-run-label keying, but 'project' is never explained and 'count' semantics are left entirely to the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb and resource ('Record observed runtime calls') plus the goal that separates it from graph-construction siblings ('distinguish observed from merely possible paths'). An agent can tell this is the trace-ingestion write path, not index_repository or search_graph.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The context of use (reporting runtime call paths so the graph can mark observed edges) is implied, and the trace formats are enumerated, but there is no explicit 'use this after running your test suite' guidance and no named alternative or when-not-to-use condition against siblings like index_repository.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
list_projectsARead-onlyIdempotent
List projects with stable paging. Identity is lean; stats adds graph sizes.
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| detail | No | stats adds node/edge/database-size counts. | identity |
| format | No | tree | |
| offset | No | ||
| metadata_only | No | Compatibility: omit counts, size, and branch. | |
| include_details | No | Alias for detail=stats: include branch, node/edge counts and database size. Slower. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare the operation read-only and idempotent. The description adds meaningful behavioral context by highlighting 'stable paging' and explaining that identity mode is lean while stats mode adds graph sizes, which goes beyond the structured annotations.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two short sentences deliver the core purpose, a key behavioral guarantee, and the main detail-mode tradeoff with no wasted words. The content is front-loaded and easy to scan.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with six parameters and no output schema, the description is brief but somewhat incomplete. It covers purpose and a few parameter semantics, but it does not explain response shape, how paging behaves beyond 'stable', or the format/metadata_only compatibility options. It is adequate but leaves meaningful gaps.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is only 50%, so the description must compensate for undocumented parameters. It adds value by clarifying that the detail parameter controls whether graph sizes are included. However, it says nothing about limit, offset, format, metadata_only, or include_details beyond what the schema already provides, leaving several parameters unexplained.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the action and resource: 'List projects'. The mention of 'stable paging' and the detail-mode distinction adds useful specificity. It does not explicitly differentiate from sibling tools, but the purpose is unambiguous.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description implies when to use the tool by saying it lists projects with stable paging, and it gives some guidance on choosing between identity and stats detail. However, it does not explicitly state when to prefer this tool over alternatives or provide exclusions, leaving usage context mostly implicit.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
manage_adrBDestructive
Outline an ADR by default; get reads it; update replaces it
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | outline pages headings; get reads; update replaces the whole document; set_sections rewrites only the named sections and leaves every other byte untouched (an identical repeated write is byte-identical, so retrying is safe); sections is legacy. | outline |
| format | No | tree | |
| content | No | Whole document for update | |
| project | Yes | ||
| section_limit | No | ||
| section_offset | No | ||
| section_updates | No | set_sections: section name -> new body. Any heading name works; names match exactly, including case. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
The description explicitly states that 'update replaces it', aligning with the destructiveHint annotation and adding specificity. It also notes 'get reads it', which is read-only. This adds behavioral context beyond the annotations, though it does not cover set_sections behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely concise with two short sentences, front-loading the default behavior. No redundant words, but it sacrifices completeness for brevity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a tool with 7 parameters, a mode enum, and no output schema, the description is too minimal. It fails to mention the set_sections mode, section pagination parameters, or format options, leaving important aspects unexplained.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The description does not elaborate on any parameters beyond what the schema already provides. With schema coverage at 43%, the description should compensate for undocumented parameters like format, section_limit, and section_offset, but it does not.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description states a specific verb+resource ('Outline an ADR') and contrasts it with 'get reads' and 'update replaces', clarifying it manages ADRs. It distinguishes from sibling tools by focusing on ADRs, but omits the set_sections mode, which is a significant feature.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No guidance is given on when to use this tool versus alternatives. The description does not mention sibling tools, exclusions, or specific conditions for using different modes, leaving the agent to infer usage from the tool name and schema.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
query_graphARead-onlyIdempotent
Read-only Cypher for multi-hop, aggregation, complexity, or cross-service analysis. Default: 200 visible rows with exact/lower-bound totals and truncation; continue safely with next_cursor. graph=missed is a file tree of flagged coverage gaps; absence is not proof of completeness. Use get_graph_schema(diagnostics=full) for properties.
| Name | Required | Description | Default |
|---|---|---|---|
| graph | No | code graph (default) or missed coverage-gap file tree. | code |
| query | Yes | Cypher query | |
| cursor | No | Snapshot continuation; keep query/project/graph. Format, budget, and max_rows may change. | |
| format | No | tree may use local @N+suffix prefix refs; json uses direct strings. | tree |
| offset | No | Live compatibility paging; cannot be combined with cursor. | |
| project | Yes | ||
| max_rows | No | Visible rows (default 200; max 99998); 0 uses the legacy maximum. Evaluation is unchanged. | |
| max_output_tokens | No | Sizing hint; hard ceiling is 4 UTF-8 bytes/token. Rows stay whole. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotation Contradiction: openWorldHint=false indicates closed-world results, but the description says 'absence is not proof of completeness' for graph=missed, which is an open-world caveat. While pagination, truncation, and cursor behavior are disclosed, the contradiction with the annotation makes the behavioral guidance unreliable.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is dense but efficient: it front-loads purpose, then covers pagination behavior, graph=missed semantics, and the get_graph_schema alternative. Every sentence earns its place with no filler.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For an 8-parameter tool with no output schema, the description covers the most important non-obvious behaviors: pagination, truncation, graph modes, and property lookup. It is nearly complete, but the open-world annotation contradiction prevents it from being fully trustworthy.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is high (88%), so the baseline is 3, but the description adds valuable semantics: default 200 visible rows, truncation and lower-bound totals, safe cursor continuation, and the graph=missed coverage-gap caveat. These details meaningfully supplement the schema descriptions.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly defines the tool as read-only Cypher for multi-hop, aggregation, complexity, or cross-service analysis, which is specific and informative. It also differentiates from get_graph_schema by directing property-related needs there.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description states when to use the tool (complex, multi-hop, aggregation, cross-service analysis) and explicitly points to get_graph_schema(diagnostics=full) for properties. It does not explicitly contrast with search_graph or other siblings, leaving room for stronger exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_codeCRead-onlyIdempotent
Graph-ranked text search: compact symbols, full bounded source, or file paths.
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | compact | |
| debug | No | Add scope_ms/scan_ms/enrich_ms phase timings. | |
| limit | No | ||
| regex | No | ||
| format | No | tree | |
| context | No | ||
| pattern | Yes | ||
| project | Yes | ||
| raw_limit | No | ||
| raw_offset | No | ||
| match_limit | No | ||
| path_filter | No | ||
| file_pattern | No | ||
| result_limit | No | ||
| result_offset | No | ||
| directory_limit | No | ||
| directory_offset | No | ||
| source_max_lines | No | ||
| max_output_tokens | No | ||
| raw_content_offset | No | Raw-line byte offset; omit for match-centered preview. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds genuine context beyond that by characterizing the output shapes (compact symbols vs. full bounded source vs. file paths) and the graph-based ranking, but says nothing about truncation, token caps (max_output_tokens exists), or pagination behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
A single tightly-packed sentence that front-loads the core operation and ranking behavior with zero filler. It is efficient, though the compression borders on under-specification rather than maximal brevity.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a 20-parameter tool with 10% schema coverage and no output schema, the definition is far too thin: an agent cannot determine how the many pagination params interact, what units limits use, or how regex/context affect matching. The mode phrases hint at return shape but leave the parameter space essentially unexplained.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is only 10% across 20 parameters: only debug carries a description, leaving regex, context, path_filter, file_pattern, and eight separate limit/offset pagination knobs entirely undocumented. The description loosely gestures at the three mode values but adds no syntax, format, or interaction detail to compensate for the coverage gap.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb+resource ("text search") with a distinctive ranking property ("graph-ranked") and enumerates three output shapes. It is clear enough what the tool returns, though it neither names sibling alternatives nor maps the shorthand phrases ("compact symbols", "file paths") to the actual mode enum values.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
No when-to-use guidance, no prerequisites, and no mention of alternatives despite siblings like search_graph, query_graph, and get_code_snippet that an agent must choose between. The mode list implies variants exist but never says which situation selects which.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
search_graphBRead-onlyIdempotent
Find symbols via BM25 query, regex name/qn filters, or semantic_query. Rows keep qn/file/lines and in/out over CALLS/USAGE/CALL_REFERENCE/INHERITS/IMPLEMENTS.
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Resource kind, e.g. Deployment. | |
| label | No | ||
| limit | No | ||
| query | No | ||
| detail | No | default | |
| fields | No | ||
| format | No | tree | |
| offset | No | ||
| project | Yes | ||
| namespace | No | Resource namespace. | |
| max_degree | No | ||
| min_degree | No | ||
| qn_pattern | No | ||
| file_pattern | No | ||
| name_pattern | No | ||
| relationship | No | ||
| semantic_limit | No | ||
| semantic_query | No | Not with query. | |
| semantic_offset | No | ||
| include_connected | No | ||
| max_output_tokens | No | ||
| exclude_entry_points | No |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare the safe read-only/idempotent/closed-world profile, so the description's remaining job is to add context. It does so by disclosing the output row shape (qn/file/lines plus in/out edges) and the relationship types traversed (CALLS/USAGE/CALL_REFERENCE/INHERITS/IMPLEMENTS), which annotations cannot convey. It omits pagination/limit and error behavior, keeping it from a 5.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Two dense sentences with no filler and the primary retrieval modes front-loaded. Jargon abbreviations ('qn', 'in/out') slightly reduce readability, but there is no wasted text.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a 22-parameter tool with no output schema and near-zero schema description coverage, the description is far too thin: most filters are undocumented and the return contract is only sketched. It should explain the filter surface (patterns, degrees, relationship, detail/format) and pagination for an agent to call it correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is only 14% across 22 parameters, so the description must carry the burden and largely does not. It gives meaning to a handful (query, name_pattern/qn_pattern, semantic_query) but leaves kind, label, limit, offset, format, detail, degree bounds, relationship, include_connected, max_output_tokens and more entirely unexplained in both schema and prose.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb+resource ('Find symbols') and enumerates three distinct retrieval modes (BM25 query, regex name/qn filters, semantic_query), so an agent knows it searches the symbol graph. It does not differentiate itself from siblings like query_graph or search_code, so it stops short of a 5.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The three modes imply how to invoke it (text vs regex vs semantic), giving indirect guidance on routing between retrieval strategies. However, it never states when to prefer search_graph over query_graph, search_code or trace_path, nor any prerequisites or exclusions.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
trace_pathBRead-onlyIdempotent
Trace callers/callees, data flow, or cross-service paths. Defaults exclude tests and resolver evidence. Rows keep qn/hop with explicit totals, relations, and continuations.
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | calls; argument-aware data_flow; service edges; topology: infra objects, routes, controllers (from a Resource/Route); deploy: what CI jobs and scripts run and deploy; run: what a Service runs (image, Dockerfile, program, env). | calls |
| depth | No | ||
| limit | No | Rows/page; gte flags the 5000-node engine ceiling. | |
| cursor | No | Pass next/next_cursor with traversal args unchanged; budget may increase. | |
| format | No | tree chooses smaller complete direct/grouped output; json uses stable grouped tables. | tree |
| project | Yes | ||
| direction | No | both | |
| edge_types | No | ||
| risk_labels | No | Add hop-risk labels. | |
| function_name | Yes | ||
| include_tests | No | ||
| parameter_name | No | data_flow parameter filter. | |
| include_evidence | No | Add resolver class and confidence. | |
| max_output_tokens | No | Sizing hint; hard ceiling is 4 UTF-8 bytes/token. Evidence/args yield before nearest graph rows. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, covering the safety profile. The description adds real value on defaults (tests and resolver evidence excluded) and on row shape (qn/hop plus totals, relations, continuations), which is not derivable from structured fields. It stops short of describing pagination limits or failure behavior.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
Three dense sentences, front-loaded with the action and mode variety, then defaults, then output shape. No filler, though it is somewhat telegraphic ('qn/hop', 'continuations') in a way that may be opaque to a first-time caller.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
For a 14-parameter tool with no output schema, the description sketches row structure but omits usage context relative to siblings and any prerequisite on indexing. It is adequate but leaves meaningful gaps an agent would otherwise have to discover by trial.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema coverage is 57%, a middling level, with the mode enum, limit, cursor, risk_labels, and evidence descriptions already carrying the weight. The description's only param-relevant content is the restatement that defaults exclude tests and evidence, adding little beyond the schema.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
States a specific verb (Trace) and the resources traversed (callers/callees, data flow, cross-service paths), so an agent knows it walks graphs rather than searching them. It does not name or contrast the obvious siblings (query_graph, search_graph), so an agent must infer the boundary itself, keeping it just under a 5.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
There is no explicit guidance on when to reach for trace_path versus query_graph, search_graph, or get_architecture, nor any stated preconditions (e.g., that the project must be indexed first). The mode list in the schema implies use cases but the description contributes no selection criteria.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
7 tool updates
v0.12.1- Changed
detect_changes12 fields changed- removed
Input schema / properties / base_branch / defaultRemoved value: -"main" - added
Input schema / properties / base_branch / descriptionAdded value: +"Default: origin/HEAD, else main, else master, else the upstream." - added
Input schema / properties / config_pathAdded value: +{ + "description": "Project config override; absolute or project-relative.", + "type": "string" +} - added
Input schema / properties / edge_typesAdded value: +{ + "description": "Inbound walk; default CALLS.", + "items": { + "type": "string" + }, + "type": "array" +} - added
Input schema / properties / fixpointAdded value: +{ + "description": "Walk to closure; no depth.", + "type": "boolean" +} - changed
Input schema / properties / scope / enumPrevious value: -[ - "files", - "impact" -]New value: +[ + "files", + "impact", + "tests" +] - added
Input schema / properties / seed_cursorAdded value: +{ + "description": "Continue seeds:list; excludes nonzero seed_offset.", + "type": "string" +} - added
Input schema / properties / seed_filterAdded value: +{ + "default": "all", + "description": "Product excludes indexed test metadata and configured test globs.", + "enum": [ + "all", + "product" + ], + "type": "string" +} - added
Input schema / properties / seed_limitAdded value: +{ + "default": 50, + "maximum": 1000, + "minimum": 0, + "type": "integer" +} - added
Input schema / properties / seed_offsetAdded value: +{ + "default": 0, + "minimum": 0, + "type": "integer" +} - added
Input schema / properties / seedsAdded value: +{ + "default": "none", + "description": "List changed-symbol seeds with independent pagination.", + "enum": [ + "none", + "list" + ], + "type": "string" +} - added
Input schema / properties / viaAdded value: +{ + "description": "Add via_qn, via_edge.", + "type": "boolean" +}
- Changed
get_architecture7 fields changed- changed
Input schema / properties / aspects / descriptionPrevious value: -"all=everything; overview=compact except file_tree; omitted=languages/packages/entry_points; cycles is opt-in."New value: +"Default: languages/packages/entry_points. overview omits file_tree. cycles/system_structure opt-in; system_structure alone, no path." - changed
Input schema / properties / aspects / items / enumPrevious value: -[ - "all", - "overview", - "structure", - "dependencies", - "routes", - "languages", - "packages", - "entry_points", - "hotspots", - "boundaries", - "layers", - "file_tree", - "clusters", - "cycles" -]New value: +[ + "all", + "overview", + "structure", + "dependencies", + "routes", + "languages", + "packages", + "entry_points", + "hotspots", + "boundaries", + "layers", + "file_tree", + "clusters", + "cycles", + "system_structure" +] - added
Input schema / properties / entry_node_idAdded value: +{ + "description": "Start symbol.", + "minimum": 1, + "type": "integer" +} - added
Input schema / properties / expected_generationAdded value: +{ + "description": "Required generation.", + "minLength": 1, + "type": "string" +} - added
Input schema / properties / include_behavior_evidenceAdded value: +{ + "default": false, + "description": "system_structure only.", + "type": "boolean" +} - changed
Input schema / properties / path / descriptionPrevious value: -"Directory prefix (for example apps/hoa)."New value: +"Directory prefix." - added
Input schema / properties / target_node_idAdded value: +{ + "description": "Requires entry_node_id.", + "minimum": 1, + "type": "integer" +}
- Changed
index_repository3 fields changed- added
Input schema / properties / asyncAdded value: +{ + "default": false, + "description": "Start the index in the background and return immediately; it keeps running if this call is cancelled or times out. Not with status or cross-repo-intelligence. Refused for a one-shot cli call that is the only client of a temporary daemon (run daemon start).", + "type": "boolean" +} - added
Input schema / properties / doc_candidatesAdded value: +{ + "description": "Doc-code candidates; default: the doc_candidates setting, else on for full, off for moderate/fast.", + "type": "boolean" +} - added
Input schema / properties / statusAdded value: +{ + "default": false, + "description": "Report the running or last index job (queued/running/succeeded/failed/cancelled) instead of indexing. Pass the same repo_path (and name, if any) as the index call.", + "type": "boolean" +}
- Changed
ingest_traces3 fields changed- added
Input schema / properties / labelAdded value: +{ + "description": "Run identity, e.g. 'pytest 2026-08-27' (default 'unlabeled'); counts accumulate per label and whole runs age out together", + "type": "string" +} - added
Input schema / properties / traces / items / properties / count / descriptionAdded value: +"How often this trace was observed (default 1)" - added
Input schema / properties / traces / items / properties / pathAdded value: +{ + "description": "Call path of qualified names, caller before callee; 2..256 entries", + "items": { + "type": "string" + }, + "type": "array" +}
- Changed
search_code3 fields changed- added
Input schema / properties / context / defaultAdded value: +0 - added
Input schema / properties / context / maximumAdded value: +200 - added
Input schema / properties / context / minimumAdded value: +0
- Changed
search_graph2 fields changed- added
Input schema / properties / kindAdded value: +{ + "description": "Resource kind, e.g. Deployment.", + "type": "string" +} - added
Input schema / properties / namespaceAdded value: +{ + "description": "Resource namespace.", + "type": "string" +}
- Changed
trace_path2 fields changed- changed
Input schema / properties / mode / descriptionPrevious value: -"calls, argument-aware data_flow, or service edges."New value: +"calls; argument-aware data_flow; service edges; topology: infra objects, routes, controllers (from a Resource/Route); deploy: what CI jobs and scripts run and deploy; run: what a Service runs (image, Dockerfile, program, env)." - changed
Input schema / properties / mode / enumPrevious value: -[ - "calls", - "data_flow", - "cross_service" -]New value: +[ + "calls", + "data_flow", + "cross_service", + "topology", + "deploy", + "run" +]
15 tool updates
v0.11.0- Changed
check_index_coverage7 fields changed- added
Input schema / properties / diagnosticsAdded value: +{ + "default": "none", + "enum": [ + "none", + "full" + ], + "type": "string" +} - added
Input schema / properties / formatAdded value: +{ + "default": "tree", + "enum": [ + "tree", + "json" + ], + "type": "string" +} - added
Input schema / properties / path_limitAdded value: +{ + "default": 20, + "maximum": 128, + "minimum": 1, + "type": "integer" +} - added
Input schema / properties / path_offsetAdded value: +{ + "default": 0, + "minimum": 0, + "type": "integer" +} - removed
Input schema / properties / paths / descriptionRemoved value: -"Repository-relative files to check exactly. Required if 'scopes' is omitted." - changed
Input schema / properties / scope_limit / defaultPrevious value: -200New value: +20 - removed
Input schema / properties / scopes / descriptionRemoved value: -"Repository-relative path prefixes; use . for the project root. Required if 'paths' is omitted."
- Added
compare_graphs - Changed
detect_changes15 fields changed- added
Input schema / properties / changed_cursorAdded value: +{ + "type": "string" +} - added
Input schema / properties / changed_limitAdded value: +{ + "default": 20, + "maximum": 5000, + "minimum": 0, + "type": "integer" +} - added
Input schema / properties / changed_offsetAdded value: +{ + "default": 0, + "minimum": 0, + "type": "integer" +} - removed
Input schema / properties / depth / descriptionRemoved value: -"Max traversal hops from the changed symbols." - changed
Input schema / properties / direction / descriptionPrevious value: -"inbound (default) = the blast radius: transitive CALLERS of the changed symbols. outbound = what the changed code depends on. both = union."New value: +"inbound=callers; outbound=dependencies; both=union." - added
Input schema / properties / impact_cursorAdded value: +{ + "type": "string" +} - added
Input schema / properties / impact_offsetAdded value: +{ + "default": 0, + "minimum": 0, + "type": "integer" +} - removed
Input schema / properties / limit / descriptionRemoved value: -"Per-symbol impacted rows shown (nearest hops first). impacted_total is always exact and the impacted_modules rollup always complete regardless." - added
Input schema / properties / max_output_tokensAdded value: +{ + "default": 3200, + "description": "Sizing hint; hard ceiling is 4 UTF-8 bytes/token.", + "maximum": 1000000, + "minimum": 128, + "type": "integer" +} - added
Input schema / properties / module_cursorAdded value: +{ + "type": "string" +} - added
Input schema / properties / module_limitAdded value: +{ + "default": 20, + "maximum": 256, + "minimum": 0, + "type": "integer" +} - added
Input schema / properties / module_offsetAdded value: +{ + "default": 0, + "minimum": 0, + "type": "integer" +} - added
Input schema / properties / scope / defaultAdded value: +"impact" - removed
Input schema / properties / scope / descriptionRemoved value: -"files: changed files only (no traversal). impact (default): files + the transitive impact set." - removed
Input schema / properties / since / descriptionRemoved value: -"Git ref or tag to compare from (e.g. HEAD~5, v0.5.0). Diffs <ref>...HEAD."
- Changed
get_architecture3 fields changed- changed
Input schema / properties / aspects / descriptionPrevious value: -"Aspects to include. 'all' = everything; 'overview' = compact summary (all except file_tree); omit = all. 'cycles' is opt-in ONLY (never via all/overview): it scans the whole call graph for circular CALLS dependencies (SCCs of size > 1)."New value: +"all=everything; overview=compact except file_tree; omitted=languages/packages/entry_points; cycles is opt-in." - added
Input schema / properties / formatAdded value: +{ + "default": "tree", + "enum": [ + "tree", + "json" + ], + "type": "string" +} - changed
Input schema / properties / path / descriptionPrevious value: -"Optional directory prefix to scope architecture (e.g. apps/hoa)"New value: +"Directory prefix (for example apps/hoa)."
- Changed
get_code_snippet8 fields changed- added
Input schema / properties / formatAdded value: +{ + "default": "tree", + "enum": [ + "tree", + "json" + ], + "type": "string" +} - added
Input schema / properties / max_linesAdded value: +{ + "maximum": 500, + "minimum": 1, + "type": "integer" +} - added
Input schema / properties / max_output_tokensAdded value: +{ + "description": "auto/outline sizing hint (default 2500), hard ceiling 4 UTF-8 bytes/token. Lines stay whole; explicit full is uncapped unless set.", + "maximum": 1000000, + "minimum": 128, + "type": "integer" +} - added
Input schema / properties / member_limitAdded value: +{ + "default": 50, + "maximum": 500, + "minimum": 1, + "type": "integer" +} - added
Input schema / properties / member_offsetAdded value: +{ + "default": 0, + "minimum": 0, + "type": "integer" +} - changed
Input schema / properties / qualified_name / descriptionPrevious value: -"Full qualified_name from search_graph, or short function name"New value: +"search_graph qn, or short name." - added
Input schema / properties / source_modeAdded value: +{ + "default": "auto", + "description": "auto outlines 200+ line containers; full returns source; outline lists members.", + "enum": [ + "auto", + "full", + "outline" + ], + "type": "string" +} - added
Input schema / properties / start_lineAdded value: +{ + "minimum": 1, + "type": "integer" +}
- Added
get_file_outline - Changed
get_graph_schema4 fields changed- added
Input schema / properties / diagnosticsAdded value: +{ + "default": "none", + "enum": [ + "none", + "full" + ], + "type": "string" +} - added
Input schema / properties / formatAdded value: +{ + "default": "tree", + "enum": [ + "tree", + "json" + ], + "type": "string" +} - added
Input schema / properties / limitAdded value: +{ + "default": 50, + "maximum": 500, + "minimum": 1, + "type": "integer" +} - added
Input schema / properties / offsetAdded value: +{ + "default": 0, + "minimum": 0, + "type": "integer" +}
- Changed
index_repository5 fields changed- changed
Input schema / properties / mode / descriptionPrevious value: -"All modes run type-aware LSP call/usage resolution (per-file + cross-file). full: all files + similarity/semantic edges. moderate: filtered files + similarity/semantic. fast: filtered files, no similarity/semantic. cross-repo-intelligence: match Routes/Channels across projects."New value: +"full: all+semantic; moderate: filtered+semantic; fast: filtered only; cross-repo-intelligence: link services." - changed
Input schema / properties / name / descriptionPrevious value: -"Override the derived project name. Non-ASCII bytes are encoded and unsafe path characters are normalized."New value: +"Name override; Non-ASCII bytes are encoded; unsafe characters normalized." - changed
Input schema / properties / persistence / descriptionPrevious value: -"Write compressed artifact to .codebase-memory/graph.db.zst for team sharing. Teammates can bootstrap from the artifact instead of full re-indexing."New value: +"Write .codebase-memory/graph.db.zst." - changed
Input schema / properties / repo_path / descriptionPrevious value: -"Path to the repository"New value: +"Repository path" - changed
Input schema / properties / target_projects / descriptionPrevious value: -"Projects to search for cross-repo links (cross-repo-intelligence mode). Use [\"*\"] for all indexed projects. Run list_projects to see available projects."New value: +"Cross-repo targets; [\"*\"] means all."
- Changed
index_status3 fields changed- added
Input schema / properties / diagnosticsAdded value: +{ + "default": "none", + "description": "Coverage rows: counts, five samples, or up to 500.", + "enum": [ + "none", + "summary", + "full" + ], + "type": "string" +} - added
Input schema / properties / formatAdded value: +{ + "default": "tree", + "enum": [ + "tree", + "json" + ], + "type": "string" +} - changed
Input schema / properties / verbose / descriptionPrevious value: -"Include the git context block (worktree/shadow path variants). Only needed when debugging where an index lives — omitted by default to keep the status lean."New value: +"Add worktree/shadow Git paths for index-location debugging."
- Changed
list_projects6 fields changed- added
Input schema / properties / detailAdded value: +{ + "default": "identity", + "description": "stats adds node/edge/database-size counts.", + "enum": [ + "identity", + "stats" + ], + "type": "string" +} - added
Input schema / properties / formatAdded value: +{ + "default": "tree", + "enum": [ + "tree", + "json" + ], + "type": "string" +} - added
Input schema / properties / include_detailsAdded value: +{ + "default": false, + "description": "Alias for detail=stats: include branch, node/edge counts and database size. Slower.", + "type": "boolean" +} - added
Input schema / properties / limitAdded value: +{ + "default": 50, + "maximum": 500, + "minimum": 1, + "type": "integer" +} - added
Input schema / properties / metadata_onlyAdded value: +{ + "default": false, + "description": "Compatibility: omit counts, size, and branch.", + "type": "boolean" +} - added
Input schema / properties / offsetAdded value: +{ + "default": 0, + "minimum": 0, + "type": "integer" +}
- Changed
manage_adr8 fields changed- changed
Input schema / properties / content / descriptionPrevious value: -"Complete replacement document required by update"New value: +"Whole document for update" - added
Input schema / properties / formatAdded value: +{ + "default": "tree", + "enum": [ + "tree", + "json" + ], + "type": "string" +} - added
Input schema / properties / mode / defaultAdded value: +"outline" - changed
Input schema / properties / mode / descriptionPrevious value: -"update replaces the entire ADR document; sections only lists existing headings"New value: +"outline pages headings; get reads; update replaces the whole document; set_sections rewrites only the named sections and leaves every other byte untouched (an identical repeated write is byte-identical, so retrying is safe); sections is legacy." - changed
Input schema / properties / mode / enumPrevious value: -[ - "get", - "update", - "sections" -]New value: +[ + "outline", + "get", + "update", + "set_sections", + "sections" +] - added
Input schema / properties / section_limitAdded value: +{ + "default": 50, + "maximum": 500, + "minimum": 1, + "type": "integer" +} - added
Input schema / properties / section_offsetAdded value: +{ + "default": 0, + "minimum": 0, + "type": "integer" +} - added
Input schema / properties / section_updatesAdded value: +{ + "additionalProperties": { + "type": "string" + }, + "description": "set_sections: section name -> new body. Any heading name works; names match exactly, including case.", + "type": "object" +}
- Changed
query_graph8 fields changed- added
Input schema / properties / cursorAdded value: +{ + "description": "Snapshot continuation; keep query/project/graph. Format, budget, and max_rows may change.", + "type": "string" +} - added
Input schema / properties / formatAdded value: +{ + "default": "tree", + "description": "tree may use local @N+suffix prefix refs; json uses direct strings.", + "enum": [ + "tree", + "json" + ], + "type": "string" +} - changed
Input schema / properties / graph / descriptionPrevious value: -"Which graph to query: the code knowledge graph (default) or the missed graph (only files not fully indexed, laid out as their file structure)."New value: +"code graph (default) or missed coverage-gap file tree." - added
Input schema / properties / max_output_tokensAdded value: +{ + "description": "Sizing hint; hard ceiling is 4 UTF-8 bytes/token. Rows stay whole.", + "maximum": 1000000, + "minimum": 128, + "type": "integer" +} - added
Input schema / properties / max_rows / defaultAdded value: +200 - changed
Input schema / properties / max_rows / descriptionPrevious value: -"Optional row limit. Default: unlimited up to a 100k row ceiling. No offset support — use search_graph for paginated browsing."New value: +"Visible rows (default 200; max 99998); 0 uses the legacy maximum. Evaluation is unchanged." - added
Input schema / properties / max_rows / minimumAdded value: +0 - added
Input schema / properties / offsetAdded value: +{ + "default": 0, + "description": "Live compatibility paging; cannot be combined with cursor.", + "minimum": 0, + "type": "integer" +}
- Changed
search_code18 fields changed- removed
Input schema / properties / context / descriptionRemoved value: -"Lines of context around each match (like grep -C). Only used in compact mode." - added
Input schema / properties / debugAdded value: +{ + "default": false, + "description": "Add scope_ms/scan_ms/enrich_ms phase timings.", + "type": "boolean" +} - added
Input schema / properties / directory_limitAdded value: +{ + "default": 20, + "maximum": 64, + "minimum": 0, + "type": "integer" +} - added
Input schema / properties / directory_offsetAdded value: +{ + "default": 0, + "minimum": 0, + "type": "integer" +} - removed
Input schema / properties / file_pattern / descriptionRemoved value: -"Glob for grep --include (e.g. *.go)" - added
Input schema / properties / formatAdded value: +{ + "default": "tree", + "enum": [ + "tree", + "json" + ], + "type": "string" +} - removed
Input schema / properties / limit / descriptionRemoved value: -"Max enriched results per call. Default 10. Response includes 'total_grep_matches' and 'total_results' so callers can detect truncation. No offset parameter — raise limit or narrow with file_pattern / path_filter to see more." - added
Input schema / properties / limit / maximumAdded value: +500 - added
Input schema / properties / match_limitAdded value: +{ + "default": 8, + "maximum": 500, + "minimum": 1, + "type": "integer" +} - added
Input schema / properties / max_output_tokensAdded value: +{ + "maximum": 1000000, + "minimum": 128, + "type": "integer" +} - removed
Input schema / properties / mode / descriptionRemoved value: -"compact: signatures+metadata (default). full: with source. files: just file list." - removed
Input schema / properties / path_filter / descriptionRemoved value: -"Regex filter on result file paths (e.g. ^src/ or \\.(go|ts)$)" - added
Input schema / properties / raw_content_offsetAdded value: +{ + "description": "Raw-line byte offset; omit for match-centered preview.", + "minimum": 0, + "type": "integer" +} - added
Input schema / properties / raw_limitAdded value: +{ + "default": 5, + "maximum": 100, + "minimum": 0, + "type": "integer" +} - added
Input schema / properties / raw_offsetAdded value: +{ + "default": 0, + "minimum": 0, + "type": "integer" +} - added
Input schema / properties / result_limitAdded value: +{ + "default": 10, + "maximum": 500, + "minimum": 1, + "type": "integer" +} - added
Input schema / properties / result_offsetAdded value: +{ + "default": 0, + "minimum": 0, + "type": "integer" +} - added
Input schema / properties / source_max_linesAdded value: +{ + "default": 20, + "maximum": 200, + "minimum": 1, + "type": "integer" +}
- Changed
search_graph14 fields changed- removed
Input schema / properties / detail / descriptionRemoved value: -"ids: bare qualified-name enumeration (one column) — cheapest form for wide sweeps where per-row metadata is noise. default: full rows." - removed
Input schema / properties / fields / descriptionRemoved value: -"Extra per-node property columns, e.g. complexity, cognitive, signature, docstring, return_type, is_test, lines(int). Core row columns (qn/label/file/lines/in/out) are always present — do not request them here. Missing values emit as empty cells." - removed
Input schema / properties / format / descriptionRemoved value: -"Response encoding. tree (default): prefix-grouped text rows. json: the SAME tree model as structured JSON (groups + column-ordered row arrays)." - added
Input schema / properties / limit / defaultAdded value: +50 - removed
Input schema / properties / limit / descriptionRemoved value: -"Max results per call. Default 50. Response carries 'total' (full match count) and 'has_more' (true if truncated) so callers can detect the limit and paginate." - added
Input schema / properties / limit / maximumAdded value: +500 - added
Input schema / properties / limit / minimumAdded value: +1 - added
Input schema / properties / max_output_tokensAdded value: +{ + "default": 3200, + "maximum": 1000000, + "minimum": 128, + "type": "integer" +} - removed
Input schema / properties / offset / descriptionRemoved value: -"Skip the first N matching nodes. Combine with 'limit' to page: increment offset by limit and re-call while has_more is true." - added
Input schema / properties / offset / minimumAdded value: +0 - removed
Input schema / properties / query / descriptionRemoved value: -"Natural-language or keyword full-text search using BM25 ranking. Tokens are split on whitespace; camelCase identifiers are indexed as individual words (updateCloudClient → update, cloud, client). Results are ranked with structural boosting: Functions/Methods +10, Routes +8, Classes/Interfaces +5. Noise labels (File/Folder/Module/Variable) are filtered out. When provided, name_pattern is ignored." - added
Input schema / properties / semantic_limitAdded value: +{ + "default": 50, + "maximum": 500, + "minimum": 0, + "type": "integer" +} - added
Input schema / properties / semantic_offsetAdded value: +{ + "default": 0, + "maximum": 99998, + "minimum": 0, + "type": "integer" +} - changed
Input schema / properties / semantic_query / descriptionPrevious value: -"MUST be an ARRAY of keyword strings (e.g. [\"send\",\"pubsub\",\"publish\"]) — NOT a single string. Each keyword is scored independently via per-keyword min-cosine; results reflect functions that score well on ALL keywords. Requires moderate/full index mode. Results appear in the 'semantic_results' field (separate from 'results')."New value: +"Not with query."
- Changed
trace_path11 fields changed- changed
Input schema / properties / cursor / descriptionPrevious value: -"Resume token from a previous response's 'next' field. Pass it back with ALL other arguments identical to get the following page with no duplicates. Cursors outlive nothing: after a reindex you get a stale_cursor error — just re-run the original query."New value: +"Pass next/next_cursor with traversal args unchanged; budget may increase." - added
Input schema / properties / depth / maximumAdded value: +15 - added
Input schema / properties / depth / minimumAdded value: +1 - changed
Input schema / properties / format / descriptionPrevious value: -"Response encoding. tree (default): prefix-grouped text rows. json: the SAME tree model as structured JSON (groups + column-ordered row arrays)."New value: +"tree chooses smaller complete direct/grouped output; json uses stable grouped tables." - changed
Input schema / properties / include_evidence / descriptionPrevious value: -"Add how each hop was resolved: a strategy class (lsp | language_rule | heuristic | unresolved) and the resolver's confidence. Off by default — it adds two columns per row. Use it to judge whether an edge is trustworthy, not to find edges."New value: +"Add resolver class and confidence." - removed
Input schema / properties / include_tests / descriptionRemoved value: -"Include test files in results. When false (default), test files are filtered out. When true, test nodes are included with a test column/marker." - changed
Input schema / properties / limit / descriptionPrevious value: -"Rows per page. callees_total/callers_total always carry the exact full counts; when a page is truncated the response carries next — see cursor."New value: +"Rows/page; gte flags the 5000-node engine ceiling." - added
Input schema / properties / max_output_tokensAdded value: +{ + "default": 3200, + "description": "Sizing hint; hard ceiling is 4 UTF-8 bytes/token. Evidence/args yield before nearest graph rows.", + "maximum": 1000000, + "minimum": 128, + "type": "integer" +} - changed
Input schema / properties / mode / descriptionPrevious value: -"calls: follow CALLS edges. data_flow: follow CALLS+DATA_FLOWS with arg expressions. cross_service: follow HTTP_CALLS+ASYNC_CALLS+DATA_FLOWS through Routes, plus CROSS_* cross-repo edges (CROSS_HTTP_CALLS/ASYNC_CALLS/CHANNEL/GRPC_CALLS/GRAPHQL_CALLS/TRPC_CALLS) to hop into other services."New value: +"calls, argument-aware data_flow, or service edges." - changed
Input schema / properties / parameter_name / descriptionPrevious value: -"For data_flow mode: scope trace to a specific parameter name"New value: +"data_flow parameter filter." - changed
Input schema / properties / risk_labels / descriptionPrevious value: -"Add risk classification (CRITICAL/HIGH/MEDIUM/LOW) based on hop distance"New value: +"Add hop-risk labels."
15 tool updates
v0.10.4- Changed
check_index_coverage4 fields changed- removed
Input schema / anyOfRemoved value: -[ - { - "required": [ - "paths" - ] - }, - { - "required": [ - "scopes" - ] - } -] - changed
Input schema / properties / paths / descriptionPrevious value: -"Repository-relative files to check exactly."New value: +"Repository-relative files to check exactly. Required if 'scopes' is omitted." - changed
Input schema / properties / scopes / descriptionPrevious value: -"Repository-relative path prefixes; use . for the project root."New value: +"Repository-relative path prefixes; use . for the project root. Required if 'paths' is omitted." - changed
Output schema / (root)Previous value: -{ - "additionalProperties": true, - "type": "object" -}New value: +null
- Changed
delete_project1 field changed- changed
Output schema / (root)Previous value: -{ - "additionalProperties": true, - "type": "object" -}New value: +null
- Changed
detect_changes1 field changed- changed
Output schema / (root)Previous value: -{ - "additionalProperties": true, - "type": "object" -}New value: +null
- Changed
get_architecture1 field changed- changed
Output schema / (root)Previous value: -{ - "additionalProperties": true, - "type": "object" -}New value: +null
- Changed
get_code_snippet1 field changed- changed
Output schema / (root)Previous value: -{ - "additionalProperties": true, - "type": "object" -}New value: +null
- Changed
get_graph_schema1 field changed- changed
Output schema / (root)Previous value: -{ - "additionalProperties": true, - "type": "object" -}New value: +null
- Changed
index_repository1 field changed- changed
Output schema / (root)Previous value: -{ - "additionalProperties": true, - "type": "object" -}New value: +null
- Changed
index_status1 field changed- changed
Output schema / (root)Previous value: -{ - "additionalProperties": true, - "type": "object" -}New value: +null
- Changed
ingest_traces1 field changed- changed
Output schema / (root)Previous value: -{ - "additionalProperties": true, - "type": "object" -}New value: +null
- Changed
list_projects1 field changed- changed
Output schema / (root)Previous value: -{ - "additionalProperties": true, - "type": "object" -}New value: +null
- Changed
manage_adr1 field changed- changed
Output schema / (root)Previous value: -{ - "additionalProperties": true, - "type": "object" -}New value: +null
- Changed
query_graph1 field changed- changed
Output schema / (root)Previous value: -{ - "additionalProperties": true, - "type": "object" -}New value: +null
- Changed
search_code2 fields changed- added
Input schema / properties / limit / minimumAdded value: +1 - changed
Output schema / (root)Previous value: -{ - "additionalProperties": true, - "type": "object" -}New value: +null
- Changed
search_graph1 field changed- changed
Output schema / (root)Previous value: -{ - "additionalProperties": true, - "type": "object" -}New value: +null
- Changed
trace_path1 field changed- changed
Output schema / (root)Previous value: -{ - "additionalProperties": true, - "type": "object" -}New value: +null
11 tool updates
v0.10.0- Added
check_index_coverage - Added
delete_project - Added
detect_changes - Changed
get_architecture2 fields changed- changed
Input schema / properties / aspects / descriptionPrevious value: -"Aspects to include. 'all' = everything; 'overview' = compact summary (all except file_tree); omit = all."New value: +"Aspects to include. 'all' = everything; 'overview' = compact summary (all except file_tree); omit = all. 'cycles' is opt-in ONLY (never via all/overview): it scans the whole call graph for circular CALLS dependencies (SCCs of size > 1)." - changed
Input schema / properties / aspects / items / enumPrevious value: -[ - "all", - "overview", - "structure", - "dependencies", - "routes", - "languages", - "packages", - "entry_points", - "hotspots", - "boundaries", - "layers", - "file_tree", - "clusters" -]New value: +[ + "all", + "overview", + "structure", + "dependencies", + "routes", + "languages", + "packages", + "entry_points", + "hotspots", + "boundaries", + "layers", + "file_tree", + "clusters", + "cycles" +]
- Added
index_status - Added
ingest_traces - Added
list_projects - Added
manage_adr - Changed
query_graph1 field changed- added
Input schema / properties / graphAdded value: +{ + "default": "code", + "description": "Which graph to query: the code knowledge graph (default) or the missed graph (only files not fully indexed, laid out as their file structure).", + "enum": [ + "code", + "missed" + ], + "type": "string" +}
- Changed
search_graph4 fields changed- added
Input schema / properties / detailAdded value: +{ + "default": "default", + "description": "ids: bare qualified-name enumeration (one column) — cheapest form for wide sweeps where per-row metadata is noise. default: full rows.", + "enum": [ + "ids", + "default" + ], + "type": "string" +} - added
Input schema / properties / fieldsAdded value: +{ + "description": "Extra per-node property columns, e.g. complexity, cognitive, signature, docstring, return_type, is_test, lines(int). Core row columns (qn/label/file/lines/in/out) are always present — do not request them here. Missing values emit as empty cells.", + "items": { + "type": "string" + }, + "type": "array" +} - added
Input schema / properties / formatAdded value: +{ + "default": "tree", + "description": "Response encoding. tree (default): prefix-grouped text rows. json: the SAME tree model as structured JSON (groups + column-ordered row arrays).", + "enum": [ + "tree", + "json" + ], + "type": "string" +} - changed
Input schema / properties / limit / descriptionPrevious value: -"Max results per call. Default 200. Response carries 'total' (full match count) and 'has_more' (true if truncated) so callers can detect the limit and paginate."New value: +"Max results per call. Default 50. Response carries 'total' (full match count) and 'has_more' (true if truncated) so callers can detect the limit and paginate."
- Changed
trace_path5 fields changed- added
Input schema / properties / cursorAdded value: +{ + "description": "Resume token from a previous response's 'next' field. Pass it back with ALL other arguments identical to get the following page with no duplicates. Cursors outlive nothing: after a reindex you get a stale_cursor error — just re-run the original query.", + "type": "string" +} - added
Input schema / properties / formatAdded value: +{ + "default": "tree", + "description": "Response encoding. tree (default): prefix-grouped text rows. json: the SAME tree model as structured JSON (groups + column-ordered row arrays).", + "enum": [ + "tree", + "json" + ], + "type": "string" +} - added
Input schema / properties / include_evidenceAdded value: +{ + "default": false, + "description": "Add how each hop was resolved: a strategy class (lsp | language_rule | heuristic | unresolved) and the resolver's confidence. Off by default — it adds two columns per row. Use it to judge whether an edge is trustworthy, not to find edges.", + "type": "boolean" +} - changed
Input schema / properties / include_tests / descriptionPrevious value: -"Include test files in results. When false (default), test files are filtered out. When true, test nodes are included with is_test=true marker."New value: +"Include test files in results. When false (default), test files are filtered out. When true, test nodes are included with a test column/marker." - added
Input schema / properties / limitAdded value: +{ + "default": 100, + "description": "Rows per page. callees_total/callers_total always carry the exact full counts; when a page is truncated the response carries next — see cursor.", + "maximum": 5000, + "minimum": 1, + "type": "integer" +}
14 tool updates
v0.9.0- Removed
delete_project - Removed
detect_changes - Changed
get_architecture4 fields changed- added
Input schema / properties / aspects / descriptionAdded value: +"Aspects to include. 'all' = everything; 'overview' = compact summary (all except file_tree); omit = all." - added
Input schema / properties / aspects / items / enumAdded value: +[ + "all", + "overview", + "structure", + "dependencies", + "routes", + "languages", + "packages", + "entry_points", + "hotspots", + "boundaries", + "layers", + "file_tree", + "clusters" +] - added
Input schema / properties / pathAdded value: +{ + "description": "Optional directory prefix to scope architecture (e.g. apps/hoa)", + "type": "string" +} - changed
Output schema / (root)Previous value: -nullNew value: +{ + "additionalProperties": true, + "type": "object" +}
- Changed
get_code_snippet1 field changed- changed
Output schema / (root)Previous value: -nullNew value: +{ + "additionalProperties": true, + "type": "object" +}
- Changed
get_graph_schema1 field changed- changed
Output schema / (root)Previous value: -nullNew value: +{ + "additionalProperties": true, + "type": "object" +}
- Changed
index_repository2 fields changed- added
Input schema / properties / nameAdded value: +{ + "description": "Override the derived project name. Non-ASCII bytes are encoded and unsafe path characters are normalized.", + "type": "string" +} - changed
Output schema / (root)Previous value: -nullNew value: +{ + "additionalProperties": true, + "type": "object" +}
- Removed
index_status - Removed
ingest_traces - Removed
list_projects - Removed
manage_adr - Changed
query_graph1 field changed- changed
Output schema / (root)Previous value: -nullNew value: +{ + "additionalProperties": true, + "type": "object" +}
- Changed
search_code1 field changed- changed
Output schema / (root)Previous value: -nullNew value: +{ + "additionalProperties": true, + "type": "object" +}
- Changed
search_graph1 field changed- changed
Output schema / (root)Previous value: -nullNew value: +{ + "additionalProperties": true, + "type": "object" +}
- Changed
trace_path2 fields changed- changed
Input schema / properties / mode / descriptionPrevious value: -"calls: follow CALLS edges. data_flow: follow CALLS+DATA_FLOWS with arg expressions. cross_service: follow HTTP_CALLS+ASYNC_CALLS+DATA_FLOWS through Routes."New value: +"calls: follow CALLS edges. data_flow: follow CALLS+DATA_FLOWS with arg expressions. cross_service: follow HTTP_CALLS+ASYNC_CALLS+DATA_FLOWS through Routes, plus CROSS_* cross-repo edges (CROSS_HTTP_CALLS/ASYNC_CALLS/CHANNEL/GRPC_CALLS/GRAPHQL_CALLS/TRPC_CALLS) to hop into other services." - changed
Output schema / (root)Previous value: -nullNew value: +{ + "additionalProperties": true, + "type": "object" +}
14 tool updates
v1.0.0- First observed
delete_project - First observed
detect_changes - First observed
get_architecture - First observed
get_code_snippet - First observed
get_graph_schema - First observed
index_repository - First observed
index_status - First observed
ingest_traces - First observed
list_projects - First observed
manage_adr - First observed
query_graph - First observed
search_code - First observed
search_graph - First observed
trace_path
TDQS
Scored across 17 tools
Most tools target clearly distinct resources and actions, but search_graph vs search_code and query_graph vs trace_path have overlapping search/traversal semantics that descriptions only partly disambiguate. An agent could still misselect between graph-symbol search and text search, or between generic Cypher traversal and call-path tracing.
All 17 tools use snake_case and follow a mostly verb_noun pattern (search_graph, get_code_snippet, delete_project, check_index_coverage). A few are noun-heavy (index_status, index_repository), but the style is otherwise consistent and predictable.
17 tools is above the typical 3-15 sweet spot and feels heavy for one MCP server, even though the domain is broad. Each tool appears to have a distinct role, but the surface spans indexing, search, graph query, traces, ADR, architecture, and changes, making the set borderline crowded.
Core graph-based codebase lifecycle coverage is strong: indexing, status, coverage, search, snippet retrieval, graph query, tracing, architecture, and project deletion are all present. Minor gaps exist around updating indexed data, managing trace runs, or directly mutating graph content, but there are no obvious critical dead ends for typical analysis workflows.
Maintenance
Related MCP Connectors
Code intelligence for coding agents: semantic, AST, graph, and full-text search. 279+ languages.
Enterprise code intelligence for M&A, security audits, and tech debt. Hosted server with 200k free.
Repository knowledge graph MCP server for codebase understanding and debugging.
Hosted code graph over MCP: exact callers, dependencies, and cross-repo blast radius for AI agents.
Related MCP Servers
- AlicenseAqualityAmaintenanceFramework-aware code intelligence MCP server that builds a cross-language dependency graph from source code. 53 integrations (Laravel, Django, Rails, Spring, NestJS, Next.js, and more) across 68 languages. 100+ tools for navigation, impact analysis, refactoring, security scanning, session memory, and CI/PR reports — up to 97% token reduction.293,445 npm194MIT
- AlicenseAqualityCmaintenanceCross-repository code knowledge graph MCP server for Java, Kotlin, JavaScript, and TypeScript. Indexes source code into embedded KuzuDB via tree-sitter and exposes 30+ tools for call-flow tracing, multi-hop taint analysis (OWASP/CWE/PCI/STIG), entry-point reachability filtering, performance hotspot detection, and license compliance — without reading source files. 95% fewer tokens vs source-read331MIT
- AlicenseNot gradedqualityAmaintenanceA high-performance code knowledge graph server implementing MCP, indexing codebases into a structured AST knowledge graph with semantic search, call graph traversal, and HTTP route tracing.2,433 npm84MIT
- AlicenseBqualityDmaintenanceInstant codebase knowledge graph MCP server. It auto-detects languages, indexes functions, classes, and call chains, enabling LLMs to navigate code in milliseconds.24MIT