OpenCode MCP servers
opencode_mcpInspect and manage the MCP servers an OpenCode project uses: list servers and status, view resource catalogs, add local or remote servers, remove, connect, or disconnect them.
Instructions
Inspect and manage the MCP servers that OpenCode itself uses (not this bridge). Actions: list (servers + connection status), resources (tool/resource catalog), add (local or remote), remove, connect, disconnect. Server enablement is global per OpenCode project; per-session tool filtering is done with session permissions.
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"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| types | No | Resource types for action=resources | |
| action | Yes | ||
| config | No | Server config for action=add | |
| server | No | Server name, for add/remove/connect/disconnect | |
| directory | No |