omp-worker-mcp
v0.2.1Hand off coding tasks from ChatGPT, Codex or Claude Code to local Oh My Pi (OMP) workers.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
omp_run_batch_compact Run Batch OMP Tasks with DAG and Compact Aggregated Result (Preferred for Multi-task)
Submits a decomposed group of OMP tasks to execute concurrently in the server-side bounded rolling pool (max_parallel 1-10) using a detached group runner. Enforces dependency DAG and write-ownership safety, waits up to wait_seconds (0-240, default 60s) for batch completion, and returns stable compact aggregated results. If still running when deadline elapses, returns group_id and minimal progress counts for subsequent omp_wait_group.
| Parameter | Type | Description |
|---|---|---|
cwd * | string | Absolute working directory OMP may inspect and modify |
tasks * | array | Array of decomposed tasks to execute concurrently according to dependency DAG and ownership safety |
default_max_attempts | integer | Default per-task attempt limit if not specified in task (1-5, default 3) |
default_timeout_minutes | integer | Default per-task timeout in minutes if not specified in task (1-120, default 30) |
group_timeout_minutes | integer | Hard overall group deadline in minutes (1-120, default 60) |
max_parallel | integer | Maximum concurrent active OMP runners (1-10, default 4) |
supervisor_brief | string | Shared decision-ready read-only findings, hypotheses, and constraints for the task group |
wait_seconds | integer | Maximum seconds to wait for batch completion inside this call (0-240, default 60) |
omp_wait_group Wait for Batch Task Group
Wait for an existing OMP task group to reach a terminal status, polling up to wait_seconds (0-240, default 60s). If completed, returns full aggregated compact results in original input order. If still running when deadline elapses, returns minimal progress counts without leaking task summaries.
| Parameter | Type | Description |
|---|---|---|
group_id * | string | The unique group_id returned by omp_run_batch_compact |
wait_seconds | integer | Maximum seconds to wait inside this call (0-240, default 60) |
omp_cancel_group Cancel Batch Task Group
Request immediate cancellation of a running batch task group and its child tasks. Writes a cancellation request that the detached group coordinator handles safely. Call this immediately when the user asks to stop a batch.
| Parameter | Type | Description |
|---|---|---|
group_id * | string | The group_id of the batch task group to cancel |
reason | string | Reason for cancellation |
omp_run_compact Run OMP Task with Compact Result (Preferred for Single Task)
Preferred entrypoint for single substantive execution tasks. Creates a delegated OMP task, launches the detached runner, and waits up to wait_seconds (default 60s) for completion in a single MCP call. If finished, returns a compact summary, artifacts, verification, and details_path without dumping the full final response. If still running at the deadline, returns job_id and status running for subsequent omp_wait.
| Parameter | Type | Description |
|---|---|---|
cwd * | string | Absolute working directory OMP may inspect and modify |
goal * | string | Complete natural-language outcome OMP must deliver |
acceptance | array | |
max_attempts | integer | |
supervisor_brief | string | Decision-ready read-only findings, hypotheses, constraints, and recommended direction |
timeout_minutes | integer | |
wait_seconds | integer | Maximum seconds to wait for terminal status inside this call (0-60, default 60) |
omp_delegate Delegate Complete Task to OMP (Low-level)
Low-level background delegation entrypoint. Transfers ownership of an execution task to OMP and returns immediately with job_id. Prefer omp_run_compact for standard workflows to avoid separate delegate/wait round trips.
| Parameter | Type | Description |
|---|---|---|
cwd * | string | Absolute working directory OMP may inspect and modify |
goal * | string | Complete natural-language outcome OMP must deliver |
acceptance | array | |
max_attempts | integer | |
supervisor_brief | string | Decision-ready read-only findings, hypotheses, constraints, and recommended direction |
timeout_minutes | integer |
omp_cancel Stop OMP Task
Request immediate cancellation of one exact delegated OMP job. The detached runner owns the OMP child PID and terminates that process tree safely. Call this immediately when the user asks to stop; do not inspect PIDs or manually kill processes first.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | |
reason | string |
omp_wait Wait for OMP Task
Wait for an existing OMP job to reach a terminal status, polling up to wait_seconds (default 30s, max 60s). Returns the current status and summary once terminal or when the wait deadline elapses. Avoid polling in a tight loop.
| Parameter | Type | Description |
|---|---|---|
job_id * | string | |
wait_seconds | integer |
omp_result Inspect Complete OMP Task Result
Retrieve full details of a terminal OMP job, including finalResponse and attempt logs. Call this only when minimal acceptance check fails, high-risk operations occurred, or the user explicitly asks for full inspection; do not call this after every successful compact run.
| Parameter | Type | Description |
|---|---|---|
job_id * | string |
omp_continue Send Supervisory Feedback to Same OMP Session
Resume the same OMP session with targeted supervisory feedback to correct specific acceptance defects without starting a fresh task from scratch. Bounded to remaining attempts within max_attempts.
| Parameter | Type | Description |
|---|---|---|
feedback * | string | Specific defect, evidence, intended correction, and success check |
job_id * | string | |
timeout_minutes | integer |