Skip to content

Responses seem to duplicate #128

@GerbenAxendo

Description

@GerbenAxendo

Responses seem to duplicate when connected in SSE mode.

To Reproduce
Steps to reproduce the behavior:

  1. Start AspNetCoreSseServer
  2. Connect MCP inspector v.0.7.0
  3. Click content, click List tools. Two tools appear as expected
  4. Close MCP inspector in browser
  5. Open MCP inspector
  6. Click content, click List tools. Four tools appear
  7. If you repeat this, more and more duplicate tools will be added.

Image

Expected behavior
You would expected to see only 2 tools

Additional context
Also tested this from Claude Desktop (using npx mcp-remote). This also results in tools being added multiple times in the Claude UI.
Note sure if this is a bug in MCPServer or if the clients (MCP inspector and mcp-remote not handling/closing connections) correctly but this might as well be a real world scenario.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions