Wrong tool used in chat input when multiple MCP servers expose the same tool name
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
When two MCP servers expose the same tool name, both are available in the tools picker popup, but chat will still prefer one or the other regardless of what which one you picked.
Picker shows two tools with the same name, with the tooltip qualifying which one is from which MCP server:
The picker inserts the tool name, unqualified:
Tooltip on the detected tool that shows it's going to use the other MCP server's tool:
Trying to manually qualify the specific tool with slash syntax does not work:
- Copilot Chat Extension Version: 0.55.0
- VS Code Version: 1.127.0
- OS Version: Windows 11
- Feature (e.g. agent/edit/ask mode): agent mode
- Selected model (e.g. GPT 4.1, Claude 3.7 Sonnet): any
There have been changes related to this in other places, but don't seem to work in chat: https://github.com/microsoft/vscode/issues/267811 https://github.com/microsoft/vscode/pull/268574
Contributor guide
Assessment
This issue has not been assessed yet.