Fix MCP tool listing for hyphenated server names (#16674)

Addresses #16671 and #14927

Problem: `mcpServerStatus/list` rebuilt MCP tool groups from sanitized
tool prefixes but looked them up by unsanitized server names, so
hyphenated servers rendered as having no tools in `/mcp`. This was
reported as a regression when the TUI switched to use the app server.

Solution: Build each server's tool map using the original server name's
sanitized prefix, include effective runtime MCP servers in the status
response, and add a regression test for hyphenated server names.
This commit is contained in:
Eric Traut
2026-04-03 09:05:50 -07:00
committed by GitHub
parent cc8fd0ff65
commit a3b3e7a6cc
4 changed files with 275 additions and 2 deletions

View File

@@ -15,6 +15,7 @@ mod experimental_feature_list;
mod fs;
mod initialize;
mod mcp_server_elicitation;
mod mcp_server_status;
mod model_list;
mod output_schema;
mod plan_item;