Listed from the MCP registry; nobody on Odel publishes it.

MCP server: One MCP server.

Codex Delegate

@andreilungeanuMCP server · External

Bring OpenAI Codex into your agent's council for second opinions, plans, edits and code review.

Agent collaborationv3.3.0MITJavaScript
Freeno charge per call

Runs on your machine from its package; the steps are below.

A terminal recording of Claude Code asking Codex (GPT-6.2 Sol) why a repo prints "today 0": in ask mode Codex finds that commits are bucketed by UTC while the grid uses local dates; Codex then builds the fix on the same thread with a test that fails on the old code, and Claude checks the diff and the tests before reporting today 4
From the README · 1 of 4

What it does

  1. Reads
  2. Writes
  3. High impact

At most: moves money, runs code or commands, deletes data, or sends messages for you.

What it costs

Free

Odel charges nothing per call. The publisher may charge for its own service.

Runs locally over stdio

This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).

npmcodex-delegate-mcpv3.3.0

Run

npx -y codex-delegate-mcp

MCP client config

{
  "mcpServers": {
    "codex-delegate": {
      "command": "npx",
      "args": [
        "-y",
        "codex-delegate-mcp"
      ]
    }
  }
}
README6 min read

Turn your coding agent into a council. Bring GPT-6.2 Sol and Astra into the conversation, then hand them the work.

npm version npm downloads MCP Registry codex-delegate-mcp MCP server node license: MIT tests

Codex Delegate logo

Codex Delegate is the MCP bridge to the OpenAI Codex CLI. From Claude Code, Cursor, Copilot or any MCP client, your agent can ask Codex for a second opinion, put one question to several models at once, or hand Codex a plan, a fix or a review, and get a structured result back from each call.


A terminal recording of Claude Code asking Codex (GPT-6.2 Sol) why a repo prints "today 0": in ask mode Codex finds that commits are bucketed by UTC while the grid uses local dates; Codex then builds the fix on the same thread with a test that fails on the old code, and Claude checks the diff and the tests before reporting today 4

🧠 Get a second opinion

Ask Codex what it thinks about moving the session store to SQLite.

Codex reads the repo and answers in ask mode, and your agent sets that answer beside its own. You see where the two disagree before you choose a direction.

Ask several at once, and your agent sends each the same brief in parallel, compares the answers, and checks the claims that matter:

Ask gpt-6.2-sol and gpt-6-luna whether we should split this service, and tell me where they disagree.

With Cursor Delegate or Antigravity Delegate installed too, the same prompt reaches Grok, Composer or Gemini.

🛠️ Hand off the work

Use Codex to migrate src/api from callbacks to async/await and update the tests. Plan it first.

Your agent writes the brief, Codex edits the files, and your agent reads the diff and runs the tests before it reports back.

  • 📋 Plan, approve, build — plan returns schema-validated steps; once you approve, the same thread implements them.
  • 🔎 Native review — review runs Codex's own reviewer over uncommitted work, a base branch, or a single commit.
  • 🧵 Resume — follow up on the same thread with resumeThreadId. resumed: false tells you the context did not carry over.

You and your agent understand the task, write the brief and review the diff; the MCP delegate tool hands that brief to the OpenAI Codex CLI, which implements it and edits your workspace; one compact JSON result comes back with what changed, which files, and the thread id

Features

  • 📦 One result you can review — a compact JSON block: the final answer, status, the files Codex's edit tools reported changing, cumulative thread token counts, and the threadId to continue from. Fields that carry no signal are omitted.
  • ⏳ Runs in the background, with MCP Tasks — delegate serves the MCP Tasks extension (io.modelcontextprotocol/tasks), so a host that speaks it gets a task back once Codex starts its thread and the result when Codex finishes. In the main session of the interactive Claude Code CLI, you keep working and the result arrives as a task notification; calls from subagents wait for the result.
  • 🧑‍🤝‍🧑 Run several, cancel cleanly — the same question across models, or independent workers on independent directories. cancel waits for the exit and warns when it cannot confirm one.
  • 🔋 Runs on Codex's own account — delegated work uses whatever the Codex CLI is signed in with, plan or API key, separate from your host's chat quota.
  • 🤝 One-command install — Claude Code, Google Antigravity, GitHub Copilot CLI, Cursor and VS Code take it as a plugin, with a skill that teaches your agent to write the brief and review the result. JetBrains, Devin Desktop (Windsurf), Visual Studio and the rest add the stdio server in settings.
  • 🩺 doctor — tells you exactly what's missing if setup isn't right.

A delegate result: one compact JSON block with the final answer, status, thread and delegation ids, workspace, Codex CLI version, cumulative thread token usage, and the files the edit tools reported changing

Your agent and its peers

Each plugin works on its own, and they are built to work together. Install the ones your subscriptions cover, and the agent you already use can bring Gemini 4 Neon, Carbon or Hydrogen, GPT-6.2 Sol or Astra, and Grok 4.7 or Composer 2.5 into the same conversation as peers. One question goes to all of them in parallel, and your agent sets their answers beside its own.

