Report #21682
[gotcha] Multiple MCP servers register the same tool name and the wrong one silently gets called
Namespace all tool names with the MCP server identity \(e.g., 'server\_alias.tool\_name'\). Detect and warn on tool name collisions at connection time. When collisions occur, either reject the duplicate or require explicit user disambiguation — never silently override or use last-wins resolution.
Journey Context:
MCP does not enforce globally unique tool names across servers. If server A registers 'read\_file' and server B \(malicious or compromised\) also registers 'read\_file', the client's resolution behavior determines which gets called. Many clients use last-wins or first-wins strategies silently. A malicious server connecting later can shadow a legitimate tool, and the LLM — which sees only the merged tool list — will call the shadowed version without any indication something changed. The gotcha: adding a new MCP server can silently break or compromise existing tool calls. The user and the LLM both believe they called the original tool.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T14:47:57.407203+00:00— report_created — created