codex-subagent-mcp
Enables Claude Code to delegate coding tasks—investigation, review, long-running background jobs, and optional file edits—to a locally installed OpenAI Codex CLI, with the model and reasoning effort chosen per task and read-only execution by default. Follow-up requests reuse Codex's existing context, and write-enabled delegations can be confined to a managed git worktree so the user's own checkout stays untouched.
安装
npx -y codex-subagent-mcp
把上面的配置写入 MCP 客户端的配置文件(Claude Desktop 为 claude_desktop_config.json),重启客户端后生效。
{
"mcpServers": {
"codex-subagent-mcp": {
"command": "npx",
"args": [
"-y",
"codex-subagent-mcp"
],
"env": {
"CODEX_BIN": "<CODEX_BIN>",
"CODEX_SUBAGENT_MAX_EFFORT": "<CODEX_SUBAGENT_MAX_EFFORT>",
"CODEX_SUBAGENT_MAX_SANDBOX": "<CODEX_SUBAGENT_MAX_SANDBOX>",
"CODEX_SUBAGENT_DEFAULT_MODEL": "<CODEX_SUBAGENT_DEFAULT_MODEL>",
"CODEX_SUBAGENT_ALLOWED_MODELS": "<CODEX_SUBAGENT_ALLOWED_MODELS>",
"CODEX_SUBAGENT_DEFAULT_EFFORT": "<CODEX_SUBAGENT_DEFAULT_EFFORT>"
}
}
}
}把上面的配置写入 MCP 客户端的配置文件(Claude Desktop 为 claude_desktop_config.json),重启客户端后生效。
数据来源:公开的 MCP Server 目录。本站为独立第三方目录,与各 MCP Server 维护方均无隶属或背书关系;名称与简介如实标注,介绍文案由本站再加工。