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
Bug: /mcp toggling doesn't persist changes to opencode.json #17799
Using /mcp command to enable/disable MCP servers doesn't persist changes to opencode.json. The toggle appears to work in the UI but after restarting OpenCode, the changes are lost.
Steps to Reproduce
Run OpenCode v1.2.27
Use /mcp command
Toggle any MCP server (e.g., disable "excel")
Check ~/.config/opencode/opencode.json - the enabled field is NOT updated
Restart OpenCode - MCP server is still running
Expected Behavior
Changes made via /mcp should be saved to opencode.json
IMHO, opencode.jsone is a configuration file, not a state file, and as such nothing ought be persisted to it. Any persistence should be to state files.
Activity
github-actions commentedon Mar 16, 2026
This issue might be a duplicate of an existing issue. Please check:
fix: persist MCP toggle changes to opencode.json
fix: correct type reference from McpConfigured to Config.Mcp
ariane-emory commentedon Mar 16, 2026
IMHO,
opencode.jsoneis a configuration file, not a state file, and as such nothing ought be persisted to it. Any persistence should be to state files.