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
local MCP servers can silently fail to register tools with no error surfaced #48196
Local MCP servers (including WSL-wrapped ones) intermittently fail to register their tools with the active session, with no error or warning surfaced anywhere.
Observed failure modes (3 separate incidents, 2 sessions/users):
WSL-based server's distro was Stopped at startup - spawn likely timed out mid cold-boot, tools silently absent.
A local (non-WSL) server's backing process vanished mid-session with no user action; tools became unavailable with nothing surfaced.
Hardest case: server process confirmed alive (pgrep/ps aux match, uptime matches session start) but zero of its tools were ever available - handshake apparently never completed or was dropped.
Most recently: a WSL-wrapped server (bdb) served at least one tool call successfully, then its backing process exited entirely with nothing surfaced; opencode mcp list from a separate shell confirmed failed - Operation timed out after 30000ms.
Expected: if a configured, enabled MCP server fails to spawn, times out, or exits, OpenCode should surface a visible warning/error rather than silently dropping its tools.
Actual: tool list silently omits the server. The only way to notice is calling one of its tools and getting a "not available" error, or checking OS processes independently.
Also noted: no CLI-level recovery exists today - opencode mcp only has add/list/auth/logout/debug, no restart/reconnect. A dead server currently requires a full OpenCode restart to recover. Requesting opencode mcp restart <name> (or similar) alongside the fix.
Plugins
none
OpenCode version
1.18.26
Steps to reproduce
Configure one or more local (including WSL-wrapped) MCP servers with enabled: true in opencode.jsonc.
Start an OpenCode session.
Intermittently, some subset of those servers' tools are absent from the session's tool list - not consistently the same server each time.
No error, warning, or log entry is surfaced to the user indicating a registration failure occurred.
Activity
github-actions commentedon Sep 9, 2026
This issue might be a duplicate of existing issues. Please check:
Your request for an
opencode mcp restartcommand is also touched on in:Fix silent toolset registration by emitting list_changed notifications (
thdxr commentedon Oct 11, 2026
Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (
opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