Overview
Connect Operator to OpenCode so its CLI assistant can call a dedicated, adaptive search agent when it needs documentation, migration guides, or real-world examples for your stack. Instead of bouncing between terminals and browsers, you can keep the entire debugging and research loop inside OpenCode. This page explains how to register Operator as an MCP server using the OpenCode CLI or configuration files and how to verify that Copilot-style flows inside OpenCode can see and use Operator.Configure Operator via the OpenCode CLI
Use the OpenCode CLI to add Operator as an MCP server:https://mcp.operator.io/mcp and configure it to send your OPERATOR_API_KEY as an Authorization: Bearer ... header.
Set OPERATOR_API_KEY in your environment before launching OpenCode:
Configure Operator via opencode.json
You can also declare Operator directly in your OpenCode configuration file, for example in ~/.config/opencode/opencode.json:
url to https://mcp.operator.io/sse. You can also send the API key using an x-api-key header instead of Authorization: