Connect OpenCode to BCTRL MCP

View as Markdown

OpenCode’s remote MCP type currently speaks SSE, so a Streamable HTTP endpoint is reached most reliably through the mcp-remote bridge as a local server. Add this to opencode.json (project root or ~/.config/opencode/opencode.json):

1{
2 "$schema": "https://opencode.ai/config.json",
3 "mcp": {
4 "bctrl": {
5 "type": "local",
6 "command": ["npx", "-y", "mcp-remote", "https://api.bctrl.ai/mcp"],
7 "enabled": true
8 }
9 }
10}

The bridge runs the browser OAuth approval locally and forwards to the hosted endpoint. Once OpenCode supports Streamable HTTP natively, a type: "remote" entry with url will also work.

OpenCode is CLI/TUI-only; there is no add-server UI. See Troubleshooting.