Codex Agent
БесплатноНе проверенEnables Claude Code, Cursor, and other AI tools to call OpenAI Codex for task execution, with safe and writable modes.
Описание
Enables Claude Code, Cursor, and other AI tools to call OpenAI Codex for task execution, with safe and writable modes.
README
Note: This project is a fork of the current Git remote:
Enable Claude Code, Cursor and other AI tools to call Codex for task execution. Plus/Pro/Team subscribers can maximize GPT-5 usage without additional costs.
Setup
1. Install Codex CLI
npm install -g @openai/codex
codex login
2. Configure MCP
Add to your .mcp.json:
Safe Mode (Default):
{
"mcpServers": {
"codex": {
"type": "stdio",
"command": "uvx",
"args": ["codex-mcp-agent@latest"]
}
}
}
Writable Mode:
{
"mcpServers": {
"codex": {
"type": "stdio",
"command": "uvx",
"args": ["codex-mcp-agent@latest", "--yolo"]
}
}
}
Or use Claude Code commands:
# Safe mode (default)
claude mcp add codex-mcp-agent -- uvx codex-mcp-agent@latest
# Writable mode
claude mcp add codex-mcp-agent -- uvx codex-mcp-agent@latest --yolo
Tools
The MCP server exposes two tools:
codex_execute(prompt, work_dir)- General purpose codex executioncodex_review(review_type, work_dir, target?, prompt?)- Specialized code review
If you have any other use case requirements, feel free to open issue.
HTTP/SSE Mode (Optional)
For local personal use, you can run the server over HTTP with Server-Sent Events (SSE) and connect via type: "sse".
Start the server in SSE mode:
uvx codex-mcp-agent@latest --sse # safe mode, localhost:8822
uvx codex-mcp-agent@latest --sse --yolo # writable mode
# Options
# --host (default: 127.0.0.1)
# --port (default: 8822)
Configure your client .mcp.json:
{
"mcpServers": {
"codex": {
"type": "sse",
"url": "http://127.0.0.1:8822"
}
}
}
Notes:
- SSE mode keeps the same Safe/Writable behavior controlled by
--yolo. - SSE server binds to
127.0.0.1by default and has no auth/CORS for simplicity. - Stdio mode remains the default; use
--sseonly if you prefer HTTP.
Optional: Streamable HTTP transport (if your client supports it):
uvx codex-mcp-agent@latest --http # safe mode streamable-http transport
Safety
- Safe Mode: Default read-only operations protect your environment
- Writable Mode: Use
--yoloflag when you need full codex capabilities - Sequential Execution: Prevents conflicts from parallel agent operations
Установка Codex Agent
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/1WorldCapture/codex-as-mcpFAQ
Codex Agent MCP бесплатный?
Да, Codex Agent MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Codex Agent?
Нет, Codex Agent работает без API-ключей и переменных окружения.
Codex Agent — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Codex Agent в Claude Desktop, Claude Code или Cursor?
Открой Codex Agent на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Codex Agent with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
