File size: 646 Bytes
9e35721
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# MCP Servers (OpenCode V2)

Setup: opencode mcp add <name> --url <url> or -- command. Use --global. Check opencode mcp list.

Config: mcp.servers with unique names. type local or remote. disabled: true to keep without connecting.

Local: command, cwd, environment. Remote: url, headers, oauth, disabled, codemode, timeout, protocol.

OAuth enabled by default for remote; use oauth: false with API key headers. Manage with opencode mcp auth/logout.

Timeouts: startup, catalog, execution. Protocol: legacy (default), auto, 2026-07-28.

Tools named server_tool. Permissions can hide/deny tools. Resources via list_mcp_resources/read_mcp_resource.