1. Conduid
  2. RAG
  3. Code Review Graph
MCP server · RAG

Code Review Graph

Local-first code intelligence graph for MCP and CLI. Builds a persistent map of your codebase so AI coding tools read only what matters, with benchmarked context reductions on reviews and large-repo workflows.

88Strong

Scored 20 hours ago · breakdown

About Code Review Graph

Code Review Graph is an MCP server published by tirth8205 in the RAG category: local-first code intelligence graph for MCP and CLI. Builds a persistent map of your codebase so AI coding tools read only what matters, with benchmarked context reductions on reviews and large-repo workflows. Conduid read 30 tools from its source: apply_refactor_tool, build_or_update_graph_tool, cross_repo_search_tool, detect_changes_tool, embed_graph_tool, find_large_functions_tool and 24 more. It is published to PyPI as code-review-graph and runs with uvx.

The repository has 33K stars and 3.0K forks, is licensed MIT, and its last commit was on 16 Nov 2026. The latest release is v2.4.0 (11 Nov 2026): Two new platforms, MiMo Code and DeepSeek Harness, so install now supports 18. It follows v2.3.9 (18 Sep 2026), and the 5 most recent releases go back to v2.3.6 (10 Jun 2026). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Its topics include ai-coding, code-review, graphrag, incremental, knowledge-graph and static-analysis.

Install

uvx
uvx code-review-graph
pip
pip install code-review-graph
From source
git clone https://github.com/tirth8205/code-review-graph

Tools (30)

