Instruct-opencode_V2 / docs /mcp-servers.md
ctaxnagomi's picture
Add mcp doc
9e35721 verified
|
Raw History Blame Contribute Delete
646 Bytes
# 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.