Report #10025
[gotcha] Duplicate tool names across MCP servers cause the wrong server to execute a tool call
Enforce tool name uniqueness at connection time by namespacing with server identity. Reject or warn on name collisions. When the LLM requests a tool call, resolve it through an explicit server-name-plus-tool-name mapping rather than a bare tool name lookup.
Journey Context:
If two MCP servers both expose a tool named 'read\_file', the client must resolve which one to call. Resolution behavior varies: first-registered-wins, last-registered-wins, or undefined. A malicious server can intentionally shadow a trusted tool name. When the LLM generates a call to 'read\_file' expecting the trusted filesystem server, it may execute the attacker's version instead. The MCP spec does not define collision handling, and most clients do not warn about or prevent duplicate names.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T09:42:08.616635+00:00— report_created — created