apply_refactor_toolApply a previously previewed refactoring
ParameterTypeDescription
dry_runbooleanIf True, return a unified diff of what would change without touching any files. The refactor_id remains valid so the same preview can be applied in a follow-up call without dry_run. Use this for a human-in-the-loop review before committing changes to disk. See: #176
max_diff_filesintegerMaximum per-file diffs to include in a dry run. would_modify still lists every file. Default: 25.
refactor_id *stringThe refactor ID from refactor_tool's response.
repo_rootstringRepository root path. Auto-detected if omitted.
build_or_update_graph_toolBuild or incrementally update the graph
ParameterTypeDescription
basestringGit ref to diff against for incremental updates. When omitted, resolves automatically to the commit the graph was last built at, so one update catches everything since the last sync (not just the latest commit). Pass an explicit ref to override.
embedding_modelstringExact model for an explicit post-build embedding refresh. Must be supplied with embedding_provider. Default: disabled.
embedding_providerstringExact provider for an explicit post-build embedding refresh. Must be supplied with embedding_model. Default: disabled. Refreshes an existing index only: on a graph with no embeddings the result sets embeddings_refresh_skipped; run embed_graph_tool first.
full_rebuildbooleanIf True, re-parse all files. Default: False (incremental).
postprocessstringPost-processing level: "full" (default), "minimal" (signatures+FTS only), or "none" (skip all post-processing). Use "minimal" for faster builds.
recurse_submodulesbooleanIf True, include files from git submodules. When None (default), falls back to CRG_RECURSE_SUBMODULES env var.
repo_rootstringRepository root path. Auto-detected from current directory if omitted.
cross_repo_search_toolSearch registered repositories; `repos` limits the search to a subset
ParameterTypeDescription
kindstringOptional filter: File, Class, Function, Type, Test, YamlPath, DocSection, or JsonPath.
limitintegerMaximum results per repo. Default: 20.
max_resultsintegerMaximum merged results across searched repos; total reports the untruncated merged count. Default: 50.
query *stringSearch string to match against node names.
reposarrayOptional repo aliases or folder names to search. Default: every registered repo. Use it when the registry spans unrelated products and only some of them can answer the question. Matching is exact and case-sensitive, and paths are not accepted. Names matching no registry entry come back in ``unknown``; a name matching several entries selects all of them and is listed in ``ambiguous``.
detect_changes_toolRisk-scored change impact analysis
ParameterTypeDescription
basestringGit ref to diff against. Default: HEAD~1.
changed_filesarrayList of changed file paths (relative to repo root). Auto-detected if omitted.
detail_levelstring"standard" for full output, "minimal" for token-efficient summary. Default: standard.
include_sourcebooleanInclude source code snippets for changed functions. Default: False.
max_depthintegerImpact radius depth for BFS traversal. Default: 2.
max_flowsintegerMaximum affected flows to embed. Embedded flows carry per-flow metadata only — use get_affected_flows_tool for step detail. Default: 20.
max_resultsintegerMaximum changed functions, YAML paths, test gaps, and changed files to return; the matching *_total fields report the full counts. Default: 25.
repo_rootstringRepository root path. Auto-detected if omitted.
embed_graph_toolCompute vector embeddings for semantic search
ParameterTypeDescription
modelstringEmbedding model. Local: a HuggingFace ID or path (default all-MiniLM-L6-v2); openai / google / voyage: that provider's model ID. Falls back to CRG_EMBEDDING_MODEL, CRG_OPENAI_MODEL or CRG_VOYAGE_MODEL.
providerstring"local" (default), "openai", "google", "minimax", or "voyage". "openai" accepts any OpenAI-compatible endpoint and needs CRG_OPENAI_BASE_URL + CRG_OPENAI_API_KEY; "voyage" needs VOYAGE_API_KEY.
repo_rootstringRepository root path. Auto-detected if omitted.
find_large_functions_toolFunctions, classes or files above a line-count threshold
ParameterTypeDescription
detail_levelstring"standard" for full rows, "minimal" for fewer, smaller rows. Default: standard.
file_path_patternstringFilter by file path substring (e.g. "components/").
kindstringOptional filter: Function, Class, File, Test, YamlPath, DocSection, or JsonPath.
limitintegerMaximum results. Default: 50. At most 100, or 25 with detail_level "minimal". ``total`` always counts every match.
min_linesintegerMinimum line count to flag. Default: 50.
repo_rootstringRepository root path. Auto-detected if omitted.
generate_wiki_toolMarkdown wiki from communities
ParameterTypeDescription
forcebooleanIf True, regenerate all pages even if content unchanged. Default: False.
repo_rootstringRepository root path. Auto-detected if omitted.
get_affected_flows_toolFlows affected by changed files
ParameterTypeDescription
basestringGit ref for auto-detecting changes. Default: HEAD~1.
changed_filesarrayList of changed file paths (relative to repo root). Auto-detected if omitted.
detail_levelstring"standard" for full step details, "minimal" for per-flow metadata only. Default: standard.
max_flowsintegerMaximum flows to return; total reports the full count. Default: 50. Pass 0 for no caller limit. Standard mode additionally caps visible flows at 25 and minimal mode at 500, because a standard flow costs ~980 tokens against ~18 minimal.
repo_rootstringRepository root path. Auto-detected if omitted.
get_architecture_overview_toolArchitecture overview from community structure
ParameterTypeDescription
detail_levelstring"minimal" (default) drops community member lists and aggregates cross-community edges to one row per community pair (typical reduction: 600KB -> <5KB); "standard" returns full per-edge detail.
max_membersintegerMaximum member names per community in standard mode. Default: 10.
max_resultsintegerMaximum cross-community rows and warnings to return; cross_community_edges_total reports the full count. Default: 100.
repo_rootstringRepository root path. Auto-detected if omitted.
get_bridge_nodes_toolChokepoints by betweenness centrality
ParameterTypeDescription
detail_levelstring"standard" for full node data, "minimal" for name, kind, and betweenness only. Default: standard.
repo_rootstringRepository root path. Auto-detected if omitted.
top_nintegerNumber of top bridges to return (capped at 100). Default: 10.
get_community_toolOne community
ParameterTypeDescription
community_idintegerDatabase ID of the community.
community_namestringName to search for (partial match). Ignored if community_id given.
include_membersbooleanInclude full member node details. Default: False.
max_membersintegerMaximum member entries to include; the community's size still reports its true member count and members_truncated marks the cut. Default: 25.
repo_rootstringRepository root path. Auto-detected if omitted.
get_docs_section_toolRetrieve documentation sections
ParameterTypeDescription
repo_rootstringRepository root path. Auto-detected if omitted.
section_name *stringThe section to retrieve (e.g. "review-delta", "usage").
get_flow_toolOne execution flow
ParameterTypeDescription
flow_idintegerDatabase ID of the flow.
flow_namestringName to search for (partial match). Ignored if flow_id given.
include_sourcebooleanInclude source code snippets for each step. Default: False.
max_source_linesintegerTotal source lines across all steps when include_source is set. Default: 400.
max_stepsintegerMaximum steps to return; flow.total_steps reports the full count. Default: 50.
repo_rootstringRepository root path. Auto-detected if omitted.
get_hub_nodes_toolMost-connected nodes
ParameterTypeDescription
detail_levelstring"standard" for full node data, "minimal" for name, kind, and total_degree only. Default: standard.
repo_rootstringRepository root path. Auto-detected if omitted.
top_nintegerNumber of top hubs to return (capped at 100). Default: 10.
get_impact_radius_toolBlast radius of changed files; `detail_level="compact"` gives ranked file paths
ParameterTypeDescription
basestringGit ref for auto-detecting changes. Default: HEAD~1.
changed_filesarrayList of changed file paths (relative to repo root). Auto-detected if omitted.
detail_levelstring"standard" for graph records, "minimal" for a summary, "compact" for ranked repo-relative file paths without node/edge records.
max_depthintegerNumber of hops to traverse in the dependency graph. Default: 2.
max_filesintegerFile display limit in compact mode (default 25, maximum 200). Does not reduce the graph traversal budget set by max_results.
max_resultsintegerHow many impacted nodes to traverse to. Default: the CRG_MAX_IMPACT_NODES setting, or 500. Each list in the response also has a fixed ceiling (100 nodes, 150 edges, 200 files) so the response size does not grow with the repository; the omitted counts report the rest.
repo_rootstringRepository root path. Auto-detected if omitted.
resolutionstring"all" (default) or "direct" to traverse only calls bound to an indexed node.
get_knowledge_gaps_toolStructural weaknesses, untested hotspots and import cycles
ParameterTypeDescription
detail_levelstring"standard" for full gap records, "minimal" to drop file paths. Default: standard.
max_per_categoryintegerMaximum entries per gap category; summary and total_gaps still report the untruncated counts. Default: 15.
repo_rootstringRepository root path. Auto-detected if omitted.
get_minimal_context_toolCompact context (~100 tokens); call this first
ParameterTypeDescription
basestringGit ref for diff comparison. Default: HEAD~1.
changed_filesarrayExplicit list of changed files. Auto-detected if omitted.
repo_rootstringRepository root path. Auto-detected if omitted.
taskstringWhat you are doing (e.g. "review PR #42", "debug login timeout").
get_review_context_toolReview context with structural summary
ParameterTypeDescription
basestringGit ref for change detection. Default: HEAD~1.
changed_filesarrayFiles to review. Auto-detected from git diff if omitted.
detail_levelstring"standard" for full output, "minimal" for token-efficient summary. Default: standard.
include_sourcebooleanInclude source code snippets. Default: True.
max_depthintegerImpact radius depth. Default: 2.
max_filesintegerMaximum files listed and given source snippets. Default: 25. Snippets share an 800-line budget.
max_lines_per_fileintegerMax source lines per file. Default: 200.
max_resultsintegerMaximum graph nodes per list and edges to return. Default: 50. Each list reports its untruncated ``*_total``.
repo_rootstringRepository root path. Auto-detected if omitted.
get_suggested_questions_toolReview questions generated from the analysis
ParameterTypeDescription
repo_rootstringRepository root path. Auto-detected if omitted.
get_surprising_connections_toolUnexpected cross-community coupling
ParameterTypeDescription
detail_levelstring"standard" for full edge records, "minimal" for source, target, kind, and score only. Default: standard.
repo_rootstringRepository root path. Auto-detected if omitted.
top_nintegerNumber of top surprises to return (capped at 100). Default: 15.
get_wiki_page_toolOne wiki page
ParameterTypeDescription
community_name *stringCommunity name to look up.
max_charsintegerMaximum characters of page content to return; total_chars reports the real length. Default: 20000.
repo_rootstringRepository root path. Auto-detected if omitted.
list_communities_toolDetected code communities
ParameterTypeDescription
detail_levelstring"standard" (default) returns full community data; "minimal" returns only name, size, and cohesion per community.
max_membersintegerMaximum member names listed per community in standard mode. Each community's size still reports its true member count. Default: 10.
max_resultsintegerMaximum communities to return; total reports the full count. Default: 50.
min_sizeintegerMinimum community size to include. Default: 0.
repo_rootstringRepository root path. Auto-detected if omitted.
sort_bystringSort column: size, cohesion, or name.
list_flows_toolExecution flows sorted by criticality
ParameterTypeDescription
detail_levelstring"standard" (default) returns full flow data; "minimal" returns only name, criticality, and node_count per flow.
kindstringOptional filter by entry point kind (e.g. "Test", "Function").
limitintegerMaximum flows to return. Default: 50.
repo_rootstringRepository root path. Auto-detected if omitted.
sort_bystringSort column: criticality, depth, node_count, file_count, or name.
list_graph_stats_toolGraph size and health
ParameterTypeDescription
repo_rootstringRepository root path. Auto-detected if omitted.
list_repos_toolRegistered repositories
query_graph_toolCallers, callees, tests, imports, inheritance, and `path_to` between two symbols
ParameterTypeDescription
detail_levelstring"standard" for full output, "minimal" for compact summary. Default: standard.
max_resultsintegerMaximum results to return. Default: 100.
pattern *stringQuery pattern name (see above).
repo_rootstringRepository root path. Auto-detected if omitted.
resolutionstring"all" (default), "direct" for only calls bound to an indexed node, or "unresolved" for only the bare-name matches.
target *stringNode name, qualified name, or file path to query. A full name that one non-test symbol has resolves to it; otherwise the answer is "ambiguous" and lists qualified names to choose from.
tostringFor path_to, the node name, qualified name, or file path to reach.
refactor_toolRename preview, dead code detection, suggestions
ParameterTypeDescription
detail_levelstring"standard" for full records, "minimal" for identifying fields only. Default: standard.
file_patternstring(dead_code) Filter by file path substring.
kindstring(dead_code) Optional filter: Function or Class.
max_resultsintegerMaximum edits/symbols/suggestions in the response; total reports the full count. The stored rename preview keeps every edit, so apply_refactor_tool still applies them all. Default: 50.
modestringOperation mode: "rename", "dead_code", or "suggest".
new_namestring(rename) Desired new name for the symbol.
old_namestring(rename) Current symbol name to rename.
repo_rootstringRepository root path. Auto-detected if omitted.
run_postprocess_toolRe-run flow detection, community detection and FTS indexing
ParameterTypeDescription
communitiesbooleanRun community detection. Default: True.
embedding_modelstringExact model for an explicit embedding refresh. Must be supplied with embedding_provider. Default: disabled.
embedding_providerstringExact provider for an explicit embedding refresh. Must be supplied with embedding_model. Default: disabled. Refreshes an existing index only: on a graph with no embeddings the result sets embeddings_refresh_skipped; run embed_graph_tool first.
flowsbooleanRun flow detection. Default: True.
ftsbooleanRebuild FTS index. Default: True.
repo_rootstringRepository root path. Auto-detected if omitted.
semantic_search_nodes_toolSearch code entities by name or meaning
ParameterTypeDescription
detail_levelstring"standard" for full output, "minimal" for compact summary. Default: standard.
expand_neighborsbooleanWith include_source, also return each top hit's direct callers and callees with their source, so one call answers "how does X work". Default: False.
include_sourcebooleanReturn the source of each hit alongside its location, so you can answer without opening the files. Costs tokens; leave off when you only need locations. Ignored when detail_level is "minimal". Default: False.
kindstringOptional filter: File, Class, Function, Type, Test, YamlPath, DocSection, Variable, Output, or JsonPath. Liquid Output nodes are found only by asking for that kind.
limitintegerMaximum results. Default: 20. At most 100, or 5 with detail_level "minimal". ``total`` counts the matches ranked.
max_source_linesintegerWith include_source, the most lines per snippet (1-60). Default: 60.
modelstringEmbedding model for query vectors. Must match the model used during embed_graph. Falls back to CRG_EMBEDDING_MODEL env var (local), CRG_OPENAI_MODEL (openai), or CRG_VOYAGE_MODEL (voyage).
providerstringEmbedding provider: "local" (default), "openai", "google", "minimax", or "voyage". Must match the provider used during embed_graph.
query *stringSearch string to match against node names.
repo_rootstringRepository root path. Auto-detected if omitted.
traverse_graph_toolBFS/DFS traversal from any node with a token budget
ParameterTypeDescription
depthintegerMax traversal depth (1-6). Default: 3.
modestringTraversal mode: "bfs" (breadth-first) or "dfs" (depth-first). Default: bfs.
query *stringSearch string to find the starting node.
repo_rootstringRepository root path. Auto-detected if omitted.
token_budgetintegerApproximate token limit for results, at most 10000. The walk stops when it runs out. Default: 2000.

