MCP
Connect a chat agent or coding agent to an OpenRig team so it can assign work, check progress and read results without a shell. rig mcp serve exposes those operations through the Model Context Protocol (MCP), using the same daemon as the CLI.
For the Claude Code or Codex session you’re working in, the openrig plugin packages the connection. To configure another MCP client yourself, use the local server below.
Connect a local MCP client
For a client that starts an MCP process, set the command to rig and the arguments to mcp, serve. For example, a client with an mcpServers configuration can use:
{
"mcpServers": {
"openrig": {
"command": "rig",
"args": ["mcp", "serve"],
"env": { "OPENRIG_SESSION_NAME": "agent@my-rig" }
}
}
}
Use your client's configuration instructions and the full path to rig if it can't find the executable. Set OPENRIG_SESSION_NAME to the existing seat the MCP client should act as. This declares its identity; local stdio doesn't authenticate that declaration. The OpenRig daemon must be running.
For a chat agent or coding agent helping you direct the rig, rig mcp serve --front-door serves the tools for handing work over, following it and bringing the team's questions back. The plugin configures this route for supported apps. To answer the team’s questions from there, give the plugin a seat first.
Check identity, then assign work
Ask the connected agent to use these tools:
rig_whoamishows who the server acts as and whether that identity is authenticated.rig_teamshows a rig's agents and lead.rig_queue_createassigns a task and returns itsqitemId.rig_queue_showreads the task later, including the next task when work was handed on.
An MCP client without a seat can still send messages, create tasks and use chat. Those calls record it as an unknown sender; follow its work by the returned task ID. Claiming, updating, handing off or deciding a task needs a seat.
For a connected agent working as a rig member, use rig_queue_handoff to pass an assigned task to another agent. rig_queue_unclaim releases its claim. Reading a task checks for progress; it doesn't mean an ordinary chat app will notice an answer by itself.
Connect from another machine
Internet-facing MCP is experimental, unsupported and off by default; use at your own risk. If you expose it, supply your own TLS tunnel or proxy and require a token before connecting. Anyone with the address and a valid token can act within that token's grant.
rig mcp token add agent --seat agent@my-rig --rig my-rig
rig mcp serve --http
token add prints the token once and stores only its hash. Give the client the token through its secure credential settings; it sends Authorization: Bearer <token>. Keep the grant limited to the rigs it needs. Extra shared file roots and workspace access require separate grant options.
HTTP serves /mcp on 127.0.0.1:7437 by default. With no grants it stays on loopback and uses the declared seat, without authentication. Add a grant before reaching it through a tunnel or proxy, which also arrives on loopback. Once a grant exists, every request needs a valid token, including local requests. The server itself doesn't supply TLS.
Inspect grants or revoke one when you're finished:
rig mcp token list
rig mcp token revoke agent
Revocation refuses the caller's next request; work it already assigned remains with the team.
Hosted members and grant-service agents are experimental, unsupported and off by default; use at your own risk.
Find a tool's inputs
The generated MCP tool reference lists every tool and its input schema. Your client's tool discovery gives the tools served by your installed version. Use those schemas for required inputs rather than guessing from an example.
The server supports clients using either the 2025 initialization handshake or the 2026-07-28 protocol. --port selects a different daemon port; --bind selects the HTTP listening address. See the CLI reference for every server and grant option.
Where to go next
- Coordination: assigning tasks and following handoffs.
- Messaging: what sending to an agent and reading its screen do.
- Integrations: supported chat-agent, coding-agent and editor connections.
- Troubleshooting: a missing executable or unreachable daemon.