copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

Subagents can no more access MCP tools

Open SpeedJack opened this issue 5 months ago • 2 comments

Describe the bug

Custom subagents cannot more see and access mcp tools. This was previously working but downgrading now does not work anyway.

MCP tools are still accessible from top-level agent.

Copilot opinion: the issue is related to the deferred loading of mcp tools.

Affected version

GitHub Copilot CLI 1.0.62 (and also previous versions)

Steps to reproduce the behavior

Add an MCP server (any) Create a custom subagent in ~/.copilot/agents, allow it to access all tools Ask copilot to invoke the custom subagent and use the MCP server

Additional context

Operating system: Windows 11 CPU architecture: x86_64 Terminal emulator: PowerShell 7.6.2

SpeedJack avatar Jun 15 '26 14:06 SpeedJack

With copilot CLI v1.0.63, a working workaround is to set "deferTools": "never" for every MCP server defined. This disables the deferred loading of MCP tools so it is suboptimal but working.

SpeedJack avatar Jun 16 '26 08:06 SpeedJack

You can mitigate it now by disabling tool search in your settings.json file: "toolSearch": false, we'll fix it in the upcoming release.

almaleksia avatar Jun 17 '26 14:06 almaleksia