Ask Gemini Neon, Codex Sol and Grok 4.7 how they would restructure the auth module, then tell me where they agree.

A terminal recording of Claude Code asking Gemini Neon, Codex Sol and Grok 4.7 why a repo prints "today 0": three delegate calls run as background tasks, the answers come back, and Claude lists where the models agree and where they differ; Codex then builds the chosen fix on the same thread, and Claude confirms the new test fails on the old code and all four tests pass

  • Codex Delegate (this one) — the OpenAI Codex CLI: GPT-6.2 Sol, GPT-6.2 Astra and the other Codex models
  • Cursor Delegate — Cursor's CLI agent: Grok 4.7, Composer 2.5
  • Antigravity Delegate — Google Antigravity's CLI: Gemini 4 Neon, Carbon and Hydrogen

Model names are examples; each CLI offers what your account includes.

Install

You need Node.js 20+ and the OpenAI Codex CLI, already logged in (codex login).

Claude Code

shell
/plugin marketplace add andreilungeanu/codex-delegate-mcp
/plugin install codex-delegate@codex-delegate-mcp

Then just ask:

Delegate to Codex: migrate src/api from callbacks to async/await and update the tests, then walk me through what changed.

That's the whole loop — Claude writes the brief, Codex grinds through the files, Claude walks you through the diff.

Cursor

Add to Cursor

Or add it under Customize → MCPs in the sidebar, or in ~/.cursor/mcp.json (every project) or .cursor/mcp.json (this project):

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

Then ask Cursor to delegate implementation to Codex the same way.

Google Antigravity

shell
agy plugin install https://github.com/andreilungeanu/codex-delegate-mcp

Restart the Antigravity app to load it. If you added codex-delegate to mcp_config.json by hand, remove that entry.

Without the CLI, use the manual config under More clients.

GitHub Copilot CLI

shell
copilot plugin marketplace add andreilungeanu/codex-delegate-mcp
copilot plugin install codex-delegate@codex-delegate-mcp

The server alone, without the skill: copilot mcp add codex-delegate -- npx -y codex-delegate-mcp.

More clients

VS Code — one-click install, or .vscode/mcp.json

Install in VS Code Install in VS Code Insiders

json
{
  "servers": {
    "codex-delegate": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "codex-delegate-mcp"]
    }
  }
}

Or run Chat: Install Plugin From Source with this repository's URL (needs the chat.plugins.enabled setting).

JetBrains AI Assistant — Settings → Tools → AI Assistant → MCP

Under Settings → Tools → AI Assistant → Model Context Protocol (MCP), click Add and paste this JSON:

json
{
  "mcpServers": {
    "codex-delegate": {
      "command": "npx",
      "args": ["-y", "codex-delegate-mcp"]
    }
  }
}
Devin Desktop (formerly Windsurf) — ~/.config/devin/mcp_config.json

This config is for Devin Local, the default agent (Local 3.6+). On Windows the file is %APPDATA%\devin\mcp_config.json. Legacy Cascade and older Windsurf builds read ~/.codeium/windsurf/mcp_config.json.

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

Heads-up: Devin Desktop's Cascade agent caps you at 100 tools across all servers.

Visual Studio 2026 / 2022 — %USERPROFILE%\.mcp.json
json
{
  "servers": {
    "codex-delegate": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "codex-delegate-mcp"]
    }
  }
}

Visual Studio 2022 needs 17.14+. Note the top-level key is servers, not mcpServers. A .mcp.json in the solution directory scopes it to that solution.

OpenCode — ~/.config/opencode/opencode.json or project opencode.json

OpenCode does not use mcpServers. Local servers go under mcp, with type: "local" and command as one array:

json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "codex-delegate": {
      "type": "local",
      "command": ["npx", "-y", "codex-delegate-mcp"],
      "enabled": true
    }
  }
}

This is the v1 shape, which OpenCode v2 still reads (v2's native form is mcp.servers).

Google Antigravity (without the plugin) — ~/.gemini/config/mcp_config.json or workspace .agents/mcp_config.json
json
{
  "mcpServers": {
    "codex-delegate": {
      "command": "npx",
      "args": ["-y", "codex-delegate-mcp"],
      "timeoutSeconds": 21660
    }
  }
}
Kilo Code — kilo.jsonc (mcp key, not mcpServers)

Same shape as OpenCode: type: "local" and command as one array.

json
{
  "mcp": {
    "codex-delegate": {
      "type": "local",
      "command": ["npx", "-y", "codex-delegate-mcp"],
      "enabled": true
    }
  }
}

In the VS Code extension: Settings → MCP → Add Server → Local (stdio). On Windows, if npx is not found, use command cmd with arguments /c, npx, -y, codex-delegate-mcp.

Kiro and any other MCP client

Add the following server to the client's MCP config — for Kiro, ~/.kiro/settings/mcp.json (user) or .kiro/settings/mcp.json (workspace):

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

MIT © Andrei Lungeanu

Configuration · Security · Privacy · Terms · Changelog

Similar modules

Browse Agent collaboration