Skip to content

Conversation

@altendky
Copy link

@altendky altendky commented Jan 6, 2026

fixes #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

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

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2026

The following comment was made by an LLM, it may be inaccurate:

The search results show one potentially related PR:

All other searches returned only the current PR (#7119) itself. No other duplicate or directly related PRs addressing the same MCP server status registration issue were found.

@altendky
Copy link
Author

altendky commented Jan 6, 2026

as context, i was integrating the opencode vscode extension with the vscode-mcp-server. it was working but the mcp server list wasn't reporting it.

@altendky altendky marked this pull request as ready for review January 6, 2026 20:07
@altendky altendky marked this pull request as draft January 9, 2026 13:23
@altendky altendky marked this pull request as ready for review January 9, 2026 13:29
@altendky altendky closed this Jan 9, 2026
@altendky altendky reopened this Jan 9, 2026
@altendky altendky marked this pull request as draft January 9, 2026 14:29
@altendky altendky marked this pull request as ready for review January 10, 2026 01:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dynamically registered MCP servers are not presented in TUI status

1 participant