> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://platform.bctrl.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://platform.bctrl.ai/_mcp/server.

# Connect OpenCode to BCTRL MCP

> Add the BCTRL MCP server to OpenCode for hosted cloud-browser automation.

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

```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](/mcp/troubleshooting).