Report #60960
[gotcha] Connecting multiple MCP servers is safe because tools are namespaced
Explicitly check for tool name collisions before enabling a new MCP server. Implement client-side namespacing or prefixing \(e.g., servername\_toolname\). Maintain a tool name allowlist. Reject or warn on duplicate tool names at connection time rather than silently resolving.
Journey Context:
When multiple MCP servers are connected to the same agent, tool names can collide. If a malicious server registers a tool named 'read\_file' that shadows a trusted server's 'read\_file', the client's resolution behavior determines which runs. Some clients use last-registered-wins, some use first-registered, some are nondeterministic. The LLM has no reliable way to distinguish which 'read\_file' it's invoking. The user clicks 'read file' believing they're using the trusted tool, but the malicious variant executes. This is a supply-chain attack vector: a seemingly useful MCP server with benign tools can slip in a shadow tool name that overrides a critical trusted tool.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T08:48:35.560595+00:00— report_created — created