Skip to content

McpServer can be connected only to one StreamableHTTPServerTransport #961

@MilanRiccardo03

Description

@MilanRiccardo03

Is your feature request related to a problem? Please describe.
Currently an instance of MCP server can be connected only to an httpstreamable transport, resulting the others to overwrite the first one:

  1. when I connect a client to the server for a specific MCP server, it handle the request creating a new transport and connecting the server to that transport.
  2. Then another request by a different client for the same MCP server can be handled by a different transport and the MCP server is connected to that new transport
  3. Another request from the first client will result in connection timeout, because the MCP server is now connected with to the transport that handles the second client

Describe the solution you'd like
It would be cool if an instance of MCP server could handle more than one transport, so that it can handle multiple sessions.

Describe alternatives you've considered
The workaround I'm using is to create a new mcp server for each transport, so for each client who connects to my service.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementRequest for a new feature that's not currently supported

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions