Featured

Deploy OpenClaw in 60 seconds — 20% off logoDeploy OpenClaw in 60 seconds — 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free
6,000+ web scrapers for your AI agent, start free logo6,000+ web scrapers for your AI agent, start free

Apify gives your agent live web data: 6,000+ prebuilt scrapers and actors, MCP-ready. Sign up free with $5 in usage credits.

Try Apify free
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data — no proxies, no parsers, no maintenance.

Start building free
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it — secured from day one.

Get it set up for you
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free
Reach 48,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Enables Codex to offload expensive code reading, editing, and checking to a worker agent via Claude Code, supporting async jobs and long-running tasks.

README.md

Code Worker MCP

Languages: English | 简体中文

Code Worker MCP for Codex. The host agent defines task boundaries and reviews results; the worker does the expensive code reading, editing, and checking through Claude Code plus a configured provider.

Repository:

Why This Exists

This project is built to solve a specific Codex workflow problem:

  • the main thread should not spend most of its budget reading code
  • long coding tasks should be able to run quietly in the background
  • the host should see compact facts, not large logs by default
  • execution should support clear fast / think tiers

The goal is to save Codex main-thread tokens, not provider tokens.

What It Does

  • runs real code work through Claude Code
  • supports async worker jobs
  • supports sync tiny patches
  • returns compact status, checks, policy, and change summaries
  • supports long-running quiet jobs with heartbeat and liveness signals
  • supports execution_tier, task_label, and model_label
flowchart LR
    A["Codex host"] -->|"task / tier / boundary"| B["Code Worker MCP"]
    B -->|"start"| C["Claude Code worker"]
    C -->|"read / edit / check"| D["real workspace"]
    C -->|"compact status"| B
    B -->|"task_label / execution_tier / model_label / files_changed / checks_run"| A

Recommended Deployment

Recommended mode: source deployment.

git clone https://github.com/HuangYuan360/code-worker-mcp.git
cd code-worker-mcp
npm install
npm run mcp:doctor

Add this MCP to ~/.codex/config.toml:

[mcp_servers.code-worker]
command = "node"
args = ["/absolute/path/to/code-worker-mcp/src/code-worker-mcp.mjs"]

[mcp_servers.code-worker.env]
CODE_WORKER_API_KEY_FILE = "/Users/you/.codex/secrets/code_worker_api_key"
CODE_WORKER_BASE_URL = "https://your-provider-compatible-endpoint/v1"
CODE_WORKER_FAST_MODEL = "<provider-fast-model>"
CODE_WORKER_THINK_MODEL = "<provider-think-model>"
CODE_WORKER_PERMISSION_PRESET = "open"

Restart Codex after configuration.

Required Deployment Inputs

Do not guess these values:

  • provider key source
  • CODE_WORKER_FAST_MODEL
  • CODE_WORKER_THINK_MODEL
  • CODE_WORKER_PERMISSION_PRESET

Provide these when needed:

  • CODE_WORKER_BASE_URL
  • CLAUDE_BIN

Validation

Recommended checks:

npm run mcp:doctor
npm run mcp:smoke:tools

Usage

Example async task:

{
  "name": "code_worker_start_implementation",
  "arguments": {
    "cwd": "/absolute/project/path",
    "task": "Make the requested code change.",
    "task_label": "orders-import-fix",
    "execution_tier": "fast"
  }
}

Execution tiers:

  • fast
  • think
  • auto for host orchestration only

Compact result shape:

{
  "task_label": "orders-import-fix",
  "execution_tier": "fast",
  "model_label": "flash"
}

Long-Running Jobs

  • start long tasks with code_worker_start_implementation
  • do not use code_worker_wait_for_job as the main loop
  • prefer sparse code_worker_get_job
  • trust heartbeat and liveness fields
  • do not cancel only because the worker is quiet

Cancellation requires an explicit reason:

  • user_requested
  • obsolete
  • unsafe

Installation Guide For Other AI Tools

Installing only the MCP is not enough. Also install the companion skill into local Codex at:

  • ~/.codex/skills/code-worker-governance/SKILL.md

See:

See related servers & alternatives →

Related MCP servers

Browse all →

Related guides

Hand-picked reading to help you choose and use Developer Tools servers.