Spawn multiple subagents via Codex-as-MCP
Each subagent runs codex e --full-auto with complete autonomy inside the MCP server's current working directory. Perfect for Plus/Pro/Team subscribers leveraging GPT-5 capabilities.
Use it in Claude Code
There are two tools in codex-as-mcp

You can spawn parallel codex subagents using prompt.

Here's a sample Codex session delegating two tasks in parallel.

Requires Codex CLI >= 0.46.0
npm install -g @openai/codex@latest
codex login
# Verify installation
codex --versionAdd to your .mcp.json:
{
"mcpServers": {
"codex-subagent": {
"type": "stdio",
"command": "uvx",
"args": ["codex-as-mcp@latest"]
}
}
}Or use Claude Desktop commands:
claude mcp add codex-subagent -- uvx codex-as-mcp@latestIf you're configuring Codex CLI directly (for example ~/.config/codex/config.toml), add:
[mcp_servers.subagents]
command = "uvx"
args = ["codex-as-mcp@latest"]spawn_agent(prompt: str)– Spawns an autonomous Codex subagent using the server's working directory and returns the agent's final message.spawn_agents_parallel(agents: list[dict])– Spawns multiple Codex subagents in parallel; each item must include apromptkey and results include either anoutputor anerrorper agent.