How to connect MCP servers to each harness and what their tools can do once connected. The protocol table at the end shows which parts of the MCP specification each client supports.
Setting up a server
| Question | OpenCodechecked at 2.0.29 |
|---|---|
| Add a server | Run |
| Transports | Local servers use stdio and remote servers use Streamable HTTP with an absolute URL. The legacy HTTP+SSE fallback from 1.x is gone, and WebSocket is not supported. 2.1.4 SDK connectClientMcp exposes client-hosted tools through an experimental WebSocket at /api/experimental/client-mcp. OpenCode remains the MCP client; this is not a general MCP-server mode or Tasks support. The host must supply tools/handlers and connection authentication. |
| Where configs live, and project trust | Servers can be defined in global |
| Sign in or pass credentials | OAuth is on for every remote server unless |
Using its tools
| Question | OpenCodechecked at 2.0.29 |
|---|---|
| Approve, allow or block tools | MCP tools run without asking by default because every agent starts from an allow-all base policy. Add ordered Since 2.0.30, MCP permission evaluation receives the tool arguments as metadata.input (an empty object when arguments are absent), so permission hooks can inspect the requested input. |
| Tool search & code mode | Code Mode is the default: MCP tools are not put on the model's native tool list but grouped by server inside the Denying the |
| Output size and timeouts | Timeouts are set under 2.2.7 built-in MCP client passes toolDefinition with outputSchema unset to SDK callTool, avoiding SDK output-schema rejection of otherwise completed server actions. Input-schema metadata is still retained. This is a result-validation choice in the concrete client, not Tasks support or an absence claim across plugins/providers. Source inspection only. |
| Resources | Partly The agent can list and read server resources with the built-in In 2.0.30, tools, prompts, resources and resource-template catalog requests are sent only when the server advertises the corresponding capability; absent capabilities yield empty lists. |
| Prompts | |
| When a server asks you or the model | Partly OpenCode 2.1.4 registers form and URL elicitation on its shared core client. Location-preserving callbacks publish form events consumed by TUI and desktop/web input controls. Replies carry typed field values; the backend validates its translated schema subset. Accept and cancel are mapped, with no distinct decline. URL completion follows the negotiated legacy or current flow. Headless completion remains unverified. In 2.0.30, the client advertises elicitation.form={} and elicitation.url={}; it no longer advertises the nonstandard form.applyDefaults field. How the UI shows default values is unknown. 2.1.4 source initializes supported frontend defaults; earlier blanket frontend-default uncertainty is superseded. Source rendering paths are not passing UI probes. |
Running servers
| Question | OpenCodechecked at 2.0.29 |
|---|---|
| Status, enable, reconnect, debug |
|
| Run the harness as an MCP server | Not supported No. OpenCode 2.x is only an MCP client and has no MCP server mode. Other tools integrate through its background server's HTTP API instead. |
Protocol features
| Feature | OpenCodeprotocol 2025-11-25; 2026-07-28 opt-in per server |
|---|---|
| Roots Let a server discover the client-approved filesystem roots; this is not the server process working directory. deprecated in the current spec | Supported Answers |
| Sampling Let a server request an LLM interaction through the host, with user review and model preferences. deprecated in the current spec | Not supported No |
| Sampling with tools Let the sampling loop invoke tools recursively; do not confuse this with ordinary server tool calls. deprecated in the current spec | Not supported Source |
| Elicitation (generic) Server-originated MCP input requests, distinct from permission approvals, model ask-user tools, generic chat forms or MCP Apps. Check each mode and host separately. | Partly 2.1.4 source traces SDK callback Location preservation -> form.created state -> TUI FormPrompt and desktop/web SessionElicitationDock. Both form and URL modes remain partial: typed values/defaults are represented, backend checks mapped fields, and outcomes map to accept/cancel without distinct decline. No runtime UI or headless interoperability probe. Source |
| Form elicitation Collect typed property-keyed answers using the restricted elicitation schema, with accept/decline/cancel. Schema parsing, UI validation and backend answer validation are separate claims. | Partly 2.1.4 source: TUI and desktop/web forms initialize supported defaults and collect text, number/integer, choices/multiselect and booleans. Backend validation is of the translated subset, not arbitrary JSON Schema. No runtime rendering probe. Source |
| URL elicitation Direct the user to an external interaction without collecting its sensitive data. Acceptance is not completion; track legacy completion notifications separately from current MRTR retry. | Partly External-link form returns accept or cancel. Legacy server+elicitationId completion settles pending forms; current 2026-07-28 confirms and retries without that notification. Accept does not establish external operation success. Source |
| Prompts Expose reusable, argument-aware server prompts through the client UI. | Supported Prompts become |
| Resources List and read server-provided context independently from tool execution. | Supported Available to the agent through |
| Resource templates Discover and fill parameterized resource URIs. | Supported Templates are listed alongside resources; the agent expands |
| Argument completion Complete prompt arguments and resource-template parameters without an LLM call. | Not supported The connection exposes no completion call. Source |
| Progress Correlate monotonic progress with a request; UI display and timeout extension are separate behaviors. | Partly Progress keeps long calls alive; it is not displayed. Source |
| Cancellation Cooperatively cancel in-flight protocol requests and propagate intent to the handler. | Supported Requests carry an abort signal that cancels the in-flight request. Source |
| Protocol logging Deliver correlated server logs through MCP rather than relying on process stderr. deprecated in the current spec | Not supported No |
| Subscriptions Receive correlated updates over a long-lived request. | Partly On 2026-07-28 connections the SDK keeps a |
| Multi-round-trip requests Pause a request for sampling, elicitation, or roots input and retry it with opaque request state. | Partly On 2026-07-28 connections the SDK retries a call after elicitation input; requires |
| Tasks (legacy) Durable polling, status, result, and cancellation state from the 2025-11-25 experimental protocol era. earlier experimental spec | Not supported No |
| Tasks extension Asynchronous tool results using io.modelcontextprotocol/tasks on 2026-07-28 connections, separate from legacy Tasks and client backgrounding. separate protocol extension | Not supported Source-audited at v2.1.4 (68bc26b7da1990ce10ffecfbc1e09eb13aa5d824): local, remote and attached transports share the same SDK adapter, ordinary callTool and final-result conversion. SDK 2.3.1 MRTR support is separate; the adapter installs no Tasks extension driver. Custom independent clients remain unverified. Source |
| Events and agent wake-up External updates that can trigger agent work. ChatGPT Work documents signed webhook subscriptions; Codex has a separate hosted-app event stream. Receiving an event and starting a model turn are separate capabilities. separate protocol extension | Partly Since 2.3.0, experimental MCP Events (SEP-3415 draft), confirmed at 2.3.2. Enable experimental.mcp_events (release default off). The concrete client advertises io.modelcontextprotocol/events and exposes events/list and events/stream only when the server advertises that extension. Notifications are correlated by stream request ID. Event-triggered automations additionally require experimental.automations and a push-capable server. No wire or agent-wake runtime probe; this does not establish Tasks support. Source |
Notes and sources
OpenCode, 32 sources
- Elicitation refreshed at v2.1.3 (bb25a2f4a3f3f04d7c344bec0c0574ea3510b3b1), 2026-10-23; other features retain their 2.0.29/2.0.30 evidence. GitHub latest release points to 1.x, so 2.x tags were checked separately. Source evidence only, not a runtime probe.
- Tasks extension reviewed 2026-10-24; see docs/research/evidence/mcp-tasks-other-harnesses-2026-10-24.json. Other feature ratings and sourceRevision/observedVersion retain their independently dated audits.
- 2.2.0 source exposes otherwise Code Mode tools directly when execute is wholly denied, while retaining each tool permission filter. MCP instruction guidance switches to direct-tool guidance in that case. No new sampling, Tasks, or event-protocol support is inferred.
- 2.2.3+ Claude Agent is a separately registered built-in provider plugin. At 2.2.7 its setup skips workspace-backed locations and environments without a process spawner; its SDK query options disable Claude settings/hooks/skills/tools/auto-memory/auto-compaction and expose OpenCode tools through mcp__opencode__*. OpenCode and Claude standalone MCP, hook and memory contracts are not interchangeable; the Claude binary/host runtime was not probed.
- 2.3.2 MCP Events source is independently pinned; historical observedVersion/sourceRevision and other protocol ratings retain their audit scope.