# MCP Servers (OpenCode V2) Setup: opencode mcp add --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.