You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| 🧠 |**Semantic search**| Embeddings-powered natural language search with multi-query RRF ranking |
130
130
| 👀 |**Watch mode**| Incrementally update the graph as files change |
131
-
| 🤖 |**MCP server**|Model Context Protocol integration for AI assistants |
131
+
| 🤖 |**MCP server**|12-tool MCP server with multi-repo support for AI assistants |
132
132
| 🔒 |**Fully local**| No network calls, no data exfiltration, SQLite-backed |
133
133
134
134
## 📦 Commands
@@ -213,6 +213,20 @@ A single trailing semicolon is ignored (falls back to single-query mode). The `-
213
213
214
214
The model used during `embed` is stored in the database, so `search` auto-detects it — no need to pass `--model` when searching.
215
215
216
+
### Multi-Repo Registry
217
+
218
+
Manage a global registry of codegraph-enabled projects. AI agents can query any registered repo from a single MCP session using the `repo` parameter.
219
+
220
+
```bash
221
+
codegraph registry list # List all registered repos
222
+
codegraph registry list --json # JSON output
223
+
codegraph registry add <dir># Register a project directory
224
+
codegraph registry add <dir> -n my-name # Custom name
225
+
codegraph registry remove <name># Unregister
226
+
```
227
+
228
+
`codegraph build` auto-registers the project — no manual setup needed.
229
+
216
230
### AI Integration
217
231
218
232
```bash
@@ -310,12 +324,14 @@ Benchmarked on a ~3,200-file TypeScript project:
310
324
311
325
### MCP Server
312
326
313
-
Codegraph includes a built-in [Model Context Protocol](https://modelcontextprotocol.io/) server, so AI assistants can query your dependency graph directly:
327
+
Codegraph includes a built-in [Model Context Protocol](https://modelcontextprotocol.io/) server with 12 tools, so AI assistants can query your dependency graph directly:
314
328
315
329
```bash
316
330
codegraph mcp
317
331
```
318
332
333
+
All MCP tools accept an optional `repo` parameter to target any registered repository. Use `list_repos` to see available repos. When `repo` is omitted, the local `.codegraph/graph.db` is used (backwards compatible).
334
+
319
335
### CLAUDE.md / Agent Instructions
320
336
321
337
Add this to your project's `CLAUDE.md` to help AI agents use codegraph:
Technology changes to monitor that may unlock future improvements.
487
+
488
+
-**`node:sqlite` (Node.js built-in)** — **primary target.** Zero native dependencies, eliminates C++ addon breakage on Node major releases (`better-sqlite3` already broken on Node 24/25). Currently Stability 1.1 (Active Development) as of Node 25.x. Adopt when it reaches Stability 2, or use as a fallback alongside `better-sqlite3` (dual-engine pattern like native/WASM parsing). Backed by the Node.js project — no startup risk.
489
+
-**`libsql` (SQLite fork by Turso)** — monitor only. Drop-in `better-sqlite3` replacement with built-in DiskANN vector search. However, Turso is pivoting engineering focus to Limbo (full Rust SQLite rewrite), leaving libsql as legacy. Pre-1.0 (v0.5.x) with uncertain long-term maintenance. Low switching cost (API-compatible, data is standard SQLite), but not worth adopting until the Turso/Limbo situation clarifies.
490
+
491
+
---
492
+
484
493
## Contributing
485
494
486
495
Want to help? Contributions to any phase are welcome. See [CONTRIBUTING](README.md#-contributing) for setup instructions.
0 commit comments