agent-interop-runtime
A local MCP coordination server that finds the coding agents installed on your machine and routes work between their native sessions, keeping each provider's own account, permissions, and environment intact.
Discover and inspect installed providers, their capability grades, and native sessions (
list_agents,list_agent_sessions,get_work_graph), including Freebuff projects, threads, models, and file listings.Send and control work on any provider session (
agent_sendwith separate model, agent, and reasoning controls;agent_cancel), with create, resume, and reattach support for new or existing sessions.Hand off between sessions by passing a result from one provider session to another while preserving identities.
Follow progress via bounded event streams (
events_read,events_pagewith cursors and retention-gap metadata), provider diffs (get_agent_diff), and live Freebuff thread progress and watch tools.Coordinate shared work with durable work records, acceptance criteria, handoffs, reviews, evidence, and cooperative resource claims that the runtime enforces.
Share a conversation log across sessions (
conversation_create,conversation_join,conversation_send), with per-message receipts distinguishing queued, rejected, and delivery-unknown outcomes and idempotency keys for safe retries.Handle permissions explicitly — list pending provider permission requests and respond to them; nothing is ever auto-approved.
Read project files safely within an approved project folder, with credential files blocked, credential-shaped text redacted, and binary files refused.
Run verification with
work_verify, executing up to eight explicitly configured programs in a named workspace without a shell, gated behindINTEROP_ALLOW_VERIFICATION=1and never sandboxed.Inspect state without side effects — most tools carry read-only hints, and uncertain deliveries are recorded rather than silently resent.
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., "@agent-interop-runtime route a prompt from my Codex session to my Claude Code session"
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.
Agent Interop Runtime
Your coding agents already know how to work, and Agent Interop Runtime helps them share a task while each one keeps its own identity, account, and working environment.
Connect a local MCP client to the runtime, and it will find the coding agents installed on your computer so you can choose a session, send it work, follow its progress, and pass a result to another session. Each provider still uses its own account, permissions, history, and project access, so the runtime coordinates the work without merging separate environments.
Think of it as a traffic desk for coding agents, because it shows which session received a task, records the updates that provider sends back, and keeps the result of each check in one place without turning separate conversations into a shared chat.

Watch the short illustrated tour