Security checks

Static checks derived from the repository 7 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository's README runs to about 7.7K words.
  • ✓License declaredThe repository declares the MIT license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedDependency versions are pinned by uv.lock and code-review-graph-vscode/package-lock.json.
  • !No dynamic code executionScanned 104 source files and found 1 call to eval or shell execution, in code-review-graph-vscode/src/backend/cli.ts:221. Review how tool inputs reach them before granting credentials.

1 check has not been run yet.

What the source scan found

Transport
stdio and Streamable HTTPcode_review_graph/main.py:1725, code_review_graph/main.py:1736
Starts other programs
37 callscode_review_graph/changes.py:156, code_review_graph/changes.py:196, code_review_graph/changes.py:260
Outbound network calls
3 callscode_review_graph/embeddings.py:323, code_review_graph/embeddings.py:485, code_review_graph/embeddings.py:720
Writes or deletes files
67 callscode_review_graph/cli.py:2935, code_review_graph/codex_skill.py:124, code_review_graph/context_history.py:162
Lockfile
uv.lock and code-review-graph-vscode/package-lock.json

Pattern matches on the source text of 104 files: places to read, not proof of what the code does at run time.

Releases

v2.4.0v2.4.0 · 11 Nov 2026[2.4.0] - 2026-11-10 Two new platforms, MiMo Code and DeepSeek Harness, so `install` now supports 18. HTML, XSLT, Liquid, JSON and plain YAML files are indexed, and so are `.cjs` and `.kts` files, which every build used to skip. The graph…
v2.3.9v2.3.9 · 18 Sep 2026[2.3.9] - 2026-09-18 Added `visualize` can draw a neighbourhood instead of the whole repository. The D3 page falls back to one bubble per community past 3000 nodes or 9000 edges, which a shallow clone of django (45,111 nodes, 397,762…
v2.3.8v2.3.8 · 21 Aug 2026Patch release. 85 merged pull requests since v2.3.7, most of them fixes from community reports. Watch mode stops going quiet `watch` was the weakest surface in 2.3.7, and three separate failures could leave the daemon reporting `ok` while…
v2.3.7v2.3.7 · 18 Jul 2026code-review-graph 2.3.7 Maintainer-reconciliation release containing the verified work merged since v2.3.6. The four client-validation drafts remain excluded. No breaking changes. Highlights expanded CLI-first workflows, CommonJS parsing,…
v2.3.6v2.3.6 — community-response release · 10 Jun 2026Community-response release. Built from a full audit of every open PR, issue, and discussion — community fixes merged with credit, verified defects fixed (including two open Windows bugs), benchmark claims made independently checkable, and…

README

The repository's README runs to about 7.7K words, fetched 7 days ago. The original in the repository is authoritative.

Read full README
Questions

About Code Review Graph

How do I install Code Review Graph?

Run uvx code-review-graph, then add the server to your MCP client's configuration.

Is Code Review Graph safe to use with an AI agent?

Its trust score is 88 out of 100 (strong). It passes 4 of the 5 static checks Conduid ran on the repository; it does not pass No dynamic code execution. Conduid's scan of 104 source files found that it serves MCP over stdio and Streamable HTTP, starts other programs (37 calls), makes outbound network calls (3 calls) and writes or deletes files (67 calls). Its dependencies are pinned by uv.lock and code-review-graph-vscode/package-lock.json. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Code Review Graph still maintained?

Yes — the latest release is v2.4.0 (11 Nov 2026), and the last commit was 16 days ago. The repository has 33K stars and 74 open issues.

What tools does Code Review Graph provide?

Conduid read 30 tools from the source: apply_refactor_tool, build_or_update_graph_tool, cross_repo_search_tool, detect_changes_tool, embed_graph_tool, find_large_functions_tool, generate_wiki_tool, get_affected_flows_tool and 22 more. 29 of them publish their parameters, listed under Tools above.

What license is Code Review Graph released under?

The repository declares the MIT license. That applies to the latest release, v2.4.0, as well.