You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MCP client fails to initialize servers that don't implement optional prompts/list and resources/list methods #24985
Description
When configuring MCP servers that only implement tools/list and tools/call (like sequential-thinking or mcp-grep), OpenCode fails to initialize them. The log shows: ERROR service=mcp clientName=... error=MCP error -32601: Method not found failed to get prompts.
Some MCP servers intentionally omit optional prompts/list and resources/list to keep their implementation minimal. While this is valid per the spec, OpenCode currently treats the -32601 response as a fatal error and discards the server.
Expected behavior
OpenCode should gracefully handle -32601 on optional methods and continue, making the server's tools available.
Actual behavior
The server fails to initialize and its tools are unavailable.
Impact
All MCP servers that omit optional handlers are unusable, significantly limiting OpenCode's MCP ecosystem.
Environment:
OpenCode version: [e.g., 1.14.29]
OS: [Linux Mint 22.1]
Related Issue: The context-mode project added empty handlers to resolve OpenCode's behavior. Additionally, oh-my-openagent issue #1915 has the same root cause.
Activity
github-actions commentedon Apr 29, 2026
This issue might be a duplicate of existing issues. Please check:
prompts/list(-32601) — same root cause: OpenCode treats-32601onprompts/listas a fatal error instead of gracefully handling missing optional methods.rekram1-node commentedon May 11, 2026
unable to reproduce this