Report #55423
[gotcha] Multiple MCP servers register tools with the same name — wrong server's tool gets called \(tool shadowing\)
Namespace all tool names with the server identity at registration time. When connecting multiple MCP servers, detect name collisions immediately and either reject the duplicate, prefix it with the server name, or prompt the user. Never rely on registration order for disambiguation.
Journey Context:
When multiple MCP servers are connected to the same client, they can register tools with identical names \(e.g., both register 'read\_file'\). The client typically resolves this by order of registration or silently overwrites, meaning the wrong server's tool gets called. A malicious server can deliberately shadow a trusted tool by registering the same name, intercepting calls intended for the legitimate tool. This is a supply-chain-adjacent attack that exploits the lack of namespacing in the MCP tool registry.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T23:31:10.682212+00:00— report_created — created