Skip to main content
Glama

Tests Zero Dependencies Node.js >= 22.5 License MIT

Codebase archaeology MCP: static import graph, Git temporal co-change coupling, revert warnings, and affected test discovery.

Works with Claude Code, Cursor, Windsurf, Codex CLI, and Antigravity.

Editing one function without knowing which callers, implicit config partners, or tests depend on it causes silent regressions. Grep catches direct symbol names, while missing transitive callers and files that have no static import link yet repeatedly change in the same commits.

blast-radius-mcp combines static import resolution (JS/TS, Python, Go, Rust) with bounded Git commit mining cached in node:sqlite, returning a compact impact brief in ~350 tokens.

Quick start

Requires Node.js >= 22.5.0 and git.

# Inspect callers, co-changes, revert history, and tests for a file
npx -y github:keenfolk1-lgtm/blast-radius-mcp check src/auth.mjs --symbol verifyToken

# Inspect all files currently touched in git diff
npx -y github:keenfolk1-lgtm/blast-radius-mcp diff

# Rank the most unstable files by churn, fixes, and reverts
npx -y github:keenfolk1-lgtm/blast-radius-mcp hotspots --limit 10

MCP server registration

claude mcp add blast-radius -- npx -y github:keenfolk1-lgtm/blast-radius-mcp serve

Or add to mcp.json:

{
  "mcpServers": {
    "blast-radius": {
      "command": "npx",
      "args": ["-y", "github:keenfolk1-lgtm/blast-radius-mcp", "serve"]
    }
  }
}

Related MCP server: flowindex

Example output

Running blast-radius check src/auth.mjs --symbol verifyToken on a repository with coupled auth/session commits and a prior revert:

### Blast Radius: `src/auth.mjs` (symbol `verifyToken`)
- Risk tier: **HIGH** (7 commits, 1 fixes, 1 reverts, 1 author(s))
- Static dependents (depth <= 2): `src/session.mjs` (hop 1), `src/routes.mjs` (hop 2)
- Symbol `verifyToken` references: `src/session.mjs`:L1,2
- Git co-changed files: `src/session.mjs` (83%, 5/6 commits)
- Recent incident history:
  - [revert] `9f4a1c2` (2026-11-23): revert: rollback token cache race
  - [fix] `3d81e04` (2026-11-23): fix: refresh token clock skew
- Affected tests: `test/routes.test.mjs`

Bulk formatting commits touching more than 25 files are excluded automatically from co-change coupling so repo-wide lint passes do not pollute coupling scores. Parsed Git history is cached per (repo_root, head_sha) in SQLite WAL mode and invalidates whenever HEAD moves.

MCP tools

Tool

Purpose

blast_radius

Returns risk tier, static dependents (including TS @/ aliases and go.mod packages), symbol references, Git co-changes, incidents, and tests.

diff_blast_radius

Runs blast-radius impact analysis across every tracked file changed in git diff.

co_changed_files

Lists files edited together in Git history, excluding bulk commits (>25 files).

repo_hotspots

Ranks files by total touches, bugfix commits (fix/bugfix/hotfix), and reverts.

affected_tests

Maps target files, transitive dependents, and same-package *_test.go suites to tests to run.

Limitations

Static import parsing resolves relative paths, tsconfig.json / @/ aliases, and go.mod module imports (JS/TS/Vue/Svelte, Python, Go, Rust), skipping dynamic computed require(expr). Temporal coupling depends on local Git history depth (--depth on shallow clones limits results unless fetch-depth: 0 is used).

License

MIT

Related tools: mcp-diet · skill-guard · flight-recorder-mcp · agent-undo · de-slop

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI coding agents to analyze codebase behavior through entrypoints, call paths, and tests, providing impact analysis and context packs for code changes.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Tracks the complete lineage and DNA of every line of code, enabling impact analysis, bug risk prediction, and code archaeology through deterministic analysis of git history and AST.
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Analyzes code changes using static code-graph and git co-change history to identify likely affected files, returning tiered confidence reports with evidence. Exposes tools for AI assistants to inspect current changes, static impact, historical co-change patterns, and detailed explanations.
      5
      MIT