Skip to navigation

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):

{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"bctrl": {
"type": "local",
"command": ["npx", "-y", "mcp-remote", "https://api.bctrl.ai/mcp"],
"enabled": true
}
}
}

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.