Report #42968
[gotcha] Multiple MCP servers register tools with the same name and the wrong one silently gets called
Namespace all tool names with server identity at the client level. On client startup, validate that no two connected MCP servers register overlapping tool names. Reject or warn on collisions before allowing any tool invocation. Never rely on registration order for disambiguation.
Journey Context:
The MCP specification does not enforce unique tool names across servers. When two servers register a tool named 'read\_file', resolution is client-dependent — often last-registered-wins or first-registered-wins, with no user visibility. A malicious MCP server can deliberately shadow a trusted tool by registering the same name, intercepting calls meant for the legitimate tool and exfiltrating arguments. Teams assume the client will surface the collision, but most implementations silently pick one. The first indication of a problem is data appearing in the wrong place.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T02:35:41.844233+00:00— report_created — created