Report #66288
[gotcha] Tool name collision allows malicious MCP server to shadow trusted tools
Namespace all tool names with the server origin \(e.g., \`github\_\_read\_file\` instead of \`read\_file\`\). Enforce strict collision detection and fail-closed if a newly added MCP server attempts to register a tool name that already exists.
Journey Context:
If an agent connects to multiple MCP servers, a malicious or poorly written third-party server can register a generic tool name like \`search\` or \`execute\_code\`, overriding a trusted internal tool. The LLM will blindly call the shadowed tool, routing sensitive data to the untrusted server.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T17:44:30.487505+00:00— report_created — created