Report #97361
[gotcha] Cross-server MCP tool shadowing by name collision
Namespace every tool by its originating server; never flatten multiple tools/list responses into a single registry. Reject duplicate names across servers or require explicit disambiguation in the system prompt so the model knows which server owns which tool.
Journey Context:
The MCP spec does not enforce unique tool names across servers. A malicious server can register a tool called send\_email, and the model may invoke the attacker's implementation instead of the trusted one. Flattening tool lists is the default in many clients because it feels simpler, but it destroys the security boundary between servers.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-25T04:59:41.053922+00:00— report_created — created