OpenCode is an open-source terminal (and desktop / extension) AI coding agent. It supports MCP natively via mcp in opencode.json (project root) or ~/.config/opencode/opencode.json. Pluribus fits as remote HTTP MCP (preferred, service-first) or local stdio via pluribus-mcp.
Official references: MCP servers, Config, Rules / AGENTS.md.
Merge the mcp.pluribus block from integrations/opencode/mcp-config.example.json into your OpenCode config. Adjust url for non-local Pluribus.
- Set
oauth": falseso OpenCode does not treat Pluribus as an OAuth MCP server (Pluribus usesX-API-Keywhen auth is enabled). - When the control plane has
PLURIBUS_API_KEYset, addheaderswithX-API-Key— use{env:PLURIBUS_API_KEY}per OpenCode variable substitution. If the server has no API key, omitheadersentirely (do not send an empty key).
OpenCode names tools with an MCP prefix (e.g. pluribus_*). You can nudge the model with use pluribus or document defaults in AGENTS.md (see below).
Context caveat: OpenCode warns that many MCP tools increase token use—keep Pluribus enabled and disable heavier MCPs you do not need. You can also scope MCP tools per agent.
Use type": "local" with a command array pointing at your pluribus-mcp binary and environment for CONTROL_PLANE_URL (and CONTROL_PLANE_API_KEY when the server uses PLURIBUS_API_KEY). Build: cd control-plane && go build -o pluribus-mcp ./cmd/pluribus-mcp. Same behavior as other clients; see mcp-usage.md.
instructions/AGENTS.md/.opencode/skills/— see OpenCode rules.- Canonical: integrations/pluribus-instructions.md. Follow integrations/opencode/AGENTS.template.md for
AGENTS.md(or merge the same text intoopencode.jsoninstructions). Optionally copy integrations/opencode/skills/pluribus/ to.opencode/skills/pluribus/or paste integrations/opencode/skill.md intoAGENTS.md. Pack: integrations/opencode/README.md.
After editing config, restart OpenCode. Use opencode mcp list to confirm the server is registered (see OpenCode MCP docs). This repo does not run automated tests against OpenCode releases—re-check after major OpenCode upgrades.
- Remote URL must reach a live Pluribus control plane (
POST /v1/mcp). - Tool count affects context; trim other MCP servers if you hit limits.