omp-worker-mcp

v0.2.1
io.github.divenire990/omp-worker-mcp Checked 3 days ago Published 1 month ago

Hand 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.

ParameterTypeDescription
cwd *stringAbsolute working directory OMP may inspect and modify
tasks *arrayArray of decomposed tasks to execute concurrently according to dependency DAG and ownership safety
default_max_attemptsintegerDefault per-task attempt limit if not specified in task (1-5, default 3)
default_timeout_minutesintegerDefault per-task timeout in minutes if not specified in task (1-120, default 30)
group_timeout_minutesintegerHard overall group deadline in minutes (1-120, default 60)
max_parallelintegerMaximum concurrent active OMP runners (1-10, default 4)
supervisor_briefstringShared decision-ready read-only findings, hypotheses, and constraints for the task group
wait_secondsintegerMaximum 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.

ParameterTypeDescription
group_id *stringThe unique group_id returned by omp_run_batch_compact
wait_secondsintegerMaximum 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.

ParameterTypeDescription
group_id *stringThe group_id of the batch task group to cancel
reasonstringReason 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.

ParameterTypeDescription
cwd *stringAbsolute working directory OMP may inspect and modify
goal *stringComplete natural-language outcome OMP must deliver
acceptancearray
max_attemptsinteger
supervisor_briefstringDecision-ready read-only findings, hypotheses, constraints, and recommended direction
timeout_minutesinteger
wait_secondsintegerMaximum 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.

ParameterTypeDescription
cwd *stringAbsolute working directory OMP may inspect and modify
goal *stringComplete natural-language outcome OMP must deliver
acceptancearray
max_attemptsinteger
supervisor_briefstringDecision-ready read-only findings, hypotheses, constraints, and recommended direction
timeout_minutesinteger

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.

ParameterTypeDescription
job_id *string
reasonstring

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.

ParameterTypeDescription
job_id *string
wait_secondsinteger

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.

ParameterTypeDescription
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.

ParameterTypeDescription
feedback *stringSpecific defect, evidence, intended correction, and success check
job_id *string
timeout_minutesinteger