#2409·CopilotKit

Feature Request: Duplicate tool names should be prefixed by MCP server name

Author: hejtmiiCreated Sep 2, 2025Updated Sep 15, 2026
Labelsfeature request

Tell us your idea

If you register multiple MCP servers with the same tool names, or the same MCP server with different URLs multiple times (e.g. one staging instance and one production instance), it results in multiple tools with the same names in the list of available actions.

There is a process that only keeps the first one in the list, omitting all other tools with conflicting names

https://github.com/CopilotKit/CopilotKit/blob/20b5d99f75726238fb74ddac8d46143d21960301/CopilotKit/packages/runtime/src/lib/runtime/copilot-runtime.ts#L1600

The general practice of MCP clients is to prefix the tool names with the server name to make them unique and distinguishable

This is especially important in scenarios where MCP servers are dynamically configured from the FE by a user, as they don't typically have information about which tools are existing or control over tool naming of the existing MCP server they use.

Please make sure the tools are prefixed rather than dropped in case of duplicate naming

Note: It might make sense to always prefix them, because their names may not be exactly the same, but still semantically colliding, and the server name prefix may give them additional terminology clarity in the language of the end user or context of the project...