Co-dev review MCP
co-dev-review is an MCP server for AI-assisted senior code review, ticket planning, and Sonar triage with human-approved actions.
Review GitLab MRs, GitHub PRs, or local changes in an isolated worktree, including compiler/linter/test runs and call-site/blast-radius checks.
Draft, revise, preview, approve, and publish inline review comments or thread replies; re-review only what changed and resolve fixed threads.
Inspect pipelines and SonarQube quality gates, issues, coverage, duplication, and hotspots; explain failures and help fix code.
Turn Azure DevOps, Jira, or GitHub Issues tickets into estimated implementation/test tasks and create them after approval.
Bulk-size and review multiple MRs/PRs or decompose multiple tickets with per-item effort guidance.
Work with any MCP client/LLM, using chat, form, browser, or terminal approval; nothing is posted without user approval.
Allows reviewing GitHub pull requests: fetches PR details, diffs, and full file context, validates inline comment anchors against the PR head commit, and publishes approved comments as individual review comments (no formal APPROVE/REQUEST_CHANGES verdict).
Allows reviewing colleagues' GitLab merge requests: reads MR metadata, patches, full file context, and existing discussions, validates inline comment anchors against added/deleted lines (preserving both paths on renames), and posts comments as individual discussions once a draft is approved.
Reads SonarCloud analysis results for a configured project key and token, feeding static-analysis findings into the review workflow via the review_sonar tool. Read-only: no Sonar issue-status mutation is exposed.
Reads SonarQube (or SonarCloud) analysis results for a configured project key and token, feeding static-analysis findings into the review workflow via the review_sonar tool. Read-only: no Sonar issue-status mutation is exposed.
Click on "Deploy 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., "@Co-dev review MCP review MR !42 against ticket PROJ-123 and draft inline comments"
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.
co-dev-review
A senior code reviewer for your AI assistant. co-dev-review is an MCP server that lets Claude Code, Codex, GitHub Copilot, Cursor, Antigravity or any other MCP client review merge requests the way an experienced colleague would. It runs your compiler and linters, checks the callers outside the diff, traces edge cases and algorithmic cost, and posts only the comments you approve.
It also turns Azure DevOps, Jira or GitHub tickets into estimated tasks and helps triage SonarQube results.
You: Review MR 306 against ticket 54639, comments in French.
Assistant: checks out MR 306 in a separate worktree · runs tsc + eslint · lists 14 callers outside the diff
· reviews 31 hunks with the correctness, complexity, design, test and React rubrics
→ 2 blockers (confirmed), 3 majors, 1 question
[approval form: tick what to post] → 5 comments posted on GitLabWhy it is different
It checks the evidence, not only the diff. Each MR/PR is checked out in its own git worktree, without touching your branch. The repository's own TypeScript compiler, ESLint and
dotnet buildrun there, the unit tests related to the change run too, and every call site of a changed symbol outside the diff is listed.It's light on context. Responses are compact and shaped for review, without the providers' raw payloads. Mechanical steps can run on a cheaper subagent, so the reviewer's context is kept for the code.
It reviews like a senior. Rubrics for correctness (edge cases traced through each function, guarantees lost in removed lines), complexity (realistic n, derived Big O), design (duplicated helpers, smells that cause bugs) and tests are applied to every change. React/TypeScript, .NET, security and build rubrics add the specifics.
It can't skip work silently. Every changed hunk needs a verdict. The compiler and call-site passes must have run on the exact commit under review, or the draft must say why they were skipped. A blocker must be
confirmed.Nothing is posted without you. You approve each draft in the chat (
approve all except R2), or, if you prefer, in a form, a local browser page or the terminal. Your words are recorded with the approval.It works with any LLM. The server has no model dependency, and every MCP client works. Tool arguments are flat and forgiving (an MR URL, a bare number or a short draft id are all accepted), the schema avoids the constructs Gemini-based clients reject, and every result says what to do next, so a smaller model doesn't have to remember a long prompt.
It wastes few calls. A wrong call gets one error listing everything to fix. A guessed file path is resolved to the file that exists. The server finds its own compiler and test runs instead of making the model carry ids around.
Related MCP server: MCP Code Review Server
Quick start
Requirements: Node.js 20.20.2 or later, and git.
git clone https://github.com/MohamedAmineBoufares/co-dev-review.git
cd co-dev-review
npm ci
npm run setupnpm run setup asks for your tokens, checks them, registers the server in every assistant it finds on your machine, and links the review skills. Restart your assistant, then ask:
List the tools from co-dev-review.
You should see review_work, plan_ticket_tasks and review_sonar. Details: Configuration.
What you need to configure
Fill in only what you use:
To… | Configure |
Review GitLab merge requests |
|
Review GitHub pull requests |
|
Run the compiler, linters and call-site search |
|
Read tickets and create tasks in Azure DevOps |
|
… in Jira |
|
… in GitHub Issues |
|
Read Sonar results |
|
Use it
/co-dev: one command for everything
Type /co-dev followed by what you want. The assistant becomes co-dev for the rest of the conversation, until you say co-dev off.
You type | What happens |
| Full review of MR/PR 123, comments in French (a URL works too) |
| Re-review: only what changed since your last draft, and whether each earlier comment was addressed |
| Review your branch before pushing; nothing is posted |
| Sort the open review threads, then draft your replies |
| Why the pipeline is red, with |
| Quality gate, issues and hotspots |
| Explain, plan, test ( |
| Every open MR/PR (or the numbers you list): each is sized, then reviewed by its own subagent on a model that fits its effort |
| Several tickets decomposed the same way, one merged table of tasks |
| Lists the above and asks |
In bulk mode the subagents only read and report; you still approve every draft yourself. See Bulk.
It is /co-dev in Claude Code, Codex and Copilot, where the skills are linked; /co-dev-review:co-dev when loaded as a Claude Code plugin; and the co-dev prompt in any other MCP client (/mcp__co-dev-review__co-dev in Claude Code, + → co-dev-review in Claude Desktop).
Or just ask
Talk to your assistant normally:
Review MR 123 against ticket 456. Comments in French; let me skip non-blockers.
Re-review MR 123: what changed since my last comments?
Reply to the open threads on my MR 130 and resolve the ones I fixed.
Review my local branch against origin/develop before I push. Don't post anything.
Split ticket 456 into implementation and test tasks with hour estimates.
List my open Azure tickets in the current iteration.
Check Sonar for MR 123 and fix the issues in my checkout.
In assistants that load skills (Claude Code, Codex, Copilot), the review-mr skill runs the complete sequence: just ask for a review, or invoke it directly (/review-mr 123 fr; /co-dev-review:review-mr 123 fr when loaded as a Claude Code plugin).
Starting a session from a template
Each task has a ready-made opening message: who the assistant is, its rules, the steps and the expected answer. Use them as slash commands (/mcp__co-dev-review__review-mr 306 fr in Claude Code), or print one to paste anywhere:
co-dev-review template explain-ticket ticket=PROJ-123The templates: co-dev, review-mr, address-threads, review-local, plan-ticket, explain-ticket, qa-ticket, fix-sonar, fix-pipeline and work-ticket. You can override them or add your own: see Templates.
Approving what gets posted
When the comments or tasks are ready, the assistant shows them right in the chat. Each one shows its severity, file:line, the code it lands on and the text. You reply:
approve all except R2
Only what you named is posted. You can also say approve R1 R3, add later to approve without posting, or ask to reword an item first. The preview also tells you whether the compiler, linters and tests ran, how many hunks were claimed clean in bulk, and whether a comment sits next to a thread someone already opened. What you leave out is remembered, so the next review of the project doesn't raise the same kind of point. If you'd rather approve outside the chat (a form, a local browser page or the terminal), set REVIEW_APPROVAL. See Approval and safety.
Before a review, the assistant also asks how deep to go: diff only (fast, cheap) or a local worktree with the compiler, linters and tests. For a worktree, it asks which package manager to use; when the MR doesn't touch dependencies, your own node_modules are linked in seconds.
Supported assistants
npm run setup registers the server automatically in:
Assistant | Skills linked |
Claude Code (CLI and IDE extensions) | yes |
Claude Desktop | no (rubrics are served over MCP) |
Codex (CLI, app, IDE extension) | yes |
VS Code with GitHub Copilot | yes |
GitHub Copilot CLI | yes |
Cursor | no (rubrics are served over MCP) |
Windsurf | no (rubrics are served over MCP) |
Google Antigravity | no (rubrics are served over MCP) |
Gemini CLI | no (rubrics are served over MCP) |
Any other MCP client works with a manual entry from examples/.
Commands
Command | What it does |
| Configure, check, register in assistants, link skills |
| Check credentials and connectivity (read-only) |
| Approve a draft in the terminal |
| List drafts and their state |
| List or safely remove review worktrees |
| Print a conversation template, filled in |
| Show what the last reviews actually did |
| Failure rate of each step, drafts saved at the first attempt, most frequent errors |
| Remove the registrations and skill links |
| All commands and options |
co-dev-review becomes available in any terminal once installed globally; setup offers to do it. In this folder, npm run doctor and npm run approve work too.
Documentation
How a review works: rubrics, worktree, compiler pass, blast radius, coverage ledger, evidence rules, trace
Configuration: every setting, where state lives, assistant registration, corporate proxies
Approval and safety: approval modes, what the model can and cannot do, failure recovery
Templates: conversation starters per task, and how to write your own
Tool reference: the MCP tools and their steps, for client implementers
Project layout
src/ MCP server, CLI and providers (GitLab, GitHub, Azure DevOps, Sonar)
skills/ review rubrics as SKILL.md files (review-mr is the entry point)
templates/ conversation starters per task, served as MCP prompts
docs/ documentation
examples/ manual MCP client configuration
test/ node:test suite; never calls real servicesDevelopment
npm run verify # static checks, then the test suite
npm run tools # start a temporary server and list its tools and steps
npm run schema # also report the JSON Schema constructs each tool usesTests cover MCP stdio discovery and validation, provider request contracts against mock HTTP, approval selection, expiry and tampering, the in-chat and browser approval paths, stale heads, uncertain writes, locks, diff anchors, the hunk ledger, coverage gaps, deterministic evidence and rubric routing.
License
Available Tools
3 toolsplan_ticket_tasksADestructive
step is one of: search, read, batch, prepare, request_approval, approve, revise, view_draft, publish. Works with Azure DevOps, Jira and GitHub Issues. Turn a ticket into clear implementation and testing tasks with estimated hours, created under it after approval (Azure child Tasks, Jira sub-tasks, GitHub sub-issues). Use step=search to find tickets: WIQL or a saved query id for Azure, JQL or a filter id for Jira, a search query for GitHub. step=read returns the ticket, its children and discussion. step=prepare saves the plan for approval. step=batch sizes several tickets for a bulk decomposition.
Inputs: full, step, text, wiql, +14 more.
review_sonarARead-onlyIdempotent
Inspect a PR/MR and its Sonar quality gate, coverage, duplication, issues and hotspots together. The assistant explains failures and, when asked, fixes code using its local editing/testing tools. Supply ruleKey for remediation details or filePath (and lines) for source context. Use review_work read for the diff. This tool reads evidence; a new Sonar analysis is needed to confirm a fix.
Inputs: target (required), full, page, lines, +3 more.
review_workADestructive
step is one of: read, read_file, find, rubric, pipeline, checkout, checks, blast_radius, tests, verify, batch, prepare_comments, prepare_replies, request_approval, approve, revise, view_draft, publish. Review local changes before pushing, or a GitLab MR / GitHub PR. For several at once, step=batch sizes each one and says which model effort it needs. Start with step=read and follow the "next" field of each result; an error lists everything to fix. The assistant examines the code and drafts French/English comments; nothing is posted until the user approves the saved draft. These steps support one review; they are not separate tools.
Inputs: ref, base, mode, only, +31 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
The three tools map to mostly distinct workflows: general review/publish, ticket task planning, and Sonar evidence inspection. review_work and review_sonar overlap around PR/MR review, but the descriptions clarify that Sonar is for quality-gate evidence and review_work is for the broader diff/review flow.
All tools use snake_case and are verb-first, giving a predictable pattern. The main deviation is that review_work is vague and plan_ticket_tasks is a three-part name, but the convention remains readable.
Three tools is within the appropriate range for this server, and each earns its place by covering a separate workflow. However, review_work is a very coarse mega-tool with many embedded steps, which makes the count compact but somewhat overloaded.
The surface covers the full review lifecycle: reading changes, checks, tests, drafting comments/replies, approval, revision, and publishing. Ticket planning also includes search/read/batch/prepare/approval/draft/publish, and Sonar inspection adds quality-gate, coverage, duplication, issue, and hotspot evidence.
Maintenance
Related MCP Connectors
AI-native git hosting — repos, PRs, issues, CI gates, and AI code review over MCP (60 tools).
AI code review for GitHub PRs with an MCP autofix loop for Claude Code and Cursor
GitHub Copilot MCP: code, repo, PR, workflow tools for AI assistants.
Team memory for AI coding agents and code reviews, reviewed by humans and served over MCP.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables code review operations on GitHub and GitLab, including fetching pull/merge requests, viewing diffs, adding comments, analyzing code quality, and creating merge requests directly from your MCP client.155 npm4MIT
- FlicenseNot gradedqualityDmaintenanceEnables automated AI-powered code review for pull requests across GitHub, GitLab, Bitbucket, and Azure DevOps via webhooks, and manual code review through MCP tools using Groq, Claude, or GPT-4.1-
- FlicenseNot gradedqualityCmaintenanceEnables manual review of GitLab Merge Requests and GitHub Pull Requests, loading context, generating comment previews, and preparing commit-based fixes for unresolved threads. Every write — comments, replies, and commits — requires explicit user confirmation and an approved preview before it is published.-
- AlicenseNot gradedqualityCmaintenanceEnables pull request review, risk rating, and improvement suggestions directly inside MCP clients by pasting a GitLab/GitHub URL; it can post review comments back to the PR/MR.1MIT