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
Desktop app shows 'No MCPs configured' — sidecar MCP state init hangs on concurrent remote connections #30159
Desktop app MCP tab and status popover show "No MCPs configured" even though opencode mcp list shows all MCPs as connected and the agent can call MCP tools successfully.
Steps to reproduce
Configure 6 MCPs in ~/.config/opencode/opencode.json (3 local, 3 remote with OAuth)
Launch desktop app (v1.15.13, macOS arm64)
Open status popover → MCP tab → shows "No MCPs configured"
Open MCP selection dialog → same
Run opencode mcp list in terminal → all 6 show connected
Root cause
The sidecar server lazily initializes MCP state on the first/mcp HTTP request. The state factory iterates all configured MCPs with { concurrency: "unbounded" } calling create72() on each. Remote MCPs try 2 transports (StreamableHTTP + SSE) with 30s timeouts each. If any transport stalls, the entire state init blocks forever.
Code evidence (from app.asar bundle)
Lazy state init — state factory only runs on first /mcp call:
The MCP service never reaches its log18.info("found", ...) log line (emitted when create72 processes each config entry), confirming state init is never entered or never completes.
Expected behavior
The status() handler should return the list of configured MCPs from config directly (showing "disabled" or "unknown") without requiring a live connection to each server. Connection should be lazy (triggered on toggle/use).
Alternatively: eager init on server boot with a global timeout so one stalled MCP cannot block the entire status endpoint.
Several of these cover the same symptom (Desktop UI showing no MCPs while CLI works correctly on v1.15.13). You may want to consolidate or cross-reference with those issues.
Activity
github-actions commentedon Jun 1, 2026
This issue might be a duplicate of existing issues. Please check:
Several of these cover the same symptom (Desktop UI showing no MCPs while CLI works correctly on v1.15.13). You may want to consolidate or cross-reference with those issues.
Hona commentedon Jun 2, 2026
Fixed by #30220