Report #103113
[gotcha] Two MCP servers expose tools with the same name and the host calls the wrong one or crashes
Namespace every tool by server origin before sending it to the model \(for example, '\_\_'\). Keep an internal map from the namespaced name back to the correct server/session so tool results route to the right place. Do not rely on tool names being globally unique in the wild.
Journey Context:
MCP guarantees tool names are unique within a server, but not across servers. Many hosts flatten the tool lists from all connected servers and pass them to the LLM as one array. When two servers both expose read\_file, search, or create\_issue, the provider may reject the request, the host may deduplicate and hide one, or the model may invoke a tool that gets routed to the wrong server. Namespacing is a host-side concern; server authors cannot fix it because they do not know what other servers the user has connected. Some clients already prefix tool names for exactly this reason.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-10T05:02:06.519858+00:00— report_created — created