Local code intelligence for developers and AI agents. Connect code, docs and infrastructure in a persistent graph, with CBM Lens, MCP tools, agent integrations and change-aware test selection.
C aiderastclaude-codecode-analysiscode-intelligencecodexcursorcypherdeveloper-toolsgemini-cligraph-visualizationkilocodeknowledge-graphmcpmcp-servermodel-context-protocolopencodesqlitetree-sitterwindsurf
Advertise semantic search and correct language count across docs
Martin Vogel0338685c0663
diff --git a/README.md b/README.mdindex ab03e9f46..01d6bd300 100644--- a/README.md+++ b/README.md@@ -4,7 +4,7 @@[](LICENSE)[](https://github.com/DeusData/codebase-memory-mcp/actions/workflows/dry-run.yml)[](https://github.com/DeusData/codebase-memory-mcp)-[](https://github.com/DeusData/codebase-memory-mcp)+[](https://github.com/DeusData/codebase-memory-mcp)[](#hybrid-lsp)[](https://github.com/DeusData/codebase-memory-mcp)[](https://github.com/DeusData/codebase-memory-mcp)@@ -16,7 +16,7 @@**The fastest and most efficient code intelligence engine for AI coding agents.** Full-indexes an average repository in milliseconds, the Linux kernel (28M LOC, 75K files) in 3 minutes. Answers structural queries in under 1ms. Ships as a single static binary for macOS, Linux, and Windows — download, run `install`, done.-High-quality parsing through [tree-sitter](https://tree-sitter.github.io/tree-sitter/) AST analysis across all 158 languages, enhanced with [**Hybrid LSP** semantic type resolution](#hybrid-lsp) for Python, TypeScript / JavaScript / JSX / TSX, PHP, C#, Go, C, and C++ — producing a persistent knowledge graph of functions, classes, call chains, HTTP routes, and cross-service links. 14 MCP tools. Zero dependencies. Plug and play across 11 coding agents.+High-quality parsing through [tree-sitter](https://tree-sitter.github.io/tree-sitter/) AST analysis across all 159 languages, enhanced with [**Hybrid LSP** semantic type resolution](#hybrid-lsp) for Python, TypeScript / JavaScript / JSX / TSX, PHP, C#, Go, C, and C++ — producing a persistent knowledge graph of functions, classes, call chains, HTTP routes, and cross-service links. 14 MCP tools. Zero dependencies. Plug and play across 11 coding agents.> **Research** — The design and benchmarks behind this project are described in the preprint [*Codebase-Memory: Tree-Sitter-Based Knowledge Graphs for LLM Code Exploration via MCP*](https://arxiv.org/abs/2603.27277) (arXiv:2603.27277). Evaluated across 31 real-world repositories: 83% answer quality, 10× fewer tokens, 2.1× fewer tool calls vs. file-by-file exploration.@@ -32,7 +32,7 @@ High-quality parsing through [tree-sitter](https://tree-sitter.github.io/tree-si- **Extreme indexing speed** — 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** — single static binary for macOS (arm64/amd64), Linux (arm64/amd64), and Windows (amd64). No Docker, no runtime dependencies, no API keys. Download → `install` → restart agent → done.-- **158 languages** — vendored tree-sitter grammars compiled into the binary. Nothing to install, nothing that breaks.+- **159 languages** — vendored tree-sitter grammars compiled into the binary. Nothing to install, nothing that breaks.- **120x fewer tokens** — 5 structural queries: ~3,400 tokens vs ~412,000 via file-by-file search. One graph query replaces dozens of grep/read cycles.- **11 agents, one command** — `install` auto-detects Claude Code, Codex CLI, Gemini CLI, Zed, OpenCode, Antigravity, Aider, KiloCode, VS Code, OpenClaw, and Kiro — configures MCP entries, instruction files, and pre-tool hooks for each.- **Built-in graph visualization** — 3D interactive UI at `localhost:9749` (optional UI binary variant).@@ -204,7 +204,7 @@ codebase-memory-mcp is a **structural analysis backend** — it builds and queri```You: "what calls ProcessOrder?"-Agent calls: trace_call_path(function_name="ProcessOrder", direction="inbound")+Agent calls: trace_path(function_name="ProcessOrder", direction="inbound")codebase-memory-mcp: executes graph query, returns structured results@@ -219,7 +219,7 @@ Benchmarked on Apple M3 Pro:| Operation | Time | Notes ||-----------|------|-------|-| **Linux kernel full index** | **3 min** | 28M LOC, 75K files → 2.1M nodes, 4.9M edges |+| **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 |@@ -365,7 +365,7 @@ Every MCP tool can be invoked from the command line:```bashcodebase-memory-mcp cli index_repository '{"repo_path": "/path/to/repo"}'codebase-memory-mcp cli search_graph '{"name_pattern": ".*Handler.*", "label": "Function"}'-codebase-memory-mcp cli trace_call_path '{"function_name": "Search", "direction": "both"}'+codebase-memory-mcp cli trace_path '{"function_name": "Search", "direction": "both"}'codebase-memory-mcp cli query_graph '{"query": "MATCH (f:Function) RETURN f.name LIMIT 5"}'codebase-memory-mcp cli list_projectscodebase-memory-mcp cli --raw search_graph '{"label": "Function"}' | jq '.results[].name'@@ -387,7 +387,7 @@ codebase-memory-mcp cli --raw search_graph '{"label": "Function"}' | jq '.result| Tool | Description ||------|-------------|| `search_graph` | Structured search by label, name pattern, file pattern, degree filters. Pagination via limit/offset. |-| `trace_call_path` | BFS traversal — who calls a function and what it calls. Depth 1-5. |+| `trace_path` | BFS traversal — who calls a function and what it calls (alias: `trace_call_path`). Depth 1-5. || `detect_changes` | Map git diff to affected symbols + blast radius with risk classification. || `query_graph` | Execute Cypher-like graph queries (read-only). || `get_graph_schema` | Node/edge counts, relationship patterns, property definitions per label. Run this first. |@@ -478,7 +478,7 @@ SQLite databases stored at `~/.cache/codebase-memory-mcp/`. Persists across rest|---------|-----|| `/mcp` doesn't show the server | Check `.mcp.json` path is absolute. Restart agent. Test: `echo '{}' \| /path/to/binary` should output JSON. || `index_repository` fails | Pass absolute path: `index_repository(repo_path="/absolute/path")` |-| `trace_call_path` returns 0 results | Use `search_graph(name_pattern=".*PartialName.*")` first to find the exact name. |+| `trace_path` returns 0 results | Use `search_graph(name_pattern=".*PartialName.*")` first to find the exact name. || Queries return wrong project results | Add `project="name"` parameter. Use `list_projects` to see names. || Binary not found after install | Add to PATH: `export PATH="$HOME/.local/bin:$PATH"` || UI not loading | Ensure you downloaded the `ui` variant and ran `--ui=true`. Check `http://localhost:9749`. |@@ -504,14 +504,14 @@ codebase-memory-mcp ships a **clean-room re-implementation of the type-resolutio**Two-layer architecture:**-1. **Tree-sitter pass** — fast, syntactic, runs for every one of the 158 languages. Extracts definitions, calls, imports.+1. **Tree-sitter pass** — fast, syntactic, runs for every one of the 159 languages. Extracts definitions, calls, imports.2. **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, so you always get *some* answer.-The result is a knowledge graph accurate enough to drive `trace_call_path` across packages, inheritance hierarchies, and stdlib calls — without paying for a language server process per project.+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-158 languages, all parsed via vendored tree-sitter grammars compiled into the binary. Benchmarked against 64 real open-source repositories (78 to 49K nodes):+159 languages, all parsed via vendored tree-sitter grammars compiled into the binary. Benchmarked against 64 real open-source repositories (78 to 49K nodes):| Tier | Score | Languages ||------|-------|-----------|@@ -536,7 +536,7 @@ src/traces/ Runtime trace ingestionui/ Embedded HTTP server + 3D graph visualizationfoundation/ Platform abstractions (threads, filesystem, logging, memory)-internal/cbm/ Vendored tree-sitter grammars (158 languages) + AST extraction engine+internal/cbm/ Vendored tree-sitter grammars (159 languages) + AST extraction engine```## Securitydiff --git a/docs/index.html b/docs/index.htmlindex e335fb24d..94c9c5bca 100644--- a/docs/index.html+++ b/docs/index.html@@ -4,15 +4,15 @@<meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>codebase-memory-mcp — Code Intelligence Knowledge Graph for AI Coding Agents</title>- <meta name="description" content="codebase-memory-mcp is an open-source MCP server that indexes any codebase into a persistent knowledge graph so AI coding agents answer structural questions with ~120x fewer tokens. 158 languages, Hybrid LSP type resolution, sub-1ms queries, Linux kernel indexed in 3 minutes. Single static C binary, zero dependencies. Works with 11 agents including Claude Code, Codex CLI, Gemini CLI, Cursor, and Zed.">- <meta name="keywords" content="MCP server, code intelligence, knowledge graph, tree-sitter, Hybrid LSP, Claude Code, Codex CLI, Gemini CLI, Cursor, Zed, code exploration, token reduction, call graph, dead code detection">+ <meta name="description" content="codebase-memory-mcp is an open-source MCP server that indexes any codebase into a persistent knowledge graph so AI coding agents answer structural questions with ~120x fewer tokens. 159 languages, Hybrid LSP type resolution, local semantic vector search, code-clone detection, sub-1ms queries, Linux kernel indexed in 3 minutes. Single static C binary, zero dependencies. Works with 11 agents including Claude Code, Codex CLI, Gemini CLI, Cursor, and Zed.">+ <meta name="keywords" content="MCP server, code intelligence, knowledge graph, tree-sitter, Hybrid LSP, semantic code search, code embeddings, code clone detection, cross-repo analysis, data-flow analysis, Claude Code, Codex CLI, Gemini CLI, Cursor, Zed, code exploration, token reduction, call graph, dead code detection"><meta name="author" content="DeusData"><meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1"><meta name="theme-color" content="#0d1117"><!-- Open Graph --><meta property="og:title" content="codebase-memory-mcp — Code Intelligence Knowledge Graph for AI Coding Agents">- <meta property="og:description" content="Index any codebase into a persistent knowledge graph. AI agents answer structural questions with ~120x fewer tokens. 158 languages, Hybrid LSP, sub-1ms queries, single static C binary.">+ <meta property="og:description" content="Index any codebase into a persistent knowledge graph. AI agents answer structural questions with ~120x fewer tokens. 159 languages, Hybrid LSP, sub-1ms queries, single static C binary."><meta property="og:type" content="website"><meta property="og:url" content="https://deusdata.github.io/codebase-memory-mcp/"><meta property="og:image" content="https://deusdata.github.io/codebase-memory-mcp/graph-ui-screenshot.png">@@ -24,7 +24,7 @@<!-- Twitter Card --><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="codebase-memory-mcp — Code Intelligence for AI Coding Agents">- <meta name="twitter:description" content="Index any codebase into a knowledge graph. ~120x fewer tokens for AI code exploration. 158 languages, Hybrid LSP, sub-1ms queries, single static C binary.">+ <meta name="twitter:description" content="Index any codebase into a knowledge graph. ~120x fewer tokens for AI code exploration. 159 languages, Hybrid LSP, sub-1ms queries, single static C binary."><meta name="twitter:image" content="https://deusdata.github.io/codebase-memory-mcp/graph-ui-screenshot.png"><link rel="canonical" href="https://deusdata.github.io/codebase-memory-mcp/">@@ -41,7 +41,7 @@"applicationSubCategory": "Model Context Protocol (MCP) server","operatingSystem": "macOS, Linux, Windows","softwareVersion": "0.7.0",- "description": "An open-source MCP server that indexes a codebase into a persistent knowledge graph of functions, classes, call chains, HTTP routes, and cross-service links, so AI coding agents answer structural questions with roughly 120x fewer tokens than file-by-file search. Parses 158 languages via tree-sitter with Hybrid LSP semantic type resolution for 6 language families. Ships as a single static C binary with zero runtime dependencies.",+ "description": "An open-source MCP server that indexes a codebase into a persistent knowledge graph of functions, classes, call chains, HTTP routes, and cross-service links, so AI coding agents answer structural questions with roughly 120x fewer tokens than file-by-file search. Parses 159 languages via tree-sitter with Hybrid LSP semantic type resolution for 6 language families. Ships as a single static C binary with zero runtime dependencies.","url": "https://deusdata.github.io/codebase-memory-mcp/","downloadUrl": "https://github.com/DeusData/codebase-memory-mcp/releases/latest","codeRepository": "https://github.com/DeusData/codebase-memory-mcp",@@ -54,10 +54,16 @@"priceCurrency": "USD"},"featureList": [- "Indexes 158 programming languages via vendored tree-sitter grammars",+ "Indexes 159 programming languages via vendored tree-sitter grammars","Hybrid LSP semantic type resolution for Python, TypeScript/JavaScript, PHP, C#, Go, and C/C++","14 MCP tools for structural search, call-path tracing, and Cypher graph queries",- "Cross-service HTTP and async call linking with confidence scoring",+ "Semantic vector code search via bundled nomic-embed-code embeddings (no API key, fully local)",+ "Semantic graph edges (SEMANTICALLY_RELATED) and near-clone detection (SIMILAR_TO, MinHash + LSH)",+ "Cross-service linking for HTTP, gRPC, GraphQL, tRPC, and pub/sub channels with confidence scoring",+ "Cross-repo intelligence with CROSS_* edges across multiple indexed repositories",+ "Data-flow tracing with argument-to-parameter mapping",+ "Change-impact analysis mapping git diffs to affected symbols and blast radius",+ "Architecture Decision Record (ADR) persistence across sessions","Dead-code detection with entry-point filtering","Infrastructure-as-code indexing for Dockerfiles, Kubernetes, and Kustomize","Built-in 3D graph visualization UI",@@ -119,7 +125,7 @@"name": "What is codebase-memory-mcp?","acceptedAnswer": {"@type": "Answer",- "text": "codebase-memory-mcp is an open-source Model Context Protocol (MCP) server that indexes a codebase into a persistent knowledge graph of functions, classes, call chains, HTTP routes, and cross-service links. AI coding agents query that graph instead of reading files one by one, answering structural questions with roughly 120x fewer tokens. It parses 158 languages and ships as a single static C binary with no runtime dependencies."+ "text": "codebase-memory-mcp is an open-source Model Context Protocol (MCP) server that indexes a codebase into a persistent knowledge graph of functions, classes, call chains, HTTP routes, and cross-service links. AI coding agents query that graph instead of reading files one by one, answering structural questions with roughly 120x fewer tokens. It parses 159 languages and ships as a single static C binary with no runtime dependencies."}},{@@ -135,7 +141,7 @@"name": "Which programming languages does codebase-memory-mcp support?","acceptedAnswer": {"@type": "Answer",- "text": "It supports 158 languages through vendored tree-sitter grammars compiled into the binary, including Python, Go, JavaScript, TypeScript, Rust, Java, C, C++, C#, PHP, Ruby, Kotlin, Swift, and many more. Six language families — Python, TypeScript/JavaScript, PHP, C#, Go, and C/C++ — additionally get Hybrid LSP semantic type resolution."+ "text": "It supports 159 languages through vendored tree-sitter grammars compiled into the binary, including Python, Go, JavaScript, TypeScript, Rust, Java, C, C++, C#, PHP, Ruby, Kotlin, Swift, and many more. Six language families — Python, TypeScript/JavaScript, PHP, C#, Go, and C/C++ — additionally get Hybrid LSP semantic type resolution."}},{@@ -161,6 +167,22 @@"@type": "Answer","text": "No. All indexing and querying happen 100% locally on your machine. There is no embedded LLM and no API key — your MCP client acts as the intelligence layer. Release binaries are signed, checksummed, and scanned by 70+ antivirus engines."}+ },+ {+ "@type": "Question",+ "name": "Does codebase-memory-mcp support semantic or natural-language code search?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "Yes. Alongside structural and BM25 full-text search, it offers semantic vector search over the whole graph via the search_graph tool's semantic_query parameter. It is powered by nomic-embed-code embeddings compiled directly into the binary (768-dimensional), so it bridges vocabulary gaps — finding 'publish' when you search 'send' — with no API key, no Ollama, and no Docker. The indexer also generates SEMANTICALLY_RELATED edges between conceptually similar functions and SIMILAR_TO edges for near-duplicate and clone detection."+ }+ },+ {+ "@type": "Question",+ "name": "Can codebase-memory-mcp detect duplicate or near-clone code?",+ "acceptedAnswer": {+ "@type": "Answer",+ "text": "Yes. During indexing it builds SIMILAR_TO edges using MinHash plus LSH with Jaccard scoring, surfacing near-duplicate and copy-pasted functions across the codebase. Combined with SEMANTICALLY_RELATED edges, this makes refactoring candidates and redundant implementations queryable through the graph."+ }}]}@@ -214,6 +236,8 @@}nav .links a:hover { color: var(--text); }nav .links a:first-child { margin-left: 0; }+ nav .links a.nav-star { color: var(--green); font-weight: 600; }+ nav .links a.nav-star:hover { color: var(--accent-hover); }@media (max-width: 640px) { nav .links a:not(.nav-cta) { display: none; } }/* Hero */@@ -404,9 +428,10 @@<a href="#what-is-it">What is it</a><a href="#install">Install</a><a href="#hybrid-lsp">Hybrid LSP</a>+ <a href="#semantic-search">Semantic search</a><a href="#releases">Releases</a><a href="#faq">FAQ</a>- <a class="nav-cta" href="https://github.com/DeusData/codebase-memory-mcp">GitHub</a>+ <a class="nav-cta nav-star" href="https://github.com/DeusData/codebase-memory-mcp" title="Star codebase-memory-mcp on GitHub" aria-label="Star this project on GitHub">★ Star on GitHub</a></span></div></nav>@@ -419,11 +444,11 @@The fastest, most efficient code intelligence engine for AI coding agents. It indexes anyrepository into a persistent knowledge graph — full-indexing an average repo in seconds and theLinux kernel in 3 minutes — so your agent answers structural questions with ~120x fewer tokens.- Tree-sitter parsing across 158 languages, Hybrid LSP type resolution, single static C binary.+ Tree-sitter parsing across 159 languages, Hybrid LSP type resolution, single static C binary.</p><div><div class="stat"><div class="number">~120x</div><div class="label">fewer tokens</div></div>- <div class="stat"><div class="number">158</div><div class="label">languages</div></div>+ <div class="stat"><div class="number">159</div><div class="label">languages</div></div><div class="stat"><div class="number">3 min</div><div class="label">Linux kernel index</div></div><div class="stat"><div class="number">11</div><div class="label">agents supported</div></div></div>@@ -458,7 +483,7 @@Protocol (MCP)</a> server that indexes a codebase into a persistent knowledge graph of functions,classes, call chains, HTTP routes, and cross-service links. Instead of reading files one at a time,an AI coding agent queries the graph — answering structural questions with roughly 120x fewer- tokens. It parses 158 languages and ships as a single static C binary with zero runtime dependencies.+ tokens. It parses 159 languages and ships as a single static C binary with zero runtime dependencies.</p><p class="muted">It is a structural-analysis backend, not a chatbot: there is no embedded LLM and no API key. Your@@ -537,12 +562,48 @@</tbody></table><p class="muted">- The two-layer pipeline runs a fast syntactic tree-sitter pass for every one of the 158 languages,+ The two-layer pipeline runs a fast syntactic tree-sitter pass for every one of the 159 languages,then a type-aware Hybrid LSP pass on top for the families above. Languages without a Hybrid LSP passyet fall back to textual resolution, so you always get an answer.</p></section>+ <section id="semantic-search">+ <h2>Can it do semantic and natural-language code search?</h2>+ <p class="lead">+ Yes. Beyond structural and full-text search, codebase-memory-mcp performs <strong>semantic+ vector search</strong> across the whole graph — so you can find code by meaning, not just by+ name. A search for <code>send</code> surfaces functions named <code>publish</code>,+ <code>emit</code>, or <code>dispatch</code>.+ </p>+ <p style="margin-bottom: 16px;">+ It is powered by <strong>nomic-embed-code embeddings compiled directly into the binary</strong>+ (768-dimensional, int8). There is no API key, no Ollama, and no Docker — the embeddings run+ on-device, so semantic search stays 100% local like everything else. Results combine+ <strong>11 signals</strong> (TF-IDF, API/type/decorator signatures, AST profiles, data flow,+ Halstead-lite complexity, MinHash, module proximity, and graph diffusion) into one relevance score.+ </p>+ <h3>Meaning-aware edges in the graph</h3>+ <p style="margin-bottom: 16px;">+ The indexer also writes two kinds of meaning-aware edges, queryable like any other relationship:+ </p>+ <table>+ <thead><tr><th>Edge</th><th>What it captures</th></tr></thead>+ <tbody>+ <tr><td><code>SEMANTICALLY_RELATED</code></td><td>Conceptually similar functions whose names and tokens differ — vocabulary-mismatch matches, scored ≥ 0.80, within the same language.</td></tr>+ <tr><td><code>SIMILAR_TO</code></td><td>Near-duplicate and copy-pasted code, detected with MinHash + LSH and Jaccard scoring — ideal for finding clones and refactor candidates.</td></tr>+ </tbody>+ </table>+ <div class="install-block" style="margin-top:16px;">+ <span class="comment"># Find code by meaning, not by name — embeddings run locally, no API key.</span><br>+ <span class="cmd">search_graph(semantic_query=["retry", "backoff", "exponential"])</span>+ </div>+ <p class="muted">+ Semantic and similarity edges are computed in <code>full</code> and <code>moderate</code> index+ modes; <code>fast</code> mode skips them for the lowest-latency indexing.+ </p>+ </section>+<section id="benchmark"><h2>How much does the knowledge graph save?</h2><p class="lead">@@ -580,7 +641,7 @@<table><thead><tr><th>Operation</th><th>Time</th><th>Notes</th></tr></thead><tbody>- <tr><td>Linux kernel full index</td><td class="win">3 min</td><td>28M LOC, 75K files → 2.1M nodes, 4.9M edges</td></tr>+ <tr><td>Linux kernel full index</td><td class="win">3 min</td><td>28M LOC, 75K files → 4.81M nodes, 7.72M edges</td></tr><tr><td>Django full index</td><td class="win">~6 s</td><td>49K nodes, 196K edges</td></tr><tr><td>Cypher query</td><td class="win"><1 ms</td><td>Relationship traversal</td></tr><tr><td>Name search (regex)</td><td class="win"><10 ms</td><td>SQL LIKE pre-filtering</td></tr>@@ -594,7 +655,7 @@<h2>Features</h2><div class="features"><div class="feature">- <h3>158 languages</h3>+ <h3>159 languages</h3><p>Python, Go, JS, TS, TSX, Rust, Java, C++, C#, C, PHP, Ruby, Kotlin, Scala, Zig, Elixir, Haskell, OCaml, Swift, Dart, Lean 4, and many more via vendored tree-sitter grammars compiled into the binary.</p></div><div class="feature">@@ -614,8 +675,8 @@<p>Find functions with zero callers, with smart filtering that excludes entry points like route handlers, <code>main()</code>, and framework decorators.</p></div><div class="feature">- <h3>Cross-service HTTP linking</h3>- <p>Discovers REST routes and matches them to HTTP call sites across services with confidence scoring; async dispatch via queues is linked too.</p>+ <h3>Cross-service linking</h3>+ <p>Matches REST routes to HTTP call sites across services with confidence scoring — and detects gRPC, GraphQL, and tRPC services plus pub/sub channels (<code>EMITS</code>/<code>LISTENS_ON</code> for Socket.IO, EventEmitter, and message buses) and async queue dispatch.</p></div><div class="feature"><h3>Infrastructure-as-code indexing</h3>@@ -635,12 +696,36 @@</div><div class="feature"><h3>14 MCP tools</h3>- <p><code>search_graph</code>, <code>trace_call_path</code>, <code>detect_changes</code>, <code>query_graph</code> (Cypher), <code>get_architecture</code>, <code>get_code_snippet</code>, <code>manage_adr</code>, and 7 more.</p>+ <p><code>search_graph</code>, <code>trace_path</code>, <code>detect_changes</code>, <code>query_graph</code> (Cypher), <code>get_architecture</code>, <code>get_code_snippet</code>, <code>manage_adr</code>, and 7 more.</p></div><div class="feature"><h3>Cypher graph queries</h3><p>Run read-only Cypher-style queries against the graph for multi-hop patterns that structured search can't express.</p></div>+ <div class="feature">+ <h3>Semantic code search</h3>+ <p>Find code by meaning, not just name, via <code>semantic_query</code> vector search — powered by nomic-embed-code embeddings baked into the binary. No API key, fully local.</p>+ </div>+ <div class="feature">+ <h3>Clone & similarity detection</h3>+ <p><code>SIMILAR_TO</code> edges (MinHash + LSH) surface near-duplicate code; <code>SEMANTICALLY_RELATED</code> edges link conceptually similar functions across the graph.</p>+ </div>+ <div class="feature">+ <h3>Cross-repo intelligence</h3>+ <p>Index multiple repositories in one store and link them with <code>CROSS_*</code> edges. A multi-galaxy 3D layout and cross-repo architecture summary span the whole fleet.</p>+ </div>+ <div class="feature">+ <h3>Data-flow tracing</h3>+ <p><code>DATA_FLOWS</code> edges follow values from argument to parameter, with field-access chains — trace how data moves, not just who calls whom.</p>+ </div>+ <div class="feature">+ <h3>Change-impact analysis</h3>+ <p><code>detect_changes</code> maps an uncommitted git diff to affected symbols and their blast radius, with risk classification — see what a change touches before you ship it.</p>+ </div>+ <div class="feature">+ <h3>Architecture Decision Records</h3>+ <p><code>manage_adr</code> persists architectural decisions alongside the graph, so design rationale survives across sessions and teammates.</p>+ </div></div></section>@@ -664,6 +749,13 @@<p>No. All indexing and querying happen 100% locally. There is no embedded LLM and no API key. Releasebinaries are signed, checksummed, and scanned by 70+ antivirus engines.</p>+ <h3>Does it support semantic or natural-language code search?</h3>+ <p>Yes. Alongside structural and full-text search, <code>search_graph</code>'s <code>semantic_query</code>+ parameter runs vector search over the whole graph, powered by nomic-embed-code embeddings compiled+ into the binary — so it finds <code>publish</code> when you search <code>send</code>. No API key, no+ Ollama, no Docker; the embeddings run on-device. The indexer also builds <code>SEMANTICALLY_RELATED</code>+ edges between similar functions and <code>SIMILAR_TO</code> edges for near-clone detection.</p>+<h3>Do I need Docker or a runtime?</h3><p>No. It is a single static C binary with zero runtime dependencies for macOS (arm64/amd64), Linux(arm64/amd64), and Windows (amd64).</p>diff --git a/docs/llms.txt b/docs/llms.txtindex 9e52de6b0..d7d696272 100644--- a/docs/llms.txt+++ b/docs/llms.txt@@ -1,15 +1,19 @@# codebase-memory-mcp-> An open-source Model Context Protocol (MCP) server that indexes a codebase into a persistent knowledge graph of functions, classes, call chains, HTTP routes, and cross-service links. AI coding agents query the graph instead of reading files one by one, answering structural questions with roughly 120x fewer tokens (~3,400 vs ~412,000 across five structural queries). Parses 158 languages via vendored tree-sitter grammars, with Hybrid LSP semantic type resolution for Python, TypeScript/JavaScript, PHP, C#, Go, and C/C++. Ships as a single static C binary (zero runtime dependencies) for macOS, Linux, and Windows. All processing is local — no embedded LLM, no API key.+> An open-source Model Context Protocol (MCP) server that indexes a codebase into a persistent knowledge graph of functions, classes, call chains, HTTP routes, and cross-service links. AI coding agents query the graph instead of reading files one by one, answering structural questions with roughly 120x fewer tokens (~3,400 vs ~412,000 across five structural queries). Parses 159 languages via vendored tree-sitter grammars, with Hybrid LSP semantic type resolution for Python, TypeScript/JavaScript, PHP, C#, Go, and C/C++. It also generates semantic graph edges (SEMANTICALLY_RELATED for vocabulary-mismatch matches, SIMILAR_TO for near-clone detection) and supports semantic vector search via bundled nomic-embed-code embeddings compiled into the binary — no API key, no Ollama, no Docker. Ships as a single static C binary (zero runtime dependencies) for macOS, Linux, and Windows. All processing is local — the embeddings run on-device; there is no embedded LLM and no API key.## Key facts- License: MIT, open source.-- Languages: 158 (157 vendored tree-sitter grammars compiled into the binary).+- Languages: 159 (157 vendored tree-sitter grammars compiled into the binary).- Hybrid LSP type resolution: 6 language families (Python, TypeScript/JavaScript/JSX/TSX, PHP, C#, Go, C/C++) — clean-room re-implementation of tsserver, pyright, gopls, intelephense, and Roslyn algorithms.-- MCP tools: 14 (search_graph, trace_call_path, query_graph (Cypher), detect_changes, get_architecture, get_code_snippet, manage_adr, and more).+- MCP tools: 14 (search_graph incl. semantic_query vector search, trace_path (alias: trace_call_path), query_graph (Cypher), detect_changes, get_architecture, get_code_snippet, manage_adr, and more).+- Semantic search: natural-language code discovery via bundled nomic-embed-code embeddings (768-dim, compiled into the binary); 11-signal combined scoring; fully local, no API key.+- Semantic & similarity edges: SEMANTICALLY_RELATED (vocabulary-mismatch matches) and SIMILAR_TO (MinHash + LSH near-clone / duplicate detection).+- Cross-repo intelligence: CROSS_* edges link nodes across multiple repos indexed in one store; multi-galaxy 3D layout and cross-repo architecture summary.+- Cross-service linking: HTTP route ↔ call-site matching, plus gRPC/GraphQL/tRPC detection and pub/sub channels (EMITS/LISTENS_ON for Socket.IO, EventEmitter, generic buses).- Supported agents: 11 (Claude Code, Codex CLI, Gemini CLI, Zed, OpenCode, Antigravity, Aider, KiloCode, VS Code, OpenClaw, Kiro).-- Performance: Linux kernel (28M LOC, 75K files) full index in 3 minutes → 2.1M nodes, 4.9M edges; Cypher queries in under 1ms.+- Performance: Linux kernel (28M LOC, 75K files) full index in 3 minutes → 4.81M nodes, 7.72M edges; Cypher queries in under 1ms.- Distribution: single static C binary; also npm, PyPI, Homebrew, Scoop, Winget, Chocolatey, AUR, and `go install`.## Linksdiff --git a/docs/sitemap.xml b/docs/sitemap.xmlindex 2038abb4a..5df53fb87 100644--- a/docs/sitemap.xml+++ b/docs/sitemap.xml@@ -2,7 +2,7 @@<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><url><loc>https://deusdata.github.io/codebase-memory-mcp/</loc>- <lastmod>2026-06-01</lastmod>+ <lastmod>2026-06-05</lastmod><priority>1.0</priority></url></urlset>diff --git a/pkg/chocolatey/codebase-memory-mcp.nuspec b/pkg/chocolatey/codebase-memory-mcp.nuspecindex 97610257b..91ca22b92 100644--- a/pkg/chocolatey/codebase-memory-mcp.nuspec+++ b/pkg/chocolatey/codebase-memory-mcp.nuspec@@ -17,7 +17,7 @@ codebase-memory-mcp is a single static binary MCP server that indexes codebasesextreme speed and exposes 14 MCP tools for AI coding agents.Full indexes an average repository in milliseconds, the Linux kernel (28M LOC) in-3 minutes. Answers structural queries in under 1ms. Supports 158 languages via+3 minutes. Answers structural queries in under 1ms. Supports 159 languages viavendored tree-sitter grammars. Zero dependencies. Plug and play across 11 codingagents including Claude Code, Codex CLI, Gemini CLI, and Zed.diff --git a/pkg/npm/README.md b/pkg/npm/README.mdindex a530a7dbb..81dbc1761 100644--- a/pkg/npm/README.md+++ b/pkg/npm/README.md@@ -7,7 +7,7 @@**The fastest and most efficient code intelligence engine for AI coding agents.** Full-indexes an average repository in milliseconds, the Linux kernel (28M LOC, 75K files) in 3 minutes. Answers structural queries in under 1ms. Ships as a single static binary — this package downloads and runs it automatically.-High-quality parsing through [tree-sitter](https://tree-sitter.github.io/tree-sitter/) AST analysis across 158 languages — producing a persistent knowledge graph of functions, classes, call chains, HTTP routes, and cross-service links. 14 MCP tools. Zero dependencies. Plug and play across 11 coding agents.+High-quality parsing through [tree-sitter](https://tree-sitter.github.io/tree-sitter/) AST analysis across 159 languages — producing a persistent knowledge graph of functions, classes, call chains, HTTP routes, and cross-service links. 14 MCP tools. Zero dependencies. Plug and play across 11 coding agents.## Installation@@ -27,7 +27,7 @@ Restart your agent. Say **"Index this project"** — done.- **Extreme indexing speed** — Linux kernel (28M LOC, 75K files) in 3 minutes. RAM-first pipeline with LZ4 compression and in-memory SQLite.- **Plug and play** — single static binary for macOS (arm64/amd64), Linux (arm64/amd64), and Windows (amd64). No Docker, no runtime dependencies, no API keys.-- **158 languages** — vendored tree-sitter grammars compiled into the binary. Nothing to install, nothing that breaks.+- **159 languages** — vendored tree-sitter grammars compiled into the binary. Nothing to install, nothing that breaks.- **120x fewer tokens** — 5 structural queries: ~3,400 tokens vs ~412,000 via file-by-file search.- **11 agents, one command** — `install` auto-detects Claude Code, Codex CLI, Gemini CLI, Zed, OpenCode, Antigravity, Aider, KiloCode, VS Code, OpenClaw, and Kiro.- **14 MCP tools** — search, trace, architecture, impact analysis, Cypher queries, dead code detection, cross-service HTTP linking, ADR management, and more.diff --git a/server.json b/server.jsonindex 57558b9b5..9691a0c51 100644--- a/server.json+++ b/server.json@@ -2,7 +2,7 @@"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json","name": "io.github.DeusData/codebase-memory-mcp","title": "Codebase Memory",- "description": "Persistent codebase knowledge graph — 155 languages, sub-ms queries, 99% fewer tokens than grep. Survives session restarts and context compaction.",+ "description": "Persistent codebase knowledge graph — 159 languages, sub-ms queries, 99% fewer tokens than grep. Survives session restarts and context compaction.","repository": {"url": "https://github.com/DeusData/codebase-memory-mcp","source": "github"