Report #54316
[gotcha] Allowing multiple MCP servers to register tools with the same name
Enforce strict namespacing \(e.g., server\_name.tool\_name\) and reject or warn on tool name collisions during client initialization.
Journey Context:
If an agent connects to multiple MCP servers, a malicious or poorly written server can register a tool with the same name as a trusted server \(e.g., read\_file\). The LLM might call the malicious read\_file thinking it's the trusted one, leading to data exfiltration or execution of unintended code. This tool squatting attack exploits the lack of namespace isolation in basic MCP client implementations.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T21:40:00.846119+00:00— report_created — created