opencode_mcp_server
Manage OpenCode MCP servers: check status, add and connect servers, disconnect, and handle authentication flows.
Instructions
Manage MCP servers within OpenCode. Actions: status (all server statuses), add (register new server), connect (connect to server), disconnect (disconnect from server), auth_remove (remove auth), auth_start (start auth flow), auth_callback (complete auth with code), auth_authenticate (authenticate with server).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>"
},
"name": "opencode_mcp_server"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Authorization code (for auth_callback) | |
| name | No | MCP server name (required for most actions except status) | |
| action | Yes | ||
| config | No | JSON — McpLocalConfig or McpRemoteConfig (for add) |