Bug Report: Stitch MCP Server Schema Error
Environment
- OpenCode version: 1.2.25
- Stitch MCP endpoint: https://stitch.googleapis.com/mcp
- API Key: X-Goog-Api-Key header
Description
When connecting to the Stitch MCP server, the connection establishes successfully but fails when retrieving tools due to an invalid JSON schema reference.
Error Message
ERROR can’t resolve reference #/$defs/ScreenInstance from id # failed to get tools from client
Steps to Reproduce
- Configure Stitch MCP in OpenCode with API key authentication
- Run
opencode mcp list - Observe: connection succeeds but tools retrieval fails
Verification
- Direct curl to endpoint works:
curl -X POST https://stitch.googleapis.com/mcp -H "X-Goog-Api-Key: ..." -d "{\"jsonrpc\":\"2.0\",\"method\":\"tools/list\",\"id\":1}"returns valid JSON - The server returns tools but the schema contains invalid references
Expected Behavior
MCP tools should be successfully retrieved and usable in OpenCode.