Delegate coding tasks to the OpenAI Codex CLI, installed separately, with explicit model and effort.
Connect Runs on your machine
claude mcp add codex-subagent-mcp -e CODEX_SUBAGENT_MAX_DELEGATIONS_PER_HOUR=<CODEX_SUBAGENT_MAX_DELEGATIONS_PER_HOUR> -e CODEX_SUBAGENT_MAX_BACKGROUND_JOBS=<CODEX_SUBAGENT_MAX_BACKGROUND_JOBS> -e CODEX_SUBAGENT_USAGE_LOG=<CODEX_SUBAGENT_USAGE_LOG> -e CODEX_SUBAGENT_DEFAULT_MODEL=<CODEX_SUBAGENT_DEFAULT_MODEL> -e CODEX_SUBAGENT_DEFAULT_EFFORT=<CODEX_SUBAGENT_DEFAULT_EFFORT> -e CODEX_SUBAGENT_ALLOWED_MODELS=<CODEX_SUBAGENT_ALLOWED_MODELS> -e CODEX_SUBAGENT_DEFAULT_SANDBOX=<CODEX_SUBAGENT_DEFAULT_SANDBOX> -e CODEX_SUBAGENT_MAX_SANDBOX=<CODEX_SUBAGENT_MAX_SANDBOX> -e CODEX_SUBAGENT_MAX_EFFORT=<CODEX_SUBAGENT_MAX_EFFORT> -e CODEX_SUBAGENT_MCP_SERVERS=<CODEX_SUBAGENT_MCP_SERVERS> -e CODEX_SUBAGENT_PLUGINS=<CODEX_SUBAGENT_PLUGINS> -e CODEX_SUBAGENT_APPS=<CODEX_SUBAGENT_APPS> -e CODEX_BIN=<CODEX_BIN> -- npx -y [email protected]
{
"mcpServers": {
"codex-subagent-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"CODEX_SUBAGENT_MAX_DELEGATIONS_PER_HOUR": "<CODEX_SUBAGENT_MAX_DELEGATIONS_PER_HOUR>",
"CODEX_SUBAGENT_MAX_BACKGROUND_JOBS": "<CODEX_SUBAGENT_MAX_BACKGROUND_JOBS>",
"CODEX_SUBAGENT_USAGE_LOG": "<CODEX_SUBAGENT_USAGE_LOG>",
"CODEX_SUBAGENT_DEFAULT_MODEL": "<CODEX_SUBAGENT_DEFAULT_MODEL>",
"CODEX_SUBAGENT_DEFAULT_EFFORT": "<CODEX_SUBAGENT_DEFAULT_EFFORT>",
"CODEX_SUBAGENT_ALLOWED_MODELS": "<CODEX_SUBAGENT_ALLOWED_MODELS>",
"CODEX_SUBAGENT_DEFAULT_SANDBOX": "<CODEX_SUBAGENT_DEFAULT_SANDBOX>",
"CODEX_SUBAGENT_MAX_SANDBOX": "<CODEX_SUBAGENT_MAX_SANDBOX>",
"CODEX_SUBAGENT_MAX_EFFORT": "<CODEX_SUBAGENT_MAX_EFFORT>",
"CODEX_SUBAGENT_MCP_SERVERS": "<CODEX_SUBAGENT_MCP_SERVERS>",
"CODEX_SUBAGENT_PLUGINS": "<CODEX_SUBAGENT_PLUGINS>",
"CODEX_SUBAGENT_APPS": "<CODEX_SUBAGENT_APPS>",
"CODEX_BIN": "<CODEX_BIN>"
}
}
}
}
{
"mcpServers": {
"codex-subagent-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"CODEX_SUBAGENT_MAX_DELEGATIONS_PER_HOUR": "<CODEX_SUBAGENT_MAX_DELEGATIONS_PER_HOUR>",
"CODEX_SUBAGENT_MAX_BACKGROUND_JOBS": "<CODEX_SUBAGENT_MAX_BACKGROUND_JOBS>",
"CODEX_SUBAGENT_USAGE_LOG": "<CODEX_SUBAGENT_USAGE_LOG>",
"CODEX_SUBAGENT_DEFAULT_MODEL": "<CODEX_SUBAGENT_DEFAULT_MODEL>",
"CODEX_SUBAGENT_DEFAULT_EFFORT": "<CODEX_SUBAGENT_DEFAULT_EFFORT>",
"CODEX_SUBAGENT_ALLOWED_MODELS": "<CODEX_SUBAGENT_ALLOWED_MODELS>",
"CODEX_SUBAGENT_DEFAULT_SANDBOX": "<CODEX_SUBAGENT_DEFAULT_SANDBOX>",
"CODEX_SUBAGENT_MAX_SANDBOX": "<CODEX_SUBAGENT_MAX_SANDBOX>",
"CODEX_SUBAGENT_MAX_EFFORT": "<CODEX_SUBAGENT_MAX_EFFORT>",
"CODEX_SUBAGENT_MCP_SERVERS": "<CODEX_SUBAGENT_MCP_SERVERS>",
"CODEX_SUBAGENT_PLUGINS": "<CODEX_SUBAGENT_PLUGINS>",
"CODEX_SUBAGENT_APPS": "<CODEX_SUBAGENT_APPS>",
"CODEX_BIN": "<CODEX_BIN>"
}
}
}
}
{
"servers": {
"codex-subagent-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"CODEX_SUBAGENT_MAX_DELEGATIONS_PER_HOUR": "<CODEX_SUBAGENT_MAX_DELEGATIONS_PER_HOUR>",
"CODEX_SUBAGENT_MAX_BACKGROUND_JOBS": "<CODEX_SUBAGENT_MAX_BACKGROUND_JOBS>",
"CODEX_SUBAGENT_USAGE_LOG": "<CODEX_SUBAGENT_USAGE_LOG>",
"CODEX_SUBAGENT_DEFAULT_MODEL": "<CODEX_SUBAGENT_DEFAULT_MODEL>",
"CODEX_SUBAGENT_DEFAULT_EFFORT": "<CODEX_SUBAGENT_DEFAULT_EFFORT>",
"CODEX_SUBAGENT_ALLOWED_MODELS": "<CODEX_SUBAGENT_ALLOWED_MODELS>",
"CODEX_SUBAGENT_DEFAULT_SANDBOX": "<CODEX_SUBAGENT_DEFAULT_SANDBOX>",
"CODEX_SUBAGENT_MAX_SANDBOX": "<CODEX_SUBAGENT_MAX_SANDBOX>",
"CODEX_SUBAGENT_MAX_EFFORT": "<CODEX_SUBAGENT_MAX_EFFORT>",
"CODEX_SUBAGENT_MCP_SERVERS": "<CODEX_SUBAGENT_MCP_SERVERS>",
"CODEX_SUBAGENT_PLUGINS": "<CODEX_SUBAGENT_PLUGINS>",
"CODEX_SUBAGENT_APPS": "<CODEX_SUBAGENT_APPS>",
"CODEX_BIN": "<CODEX_BIN>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
CODEX_SUBAGENT_MAX_DELEGATIONS_PER_HOUROptional | Delegation and follow-up processes per rolling hour: decimal integer 1 to 9007199254740991; unset means unrestricted. In memory per server; probes never count. |
CODEX_SUBAGENT_MAX_BACKGROUND_JOBSOptional | Cap on running background jobs: decimal integer 1 to 8 (default 8). Blocking calls do not use this cap. |
CODEX_SUBAGENT_USAGE_LOGOptional | Opt-in local usage log: on or off (default off). Records counts and settings, never prompts, code or paths; labels are caller text. |
CODEX_SUBAGENT_DEFAULT_MODELOptional | Model used when a call names none. Unset: the only entry of a single-entry CODEX_SUBAGENT_ALLOWED_MODELS, otherwise a call without a model is refused with a suggestion. |
CODEX_SUBAGENT_DEFAULT_EFFORTOptional | Reasoning effort used when a call specifies none: none, minimal, low, medium, high, xhigh, max or ultra. Unset: the model's own default. Cannot exceed CODEX_SUBAGENT_MAX_EFFORT. |
CODEX_SUBAGENT_ALLOWED_MODELSOptional | Comma-separated allow-list of model slugs; anything else is refused. Unset: unrestricted. A single entry acts as the default model; an empty entry is a configuration error. |
CODEX_SUBAGENT_DEFAULT_SANDBOXOptional | Sandbox used when a call specifies none: read-only, workspace-write or danger-full-access. Defaults to read-only and cannot exceed the ceiling. |
CODEX_SUBAGENT_MAX_SANDBOXOptional | Ceiling on what a delegation may do: read-only, workspace-write or danger-full-access. Defaults to workspace-write; danger-full-access must be set explicitly. |
CODEX_SUBAGENT_MAX_EFFORTOptional | Ceiling on reasoning effort: none, minimal, low, medium, high, xhigh, max or ultra. Unset: unrestricted. Higher efforts are lowered to a supported level, or refused if none fits. |
CODEX_SUBAGENT_MCP_SERVERSOptional | MCP servers from Codex's config a delegation keeps: none (default), all, or comma-separated names. |
CODEX_SUBAGENT_PLUGINSOptional | Installed Codex plugins a delegation keeps: none (default), all, or comma-separated name@marketplace ids. |
CODEX_SUBAGENT_APPSOptional | Whether a delegation keeps Codex's apps (connectors to external services): off (default) or on. |
CODEX_BINOptional | Codex executable name or path. Unset: codex, searched on PATH. On Windows it must run directly, such as codex.exe; a .cmd or .bat shim is refused. |
Details
| Package | [email protected] (NPM, stdio) |
| First published | 21 Oct 2026 |
| Last updated | 21 Oct 2026 |
| Registry name | io.github.parisbs/codex-subagent-mcp |
More developer tools servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
