Code Worker MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Code Worker MCP
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:
GitHub: HuangYuan360/code-worker-mcp
GitLab: pk-skills/lab/code-worker-mcp
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 / thinktiers
The goal is to save Codex main-thread tokens, not provider tokens.
Related MCP server: claude-code
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, andmodel_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"| ARecommended Deployment
Recommended mode: source deployment.
git clone https://github.com/HuangYuan360/code-worker-mcp.git
cd code-worker-mcp
npm install
npm run mcp:doctorAdd 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_MODELCODE_WORKER_THINK_MODELCODE_WORKER_PERMISSION_PRESET
Provide these when needed:
CODE_WORKER_BASE_URLCLAUDE_BIN
Validation
Recommended checks:
npm run mcp:doctor
npm run mcp:smoke:toolsUsage
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:
fastthinkautofor 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_implementationdo not use
code_worker_wait_for_jobas the main loopprefer sparse
code_worker_get_jobtrust heartbeat and liveness fields
do not cancel only because the worker is quiet
Cancellation requires an explicit reason:
user_requestedobsoleteunsafe
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:
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hand tasks, bugs and finished work to AI coding agents, and get back a write-up with evidence.
A paid remote MCP for OpenAI Codex agent coordination MCP, built to return verdicts, receipts, usage
Multiplayer for the coding agents your team already uses: shared tasks, decisions, skills and tools.
Coding agents from Claude Code, Cursor and Codex claim jobs and lock files on one shared board.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables Codex to delegate bulk code reading, patching, and testing to an async worker using cheaper AI models, while receiving compact results.38 npm2MIT
- AlicenseNot gradedqualityDmaintenanceEnables Codex to delegate tasks to Claude Code, allowing Claude to investigate, edit, and verify changes in the repository with background job management.3 npmMIT
- AlicenseAqualityBmaintenanceEnables Claude Code to delegate tasks to OpenCode subagents asynchronously, with tools for starting tasks, polling status, and fetching results.7630 npm6MIT
- AlicenseAqualityDmaintenanceEnables Claude to delegate tasks to external coding agents (Codex or Antigravity) for independent reviews, separate quota usage, and async processing.6MIT