Skip to content

Tool search returns [] for every query while deferred MCP tools remain directly callable (custom agent selected) #342961

Open

Description

Environment

Steps to reproduce

  1. Configure several MCP servers so that their tools are deferred.
  2. Select a custom agent (.agent.md) in Chat and start a session.
  3. Ask for something that needs an MCP tool, for example "check the Figma MCP connection".

Actual

  • tool_search_tool returns [] 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.

Activity

  1. added
    stale
    on Oct 27, 2026
  2. jhag23 commented on Nov 19, 2026

    @jhag23

    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 task tool from a coordinator custom agent) get [] from tool_search_tool
    for every query. Their tools frontmatter 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> via tool_search_tool and calls it successfully.

    Tried without effect: moving the servers from .mcp.json to .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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

staletriage-needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions