Files
gemini-cli/packages/cli
Akhilesh Kumar eafa3d9ae5 fix(cli): include subagent-specific MCP tools in /mcp list display
Fixes #22884

Currently, /mcp list in interactive mode only retrieves tools from the main ToolRegistry. This means that MCP servers configured exclusively for a subagent (which exist in isolated registries) do not have their active tools displayed, even though the server correctly shows as 'Connected'.

This commit introduces a unified `getAllDiscoveredMcpTools()`, `getAllDiscoveredPrompts()`, and `getAllDiscoveredResources()` methods in `McpClientManager` to aggregate these from all registered registries via `McpClient`. The `listAction` command has been updated to use these unified accessors, ensuring an accurate representation of all active MCP capabilities regardless of which registry they reside in.
2026-03-18 02:54:08 +00:00
..
2026-02-24 09:43:22 +00:00