Integrates with Google's Gemini CLI to provide comprehensive code reviews, evaluating bugs, edge cases, best practices, and offering detailed improvement suggestions
Integrates with OpenAI's Codex CLI to provide senior-level code reviews, analyzing code quality, security vulnerabilities, performance issues, and providing prioritized recommendations
Review MCP Server
Get a second opinion on your code! This MCP server integrates Codex and Gemini CLIs into Claude Code for thorough, senior-level code reviews.
Quick Start
1. Install
2. Configure Claude Code
Add to ~/.config/claude-code/mcp.json
:
Important: Replace /absolute/path/to
with your actual installation path.
3. Set Up CLI Tools (Optional)
The server works with whichever CLIs you have installed:
For Codex reviews (via OpenAI):
For Gemini reviews:
Or use the setup script: ./setup-gemini.sh
4. Restart Claude Code
That's it! The server will automatically detect which CLIs are available.
How to Use
Just ask Claude naturally:
Claude will:
Send your code to available reviewers (Codex/Gemini)
Collect their feedback
Add its own analysis
Present you with multiple expert perspectives
Available Tools
The server provides four MCP tools Claude can use:
Tool | Description | Example |
| Check which CLIs are available | "What review CLIs do I have?" |
| Review a code snippet | "Review this function: [code]" |
| Review a specific file | "Review src/index.ts" |
| Review all code in a directory | "Review the entire src/ folder" |
You don't need to remember these - just ask Claude naturally!
What You Get
Senior-Level Reviews
The server sends a comprehensive prompt asking reviewers to act as senior engineers and check:
Code Quality - readability, maintainability, best practices
Bugs & Edge Cases - logic errors, error handling gaps
Security - vulnerabilities, input validation, auth issues
Performance - inefficiencies, memory leaks, scalability
Recommendations - prioritized by severity (Critical/High/Medium/Low)
See PROMPT.md for the exact prompt.
Example Review
Your code:
Codex feedback:
Hard-coding credentials is an immediate security risk—anyone with source access can log in, and the password cannot be rotated without redeploying. There is no account locking, auditing, or rate limiting, so brute force attempts go unnoticed. This should be replaced with a secure authentication mechanism that validates credentials against hashed values in a datastore...
Claude's synthesis:
I agree with Codex's assessment. This is a critical security vulnerability. Additionally, I notice... [Claude's insights]
Features
✅ Auto-Detection - Finds available CLIs on startup (no failed attempts) ✅ Senior-Level Prompts - Gets thorough, professional feedback ✅ Review Validation - Automatically validates and filters invalid/unhelpful responses ✅ Parallel Execution - Reviews run simultaneously when both CLIs available ✅ Smart Fallbacks - Works with one or both reviewers ✅ Generous Timeouts - 5 minutes per review for complex code ✅ Multiple Review Modes - Snippets, files, or entire directories
Supported Languages
Automatically detects and reviews:
.js
.ts
.jsx
.tsx
.py
.rb
.go
.java
.c
.cpp
.cs
.php
.swift
.kt
.rs
Troubleshooting
"No review CLIs available"
Run in Claude Code: "Check CLI status"
This shows which CLIs are installed. Install at least one:
Codex:
codex --version
(if you have codex-cli)Gemini:
npm install -g @google/gemini-cli
Reviews timing out
The server allows 5 minutes per review. If still timing out:
Check internet connection
Verify API keys are valid
Try reviewing smaller chunks of code
API Keys not working
Make sure keys are set in your environment:
Add to your ~/.bashrc
or ~/.zshrc
to persist:
More Documentation
QUICKSTART.md - 5-minute setup guide
EXAMPLES.md - Real usage examples with sample reviews
PROMPT.md - Detailed prompt engineering explanation
VALIDATION.md - How review validation works
TESTING.md - Test results and CLI detection info
CHANGELOG.md - Recent improvements
Development
Watch mode for live rebuilding:
How It Works
License
MIT
Contributing
Issues and PRs welcome at https://github.com/je4550/review-mcp
local-only server
The server can only run on the client's local machine because it depends on local resources.
Enables Claude to perform thorough code reviews by integrating with Codex and Gemini CLIs to provide senior-level feedback on code quality, security, performance, and best practices. Supports reviewing code snippets, individual files, or entire directories with automatic detection of available review tools.