MCPOrchestrator
Automates a logged-in Google Gemini web chat on gemini.google.com to read recent messages and submit planning, follow-up, and verification prompts for task orchestration.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCPOrchestrator get my next planned coding task and its lease"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCPOrchestrator
MCPOrchestrator (mcporch) is a local-first AI orchestration bridge that connects your Web AI browser sessions (ChatGPT, Claude, and Gemini) with any MCP-compatible coding agent (Antigravity, Cursor, Claude Code, Windsurf, Cline, and more).
Instead of copy-pasting prompts back and forth between your browser and your IDE, MCPOrchestrator lets your Web AI act as an independent planner and verifier while your coding agent writes code, runs tests, asks follow-up questions, and fixes defects in a continuous loop.
Dashboard Preview

Related MCP server: Agent Harness Kit
How to Use
Step 1 — Install the Package
Install mcporch using pip (this installs the local FastAPI server, web dashboard, and MCP server):
pip install mcporchStep 2 — Run Setup & Load the Browser Extension
Run the setup command to extract the ready-to-load Chromium and Firefox extensions into ~/.mcporchestrator/extensions/:
mcporchestrator setupThen load the extension into your browser:
Chrome / Brave / Edge:
Open
chrome://extensions(orbrave://extensions).Turn on Developer mode in the top-right corner.
Click Load unpacked and select
~/.mcporchestrator/extensions/chromium.
Firefox:
Open
about:debugging#/runtime/this-firefox.Click Load Temporary Add-on....
Select
~/.mcporchestrator/extensions/firefox/manifest.json.
Step 3 — Start the Local Server
Start MCPOrchestrator on http://127.0.0.1:18421/:
mcporchestrator startOr install it as a background service that starts automatically on login:
mcporchestrator install-serviceStep 4 — Connect Your MCP Coding Agent
Add mcporchestrator-mcp to your IDE's MCP client configuration (Antigravity, Cursor, Claude Code, Windsurf, etc.):
{
"mcpServers": {
"mcporchestrator": {
"command": "mcporchestrator-mcp"
}
}
}Step 5 — Open Your Web AI Tab & Start Orchestrating
Open https://chatgpt.com, https://claude.ai, or https://gemini.google.com and log in.
Keep that tab open with an empty message box.
Ask your coding agent to read your open chat (
mcporch_read_chat), create a task (mcporch_create_task), or pick up a task from the dashboard (http://127.0.0.1:18421/).Your Web AI plans the work, your coding agent implements & tests it, and your Web AI verifies every acceptance criterion before marking the task Completed.
Architecture
flowchart LR
Agent["MCP Coding Agent\n(Antigravity, Cursor, Claude Code, etc.)"] <-->|"stdio (MCP)\n10 Tools"| MCP["FastMCP Server\n(mcporch_mcp / mcp-server/server.py)"]
MCP <-->|"HTTP + SSE\n127.0.0.1:18421"| Backend["FastAPI + SQLite Orchestrator\n(backend/app.py)"]
UI["Web Dashboard\n(mcporchestrator.html)"] <-->|"REST + SSE"| Backend
Backend <-->|"HTTP Leases & Progress\n/bridge/*"| Ext["Browser Extension\n(Chromium & Firefox MV3)"]
Ext <-->|"DOM Automation\n+ Open Chat Reader"| WebAI["Web AI Tabs\nChatGPT · Claude · Gemini"]Task Lifecycle & Continuous Loop
flowchart TD
Create["Create Task (POST /tasks or MCP)"] -->|"depends_on_task_id active"| WaitDep["waiting_dependency"]
WaitDep -->|"Parent completes"| Plan["planning\n(Web AI generates plan)"]
Create -->|"No pending dependency"| Plan
Plan -->|"Extension submits plan"| Pending["agent_pending\n(Ready for Coding Agent)"]
Pending -->|"mcporch_get_task"| Exec["executing\n(Agent edits code & runs tests)"]
Exec -->|"mcporch_ask_followup"| Followup["Active Web AI Follow-Up\n(Same open conversation)"]
Followup --> Exec
Exec -->|"mcporch_submit_result"| Verify["verifying\n(Web AI checks acceptance criteria)"]
Verify -->|"PASS (all criteria met)"| Complete["complete"]
Verify -->|"NEEDS_REWORK (retries < max)"| Pending
Verify -->|"FAIL / max retries / stalled"| Review["manual_review / failed"]MCP Tools Reference (mcporchestrator-mcp)
Tool | Purpose | Key Parameters |
| Instantly read the last |
|
| Create a new task and queue its planning prompt |
|
| Wait in 20s-safe slices ( |
|
| Ask a follow-up question inside the active Web AI thread and receive its reply |
|
| Lease the next |
|
| Extend the active execution lease during long builds or test runs |
|
| Submit execution summary, test results, |
|
| Inspect current status, plan, follow-ups, |
|
| List recent tasks across the queue |
|
| Cancel an active task ( |
|
Key Features
Read Open Chat Context (
mcporch_read_chat): Pull the lastNmessages directly from your open ChatGPT, Claude, or Gemini tab before writing a single line of code.No More 20–30s Timeout Drops:
content.jsstreams live progress pings (POST /bridge/progresswith character counts and elapsed seconds), whilemcporch_wait_for_taskreturns in safe20sslices withstill_working=Trueso IDE agents never give up early.Cross-Model Routing: Choose
Any Open Tab,chatgpt.com,claude.ai, orgemini.google.comseparately forplanner_hostandverifier_host(e.g., plan with Claude, verify independently with ChatGPT).Task Dependency Chaining: Pass
depends_on_task_idonPOST /tasksto hold follow-up tasks inwaiting_dependencyuntil the parent task reachescomplete.Automatic Stall Recovery: If a browser AI tab hits a network error banner or stalls after submission,
POST /bridge/stalledimmediately requeues or escalates tomanual_reviewinstead of waiting 15 minutes for lease expiry.Dashboard Productivity Tools: Includes one-click Task Templates (Feature Build, Bug Fix, Code Review, Security Audit), Clone Task, Export
.mdreport, live SSE streaming in the Inspect modal, and an interactive Follow-Up composer.Webhook & Desktop Notifications: Browser notifications on plan/verdict completion plus optional
MCPORCH_WEBHOOK_URLJSON alerts.
CLI Commands
mcporchestrator setup # Extract extensions + open setup guide
mcporchestrator start [--port 18421] # Start the FastAPI server + dashboard
mcporchestrator status # Check backend health
mcporchestrator watch <TASK_ID> # Stream live SSE status & progress in terminal
mcporchestrator install-service # Install user-level systemd / launchd / Windows task
mcporchestrator uninstall-service # Remove background serviceProject Structure
MCPOrchestrator/
├── backend/
│ ├── app.py # FastAPI orchestrator, SQLite state, SSE, security middleware
│ ├── cli.py # CLI: start, setup, status, watch, install-service
│ └── mcporchestrator.html # Full-width dark glass dashboard & How to Use guide
├── mcp-server/
│ └── server.py # FastMCP stdio server exposing all 10 mcporch_* tools
├── chromium-extension/ # Manifest V3 extension for Chrome, Brave, Edge
├── firefox-extension/ # Manifest V3 extension for Firefox
├── scripts/
│ └── package_extensions.py # Builds Chromium & Firefox .zip archives into dist/
├── docs/
│ └── dashboard-preview.png # Live dashboard screenshot
└── tests/ # Python unittest + Node.js bridge test suitesAPI Reference
Method & Path | Consumer | Purpose |
| Browser | Serves the MCPOrchestrator web dashboard |
| Diagnostics | Health check ( |
| User / MCP | Create a task ( |
| User / UI | List recent tasks ( |
| User / UI / MCP | Get full task snapshot, |
| User / UI | Get ordered event audit trail |
| UI / CLI | Server-Sent Events (SSE) live stream |
| User / MCP | Queue a follow-up prompt in the active Web AI thread |
| User / MCP | Cancel an active task ( |
| User / UI | Return a |
| Extension | Lease next pending prompt ( |
| Extension | Report live Web AI generation stage & character count |
| Extension | Immediately requeue or escalate stalled browser responses |
| Extension | Release a pre-submission lease back to |
| Extension | Submit Web AI response (idempotent on exact replay) |
| MCP Server | Request visible messages from an open Web AI tab |
| MCP Server | Lease next |
| MCP Server | Extend active |
| MCP Server | Submit implementation report ( |
Testing & Validation
# 1. Run Python backend, CLI, and MCP tool tests
.venv/bin/python -m unittest discover -s tests -v
# 2. Run browser extension bridge & adapter tests
node --test tests/bridge.test.js
# 3. Package Chromium & Firefox extension zips into dist/
.venv/bin/python scripts/package_extensions.pyTroubleshooting
Extension does not pick up prompts: Make sure your ChatGPT, Claude, or Gemini tab is open, logged in, and its message input box is empty (MCPOrchestrator never overwrites unsent user drafts).
Task stuck in
planningorverifying: Open Tasks → click Reset on the task row (or Inspect to view live SSEbridge_progressand events).Running with token auth: Set
MCPORCH_API_TOKEN=<secret>before starting the server, then paste the same token into the dashboard Settings tab and the extension popup.
Important Boundaries & Security Model
MCPOrchestrator is built forsafe, local-first orchestration with clear boundaries between your browser, server, and coding workspace.
No API keys scraped or stored: The browser extension operates inside your own logged-in ChatGPT (
chatgpt.com), Claude (claude.ai), or Gemini (gemini.google.com) tab.Local-first by design: The orchestrator binds to
127.0.0.1:18421with Host-header DNS-rebinding protection, Content Security Policy headers, restricted system-path checks, and optional bearer authentication (MCPORCH_API_TOKEN).Strict separation of duties: The backend server never executes shell commands or modifies files directly — only your local MCP coding agent touches your repository.
Per-project queue isolation: Only one active task runs per
project_pathat a time, preventing concurrent agents from overwriting each other's changes.
License
MIT — see LICENSE.
Available Tools
10 toolsmcporch_ask_followupB
Ask a follow-up question in the active Web AI conversation for this task and optionally wait (up to 45s slice) for the reply.
Inputs: task_id (required), question (required), context, wait_for_reply, +1 more.
mcporch_cancel_taskB
Cancel an active task (moves it to manual_review) and clear its pending/delivered queue items.
Inputs: task_id (required), reason.
mcporch_create_taskB
Create a new orchestrated task and queue its planning prompt for ChatGPT.
Inputs: title (required), objective (required), project_path (required), acceptance_criteria (required).
mcporch_get_taskC
Lease the next task planned by ChatGPT (optionally filtered by project_path).
Inputs: project_path.
mcporch_heartbeatC
Extend the active task lease during long-running implementation or testing.
Inputs: task_id (required), lease_token (required).
mcporch_list_tasksC
List recent MCPOrchestrator tasks.
Inputs: limit. Returns: result
mcporch_read_chatB
Read the last N messages directly from the currently open ChatGPT/Claude/Gemini browser tab without sending a prompt.
Inputs: host, last_n, timeout_seconds.
mcporch_submit_resultC
Submit implementation summary and test evidence (with optional exit_code/diff_summary) for verification.
Inputs: summary (required), task_id (required), lease_token (required), tests, +6 more.
mcporch_task_statusC
Inspect a task's current status, ChatGPT plan, execution report, and verification verdict.
Inputs: task_id (required).
mcporch_wait_for_taskB
Wait in a safe short slice (max 45s) until a task reaches target_statuses, returning live ChatGPT progress if still working.
Inputs: task_id (required), target_statuses, timeout_seconds, poll_interval_seconds.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 10 tools
Most tools map to distinct lifecycle actions: create, list, status, cancel, wait, lease, heartbeat, submit, follow-up, and chat read. A few boundaries require careful reading, especially task_status vs. wait_for_task and get_task vs. list_tasks, but descriptions make them distinguishable.
All tools use a consistent mcporch_ snake_case prefix and mostly follow verb_noun naming. Deviations like mcporch_task_status and mcporch_heartbeat are readable but less predictable than the rest.
Ten tools is well-scoped for an orchestration lifecycle spanning task creation, leasing, monitoring, follow-up, cancellation, and result submission. Each tool appears to earn its place without obvious redundancy.
The set covers the core task lifecycle from creation through planning, leasing, heartbeat, submission, and cancellation, plus chat read/follow-up. Minor gaps exist around explicit retry/requeue, cleanup/deletion, or direct task result retrieval, but status likely covers the main inspection needs.
Maintenance
Related MCP Connectors
Control plane for autonomous software labor. Agents claim objectives over MCP with audit trail.
Public MCP for agent verification, work discovery and governed interoperability.
Coordinate multiple AI agents over MCP: atomic claims, leases, shared ledger, handoffs, tasks.
Hosted MCP memory and agent control plane for durable conversations, jobs, and operations.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to route coding tasks across local and cloud models with explicit budgets, repository planning and execution, and independent validation/repair checks.Apache 2.0
- AlicenseNot gradedqualityAmaintenanceEnables AI coding providers to run structured multi-agent workflows with tracked tasks, specifications, handoffs, and health-gated completion. It exposes MCP tools for task claiming, action logging, repairs, document validation, and lifecycle evidence.29 npmMIT
- AlicenseNot gradedqualityAmaintenanceExposes an MCP workflow that lets AI coding providers claim and track tasks, log actions, coordinate lead/explorer/consultant/builder/reviewer handoffs, and manage specification documents on the filesystem. Completion is gated on server-owned health checks, so finished work requires passing verification evidence rather than a provider's own claim.29 npmMIT
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI coding providers to run structured multi-agent workflows with documents, tracked tasks, handoffs, and health-gated task lifecycle management over MCP.29 npmMIT