MCP Codex Worker
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CLAUDE_MODEL | No | Real backend model used by the gateway. | |
| SANDBOX_ROOT | Yes | Root directory allowed for worker jobs and analyze file reads. | |
| DIFF_MAX_BYTES | No | Maximum returned diff size. | |
| ONEAPI_API_KEY | No | Primary gateway key for OneAPI. | |
| ANTHROPIC_MODEL | No | Real backend model used by the gateway (alternative). | |
| ONEAPI_BASE_URL | No | Primary gateway URL (OneAPI). | |
| WAIT_DEFAULT_MS | No | Default wait time in milliseconds for job completion. | |
| FALLBACK_API_KEY | No | Optional fallback gateway key. | |
| WORKER_ISOLATION | No | Set to 'worktree' for per-job git worktree isolation. | |
| ANTHROPIC_API_KEY | No | Primary gateway key for Anthropic. | |
| CLAUDE_CODE_MODEL | No | Model name passed to Claude Code for local validation, usually 'sonnet'. | |
| FALLBACK_BASE_URL | No | Optional fallback gateway URL. | |
| ANTHROPIC_BASE_URL | No | Primary gateway URL (Anthropic). | |
| USE_OPENAI_ADAPTER | No | Set to '1' to use the local Anthropic-to-OpenAI adapter. | |
| WORKER_METRICS_FILE | No | Optional JSONL path for token usage metrics. | |
| WORKER_ESCALATE_MODEL | No | Optional stronger model for hard revise passes. | |
| ALLOW_BYPASS_PERMISSIONS | No | Set to '1' to allow bypassPermissions (not recommended). |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| startC | Start an asynchronous Claude Code job inside SANDBOX_ROOT. A deterministic Mythos-style reasoning layer verifies the result (checks, scope, exit, calibration) and can auto-revise on concrete failures. |
| getC | Get job status and structured result |
| get_artifact_sliceB | Read a bounded redacted slice from a worker artifact returned by a receipt. Artifact refs are opaque and local to this worker process. |
| tailC | Read the latest job log lines |
| waitB | Wait for a job to finish with a timeout. Timeout returns without killing the worker. |
| cancelB | Cancel a running job and kill its process tree |
| analyzeA | Read-only analysis: read the given files (inside SANDBOX_ROOT) and answer in a single cheap-gateway call. Does NOT start Claude Code and does NOT modify any file. Use for summarize/explain/classify; use start for anything that edits or runs. |
| reviewA | Cheap-gateway code review. Use job_id to review a finished worker diff/checks, or files to review selected sandbox files. Returns structured JSON verdict when parseable. |
| searchC | Zero-LLM repository search using rg when available. dirs may contain sandbox directories or files; returns bounded file/line matches inside SANDBOX_ROOT. |
| read_packC | Zero-LLM context packing for file-reading tasks. Returns bounded symbol/keyword slices instead of whole files. |
| diff_digestB | Digest the current git diff into changed files, file-level risk, hunk headers, and optional cheap red-team review. |
| shellB | Run a bounded worker-side command inside SANDBOX_ROOT. Use digest:true for tests/builds/lint so Codex receives a compact failure summary. |
| apply_editsB | Zero-LLM mechanical edits: bounded literal or regex replacements inside SANDBOX_ROOT. Returns changed files and replacement counts. |
| historyA | Git archaeology for a file or line: returns bounded log timeline and optional blame without making Codex ingest git log -p. |
| draftC | Draft commit messages, PR descriptions, changelog notes, or release notes from the current diff using the cheap review lane. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 15 tools
The lifecycle group (start/get/wait/cancel/tail) is crisply separated, and descriptions explicitly route intent (analyze vs. start, review vs. diff_digest). The remaining ambiguity is mild but real: analyze, review, and read_pack all read sandbox files with differing LLM cost, and search/read_pack/history all serve context gathering, so an agent must read carefully to pick correctly.
Most tools are bare verbs (wait, cancel, start, get, tail, analyze, review, search), but several are nouns (history, shell, diff_digest) and others are snake_case verb_noun compounds (get_artifact_slice, read_pack, apply_edits). No single convention dominates, though every name is still readable and none are vague.
At 15 tools the surface spans job lifecycle, git archaeology, search, context packing, editing, and review without obvious redundancy. Each tool maps to a distinct phase of an async coding-worker workflow, so the count feels earned rather than padded.
The lifecycle is fully covered (start/get/wait/cancel/tail plus bounded artifact slicing) and the editing/analysis loop is closed via shell, apply_edits, review, and diff_digest. The one clear gap is job enumeration: there is no list-jobs tool, so agents must already know a job_id to reach get/tail/review by job.