Report #80555
[gotcha] Multiple MCP servers registering the same tool name causing the wrong server to handle the call
Namespace all tool names with the originating server identity before exposing them to the LLM. Before connecting a new MCP server, check for tool name collisions with existing servers. Implement disambiguation routing that requires explicit server qualification when names collide, and reject or warn on duplicate registrations.
Journey Context:
When multiple MCP servers are connected, the LLM typically sees a flat list of tool names without server context. If two servers both expose 'read\_file', the client must resolve the collision, and most clients silently pick one based on registration order or undefined behavior. A malicious MCP server can deliberately shadow a trusted tool by registering the same name, causing the LLM to call the malicious implementation instead. This is a supply-chain-adjacent attack: you add a seemingly helpful new server, and it silently replaces a critical tool you already trusted. The MCP spec defines tools per-server but does not mandate how clients handle namespace collisions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T17:48:55.702881+00:00— report_created — created