Pre-flight Checks
Bug Description
The MCP server intermittently loses connection mid-session, causing multiple MCP tools to return "Not connected". This happens after the connection was successfully established and used.
Steps to Reproduce
- Start an OpenCode session
- Verify MCPs work (e.g.,
supabase_list_projects returns data)
- Use multiple MCP calls over several minutes
- Eventually, MCPs like Supabase, Desktop Commander, n8n, and Universal Brain return
Not connected
- Other MCPs with persistent connections (Telegram, MetaTrader 5) continue working
Expected Behavior
MCP connections should remain stable throughout the session, or auto-reconnect transparently.
Actual Behavior
Multiple MCPs simultaneously fail with Not connected:
supabase_list_projects → Not connected
desktop-commander_list_directory → Not connected
n8n_n8n_health_check → Not connected
universal-brain_ping → Not connected
Meanwhile, MCPs with their own persistent connections remain functional:
telegram-mcp_get_me → ✅ Works
metatrader_get_account_info → ✅ Works
Operating System
Windows 11
Agent / Client
OpenCode
Shell
PowerShell 5.1
Relevant Logs
# Initial connection established:
> supabase_list_projects
[
{"name":"Signalyn","id":"sglwgnwidhzddnuwewps"},
{"name":"alpha-forge-mt5","id":"wjnoiuliovtdngtgskeq"}
]
# Later in same session:
> supabase_list_projects
Not connected
> desktop-commander_list_directory
Not connected
Additional Context
- The failure appears to be a session drop in the OpenCode MCP server, not individual MCP config issues
- A previous memory entry confirms this happened before: "Restored and stabilized all MCPs after context compaction" (project: opencode-mcps)
- Workaround: None found. Session must be restarted.
Pre-flight Checks
Bug Description
The MCP server intermittently loses connection mid-session, causing multiple MCP tools to return "Not connected". This happens after the connection was successfully established and used.
Steps to Reproduce
supabase_list_projectsreturns data)Not connectedExpected Behavior
MCP connections should remain stable throughout the session, or auto-reconnect transparently.
Actual Behavior
Multiple MCPs simultaneously fail with
Not connected:supabase_list_projects→Not connecteddesktop-commander_list_directory→Not connectedn8n_n8n_health_check→Not connecteduniversal-brain_ping→Not connectedMeanwhile, MCPs with their own persistent connections remain functional:
telegram-mcp_get_me→ ✅ Worksmetatrader_get_account_info→ ✅ WorksOperating System
Windows 11
Agent / Client
OpenCode
Shell
PowerShell 5.1
Relevant Logs
Additional Context