These pictures are illustrations, so they explain the workflow and available measurements but do not show a live provider session.
What happens when you send work
The runtime sends your message to the provider session you selected, and the receipt may confirm that the provider accepted it; however, acceptance only confirms delivery to the provider and does not mean the agent finished the task. The runtime reports completion only after it observes a result from that session.
The same rule applies when delivery is uncertain, because a network failure may happen after the provider accepted your message but before the runtime received confirmation. In that case the runtime marks delivery as unknown and does not silently send the prompt again, which avoids repeating work that may already be underway.
Related MCP server: @mgcrea/mcp-a2a
What it can do
Find supported provider sessions on your computer, so you can see which local tools are available before choosing where to send work.
Create or resume sessions when the selected provider supports those actions, and use the provider report to check which controls are available in your setup.
Send work, request cancellation, read progress, and collect a provider diff when the selected provider supports those features.
Keep shared work notes, handoffs, evidence, reviews, and cooperative resource claims so participating sessions can coordinate around the same task.
Run local checks inside a named workspace when you explicitly enable verification, and review the configured programs before trusting them with a project.
Read small text files inside an approved project folder, while common credential files are blocked, credential shaped text is redacted, and binary files are refused.
Provider features differ, so the doctor report shows what each installed provider can do; finding a provider alone does not confirm its sign in status or whether it is ready to accept work.
What it does not do
It does not merge provider accounts or histories, and each session remains subject to its provider's own settings.
It does not bypass a login, consent prompt, or permission request, so you must complete those steps through the provider itself.
It does not give an agent access to a provider that is not installed on the computer running the runtime, nor does it replace that provider's own application.
It does not sandbox commands, because verification runs the programs you configure with the access available to your account, so use it only with work and commands you trust.
Resource claims coordinate agents that use this runtime, but they cannot stop another program from editing the same files outside the runtime.
Providers
Freebuff Desktop uses its local app connection, and writes require a current launch check before work is sent; Freebuff CLI instead uses a managed terminal session.
OpenCode uses its local server, which the runtime may start on loopback when needed, and requests that may change work are never replayed after an uncertain network result. Each session remains tied to the server that exposed it, so switching servers does not silently redirect existing work.
Codex uses the Codex app server, while Claude Code and Cursor use their supported Agent Client Protocol commands.
The available features depend on the provider version, local setup, and account state, and most protocol checks use simulated providers rather than live sessions. Check the provider on the computer that will run the MCP server before relying on it for live work.
MCP protocol support
The server supports the 2026-07-28 MCP protocol and the earlier 2025-11-25 protocol, so newer clients can negotiate the per-request protocol while existing clients keep their session-based connection. This works over stdio and Streamable HTTP, and both versions receive the same selected tools and provider behavior.
Choose the tools your client sees
The runtime starts with a focused set of nine tools, so a new MCP connection can find providers, inspect and control sessions, read events, and cancel or resume work without loading the larger coordination catalog. You can choose a larger set when your work needs shared conversations, evidence, handoffs, or Freebuff specific controls, and you can keep the original 0.3.x names while migrating an existing client.
Profile | Tools | Use it when |
| 9 | You want the recommended starting set for provider sessions. |
| 30 | You also need shared conversations, work records, handoffs, reviews, evidence, and claims. |
| 16 | You mainly work with Freebuff projects and threads. |
| 49 | You need the modern names for every supported feature. |
| 52 | An existing MCP client still calls the original 0.3.x tool names. |
The modern profiles use predictable verb first names, and related progress operations have been combined so one tool can read a snapshot or wait for updates. The legacy profile preserves the previous names during migration, while the migration guide maps each older tool to its new name or replacement.
Choose a profile on the server command, or set INTEROP_TOOLS_PROFILE when your client configuration cannot pass an argument.
npx -y agent-interop-runtime@1.1.0 serve --profile minimal
npx -y agent-interop-runtime@1.1.0 serve --profile core
npx -y agent-interop-runtime@1.1.0 serve --profile freebuff
npx -y agent-interop-runtime@1.1.0 serve --profile full
npx -y agent-interop-runtime@1.1.0 serve --profile legacyRead only mode removes tools that change provider or coordination state, and it can be enabled by setting INTEROP_READ_ONLY=1 in the server environment.
Install
Use Node 20 through Node 26, and install the current major release with npm or pnpm before checking which providers are available.
npm install --global agent-interop-runtime@1
agent-interop-runtime doctorYou can also use the source checkout when you are changing the project, and its build runs the same TypeScript compiler used by the release workflow.
git clone https://github.com/Praket7/agent-interop-runtime.git
cd agent-interop-runtime
pnpm install
pnpm build
node dist/src/cli.js doctorConnect a local MCP client
The runtime talks to provider apps and tools installed on the same computer, so the recommended connection is a local MCP server over standard input and output. Start with the setup command for your client, and restart or reload that client after changing its configuration.
Codex
The installer adds or repairs the local Codex entry, backs up the existing configuration before changing it, and preserves unrelated settings.
npx -y agent-interop-runtime@1.1.0 install --writeCursor
The Cursor installer writes a project independent entry in your user configuration, and --project can be added when you want the connection only in the current project.
npx -y agent-interop-runtime@1.1.0 cursor-setup --writeClaude Code
Claude Code can launch the local server directly, and the command below starts with the recommended nine tools.
claude mcp add --transport stdio agent-interop-runtime -- npx -y agent-interop-runtime@1 serve --profile minimalOpenCode
Add the following entry to your OpenCode configuration, and the local process will expose the same focused tool set.
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"agent-interop-runtime": {
"type": "local",
"command": ["npx", "-y", "agent-interop-runtime@1", "serve", "--profile", "minimal"],
"enabled": true
}
}
}Other MCP clients can launch the same serve command through their local server configuration, and the provider applications must be available on the computer running the runtime. HTTP mode can support a deliberate remote setup, but it needs authentication and network protection because session identifiers do not replace access control.
Current evidence
Automated tests and offline benchmarks check the tool behavior with simulated providers, and those results do not contact live agents, measure speed, or estimate provider cost. GitHub CI checks three operating systems against four supported Node versions, for twelve combinations.
Earlier local checks observed a response from Freebuff GLM 5.3 Flash, and OpenCode Big Pickle accepted a prompt, although completion was not observed in that session. Those observations apply only to the specific sessions tested, so they do not establish general provider support.
Run checks
pnpm typecheck
pnpm test
pnpm lint
pnpm mcp:validate
pnpm schema:check
pnpm bench:check
pnpm audit --prod --audit-level=high
npm audit --prefix media/remotion --audit-level=high
pnpm pack:checkRead the provider guide, the plain language architecture guide, the compatibility notes, the 1.0 migration guide, and troubleshooting for setup and behavior details.
Safety and privacy
The local standard input and output server is the simplest setup, while HTTP mode binds to loopback by default and requires a bearer token. Remote access requires an explicit setting and network protection, because session identifiers do not replace authentication.
Project file reads stay inside the selected project folder, and common credential files are denied while text is checked against common credential patterns. These checks cannot detect every secret, so keep sensitive values out of files an agent can read.
Verification is off by default, but when enabled it runs configured programs without a shell and checks that the working folder stays inside the named workspace. Child programs are not sandboxed, so they retain the access granted by your account.
Help improve it
Use doctor before sending work, and when reporting a problem include the provider name, version, operating system, the action you tried, and whether the provider accepted the task or returned a completed result. Leave private prompts and credentials out of reports.
The project welcomes reproducible compatibility reports and code contributions, especially when they explain what happened on a specific provider version and computer.
Available Tools
52 toolsagent_cancelC
Cancel work in a provider native session.
Inputs: nativeId (required), provider (required).
agent_sendB
Send a message to a provider native session. Model, agent, and reasoning are separate controls. For OpenCode, accepted means transport queued the prompt and does not mean completion.
Inputs: text (required), nativeId (required), provider (required), mode, +3 more.
claim_acquireA
Atomically claim a file, directory, interface, or workspace for a work item. Conflicting exclusive claims are rejected by the runtime.
Inputs: workId (required), resource (required), sessionId (required), kind, +2 more.
claim_listCRead-only
List durable resource ownership claims. Active claims are runtime-enforced coordination state, not chat suggestions.
Inputs: workId, activeOnly.
claim_releaseA
Release a durable resource claim. Supplying sessionId prevents one agent from releasing another agent's claim.
Inputs: claimId (required), sessionId.
conversation_createC
Create a local shared conversation coordinator record.
Inputs: title (required).
conversation_joinC
Attach an exact native provider session to a shared conversation.
Inputs: nativeId (required), provider (required), conversationId (required), role, +1 more.
conversation_listARead-only
List shared conversations; metadata only unless detail:true.
Inputs: detail.
conversation_readARead-only
Read a cursor-paged transcript page; pass next back for exactly-once reads.
Inputs: conversationId (required), after, limit.
conversation_reconcileA
Recover interrupted outbound sends after a crash: reclassify stuck queued/unknown records and close them with caller-verified provider receipts (never auto-resends).
Inputs: conversationId, observedReceipts.
conversation_sendA
Persist before delivery; receipt distinguishes queued/rejected/delivery_unknown. Pass idempotencyKey (e.g. workId/handoffId) to make retries safe. Replies need another explicit send.
Inputs: text (required), sender (required), recipient (required), conversationId (required), +4 more.
events_pageBRead-only
Read bounded native events with a registry-owned monotonic cursor, stream epoch, and retention-gap metadata across provider reconnects.
Inputs: nativeId (required), provider (required), limit, timeoutMs, +1 more.
events_readARead-only
Read bounded native events from one shared per-session stream. Legacy array response; events_page is preferred for reconnect/gap metadata.
Inputs: nativeId (required), provider (required), limit, timeoutMs, +1 more.
evidence_getARead-only
Read one exact evidence record by ID. Use this after handoffs/reviews instead of inlining large diffs or logs.
Inputs: evidenceId (required).
evidence_listARead-only
List evidence captured by the runtime. Metadata only: contents are addressable by evidence ID.
Inputs: workId.
freebuff_statusBRead-only
Detect Freebuff and bridge capabilities.
Inputs: no named parameters.
get_active_workCRead-only
Read visible active work.
Inputs: threadId.
get_agent_diffBRead-only
Read native diff evidence while preserving provider identity.
Inputs: nativeId (required), provider (required).
get_threadBRead-only
Read thread metadata.
Inputs: threadId (required).
get_thread_messagesARead-only
Read visible messages for a thread.
Inputs: threadId (required).
get_thread_progressCRead-only
Read live Desktop progress events for a thread. Results are bounded and read-only.
Inputs: threadId (required), limit, afterSequence.
get_thread_progress_summaryARead-only
Return a simple user-facing live progress summary without raw event details.
Inputs: threadId (required).
get_work_graphARead-only
Return the provider independent session and evidence graph, including any durable state recovery warning.
Inputs: no named parameters.
handoff_createC
Create a structured work handoff between exact native sessions. The durable record keeps every field; the bounded delivery packet preserves deterministic continuation state and explicit omissions.
Inputs: risks (required), workId (required), objective (required), evidenceIds (required), +12 more.
handoff_packetARead-only
Read the bounded delivery packet for a handoff: fields kept within the token budget plus explicit omissions and how to request them.
Inputs: handoffId (required).
handoff_update_statusA
Advance a handoff through the explicit lifecycle created → accepted → applied → verified → completed, with blocked/superseded escape states.
Inputs: status (required), handoffId (required).
list_agentsARead-only
List provider adapters and their real capability grades.
Inputs: no named parameters.
list_agent_sessionsARead-only
Discover native sessions across configured providers. Provider failures are returned separately from an empty session list.
Inputs: provider.
list_modelsARead-only
List models exposed by the installed bridge.
Inputs: no named parameters.
list_project_filesCRead-only
List safe project files.
Inputs: projectId (required), relative.
list_projectsARead-only
List discovered Freebuff projects.
Inputs: no named parameters.
list_threadsCRead-only
List Freebuff Desktop threads.
Inputs: projectId.
permission_pendingARead-only
List provider permission requests awaiting an explicit human decision. Never auto-approved.
Inputs: no named parameters.
permission_respondC
Respond to a provider permission request when supported.
Inputs: decision (required), nativeId (required), provider (required), requestId (required).
read_project_fileCRead-only
Read one safe project file.
Inputs: path (required), projectId (required).
resume_threadC
Resume a paused Freebuff thread.
Inputs: threadId (required).
review_createB
Record a review; caller submissions are agent_claim, never provider observations.
Inputs: workId (required), verdict (required), findings (required), independence (required), +2 more.
review_requestB
Send an evidence-backed review request; the repository-diff fallback requires the subject session workspace and never guesses process.cwd().
Inputs: workId (required), objective (required), subjectNativeId (required), subjectProvider (required), +3 more.
send_messageA
Send a text prompt to an existing Freebuff thread.
Inputs: text (required), threadId (required).
session_createC
Create a native provider session when supported.
Inputs: provider (required), cwd, title.
session_resumeC
Resume or reattach to an exact native session.
Inputs: nativeId (required), provider (required).
session_set_modelC
Change the model for an exact native session when supported. OpenCode accepts providerID and modelID.
Inputs: model (required), nativeId (required), provider (required).
session_set_reasoningB
Change reasoning effort for an exact native session when supported.
Inputs: effort (required), nativeId (required), provider (required).
set_modelC
Set the model for an existing thread when supported.
Inputs: model (required), threadId (required), harnessId.
set_reasoningC
Set the reasoning effort for an existing thread when supported.
Inputs: effort (required), threadId (required).
stop_threadB
Stop a running Freebuff turn.
Inputs: threadId (required).
watch_active_threadsARead-only
Return the latest live progress summary for each active Desktop thread.
Inputs: no named parameters.
watch_threadBRead-only
Wait up to 30 seconds for live progress events, then return the bounded read-only snapshot.
Inputs: threadId (required), limit, timeoutMs, afterSequence.
work_createA
Create a durable work item with acceptance criteria and optional dependencies on existing work.
Inputs: objective (required), acceptanceCriteria (required), risks, dependsOn, +2 more.
work_getBRead-only
Read a durable work record and its evidence.
Inputs: workId (required).
work_listARead-only
List durable work records with objective previews and criteria counts.
Inputs: no named parameters.
work_verifyB
Run all accepted verification commands (max 8) inside an explicit or provider-verified workspace. Requires INTEROP_ALLOW_VERIFICATION=1.
Inputs: workId (required), commands (required), cwd.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 52 tools
Most tools have clearly distinct purposes, but there is some overlap in the progress/events area (get_thread_progress, watch_thread, get_thread_progress_summary, watch_active_threads) and events_read vs events_page. Descriptions are detailed enough to reduce confusion, but the close relationships could still cause misselection in some cases.
Naming conventions are inconsistent: many tools use verb_noun (list_models, send_message, set_model) but many also use noun_verb (conversation_create, work_list, evidence_get). There is also mixed use of get_, list_, read_, and watch_ for similar operations (e.g., get_thread, list_threads, read_project_file). This inconsistency makes it harder to predict tool names.
At 52 tools, the server is on the high end and may be overwhelming for agents. The broad domain (sessions, conversations, work, handoffs, claims, evidence, permissions, threads) justifies many tools, but the sheer count risks agent confusion and increased cognitive load. Each tool seems to serve a specific purpose, so it is borderline appropriate.
The tool surface appears comprehensive for an agent interop runtime. It covers session lifecycle (create, resume, cancel, set model/reasoning), conversation coordination (create, join, list, read, send, reconcile), durable work (create, list, get, verify), handoffs (create, update status, packet), claims (acquire, release, list), evidence (get, list), reviews (create, request), and permissions (pending, respond). Thread operations and provider interactions are also covered. No obvious dead ends or major gaps are apparent.
Maintenance
Related MCP Connectors
Connect AI agents to discover services and coordinate real-world tasks.
Connect AI agents to Replynodes over the Model Context Protocol.
Connect AI agents to the Totem network for communication and work coordination.
Multiplayer for the coding agents your team already uses: shared tasks, decisions, skills and tools.
Related MCP Servers
- AlicenseAqualityDmaintenanceConnect Claude Code to other AI agents for messaging, registration, presence, and capability discovery.109 npm1MIT
- AlicenseAqualityCmaintenanceEnables coding agents from different vendors on the same machine to delegate tasks to each other over the A2A protocol, while also allowing the machine to act as an A2A peer.7MIT
- AlicenseBqualityBmaintenanceEnables any MCP host to delegate work to multiple coding-agent CLIs such as Codex, Claude Code, and Antigravity as subagents, preserving native sessions and supporting team-based supervision and agent-to-agent messaging.1711 npmApache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables coding agents to communicate with each other by sending messages and waiting for replies across sessions, supporting agents like Claude Code, Codex, and Grok.MIT