codewalk
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@codewalkRun a pre-PR review on my current branch"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Local MCP server that builds a dependency graph of a git repo and uses it for two things:
Structural Q&A — blast radius, cycles, reading order, architecture health, symbol lookup
Pre-PR code review — batched diffs with graph risk context and language/framework rubrics
Your AI agent (Cursor, Claude, Copilot, …) talks to codewalk over MCP. codewalk never calls an LLM and never edits files; the host agent does the reasoning and applies fixes.
How it works
repo on disk
→ tree-sitter parse (13 languages)
→ DuckDB graph (files, imports, symbols, calls)
→ igraph (blast radius, PageRank, betweenness, cycles, shortest paths)
→ MCP tools over stdioGraph lives at
.codewalk/graph.duckdbin the target repo.Review sessions live under
.codewalk/review_sessions/.No vector store, no API keys, no network service — stdio MCP only.
AST languages: Python, JavaScript, TypeScript, Java, Go, Rust, Ruby, C, C++, C#, PHP, Kotlin, Swift.
Related MCP server: better-code-review-graph
🎬 Demo
MCP — Overview
https://github.com/user-attachments/assets/d65d23c6-38bc-4610-b5d0-62669d85e5fd
MCP — Explain Function
https://github.com/user-attachments/assets/252a4738-3a22-4759-94f3-0ac41f7f0c09
MCP — Blast Radius
https://github.com/user-attachments/assets/052fa64b-e421-48ed-b65c-29609e0caf32
MCP — Run Review
https://github.com/user-attachments/assets/de36cdff-610b-4f4b-a422-7cff737fef2f
🔬 Code Review — Powered by the Intelligence Layer
Codewalk's review engine is built on top of the codebase intelligence layer. It doesn't just lint — it understands your architecture, knows what files are risky, and reviews with full context.
How it works
git diff → Static Analysis (graph risk, PageRank, cycles, blast radius)
→ Batch files (token-bounded, grouped by feature)
→ Host LLM reviews each batch with full context
→ Submit findings to disk per batch (JSON + Markdown, context stays clean)
→ Final summary: raw findings grouped by severityYou talk to your IDE agent; the agent calls Codewalk MCP tools. Codewalk does not render UI — each host has its own approve/reject experience (Cursor approval cards, Copilot chat, Claude Code prompts, etc.). The agent must present each fix and wait for your approval through that host UI (or yes/no in chat).
What makes it different
Capability | CodeRabbit / GitHub Copilot Review | Codewalk Review |
Architecture awareness | ❌ No dependency graph | ✅ DuckDB + igraph: PageRank, fan-in, cycles, bottlenecks |
Blast radius | ❌ | ✅ "This file has 23 callers — review with extra care" |
Works without indexing | — | ✅ Just needs a git repo (graph enhances but isn't required) |
Batched for large PRs | Dumps everything at once | ✅ Token-bounded batches, sorted by risk, host LLM stays focused |
Custom rubrics | Limited | ✅ Per-language + per-framework + optional stack context |
Fix application | Suggests only | ✅ Accept/reject → host applies → verify with tests |
Severity levels | varies |
|
Zero-setup review
Review runs on any git repo — no prior codewalk_analyze_codebase needed. The dependency graph is built automatically on first review (~5s) and cached:
Component | Auto (graph-only) |
Git diff + file content | ✅ |
Rubrics + stack detection | ✅ (from file extensions / optional stack context) |
Blast radius, PageRank, cycles | ✅ Built on-the-fly (~5s), then from cached DuckDB |
Neighborhood (callers, related files) | ✅ From the graph |
Severity levels
Level | Value | Meaning |
Blocker |
| Must fix before merge — blocks the PR |
Error |
| Should fix — real bugs, logic errors, security risks |
Suggestion |
| Nice to have — style, naming, minor improvements |
Review target (required)
Review needs an explicit target — codewalk will not assume main/master. If the agent calls review with no target, the tool returns a prompt to ask you which branch to use.
You want | Pass |
Local work on this branch (staged + unstaged + untracked) |
|
Commits + uncommitted work vs a base branch |
|
Staged only |
|
One commit |
|
MCP review flow
codewalk_run_review(target_branch=...)→ session + first batch (diff + risk + rubrics)Host reviews batch →
codewalk_submit_batch_findings(session_id, [...])→ saved to disk as JSON; a Markdown companion is also written for easy readingcodewalk_review_next_batch(session_id)→ next batch (context window is clean)Repeat until all batches done
codewalk_get_review_summary(session_id)→ structured summary of raw findings + verdict guidance (request_changesif any BLOCKING finding, elseapprove)User edits
llm_findings.jsonin the session folder → setsuser_verdicttoaccepted/rejectedper findingcodewalk_accept_and_verify_fix(session_id)returns the accepted findings → the host applies them with its own editing tools, then verifies withcodewalk_run_static_analysis+codewalk_run_tests(Optional)
codewalk_re_review(target_branch=...)→ fresh review that hides previously rejected findings
Finding shape for codewalk_submit_batch_findings:
Field | Required | Notes |
| ✅ |
|
| ✅ |
|
| ✅ | Path relative to repo root |
| ✅ | Short finding title |
| ✅ | Why it matters |
| Optional | |
| Optional | |
| Optional | |
| Bool, default |
An empty findings list is valid (means the batch is clean).
Review & approve fixes (agent + MCP)
Agent runs
codewalk_run_review(returns enriched context for the host LLM to review)Agent reviews each batch and calls
codewalk_submit_batch_findingsAfter all batches:
codewalk_get_review_summaryUser edits
llm_findings.json: setuser_verdicttoacceptedorrejectedfor each findingApply + verify accepted fixes:
codewalk_accept_and_verify_fix(session_id)returns every accepted finding with instructions — the host LLM applies them with its own editing tools, then verifies withcodewalk_run_static_analysis+codewalk_run_tests. Codewalk never edits files over MCP.
Example: @codewalk review my changes against main, then fix each issue only after I approve
Natural-language prompts (review)
"Review my changes for bugs"
Tool: codewalk_run_review — requires an explicit target (see table above)
@codewalk review my changes
@codewalk review my local work
@codewalk_run_review target_branch="current"
@codewalk_run_review target_branch="main"
@codewalk_run_review staged=true target_branch="main"When to use: Before pushing a PR. Codewalk gathers the full diff, neighborhood context, blast radius, and stack signals, then returns them so the host model can perform the review directly — no separate LLM inside codewalk.
"I've addressed the feedback — review again"
Tool: codewalk_re_review
@codewalk I've addressed the feedback — review it again against main
@codewalk_re_review target_branch="main"Starts a fresh session and hides findings you previously rejected.
"Summarize / status of the review"
@codewalk summarize the review findings
@codewalk_get_review_summary <session_id>
@codewalk what's the status of that review session?
@codewalk_get_review_details <session_id>"Apply the fixes I accepted"
@codewalk apply and verify the fixes I accepted
@codewalk_accept_and_verify_fix <session_id>Then the host applies accepted findings and runs:
@codewalk run static analysis on the files I just changed
@codewalk_run_static_analysis <paths>
@codewalk run the tests
@codewalk_run_tests <paths>Review quick reference
You want to... | Just say... |
Review local work on this branch |
|
Review vs a base branch |
|
Review staged only |
|
Re-review after fixes |
|
Accept/reject findings | Edit |
Apply accepted fixes |
|
Run static analysis |
|
Run tests |
|
Prompt cheat sheet (all tools): MCP_EXAMPLES.md.
Install
Python 3.10+.
git clone https://github.com/gupta29470/codewalk-review.git
cd codewalk-review
python -m venv .venv && source .venv/bin/activate
pip install -e .
# or: pip install -r requirements.txt && pip install -e . --no-depsDev tooling:
pip install -e ".[dev]"
# or: pip install -r requirements-dev.txt
pre-commit installMCP setup
Copy mcp.json.example into your host’s config and set cwd to the repo you want analyzed.
Host | Config location / key |
VS Code |
|
Cursor |
|
Claude Desktop |
|
{
"mcpServers": {
"codewalk": {
"command": "python",
"args": ["-m", "codewalk.mcp.server"],
"cwd": "/absolute/path/to/the/repo/you/want/to/analyze"
}
}
}Use the venv’s python if the host won’t see your PATH. Every tool also accepts an optional repo_path to override cwd.
One repo per MCP server process. Codewalk keeps runtime state (graph, repo path) in memory. Pointing the same running MCP server at multiple repos — or rapidly switching workspaces in the same process — can overwrite that state. Use one editor window / one MCP connection per repo. The stdio transport is safe because each connection spawns a separate process.
Typical usage
Analyze / ask about structure
Graph builds automatically on first query (or call
codewalk_analyze_codebase).Ask things like: overview, blast radius of a file, circular deps, reading order, call chain.
Optional once per repo:
codewalk_get_stack_info→ agent saves stack viacodewalk_save_stack_contextfor richer overviews and better review rubrics.
Review changes — see Code Review above.
Tools (25)
Category | Tools |
Setup |
|
Query |
|
Architecture |
|
Stack |
|
Review |
|
Maintenance |
|
MCP tools — index / graph requirements
Tool | Graph required? | Notes |
| Builds/loads | Persistent DuckDB graph |
| No | Creates starter |
Query tools (overview, modules, symbols, …) | Yes | Auto-builds/loads graph |
| Yes | Uses graph data |
| Yes | Graph stats + cycles |
| Soft / Yes | Better with graph; review builds graph on demand |
| Session on disk | Reads persisted session |
| Session on disk | Returns accepted findings; host applies them itself |
| No | ruff/mypy/eslint/etc. |
| No | pytest/npm test/etc. |
Configuration
Optional. Missing config = defaults.
codewalk.yaml— excludes/includes, language overrides, static-analysis and test commands. Generate a starter withcodewalk_generate_config..codewalkignore— gitignore syntax; merged with.gitignore..codewalk/stack_context.json— optional host-written stack metadata (richer overview + better review rubrics).
Example codewalk.yaml:
indexing:
exclude:
- tests/**
- docs/**
- "*.generated.*"
include:
- docs/architecture/**For language/framework-specific review rubrics, place .md files in .codewalk/rubrics/ (e.g. .codewalk/rubrics/python.md, .codewalk/rubrics/python_fastapi.md, .codewalk/rubrics/core.md). These override built-in rubrics.
Adding .codewalk/ to .gitignore
Codewalk stores graph and review data inside each target repo at .codewalk/. This directory should not be committed:
# Codewalk index (auto-generated)
.codewalk/Development
pytest # coverage via pyproject addopts
ruff check src tests
ruff format src tests
mypy --strict src/codewalk
pre-commit run --all-filesCI runs on Python 3.10–3.12 (lint, format, mypy, pytest with ≥90% coverage).
What this is not
Not a knowledge-graph / docs / PDF indexer
Not a vector / embedding search engine
Not a hosted API — no auth, no multi-tenant server
Does not call LLMs or edit your files over MCP
License
MIT (see pyproject.toml)
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseAqualityAmaintenanceA local-first codebase intelligence tool that enables AI assistants to research codebases using semantic search, multi-hop relationship discovery, and structural parsing. It allows users to extract architectural patterns and institutional knowledge across 30+ programming languages through an MCP-compatible interface.Last updated21,388MIT
- AlicenseBqualityAmaintenanceKnowledge graph for token-efficient code reviews. Builds a structural map of your codebase with Tree-sitter, tracks changes incrementally, and gives AI agents precise context via MCP tools. Features fixed multi-word search, qualified call resolution, dual-mode embedding (ONNX local + LiteLLM cloud), and output pagination.Last updated765Apache 2.0
- AlicenseAqualityCmaintenanceCode graph context engine that parses codebases with tree-sitter (170+ languages), builds structural dependency graphs, and provides 24 MCP tools for code intelligence. One prepare_context call gives your AI agent the right files for any task. Includes focus, blast radius, hotspots, dead code detection, and hybrid search.Last updated241AGPL 3.0
- AlicenseBqualityDmaintenanceLocal-first codebase context engine that parses code into a ranked dependency graph and serves it to AI tools via MCP for deep structural understanding.Last updated581MIT
Related MCP Connectors
Repo intel for AI coding agents: overview, PRs, contributors, hot files, CI, deps. Remote MCP.
Enterprise code intelligence for M&A, security audits, and tech debt. Hosted server with 200k free.
AI Agent with Architectural Memory. Impact analysis (free), tests and code from the graph (pro).
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gupta29470/codewalk-review'
If you have feedback or need assistance with the MCP directory API, please join our Discord server