cd /news/ai-agents/running-automated-code-reviews-insid… · home › topics › ai-agents › article
[ARTICLE · art-176199] src=dev.to ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Running Automated Code Reviews Inside Claude Code and Cursor via Stdio MCP

CodePeel released a local Model Context Protocol server, @codepeelai/codepeel, that plugs automated code review into Claude Code, Cursor, Cline and Roo over stdio via npx, opening no network ports. The server exposes four tools — review_code, fix_code, ask_codepeel and check_credits — plus credit-free queries of past PR reviews, and supports either a cpk_ API token or an interactive OAuth 2.0 PKCE flow bound to 127.0.0.1. The MCP server source is open on GitHub, and the company offers 30 free reviews per month.

key takeaway

Adding CodePeel's stdio MCP server via `claude mcp add codepeel --env CODEPEEL_TOKEN=... -- npx -y @codepeelai/codepeel` gives coding agents review_code, fix_code, ask_codepeel and check_credits tools that run locally without opening network ports.

by read2 min views2 publishedNov 25, 2026

Waiting for a GitHub Actions runner or PR webhook after you push slows down your feedback loop. When you work alone, catching a security bug or regression before git commit saves you a round-trip.

You can wire CodePeel directly into Claude Code, Cursor, Cline, or Roo using its local Model Context Protocol server (@codepeelai/codepeel). The server runs over standard I/O ( stdio) as a child process via npx, so it opens zero network ports on your machine.

You need Node.js 18+ and a cpk_ API token from your CodePeel MCP settings (or you can use browser PKCE OAuth, covered below).

On macOS or Linux:

claude mcp add codepeel --env CODEPEEL_TOKEN=cpk_your_token_here -- npx -y @codepeelai/codepeel

On Windows PowerShell:

claude mcp add codepeel --env CODEPEEL_TOKEN=cpk_your_token_here "--" npx -y @codepeelai/codepeel

That writes a standard mcpServers block you can also drop into Cursor or Cline:

{
  "mcpServers": {
    "codepeel": {
      "command": "npx",
      "args": ["-y", "@codepeelai/codepeel"],
      "env": {
        "CODEPEEL_TOKEN": "cpk_your_token_here"
      }
    }
  }
}

Restart Claude Code and run /mcp to verify the connection.

If you run automated scripts or CI checks, pass CODEPEEL_TOKEN in the env block. Invalid or expired tokens fail fast with an explicit error message.

If you omit CODEPEEL_TOKEN, the server runs an interactive OAuth 2.0 PKCE flow on the first tool call:

S256 challenge.127.0.0.1:<PORT> and opens your browser. Binding to 127.0.0.1 avoids opening external firewall ports or setting up reverse proxies.

Once connected, the agent gets four live review tools:

Tool Required Input What It Does
review_code diff Scans a unified diff for bugs, OWASP flaws, and regressions
fix_code file ,issue Generates a concrete patch for a flagged issue
ask_codepeel question Answers architecture questions using diff context
check_credits (none) Checks remaining monthly allowance without spending credits

In practice, your agent stages a change, runs git diff --cached, sends the diff to review_code, and reads the structured findings. You can also query past PR reviews across repos without spending credits using search_reviews, get_review, search_findings, and get_review_analytics.

The MCP server source is open at codepeel/mcp-server. You can read the full setup guide on the CodePeel blog or test it on private repos with 30 free reviews/month at codepeel.com.

── more in #ai-agents 4 stories · sorted by recency
── more on @codepeel 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/running-automated-co…] indexed:0 read:2min 2026-11-25 · —