Description
OpenCode can mark an MCP server as failed even when the server is reachable and tools/list responds, if one tool's outputSchema contains a reference the MCP SDK cannot resolve.
Observed with Google Stitch MCP on OpenCode 1.14.41:
ERROR service=mcp key=stitch error=can't resolve reference #/$defs/ScreenInstance from id # failed to get tools from client
The server responds to initialize and tools/list, but OpenCode fails while validating/dereferencing the tool schema and then reports the whole MCP server as failed.
Plugins
None relevant.
OpenCode version
1.14.41
Steps to reproduce
- Configure Google Stitch as a remote MCP server.
- Run
opencode mcp list --log-level DEBUG --print-logs.
- Observe that the Stitch MCP transport connects, then tool loading fails on an
outputSchema $ref.
Screenshot and/or share link
ERROR service=mcp key=stitch error=can't resolve reference #/$defs/ScreenInstance from id # failed to get tools from client
Operating System
macOS
Terminal
zsh
Description
OpenCode can mark an MCP server as failed even when the server is reachable and
tools/listresponds, if one tool'soutputSchemacontains a reference the MCP SDK cannot resolve.Observed with Google Stitch MCP on OpenCode 1.14.41:
The server responds to
initializeandtools/list, but OpenCode fails while validating/dereferencing the tool schema and then reports the whole MCP server as failed.Plugins
None relevant.
OpenCode version
1.14.41
Steps to reproduce
opencode mcp list --log-level DEBUG --print-logs.outputSchema$ref.Screenshot and/or share link
Operating System
macOS
Terminal
zsh