MCP ConfigsMay 14, 2026·2 min read

code-review-graph — MCP Context for Smarter Reviews

code-review-graph builds a Tree-sitter code graph and exposes minimal review context via MCP; verified 16,364★ and claims ~8.2× token reduction on 6 repos.

Agent ready

This asset can be read and installed directly by agents

TokRepo exposes a universal CLI command, install contract, metadata JSON, adapter-aware plan, and raw content links so agents can judge fit, risk, and next actions.

Native · 94/100Policy: allow
Agent surface
Any MCP/CLI agent
Kind
Mcp
Install
Pip
Trust
Trust: Established
Entrypoint
code-review-graph
Universal CLI install command
npx tokrepo install 4127b8de-72ce-5cc8-8f3e-8f0367e64cd2
Intro

code-review-graph builds a Tree-sitter code graph and exposes minimal review context via MCP; verified 16,364★ and claims ~8.2× token reduction on 6 repos.

Best for: Teams using coding agents who want smaller context windows and clearer blast-radius reviews

Works with: Codex, Claude Code, Cursor, Windsurf, Zed, Copilot, and other MCP-capable tools

Setup time: 5-12 minutes

Key facts (verified)

  • GitHub: 16380 stars · 1781 forks · pushed 2026-05-08.
  • License: MIT · owner avatar + repo URL verified via GitHub API.
  • README-backed entrypoint: code-review-graph.

Main

  • Run install once per machine to generate MCP config, then restart your tool so it can discover the server.
  • Use the graph as a review gate: ask for blast radius + minimal file set before edits, then iterate with smaller diffs.
  • Use README timings as sanity checks: ~10s initial build for ~500 files; incremental updates under ~2s for a 2,900-file repo (per docs).

Source-backed notes

  • README says it parses repos with Tree-sitter, stores a graph, and serves context through MCP for agent review loops.
  • Quick Start shows pip install + install + build as the minimal loop.
  • README lists per-platform flags like --platform codex / cursor / claude-code / copilot-cli.

FAQ

  • Do I need MCP support in my tool?: Yes—your editor/agent must be able to load MCP servers, or you’ll only use the CLI locally.
  • Will it read my entire repo every time?: The stated goal is the opposite: build once, then incrementally update and serve minimal context.
  • What’s the fastest way to get started?: Use pipx, run install --platform <tool>, restart the tool, then run build.
🙏

Source & Thanks

Source: https://github.com/tirth8205/code-review-graph > License: MIT > GitHub: ⭐ 16380 · forks 1781

Thanks to the upstream maintainers for shipping the original project.

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets