sourcebook MCP server: on-demand repo structure and change-completeness data

sourcebook MCP server: on-demand repo structure and change-completeness data

sourcebook•bymaroondlabs

An MCP server, part of the sourcebook tool for catching files an AI agent forgot to change, that exposes repository structure, blast radius, conventions and co-change data to MCP clients.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Exposes repository structure, blast radius, conventions and co-change data so agents can query them on demand.
  • •Is started via the serve command and is configured into MCP clients with a command and directory argument.
  • •Sits alongside rules-based analysis that mines git co-change history, detects test files, builds an import graph and flags high fan-in hub files.

BEST FOR

  • •Agents and developers who need to check a diff for files that should have been modified but weren't.
  • •Teams wanting pull-request completeness checks, with a GitHub App in the works.

ABOUT SOURCEBOOK

sourcebook MCP server: on-demand repo structure and change-completeness data is cataloged as an MCP server attributed to maroondlabs. An MCP server, part of the sourcebook tool for catching files an AI agent forgot to change, that exposes repository structure, blast radius, conventions and co-change data to MCP clients. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for sourcebook MCP server: on-demand repo structure and change-completeness data are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the MCP server require any configuration?

No additional configuration is described beyond pointing an MCP client at the serve command with a project directory; the AI flag separately needs an Anthropic API key.

Does the MCP server work across languages?

Import graph and git analysis support is full for TypeScript/JavaScript, Python and Go, with partial convention detection for Rust.

Can sourcebook be offered as a hosted service?

No, the BSL-1.1 license allows source-available use but not offering it as a hosted service.

Upstream README

View this exact version on GitHub

README.md · d289440cf44d · Fetched 2026-11-13 12:22:53 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

sourcebook

sourcebook

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

What It Catches

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:

  • Missing test files — source file changed, test file didn't
  • Sibling modules — files that import or are imported by what you changed
  • Co-change companions — files that historically change together in git commits
  • Hub file blast radius — you touched something with 50+ dependents

With --ai: cross-module semantic relationships, field renames that need migrations, stale validation logic.

Key Stats

MetricResult
Completeness gate100% accurate (30/30 diffs)
False positive rate0% on clean diffs
Test file detection73%
Sibling detection71%
AI analysis cost~$0.012/run

Four Surfaces

1. CLI

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

2. Claude Code Hooks

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

3. MCP Server

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"]
    }
  }
}

4. GitHub App (coming soon)

Automated completeness checks on every pull request. Join the waitlist.

Commands

CommandDescription
sourcebook checkAnalyze current diff for completeness
sourcebook check --aiAdd AI-powered semantic analysis (requires ANTHROPIC_API_KEY)
sourcebook check --quietExit code only — 1 if findings, 0 if clean
sourcebook check --jsonStructured JSON output
sourcebook check --branch mainCompare HEAD against a branch
sourcebook check --threshold 0.9Custom co-change coupling threshold (0-1)
sourcebook initSet up Claude Code hooks + generate CLAUDE.md/AGENTS.md
sourcebook scan-historyRetrospective scan of recent commits
sourcebook hooksInstall or check Claude Code hooks
sourcebook truthGenerate a Repo Truth Map (2.5D visualization)
sourcebook serveStart MCP server
sourcebook updateRe-analyze while preserving manual edits
sourcebook diffShow what would change (exit code 1 if changes found)
sourcebook watchAuto-regenerate context files on source changes
sourcebook ask <query>Query codebase knowledge in natural language

How It Works

Layer A — Rules-based (no LLM, <1 second)

  1. Co-change analysis — mines git history for files that change together. If you touched auth.ts and it changes with session.ts in 88% of commits, sourcebook flags session.ts.
  2. Test file detection — maps source files to test files via naming conventions and co-change history.
  3. Import graph — builds a dependency graph and checks whether files that import (or are imported by) your changed files also need updates.
  4. Hub detection — flags when you've modified a file with high fan-in (many dependents). These changes have blast radius.

Layer B — AI-powered (~$0.012/run)

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.

Configuration

# Required for --ai flag only
export ANTHROPIC_API_KEY=sk-ant-...

No other configuration needed. sourcebook reads your repo's git history and file structure directly.

Language Support

LanguageImport GraphGit AnalysisConvention Detection
TypeScript / JavaScriptFullFullFull
PythonFullFullFull
GoFullFullFull
RustFullFullPartial

Research

Built on real benchmarks, not vibes:

License

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_

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for sourcebook MCP server: on-demand repo structure and change-completeness data from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/sourcebook)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools