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

Safe staging for this asset

This asset is staged first. The copied prompt tells the agent to inspect the staged files and ask before activating scripts, MCP config, or global config.

Stage only · 17/100Policy: stage
Agent surface
Any MCP/CLI agent
Kind
Mcp Config
Install
Stage only
Trust
Trust: Established
Entrypoint
Asset
Safe staging command
npx -y tokrepo@latest install 4127b8de-72ce-5cc8-8f3e-8f0367e64cd2 --target codex

Stages files first; activation requires review of the staged README and plan.

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