Open
Labels
Description
Environment
- VS Code 1.142.0, macOS
- Copilot Chat, agent host (Copilot SDK) session with a workspace custom agent selected
- About 400 MCP tools listed as deferred (several remote HTTP MCP servers, including https://mcp.figma.com/mcp)
Steps to reproduce
- Configure several MCP servers so that their tools are deferred.
- Select a custom agent (
.agent.md) in Chat and start a session. - Ask for something that needs an MCP tool, for example "check the Figma MCP connection".
Actual
tool_search_toolreturns[]for every query, including generic ones such as "Figma MCP" or "github".- Subagents launched from the session also get
[]. - The system prompt tells the model to search before calling a deferred tool, so the model concludes that the tool does not exist and stops.
- Calling the same deferred tool by its exact listed name (for example
figma-whoami) succeeds and returns valid data.
Expected
Tool search returns the matching deferred tools. If search is unavailable, the deferred tools should be exposed directly, or the model should be told that it may call them by name.
Impact
MCP-based workflows fail silently and look like auth or connection errors, so users reconnect servers needlessly.
Reacted by mmigala and jhag23
Activity
jhag23 commentedon Nov 19, 2026
Same behavior here on VS Code 1.147.0 (commit 8a14f0c), Windows, Copilot harness, Copilot CLI runtime 1.0.111, Claude Sonnet 5.5.
Custom subagents (invoked via the
tasktool from a coordinator custom agent) get[]fromtool_search_toolfor every query. Their
toolsfrontmatter references the MCP servers with the documented<server>/*syntax,and the servers are running (child processes of the Copilot runtime).
Control: in the same workspace, the default agent (no custom agent selected) finds
<server>-<tool>viatool_search_tooland calls it successfully.Tried without effect: moving the servers from
.mcp.jsonto.vscode/mcp.json, and adding a<server>-*pattern to the agent's
tools.So it affects subagents of custom agents, not only the selected one.