Connect OpenCode

Link OpenCode to Rig's local MCP hub.

Steps

  1. Open Connections in Rig and start the MCP hub.
  2. Choose OpenCode and click Link.
  3. Restart OpenCode, then run /mcp.

Config path

User scope: ~/.config/opencode/opencode.json. Project scope: opencode.json.

Note

OpenCode uses a remote entry under mcp (not mcpServers).

See also

Related

https://userig.app/docs/mcp-opencode