Skip to content

Codex Control Plane MCP

Durable MCP control plane for long-running Codex Desktop tasks

Install: uvx codex-control-plane-mcp

Works with Codex · 125 GitHub stars

Install

One-click install

Runs locally
Claude Code (no install link, copy and run)
$claude mcp add codex-control-plane-mcp -- uvx codex-control-plane-mcp

Buttons open the app on your computer and ask you to confirm before anything is added.

$uvx codex-control-plane-mcp
mcp.json (Cursor, Claude Desktop, Windsurf)
{
  "mcpServers": {
    "codex-control-plane-mcp": {
      "command": "uvx",
      "args": [
        "codex-control-plane-mcp"
      ]
    }
  }
}

Install command taken from the project's README or registry entry. Always review code before running it.

Codex Control Plane MCP

English | Русский

Reliable Codex Desktop automation for long tasks.

codex-control-plane-mcp turns Codex Desktop and codex-app-server into a durable worker that an MCP client can drive safely. Send a task, get an operationId or workflowId right away, poll until the work finishes, approve Plan Mode when needed, then read the final report.

The server handles the awkward parts that thin wrappers usually leave to the caller: app-server startup, thread and turn creation, retry safety, duplicate prompt protection, Plan Mode, approvals, local history, diagnostics, and repair.

OpenClaw and Hermes are first-class clients, but the server is useful for any local orchestrator that needs Codex Desktop to do long-running work without holding one MCP call open for hours.

The short version

MCP client / orchestrator
  -> submit a task or start a Plan Mode workflow
  <- receive operationId or workflowId immediately
  -> poll status
  -> answer approvals or approve the plan
  <- read final report, diagnostics, threadId, and turnId

That gives you a simple contract:

  • no multi-hour MCP calls;
  • no duplicate Codex turns after a client retry;
  • no blind fire-and-forget task submission;
  • a local SQLite record of operations, workflows, turns, hooks, and diagnostics.

Why not just call Codex directly?

Capability Thin Codex wrapper Codex Control Plane MCP
Multi-hour tasks blocking / fragile durable async operation
Client timeout recovery manual retry-safe client_request_id
Duplicate turn protection no active prompt detection
Plan Mode workflow human / manual pollable workflow state
Approvals and questions blocking / opaque pending interactions API
Restart recovery ad hoc persisted operation state
Diagnostics logs only health, diagnostics, repair tools

For a more detailed decision guide, see docs/THIN_WRAPPERS.md.

Current support

  • Full live target: Windows with Codex Desktop and codex-app-server.
  • Linux and macOS: protocol-only checks for now.
  • Local-first: not intended to be exposed as a public network service.

Security model

This is a local-first control plane for trusted Codex Desktop environments.

Do not expose it as a network service without authentication.

Recommended first-run posture:

  • use read-only for untrusted repositories;
  • use on-request approval when testing new workflows;
  • Plan Mode never runs with a read-only sandbox. If a caller requests read-only, MCP raises that turn to workspace-write and reports the adjustment in status output;
  • keep state/, logs/, .env, and .codex/ private.

What it does

Similar plugs

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype…

Java 面试 & 后端通用面试指南,覆盖计算机基础、数据库、分布式、高并发、系统设计与 AI 应用开发

MCP serverDatabases+105 this week

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

Explore related