NestDaddy

Codex Subagent

io.github.parisbs/codex-subagent-mcp ยท v0.6.0

Delegate coding tasks to the OpenAI Codex CLI, installed separately, with explicit model and effort.

Connect Runs on your machine

Terminal
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]
claude_desktop_config.json
{
  "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>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "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>"
      }
    }
  }
}
.vscode/mcp.json
{
  "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

NameDescription
CODEX_SUBAGENT_MAX_DELEGATIONS_PER_HOUR
Optional
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_JOBS
Optional
Cap on running background jobs: decimal integer 1 to 8 (default 8). Blocking calls do not use this cap.
CODEX_SUBAGENT_USAGE_LOG
Optional
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_MODEL
Optional
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_EFFORT
Optional
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_MODELS
Optional
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_SANDBOX
Optional
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_SANDBOX
Optional
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_EFFORT
Optional
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_SERVERS
Optional
MCP servers from Codex's config a delegation keeps: none (default), all, or comma-separated names.
CODEX_SUBAGENT_PLUGINS
Optional
Installed Codex plugins a delegation keeps: none (default), all, or comma-separated name@marketplace ids.
CODEX_SUBAGENT_APPS
Optional
Whether a delegation keeps Codex's apps (connectors to external services): off (default) or on.
CODEX_BIN
Optional
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 published21 Oct 2026
Last updated21 Oct 2026
Registry nameio.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.