Description
If you connect to a streamable HTTP MCP server that doesn't support SSE, running /status in the TUI will show you that OpenCode encountered an error when connecting. This is kinda true, but it should then try using streamable HTTP, which would then get a 401 and prompt the user to authenticate.
Plugins
N/A
OpenCode version
1.2.18
Steps to reproduce
- Add an MCP server that supports streamable HTTP, but not SSE (ex. the Sanity MCP)
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"sanity": {
"type": "remote",
"url": "https://mcp.sanity.io",
"oauth": {}
}
}
}
- Run
opencode and then /status
- Observe that the
sanity MCP server says "SSE error: Non-200 status code (405)", instead of saying the server needs to be authenticated via OAuth
Screenshot and/or share link
Operating System
macOS 26.3
Terminal
Ghostty
Description
If you connect to a streamable HTTP MCP server that doesn't support SSE, running
/statusin the TUI will show you that OpenCode encountered an error when connecting. This is kinda true, but it should then try using streamable HTTP, which would then get a 401 and prompt the user to authenticate.Plugins
N/A
OpenCode version
1.2.18
Steps to reproduce
{ "$schema": "https://opencode.ai/config.json", "mcp": { "sanity": { "type": "remote", "url": "https://mcp.sanity.io", "oauth": {} } } }opencodeand then/statussanityMCP server says "SSE error: Non-200 status code (405)", instead of saying the server needs to be authenticated via OAuthScreenshot and/or share link
Operating System
macOS 26.3
Terminal
Ghostty