Skip to content

MCP Servers with identically named tools (different args) result in single tool entry #245906

Closed as not planned

Description

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version:
  • OS Version:
    VS Code Version: 1.99.0-insider
    OS Version: Darwin arm64 24.3.0

Steps to Reproduce:

  1. Create two MCP server configurations with tools having identical names but different arguments or behaviors, for example:
{
  "mcp": {
    "servers": {
      "server1": {
        "type": "sse|stdio",
        "url": "http://localhost:3000/sse",
      },
      "server2": {
        "type": "sse|stdio",
        "url": "http://localhost:4000/sse",
      }
    }
  }
}
  1. Open the MCP tool selection or attempt to invoke the tool from the agent.

Expected behavior:
Both tools from each server should appear distinctly due to differences in configuration and arguments.

Actual behavior:
Only one tool appears in the list, and the agent can only invoke one of them. The second tool is entirely inaccessible.

Activity

  1. nikhil-pandey commented on Apr 7, 2025

    @nikhil-pandey
    Author

    I didn't find anything about this in the MCP specification.
    Cursor seems to use mcp_<ServerName>_<ToolName> as the tool name to get around this.
    Not sure about other clients

  2. connor4312 commented on Apr 7, 2025

    @connor4312
    Member

    duplicates #244644

  3. added
    *duplicate
    on Apr 7, 2025
  4. locked and limited conversation to collaborators on May 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    *duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions