mcp-codexreview

mcp-codexreview

Provides MCP tools to review git changes using OpenAI Codex CLI, enabling code review of unstaged, staged, or last-commit changes.

Category
Visit Server

README

mcp-codexreview

npm version License: MIT

MCP server that runs OpenAI Codex CLI (codex exec) to review git changes. Any MCP client (Claude Code, etc.) can request a Codex-powered code review of unstaged, staged, or last-commit changes.

Prerequisites

  • Node.js 18+
  • @openai/codex CLI installed and available on $PATH
  • Codex configured with an API key (via ~/.codex/config.toml or environment)

Installation

Claude Code

claude mcp add codexreview -- npx -y mcp-codexreview

Claude Desktop

Add to your Claude Desktop configuration (claude_desktop_config.json):

{
  "mcpServers": {
    "codexreview": {
      "command": "npx",
      "args": ["-y", "mcp-codexreview"]
    }
  }
}

Install from Source

git clone https://github.com/signal-slot/mcp-codexreview.git
cd mcp-codexreview
npm install
npm run build
claude mcp add codexreview -- node /path/to/mcp-codexreview/build/index.js

MCP Tools

review_changes

Run Codex to review git changes. Codex reads the diff and provides a thorough code review.

Parameter Type Required Description
type "unstaged" | "staged" | "last_commit" yes Which changes to review
cwd string no Git repo path (default: server working directory)
model string no Override Codex model (e.g. "o3", "gpt-4.1")
instructions string no Additional review focus or instructions

get_diff

Get raw git diff output without invoking Codex.

Parameter Type Required Description
type "unstaged" | "staged" | "last_commit" yes Which changes to diff
path string no Filter to specific file or directory
cwd string no Git repo path

get_changed_files

List changed files with their status (M/A/D/R).

Parameter Type Required Description
type "unstaged" | "staged" | "last_commit" yes Which changes to list
cwd string no Git repo path

How It Works

The review_changes tool spawns codex exec with:

  • -C <cwd> to target the git repo
  • -s read-only sandbox (Codex can read files and run git, but cannot modify)
  • -a on-failure for non-interactive execution
  • --output-last-message <tmpfile> to capture the review text
  • --color never for clean output

The review prompt instructs Codex to run the appropriate git diff command and provide a code review covering correctness, style, performance, security, and improvement suggestions.

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured