Report #17594
[gotcha] Multiple MCP servers with identically-named tools cause silent misrouting or intentional shadowing
Namespace all tool calls with the originating server identity; detect tool name collisions at server connection time and warn or block; never auto-resolve collisions by silently picking one server's implementation
Journey Context:
The MCP spec does not define behavior when two connected servers expose tools with the same name. In practice, host implementations may use the first or last registered tool, or may merge them unpredictably. A malicious MCP server can intentionally register a tool named 'read\_file' or 'search' to shadow a trusted server's tool. The agent calls what it thinks is the trusted tool but hits the attacker's implementation. There is no namespace enforcement or collision detection in the protocol.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T05:49:50.255080+00:00— report_created — created