[PR #7119] fix(tui): display dynamically registered MCP servers in status #12254

Open
opened 2026-02-16 18:17:10 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7119

State: open
Merged: No


fixes https://github.com/anomalyco/opencode/issues/7482

MCP servers registered via POST /mcp were working (tools available) but
not appearing in the TUI /status dialog. This was because MCP.status()
only returned config-based servers, and the TUI didn't refresh after
dynamic registration.

Changes:

  • MCP.status() now includes dynamically registered MCPs from state
  • Added TuiEvent.McpRefresh event to signal MCP status changes
  • MCP.add() publishes McpRefresh when a new server is added
  • TUI sync context listens for McpRefresh and refetches status
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7119 **State:** open **Merged:** No --- fixes https://github.com/anomalyco/opencode/issues/7482 MCP servers registered via POST /mcp were working (tools available) but not appearing in the TUI /status dialog. This was because MCP.status() only returned config-based servers, and the TUI didn't refresh after dynamic registration. Changes: - MCP.status() now includes dynamically registered MCPs from state - Added TuiEvent.McpRefresh event to signal MCP status changes - MCP.add() publishes McpRefresh when a new server is added - TUI sync context listens for McpRefresh and refetches status
yindo added the pull-request label 2026-02-16 18:17:10 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12254