Codex Delegate logo

Codex Delegate

Delegates coding work from MCP clients to the OpenAI Codex CLI, with controls for planning, review, resuming, cancellation, and diagnostics.

Install Codex Delegate

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "codex-delegate": {
      "command": "npx",
      "args": [
        "-y",
        "codex-delegate-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— the server itself is confirmed live (we called its tools/list endpoint). The stdio install command is a separate, ongoing check.

Overview

Codex Delegate MCP server connects MCP-compatible coding hosts to the OpenAI Codex CLI for delegated implementation work. Its delegate workflow can plan, implement, answer questions, review changes, resume threads, and return structured results including status, changed files, token counts, and thread identifiers. Use it when an orchestrating coding agent should brief Codex, keep working, and inspect the resulting diff. The server runs through stdio and requires Node.js 20+ plus an authenticated Codex CLI installation.

Use cases

  • Delegate multi-file implementation to Codex
  • Ask Codex to produce an implementation plan before editing
  • Review uncommitted changes or a specific commit
  • Resume a Codex thread with additional instructions
  • Diagnose Codex CLI, login, and workspace setup

Key features

  • OpenAI Codex CLI delegation over MCP
  • Plan, agent, ask, and review modes
  • Structured results with status, files, and thread IDs
  • Thread resumption and concurrent runs
  • Run cancellation with settlement warnings
  • CLI, login, workspace, and model diagnostics

Tools3

What Codex Delegate lets your agent do. Expand a tool for its parameters.

Verified live~771 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 1d ago

Recent health check succeeded.

20/23 checks healthy over the last 91d

What it can do

From the 3 tools this server returned when we ran it; 3 declare their own safety hints.

Runs commands · 2Can delete or modify data · 2Makes network requests · 1Read-only tools · 1
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceSigned build
Package age93 days
Maintainers1

Observed 2026-10-18 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7d ago via OSV.dev · codex-delegate-mcp (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars3Stargazers on the source repository.
npm downloads1.1kPackage downloads in the last 30 days.
Last commit1d agoMost recent push to the default branch.
Tools exposed3Callable tools this server registers over MCP.
Directory activity12 viewsConfig copies, upvotes, and views on AllMCPs.

How Codex Delegate works

What Codex Delegate does

Codex Delegate routes coding tasks from an MCP client to the OpenAI Codex CLI. The calling agent can prepare the task brief, ask Codex to make changes in a workspace, and then review the returned result. This separates orchestration and review from implementation while leaving the edits in the selected working directory.

Results are structured around the work performed. A completed delegation can include Codex's final response, status, files reported as changed by its edit tools, cumulative thread token usage, the thread ID, the delegation ID, the workspace, and the Codex CLI version. Fields without useful information are omitted.

The server fits coding-agent workflows where implementation should be delegated to Codex rather than executed directly by the host agent. It also supports non-editing questions and review tasks, so it can be used before or after a code change.

How it works

The MCP client launches the server as a stdio process. Codex Delegate invokes the locally installed OpenAI Codex CLI and associates work with a Codex thread. A later request can continue that context by supplying its thread ID; the response indicates whether the context was successfully resumed.

Delegations can be run independently, including against separate directories, or several models can be given the same question. Cancellation accepts a delegation ID for one run or a thread ID for all active runs on that thread. With neither identifier, it cancels all active runs. Cancellation waits for settlement and reports when a process remains alive beyond the kill deadline.

The doctor tool checks the plugin and CLI, login state, recursion conditions, and workspace. Its default workspace is the server's current working directory; the deep mode also checks quota-related help and the model catalog.

Setup and configuration

Install Node.js 20 or newer and install the OpenAI Codex CLI. Log in to Codex with codex login before using the server.

A standard configuration runs the package through npx:

config.json
{
  "mcpServers": {
    "codex-delegate": {
      "command": "npx",
      "args": ["-y", "codex-delegate-mcp"]
    }
  }
}

Cursor can add the server from its MCP settings or project configuration. VS Code uses an equivalent stdio entry under servers; JetBrains AI Assistant accepts the mcpServers form. Claude Code and GitHub Copilot CLI can install the repository plugin, or Copilot CLI can add the server directly. Devin Desktop, formerly Windsurf, uses its MCP configuration file. Visual Studio supports the stdio configuration in supported releases.

Tools and capabilities

  • delegate sends a coding request to Codex. Its supported modes include plan, agent, ask, and review.
  • plan returns schema-validated implementation steps for approval, while agent carries out the approved work on the same thread.
  • ask handles questions without requiring an implementation run.
  • review checks uncommitted work, a base branch, or a single commit with Codex's reviewer.
  • cancel stops active work and reports whether the selected run was cancelled, already inactive, or not found.
  • doctor diagnoses installation, authentication, recursion, workspace, quota-help, and model-catalog conditions.
  • Thread resumption uses resumeThreadId, and resumed: false signals that prior context was not retained.

Limitations and notes

Codex must be installed and logged in separately from the MCP server. Delegated usage is charged or metered through the Codex side rather than the orchestrating chat session. The server's cancellation response can return while a surviving process tree is still running after the kill deadline; the delegate result warns about that condition.

A delegation ID is announced during progress before the Codex process starts and is the handle to use if startup wedges. Keep the default model, reasoningEffort, and fast settings unless the user requests different values. Devin Desktop's Cascade agent limits the total number of tools across all configured servers to 100.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Codex Delegate

Codex Delegate is an MCP server that connects MCP-compatible coding hosts to the OpenAI Codex CLI. Its main tools are delegate for planning, implementation, questions, and reviews; cancel for stopping active runs; and doctor for diagnosing CLI, login, recursion, workspace, quota-help, and model-catalog issues.

Install Node.js 20+, install and log in to the OpenAI Codex CLI, then configure the server with `npx -y codex-delegate-mcp`. Cursor, VS Code, JetBrains, Devin Desktop, and supported coding hosts provide client-specific MCP configuration or installation options.

Use the `delegate` MCP tool rather than running Codex from a shell. The tool can plan work, implement an approved plan, answer a question, or review changes. It returns a structured result that the calling agent can inspect before trusting the outcome.

Use `cancel` with a delegation ID to stop one run or a thread ID to stop all active runs on that thread. Omitting both cancels all active runs. The tool waits for settlement and reports cancellation, inactivity, or an unknown active ID.

Yes. Cursor can install Codex Delegate from its MCP settings or use a project or user `mcp.json` entry that launches `npx -y codex-delegate-mcp`. After configuration, Cursor can ask the server to delegate implementation to the OpenAI Codex CLI.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewCodex Delegate AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/codex-delegate?style=directory)](https://allmcps.com/mcp/codex-delegate)
HTML Embed
<a href="https://allmcps.com/mcp/codex-delegate"><img src="https://allmcps.com/api/badge/codex-delegate?style=directory" alt="Codex Delegate on AllMCPs" /></a>