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
[FEATURE]:MCP Server with prompts crashes opencode on startup #36974
The MCP server implements prompts that have required arguments (e.g., softwarePath, exportPath, regexName).
When opencode starts, it calls prompts/get for all prompts without passing any arguments. The server throws an ArgumentException instead of gracefully handling missing parameters:
System.ArgumentException: The arguments dictionary is missing a value for the required parameter 'regexName'.
The server returns JSON-RPC error code -32603 (Internal error), which opencode cannot handle properly.
Server Response
tools/list and tools/call work correctly
prompts/list returns the list of prompts
prompts/get fails when called without required arguments
Suggestion
opencode should gracefully handle MCP prompt errors during startup, or provide an option to disable prompt fetching for specific servers.
This issue might be a duplicate of existing issues. Please check:
[Bug] MCP prompt arguments receive literal $1/$2 placeholders instead of user input — type validation fails #33564: Same root cause — opencode calls prompts/get at startup without providing required arguments, causing MCP servers to return errors. That issue describes type validation failures from literal $1/$2 placeholders; this issue describes a crash from a JSON-RPC -32603 error when arguments are omitted entirely. Both point to opencode not handling prompts/get failures gracefully during startup.
Activity
github-actions commentedon Jul 15, 2026
This issue might be a duplicate of existing issues. Please check:
prompts/getat startup without providing required arguments, causing MCP servers to return errors. That issue describes type validation failures from literal$1/$2placeholders; this issue describes a crash from a JSON-RPC -32603 error when arguments are omitted entirely. Both point to opencode not handlingprompts/getfailures gracefully during startup.