omp-worker-mcp
omp-worker-mcp
Robuster Model Context Protocol (MCP)-Server zur Delegierung asynchroner Codierungsaufgaben und DAG-Workflows an lokale Oh My Pi (OMP)-CLI-Subagenten.
Schnellstart • Konfiguration • Verfügbare Tools • Sicherheitsvertrag • Upstream-Attribution
Wichtigste Highlights
⚡ Asynchrone delegierte Ausführung: Lagern Sie schwere Codierungs-, Refactoring- und Erkundungsaufgaben an Hintergrund-OMP-Worker-Instanzen aus, ohne Ihre Hauptkonversationssitzung zu blockieren.
🔀 Topologische DAG-Orchestrierung: Führen Sie voneinander abhängige Batch-Aufgaben mit automatischer topologischer Sortierung, Parallelitätssteuerung und Abhängigkeitsweitergabe aus.
🛡️ Arbeitsbereich-Pfadisolation: Erzwingen Sie explizite Schreibpfadgrenzen und verhindern Sie überlappende Dateiänderungen bei gleichzeitigen Aufgaben.
🔍 Überwachte Wiederaufnahme & Envelopes: Untersuchen Sie Zwischenlogs in Echtzeit, extrahieren Sie strukturierte JSON-Ergebnis-Envelopes und geben Sie überwachende Anweisungen, um Aufgaben zu wiederholen oder anzupassen.
Related MCP server: claude-orchestrator
Upstream-Attribution & Haftungsausschluss
Externe Upstream-CLI: Dieses Projekt interagiert mit Oh My Pi (OMP), einem Open-Source-Tool, das unter der MIT-Lizenz veröffentlicht wurde.
Voraussetzungen für Benutzer:
Node.js >= 22.0.0.
Benutzer müssen eine eigene lokale Instanz der OMP-CLI installieren und konfigurieren.
Benutzer sind dafür verantwortlich, die OMP-CLI-Lizenz und die für ihre Umgebung geltenden Bedingungen einzuhalten.
Funktionen
Asynchrone delegierte Ausführung: Starten Sie unabhängige Sub-Agent-Codierungsaufgaben, ohne die Hauptkonversationssitzung zu blockieren.
DAG- & Batch-Orchestrierung: Führen Sie voneinander abhängige Batch-Aufgaben mit topologischer Abhängigkeitssortierung, Parallelitätslimits und automatischer Abhängigkeitsweitergabe aus.
Strenge Aufgabensicherheit & Pfadbesitz: Integrierte Validierungsprüfungen verhindern, dass mehrere gleichzeitige Aufgaben in überlappende Dateipfade schreiben oder im selben Arbeitsbereich kollidieren.
Kontinuierliche Überwachung & Feedback: Untersuchen Sie Zwischenausgaben, streamen Sie Logs, rufen Sie strukturierte JSON-Envelopes ab und geben Sie überwachendes Feedback, um Versuche fortzusetzen oder zu wiederholen.
Plattformübergreifendes Design: Entwickelt für lokale Node.js-Umgebungen unter Windows, macOS und Linux; validieren Sie die Verfügbarkeit der OMP-CLI auf Ihrer Plattform.
Installation & Schnellstart
# 1. Clone the repository
git clone https://github.com/divenire990/omp-worker-mcp.git
cd omp-worker-mcp
# 2. Install dependencies
npm ci
# 3. Build TypeScript to dist/
npm run build
# 4. Run test suite
npm testKonfiguration
Die Konfiguration erfolgt über Umgebungsvariablen (oder direkt in Ihrem MCP-Client).
Variable | Beschreibung | Standard |
| Pfad oder Name der ausführbaren Datei für die OMP-CLI-Binärdatei. |
|
| JSON-Array von Argumenten, die OMP-CLI-Aufrufen vorangestellt werden. |
|
| Verzeichnis zur Speicherung von Auftragszuständen, Versuchen, Logs und Artefakten. |
|
| Optionale benutzerdefinierte Browser-Automatisierungsanweisungen, die in Aufgabenaufforderungen eingefügt werden. | (keine) |
Plattformübergreifende Umgebungsbeispiele
Windows (cmd / PowerShell)
set OMP_WORKER_OMP_COMMAND=omp
set OMP_WORKER_STATE_DIR=C:\Users\YourUser\.codex\state\omp-workermacOS / Linux (bash / zsh)
export OMP_WORKER_OMP_COMMAND=/usr/local/bin/omp
export OMP_WORKER_STATE_DIR=/home/youruser/.codex/state/omp-workerBeispiel für die Codex-MCP-Client-Konfiguration
Fügen Sie den Server zu Ihrer Codex-MCP-Konfiguration hinzu (z. B. in config.toml):
Windows-Beispiel
[mcp_servers.omp-worker]
command = "node"
args = ["C:/path/to/omp-worker-mcp/dist/index.js"]
[mcp_servers.omp-worker.env]
OMP_WORKER_OMP_COMMAND = "omp"
OMP_WORKER_STATE_DIR = "C:/Users/YourUser/.codex/state/omp-worker"macOS-/Linux-Beispiel
[mcp_servers.omp-worker]
command = "node"
args = ["/path/to/omp-worker-mcp/dist/index.js"]
[mcp_servers.omp-worker.env]
OMP_WORKER_OMP_COMMAND = "/usr/local/bin/omp"
OMP_WORKER_STATE_DIR = "/home/youruser/.codex/state/omp-worker"Verfügbare MCP-Tools
Tool | Zweck |
| Praktisches Tool: delegiert eine einzelne Aufgabe und wartet bis zu |
| Startet einen asynchronen Hintergrund-Worker für eine Codierungsaufgabe und gibt sofort eine |
| Wartet, bis ein laufender Hintergrundauftrag abgeschlossen ist, oder fragt ab, bis ein Timeout erreicht wird. |
| Ruft die vollständige Versuchshistorie, Logs, Ausgaben und geparsten strukturierten Envelopes für einen Auftrag ab. |
| Speist überwachende Korrekturen/Anweisungen in einen fehlgeschlagenen oder blockierten Auftrag für einen neuen Versuch ein. |
| Beendet einen laufenden Auftrag und seinen Kindprozessbaum ordnungsgemäß. |
| Startet einen Abhängigkeitsgraphen (DAG) aus parallelen/sequenziellen Batch-Aufgaben und wartet auf den Abschluss. |
| Wartet darauf, dass eine asynchrone Batch-Aufgabengruppe Fortschritte macht oder abgeschlossen wird. |
| Bricht alle laufenden und in der Warteschlange befindlichen Aufgaben innerhalb einer Batch-Gruppe ab. |
Vertrag zu Aufgabensicherheit & Pfadbesitz
Schreib- vs. Nur-Lese-Isolation:
write-Aufgaben müssen die spezifischen Dateipfade angeben, die sie besitzen.read_only-Aufgaben sind strikt von Änderungen am Arbeitsbereich ausgeschlossen.
DAG-Überlappungsprüfung:
Parallel laufende Aufgaben dürfen keine überlappenden Schreibgrenzen angeben.
Aufgaben, die gemeinsame Pfade ändern, müssen explizite lineare DAG-Abhängigkeiten (
depends_on) angeben.
Vertrag zur strukturierten Verifizierung:
Von jeder abgeschlossenen Teilaufgabe wird erwartet, dass sie strukturierte Verifizierungsdetails und aktualisierte Artefaktbeschreibungen zurückgibt.
Lizenz
Dieses Projekt ist unter der MIT-Lizenz lizenziert.
Available Tools
9 toolsomp_cancelStop OMP TaskADestructiveIdempotent
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.
Inputs: job_id (required), reason. Returns: error, job_id, status, attempt, +7 more
omp_cancel_groupCancel Batch Task GroupADestructiveIdempotent
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.
Inputs: group_id (required), reason. Returns: tasks, status, summary, group_id, +6 more
omp_continueSend Supervisory Feedback to Same OMP SessionADestructive
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.
Inputs: job_id (required), feedback (required), timeout_minutes. Returns: error, job_id, status, attempt, +7 more
omp_delegateDelegate Complete Task to OMP (Low-level)ADestructive
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.
Inputs: cwd (required), goal (required), acceptance, max_attempts, +2 more. Returns: error, job_id, status, attempt, +7 more
omp_resultInspect Complete OMP Task ResultARead-onlyIdempotent
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.
Inputs: job_id (required). Returns: cwd, goal, error, job_id, +11 more
omp_run_batch_compactRun Batch OMP Tasks with DAG and Compact Aggregated Result (Preferred for Multi-task)ADestructive
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.
Inputs: cwd (required), tasks (required), max_parallel, wait_seconds, +4 more. Returns: tasks, status, summary, group_id, +6 more
omp_run_compactRun OMP Task with Compact Result (Preferred for Single Task)ADestructive
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.
Inputs: cwd (required), goal (required), acceptance, max_attempts, +3 more. Returns: error, job_id, status, attempt, +7 more
omp_waitWait for OMP TaskARead-onlyIdempotent
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.
Inputs: job_id (required), wait_seconds. Returns: error, job_id, status, attempt, +7 more
omp_wait_groupWait for Batch Task GroupARead-onlyIdempotent
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.
Inputs: group_id (required), wait_seconds. Returns: tasks, status, summary, group_id, +6 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 9 tools
Each tool has a clearly distinct purpose: batch vs single, delegate vs wait vs cancel vs result retrieval vs continue. No two tools overlap in function—omp_run_compact and omp_delegate differ by synchronous vs asynchronous, and omp_wait_group vs omp_wait serve batch vs single jobs.
All tools follow a consistent `omp_<verb>[_<noun>]` pattern where the verb describes the action (run, wait, cancel, result, continue) and optional noun specifies the target (batch, group, compact). Perfectly predictable and uniform.
9 tools precisely cover the lifecycle of both single and batch task execution: submission, waiting, cancellation, result retrieval, and continuation. No tool is superfluous, and the count is tight for the complexity of the domain.
The tool surface covers every stage of task management: submission (run/delegate), monitoring (wait), cancellation (cancel), post-hoc inspection (result), and iterative correction (continue). No obvious gaps—both single and batch workflows are fully supported.
Maintenance
Related MCP Connectors
- aXDeprecatedio.github.ax-platform
Agent-native collaboration network: orchestrate a team of long-running agents from any MCP client.
Task manager for AI agents. Orchestrate agents to achieve large goals in unified control plane.
AI work orchestration for plans, tasks, teams, and coding-agent dispatch.
Design, build and run teams of AI agents with checked handoffs between them.
Related MCP Servers
- AlicenseAqualityAmaintenanceEnables orchestrating external AI-agent CLIs like Codex to execute project development tasks through an async task system with objective verification and automated failure rework loops.8182 npm11Apache 2.0
- AlicenseAqualityBmaintenanceEnables Cursor's main agent to delegate development tasks to Claude CLI subagents via MCP, supporting synchronous, asynchronous, and parallel task execution with monitoring and control.7ISC
- AlicenseCqualityBmaintenanceEnables multiple CLI-based AI agents to collaborate as a coordinated team through shared task queues, shared memory, and a message bus, with DAG orchestration, rate-limit avoidance, parallel dispatching, and long-task management.633MIT
- FlicenseNot gradedqualityAmaintenanceEnables a primary AI assistant to delegate tasks in parallel to specialized local CLI-based AI sub-agents, share project context, and synthesize their responses through a single MCP interface.-