cursor-reviewer-mcp
MCPサーバー「cursor-reviewer」。Claude Code から cursor.review または codex.review ツールを呼び出し、Cursor CLI(GPT‑5)または Codex CLI でレビューを実行し、レビューJSONのみを返します。仕様は 1.specs/spec.md(v3)に準拠しています。
概要
ツール名:
cursor.review,codex.review入力:
targets,reference,review_request,timeout_ms(オプション),policy(予約・null固定)実装: Node.js + TypeScript + MCP SDK(
@modelcontextprotocol/sdk)Cursor実行:
cursor-agent -p --model gpt-5 --output-format json "<プロンプト>"Codex実行:
codex exec "<プロンプト>"出力: 各CLIの出力からレビューJSONのみを抽出し返却
監査:
reviews/YYYYMMDD-HHMMSS.jsonにレビューJSONを保存
ディレクトリ構成
セットアップ
Node.js 22 LTS を用意(推奨)
nvm利用時:nvm use(本リポジトリは.nvmrcで 22 を指定)
依存インストール(任意のパッケージマネージャ)
ビルド
実行(MCPサーバーとして stdio で起動)
Claude Code への登録例(プロジェクトスコープ)
環境変数
通常は不要です。
cursor-agentやcodexが既にローカル設定済みであれば、環境変数は不要です。特殊な環境(CI 等)で
cursor-agentが環境変数経由の認証を要求する場合のみ、CURSOR_API_KEYを設定してください。Codex CLI のパスを明示する場合は
REVIEWER_MCP_CODEX_BIN、追加フラグはREVIEWER_MCP_CODEX_FLAGSを設定します(シェル風の記法で引用可、例:--model "gpt 4" --quiet)。スキーマを差し替える場合は
REVIEWER_MCP_SCHEMA_DIR(ディレクトリを指定)、または個別にREVIEWER_MCP_CURSOR_SCHEMA_PATH/REVIEWER_MCP_CODEX_SCHEMA_PATHを指定します。JSON以外の出力を許容する場合のみ
REVIEWER_MCP_ALLOW_PLAINTEXT_FALLBACK=1を設定します(デフォルトは厳格にJSONのみ)。
ツール仕様(要点)
入力スキーマは
src/schemas/*.review.input.schema.jsonに定義。targets[].pathが存在しない場合はエラーを返却。CursorはトップレベルJSONの
resultからレビューJSONを抽出、Codexは標準出力から直接抽出(失敗時1回だけ再実行)。各実行のレビューJSONは
reviews/にタイムスタンプ名で保存。
注意
このリポジトリにはSDK等の依存は含まれていません。
npm iで取得してください。Cursor CLI(
cursor-agent)および Codex CLI(codex)がPATHに存在する必要があります。
ライセンス
本リポジトリは MIT License です。詳細は
LICENSEを参照してください。
This server cannot be installed
local-only server
The server can only run on the client's local machine because it depends on local resources.
Enables code review through Cursor CLI integration with GPT-5. Provides a cursor.review tool that executes code reviews and returns structured JSON results with automatic audit logging.
Related MCP Servers
- -security-license-qualityAn AI-powered development toolkit for Cursor providing intelligent coding assistance through advanced reasoning, UI screenshot analysis, and code review tools.Last updated -487337MIT License
- -security-license-qualityA code review tool for Cursor IDE that uses OpenAI's GPT models to provide intelligent code analysis and suggestions.Last updated -3
- -security-license-qualityA server that integrates with Cursor IDE to provide code review functionality for Azure repositories, enabling AI-powered pull request analysis and feedback.Last updated -2
- -security-license-qualityProvides integration with Gerrit code review system, allowing AI assistants to fetch change details and compare patchset differences for code reviews.Last updated -27