Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"sourcebook": {
"args": [
"-y",
"sourcebook",
"serve",
"--dir",
"/path/to/your/project"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Catches the files your AI agent forgot to change.
Run this in your terminal to verify the server starts. Then let us know if it worked — your result helps other developers.
npx -y 'sourcebook' 2>&1 | head -1 && echo "✓ Server started successfully"
After testing, let us know if it worked:
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
Checked sourcebook against OSV.dev.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in ai-ml / analytics
Persistent memory using a knowledge graph
Dynamic problem-solving through sequential thought chains
An open-source AI agent that brings the power of Gemini directly into your terminal.
Lightweight core CLI surface for Claude Flow — memory + hooks commands only. Designed to load fast on cold npx cache (<5s) so plugin skills don't race the 30s MCP-startup timeout. The full @claude-flow/cli metapackage lazy-loads everything else on top of
MCP Security Weekly
Get CVE alerts and security updates for io.github.maroondlabs/sourcebook and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
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.
npx sourcebook init # sets up Claude Code hooks + generates CLAUDE.md
npx sourcebook check # check your current diff for missing files
npx sourcebook scan-history # see what you've been missing
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.
npx sourcebook check # check staged/unstaged changes
npx sourcebook check --ai # add AI semantic analysis (requires ANTHROPIC_API_KEY)
npx sourcebook check --quiet # exit code only (for CI/scripts)
npx sourcebook check --branch main # compare vs a branch
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.
npx sourcebook init # generates CLAUDE.md + installs hooks
Published on the official MCP registry. Agents can query repo structure, blast radius, conventions, and co-change data on demand.
npx sourcebook serve
Add to your MCP client:
{
"mcpServers": {
"sourcebook": {
"command": "npx",
"args": ["-y", "sourcebook", "serve", "--dir", "/path/to/your/project"]
}
}
}
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.