Live codebase intelligence for AI agents: conventions, blast radius, import graphs, git insights.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β we're steadily working through the catalog.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Catches the files your AI agent forgot to change.
A safety layer for code changes. sourcebook analyzes git diffs for completeness β flags files that should've been modified but weren't. Rules-based structural detection plus AI-powered semantic analysis. Zero false positives on clean diffs.
Your AI agent changed the handler. Did it update the test? The sibling module? The config that references the old value?
sourcebook checks your diff against the repo's actual structure:
With --ai: cross-module semantic relationships, field renames that need migrations, stale validation logic.
| Metric | Result |
|---|---|
| Completeness gate | 100% accurate (30/30 diffs) |
| False positive rate | 0% on clean diffs |
| Test file detection | 73% |
| Sibling detection | 71% |
| AI analysis cost | ~$0.012/run |
Run it on any diff. No setup required.
One command wires up pre-commit hooks. Agent edits a file, sourcebook checks the diff, agent sees what's missing β all before the commit lands.
Published on the official MCP registry. Agents can query repo structure, blast radius, conventions, and co-change data on demand.
Add to your MCP client:
Automated completeness checks on every pull request. Join the waitlist.
| Command | Description |
|---|---|
sourcebook check | Analyze current diff for completeness |
sourcebook check --ai | Add AI-powered semantic analysis (requires ANTHROPIC_API_KEY) |
sourcebook check --quiet | Exit code only β 1 if findings, 0 if clean |
sourcebook check --json | Structured JSON output |
sourcebook check --branch main | Compare HEAD against a branch |
sourcebook check --threshold 0.9 | Custom co-change coupling threshold (0-1) |
sourcebook init | Set up Claude Code hooks + generate CLAUDE.md/AGENTS.md |
sourcebook scan-history | Retrospective scan of recent commits |
sourcebook hooks | Install or check Claude Code hooks |
sourcebook truth | Generate a Repo Truth Map (2.5D visualization) |
sourcebook serve | Start MCP server |
sourcebook update | Re-analyze while preserving manual edits |
sourcebook diff | Show what would change (exit code 1 if changes found) |
sourcebook watch | Auto-regenerate context files on source changes |
sourcebook ask <query> | Query codebase knowledge in natural language |
auth.ts and it changes with session.ts in 88% of commits, sourcebook flags session.ts.Sends the diff plus dependency context to Claude Sonnet. Catches semantic relationships Layer A can't see β field renames that need migrations, validation logic that assumes old schemas, cross-module dependencies with no import link.
Every AI suggestion requires a dependency citation. Hallucinated file paths are filtered out. The completeness gate ensures zero false positives: if the diff is actually complete, Layer B stays silent.
No other configuration needed. sourcebook reads your repo's git history and file structure directly.
| Language | Import Graph | Git Analysis | Convention Detection |
|---|---|---|---|
| TypeScript / JavaScript | Full | Full | Full |
| Python | Full | Full | Full |
| Go | Full | Full | Full |
| Rust | Full | Full | Partial |
Built on real benchmarks, not vibes:
BSL-1.1 β source-available, free to use, cannot be offered as a hosted service. Converts to MIT on 2030-03-25. See LICENSE for details.
sourcebook.run Β· GitHub Β· npm Β· @maroond_
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/sourcebook)<a href="https://allmcps.com/mcp/sourcebook"><img src="https://allmcps.com/api/badge/sourcebook?style=directory" alt="Sourcebook on AllMCPs" /></a>