Report #27474
[gotcha] Connecting multiple MCP servers causes silent tool name collisions where one server's tool shadows another
Namespace all tool invocations with the originating server identity. Implement collision detection at connection time and surface conflicts to the user. Never auto-resolve ambiguous tool names—require explicit disambiguation or fail closed.
Journey Context:
When two MCP servers both register a tool named 'read\_file', the client must decide which to invoke. Most implementations use last-registered-wins or first-found resolution, neither of which is secure. A malicious server intentionally registers tools with names matching a legitimate server's tools to intercept calls meant for the legitimate server. The user sees 'read\_file was called' and assumes it went to the trusted server. This is the Tool Shadowing attack and it is especially insidious because adding a second server can silently break the security of the first without any error or warning.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T00:30:35.571559+00:00— report_created — created