Codex

•
2
•

Integrates the OpenAI Codex CLI into an MCP server for structured code reviews, inline questions, and custom prompt execution.

Codex-MCP provides a powerful interface to the OpenAI Codex CLI, enabling developers to enhance their workflow with AI-driven insights. It offers three core tools: 'codex_ask' for asking inline questions and receiving instant AI responses within your conversation context; 'codex_review' for performing automated, structured code reviews that identify bugs, security vulnerabilities, and correctness issues in git diffs; and 'codex_exec' for sending raw prompts to Codex with fine-grained control, including support for custom JSON schemas. This tool streamlines code analysis and feedback, making AI a seamless part of your development process.

主要功能

01Automatic model fallback for resilience (e.g., gpt-5.3-codex → gpt-5.2-codex)
021 GitHub stars
03Robust timeout handling with SIGTERM → SIGKILL escalation
04Execute raw prompts to Codex with full control and custom output schemas
05Ask inline questions to Codex with conversation context
06Review git diffs for bugs, security, and correctness with structured JSON output

使用案例

01Automating code reviews to detect security vulnerabilities and logic errors in code changes
02Sending custom prompts to Codex for specialized code analysis or generation tasks
03Receiving instant, AI-generated answers to coding questions within a development conversation