Listed from the MCP registry; nobody on Odel publishes it.
Hand off coding tasks from ChatGPT, Codex or Claude Code to local Oh My Pi (OMP) workers.
Runs on your machine from its package; the steps are below.
At most: moves money, runs code or commands, deletes data, or sends messages for you.
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).
Run
npx -y omp-worker-mcp
MCP client config
{
"mcpServers": {
"omp-worker-mcp": {
"command": "npx",
"args": [
"-y",
"omp-worker-mcp"
]
}
}
}Let your main AI agent plan and review — and hand the hands-on coding to local Oh My Pi workers.
An MCP server that turns ChatGPT, Codex, Claude Code, Cursor and other MCP clients into a supervisor,
and Oh My Pi (OMP) on your own machine into its background workforce.
English · 简体中文 · Documentation
Quick start · Usage · Tools · Configuration · Safety model · FAQ
Most coding agents do everything in one place: read the code, plan, edit, run tests, fix — all inside one conversation and one model's budget. omp-worker-mcp splits that work into two roles:
| Role | Who | Responsibility |
|---|---|---|
| Supervisor | The agent you talk to: ChatGPT, Codex, Claude Code, Cursor… | Understands the request, splits the work, writes acceptance criteria, reviews the results |
| Worker | The OMP CLI on your machine, using the model you picked in omp setup | Reads files, edits code, runs shell commands and tests, reports back |
omp-worker-mcp is the bridge between them. It gives the supervisor a small set of MCP tools, starts OMP in the background, keeps every job on disk, and returns a short structured report instead of a wall of logs.
Highlights
omp_run_compact delegates a single task; omp_run_batch_compact runs up to 50 tasks as a dependency graph (DAG), up to 10 at a time.OMP_WORKER_RESULT envelope: status, summary, changed files, verification evidence and remaining items.omp_continue sends feedback to the same OMP session, so the worker keeps its context.OMP_WORKER_ALLOWED_ROOTS, available since 0.2.0; npm 0.1.1 lacks this feature) for the directories jobs may run in.A good fit when
Probably not worth it when
You need: Node.js ≥ 22 · Oh My Pi installed · an MCP client (Codex, Claude Code, Cursor, ChatGPT, …).
Install OMP by following its official instructions, then:
omp --version # confirm the CLI is on your PATH
omp setup # sign in and choose the default model
The default model you pick here is the model every worker will use. (Advanced: set modelRoles.default: <provider>/<model> in ~/.omp/agent/config.yml.)
If
ompis not on yourPATH, setOMP_WORKER_OMP_COMMANDto the full path of the executable in the MCP config below.
There is nothing to install globally — the client runs the published package with npx -y omp-worker-mcp. Pick your client:
Edit ~/.codex/config.toml (Windows: C:\Users\<you>\.codex\config.toml):
[mcp_servers.omp-worker]
command = "npx"
args = ["-y", "omp-worker-mcp"]
[mcp_servers.omp-worker.env]
OMP_WORKER_OMP_COMMAND = "omp"
# Optional (Codex Code Mode only): let Codex call omp-worker tools directly
# without code-mode wrapping. Per the current Codex config reference, merge into
# your existing [features.code_mode] table (do not create a duplicate table header)
# and append "mcp__omp_worker" while preserving any other list entries:
[features.code_mode]
direct_only_tool_namespaces = ["mcp__omp_worker"]
(If [features.code_mode] already exists in your config.toml, merge into that table and append "mcp__omp_worker" to direct_only_tool_namespaces rather than duplicating the table or overwriting existing entries. Legacy Codex builds used a top-level direct_only_tool_namespaces = ["mcp__omp_worker"] key before any [table] header. Neither setting is required to register the MCP server; see Codex direct namespace setup and the official Codex Config Reference.)
Version requirement (
>= 0.2.0):OMP_WORKER_ALLOWED_ROOTSis available sinceomp-worker-mcp0.2.0(historical npm0.1.1lacks this feature and does not enforceOMP_WORKER_ALLOWED_ROOTS). Confirmnpx -y omp-worker-mcp@latest --versionreports0.2.0or newer before exposing local execution remotely.
Run the server locally behind OpenAI's tunnel-client; your machine only makes outbound connections.
export OMP_WORKER_OMP_COMMAND=omp
export OMP_WORKER_ALLOWED_ROOTS='["/Users/you/Projects"]' # strongly recommended for remote access (available since 0.2.0; 0.1.1 lacks this feature)
export CONTROL_PLANE_API_KEY='<runtime-api-key>'
tunnel-client init \
--sample sample_mcp_stdio_local \
--profile omp-worker \
--tunnel-id <your-tunnel-id> \
--mcp-command "npx -y omp-worker-mcp"
tunnel-client doctor --profile omp-worker --explain
tunnel-client run --profile omp-worker
Windows PowerShell commands, 0.1.1 upgrade / local-build notes, managed runtime alternatives (tunnel-client runtimes connect), permission requirements and the full trust boundary: ChatGPT Secure MCP Tunnel guide.
claude mcp add omp-worker --scope user --env OMP_WORKER_OMP_COMMAND=omp -- npx -y omp-worker-mcp
Use --scope project to register it for the current project only. On Windows cmd.exe, if npx fails to resolve, use cmd /c npx.
{
"mcpServers": {
"omp-worker": {
"command": "npx",
"args": ["-y", "omp-worker-mcp"],
"env": {
"OMP_WORKER_OMP_COMMAND": "omp"
}
}
}
}
File locations and client-specific notes: Client configurations.
Restart the client after changing its config.
Registering the server makes the tools available; it does not make the agent choose them. Add a short policy to your project's instruction file — AGENTS.md (Codex), CLAUDE.md (Claude Code), .cursorrules / .github/copilot-instructions.md (others) — or to ChatGPT's project instructions:
## Delegation policy (omp-worker-mcp)
- Quick questions, single-file edits, design discussion: do it yourself.
- Substantive single tasks (feature, bug fix, refactor, long investigation): inspect briefly,
then delegate with `omp_run_compact`, giving a clear `goal` and `acceptance` criteria.
- Multi-part work: use `omp_run_batch_compact`. Parallel write tasks need disjoint `ownership`;
tasks touching the same files must be ordered with `depends_on`.
- Review every result. If acceptance is not met, use `omp_continue` with specific feedback.
- Never delegate `git push`, publishing, deployments or secret changes — confirm those with the user.
A fuller template: Author workflow → Policy template.
Start with something read-only:
Use omp-worker-mcp to do a read-only inspection of this workspace: summarize the
project structure and dependencies. Do not modify any files.
What you should see: the agent calls omp_run_compact, OMP works in the background, and a short summary comes back with no files changed. If the job runs longer than the wait window (60 s by default), the call returns a job_id with status running and the agent keeps going with omp_wait — that is normal.
Once the policy is in place you can just describe the outcome you want. The examples below show what the supervisor sends under the hood.
"Add exponential backoff to the HTTP client in
src/net/, cover it with unit tests, and make surenpm testpasses."
// omp_run_compact
{
"cwd": "/path/to/repo",
"goal": "Add exponential backoff (max 5 retries) to src/net/client.ts for 5xx and network errors.",
"acceptance": [
"Unit tests cover the retry and give-up paths",
"npm test passes"
],
"timeout_minutes": 30
}
What comes back is compact (abridged example):
{
"job_id": "job-…",
"status": "completed",
"attempt": 1,
"max_attempts": 3,
"session_id": "sess-…",
"summary": "Added retry with exponential backoff to the HTTP client.",
"artifacts": [
{ "path": "src/net/client.ts", "description": "retry loop + backoff helper" },
{ "path": "test/net/client.test.ts", "description": "retry / give-up tests" }
],
"verification": ["npm test: all tests passed"],
"remaining": [],
"details_path": "…/jobs/job-…/job.json"
}
"Add a
/healthendpoint to the API and a status badge to the UI in parallel, then add an integration test that covers both."
graph LR
api["api · write src/api/"] --> tests["tests · write tests/"]
ui["ui · write src/ui/"] --> tests
// omp_run_batch_compact
{
"cwd": "/path/to/repo",
"max_parallel": 2,
"tasks": [
{ "id": "api", "goal": "Add GET /health returning build info.", "access": "write", "ownership": ["src/api/"] },
{ "id": "ui", "goal": "Show a status badge fed by /health.", "access": "write", "ownership": ["src/ui/"] },
{ "id": "tests", "goal": "Add an integration test for /health and the badge.",
"depends_on": ["api", "ui"], "access": "write", "ownership": ["tests/"],
"acceptance": ["npm test passes"] }
]
}
Rules worth knowing:
write tasks must list the paths they own in ownership (relative to cwd); read_only tasks list none.depends_on instead.max_parallel is 1–10 (default 4); the whole group has a deadline (group_timeout_minutes, default 60).group_id; continue with omp_wait_group.| Situation | Tool |
|---|---|
| Still running | omp_wait / omp_wait_group |
| Need logs, attempts or the full final answer | omp_result |
| Result doesn't meet acceptance | omp_continue with concrete feedback (counts toward max_attempts, default 3) |
| Wrong direction, stop it | omp_cancel / omp_cancel_group |
| Tool | Kind | What it does |
|---|---|---|
omp_run_compact | Recommended | Start one task and wait up to wait_seconds (≤ 60) for a compact result |
omp_run_batch_compact | Recommended | Validate and run a DAG of up to 50 tasks; wait up to wait_seconds (≤ 240) |
omp_delegate | Low-level | Start one task and return a job_id immediately |
omp_wait | Low-level | Wait for a job to finish |
omp_wait_group | Low-level | Wait for a batch group to finish |
omp_result | Inspect | Full status, attempts, attempt-NN.stdout.jsonl / attempt-NN.stderr.log paths, final response |
omp_continue | Supervise | Send feedback to the same OMP session for another attempt |
omp_cancel | Control | Stop a job and its process tree |
omp_cancel_group | Control | Stop every pending and running task in a group |
Full parameters and limits: Tool reference.
Everything is configured through environment variables, set in the client's MCP config (env) or in the shell that launches the server.
| Variable | Default | Purpose |
|---|---|---|
OMP_WORKER_OMP_COMMAND | omp | OMP executable name or full path |
OMP_WORKER_ALLOWED_ROOTS | (unset = no restriction) | JSON array of absolute directories that jobs must run inside. Set this for any remote use. (Available since 0.2.0; npm 0.1.1 lacks this feature.) |
OMP_WORKER_STATE_DIR | ~/.codex/state/omp-worker | Where job state, prompts and logs are stored (the default path is used even if you don't use Codex) |
OMP_WORKER_RETENTION_TTL_SECONDS | (unset = keep forever) | Delete finished records older than N seconds |
OMP_WORKER_RETENTION_MAX_BYTES | (unset = no limit) | Delete the oldest finished records once the store exceeds N bytes |
All variables, the on-disk layout and restart behaviour: Operations · .env.example.
What omp-worker-mcp enforces
OMP_WORKER_ALLOWED_ROOTS set (available since 0.2.0; npm 0.1.1 lacks this feature), a job's cwd must resolve (via realpath) inside an approved root. Sibling-prefix tricks and symlink/junction escapes are rejected before OMP starts; a present-but-invalid value fails closed.write tasks must have disjoint ownership, and the graph must be acyclic — checked before any worker is spawned.What it does not do
git push, publishing, deployments and secret changes with you and the supervisor.For remote access (e.g. ChatGPT via Secure MCP Tunnel), always set OMP_WORKER_ALLOWED_ROOTS, and consider a dedicated low-privilege account, a container or a VM. To report a vulnerability, see SECURITY.md.
| Platform | Status |
|---|---|
| Windows | ✅ Verified end-to-end with the real OMP CLI and in CI (windows-latest) |
| macOS | 🟡 Full test suite runs in CI (macos-latest, with a fake OMP); not yet verified end-to-end with the real OMP CLI |
| Linux | 🟡 Full test suite runs in CI (ubuntu-latest, with a fake OMP); not yet verified end-to-end with the real OMP CLI |
| Client | Status |
|---|---|
| Codex | ✅ Used daily by the author |
| ChatGPT web (Secure MCP Tunnel) | 📄 Documented workflow — see the guide |
| Claude Code, Cursor, VS Code / Copilot, Windsurf, Continue | 📄 Documented configurations, not integration-tested in CI |
| Cloud / remote agent hosts | ⚠️ Only if they provide Node.js ≥ 22, OMP on PATH, a writable workspace and process spawning |
Linux reports and client configs that you have verified are very welcome — see Contributing.
Tools being available doesn't mean they get chosen. Add the delegation policy from step 3, or name the server explicitly in your prompt ("use omp-worker-mcp to…"). On Codex with Code Mode enabled, you can also optionally configure features.code_mode.direct_only_tool_namespaces.
ENOENT.The MCP server can't find OMP. Set OMP_WORKER_OMP_COMMAND to the full path of the executable — GUI clients often start with a shorter PATH than your terminal.
job_id with status running instead of a result.Expected for longer tasks: the call only waits up to wait_seconds. The job keeps running in the background; call omp_wait (or omp_wait_group) to keep waiting.
OMP's default model — the one chosen in omp setup (or modelRoles.default in ~/.omp/agent/config.yml). The supervisor's model is whatever your client uses. That's the point: they can be different.
The task's cwd is not inside any approved root. This is the allowlist working; add the directory to OMP_WORKER_ALLOWED_ROOTS if it should be allowed (note: OMP_WORKER_ALLOWED_ROOTS is available since 0.2.0; npm 0.1.1 lacks this feature).
Two tasks that could run at the same time own overlapping paths. Give them separate ownership scopes, or add depends_on so one runs after the other.
The worker is a separate agent (OMP) with its own model and provider, runs in the background across conversation turns, keeps its state on disk, and can be driven by any MCP client — including ChatGPT on the web. Batches add dependency ordering and write-scope checks on top.
| Guide | Read it when you want to… |
|---|---|
| Author workflow | Set up the delegation policy and understand the supervise → review → correct loop |
| Client configurations | Configure Codex, Claude Code, Cursor, VS Code, Windsurf or Continue |
| ChatGPT Secure MCP Tunnel | Drive local OMP from ChatGPT on the web |
| Tool reference | See every tool, parameter and the result envelope |
| Operations | Tune environment variables, storage, retention and restarts |
| Benchmark protocol | Compare direct execution with supervisor–worker delegation |
| Registry publishing | Release to npm and the Official MCP Registry (maintainers) |
COMPATIBILITY.md defines the public contract and versioning policy; CHANGELOG.md lists releases.
Issues and pull requests are welcome — especially Linux verification and tested client configs. Start with CONTRIBUTING.md. To build from source:
git clone https://github.com/divenire990/omp-worker-mcp.git
cd omp-worker-mcp
npm ci
npm test # builds, then runs the test suite against a fake OMP
Built on the Model Context Protocol TypeScript SDK and designed around Oh My Pi (MIT). OMP is not bundled and must be installed separately. This project is independent and not affiliated with OMP, OpenAI or Anthropic.