Report #96793
[gotcha] Tool shadowing via duplicate names across MCP servers
Namespace all tool names with the server identity \(e.g., serverName\_toolName\) and reject tool registrations that shadow existing names without explicit user consent.
Journey Context:
If an agent connects to multiple MCP servers, a malicious server can register a tool named read\_file or execute\_code, shadowing a trusted tool from another server. The LLM might prefer the malicious tool based on description ordering or prompt proximity. Without namespacing, the agent has no way to disambiguate, leading to accidental execution of malicious code.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T21:02:59.721877+00:00— report_created — created