microsoft / microsoft/vscode

Wrong tool used in chat input when multiple MCP servers expose the same tool name

Open
#324,145 0 comments 0 reactions 1 assignee Claimed by @connor4312 View on GitHub
bug
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:
Image

The picker inserts the tool name, unqualified:
Image

Tooltip on the detected tool that shows it's going to use the other MCP server's tool:
Image

Trying to manually qualify the specific tool with slash syntax does not work:
Image

- 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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.