Skip to content

Multiple MCPClients connecting to one MCPServer over Streamable HTTP #2824

@Thomas-Dimos

Description

@Thomas-Dimos

Summary

I’m building a multi-user chat web app. For each user session I spawn an MCPClient and connect it to my MCPServer(typescript sdk) using Streamable HTTP as the transport.

I’ve read older issues/feature requests that recommend running one MCP server per client—but those discussions seem specific to SSE transport. I’m trying to understand whether the same constraint applies to Streamable HTTP, or if I’m misusing the transport.

Questions

Is one-server-per-client still required when using Streamable HTTP?

If yes, what’s the intended role of a transports Map keyed by session IDs in server examples/blog posts? (i.e., why maintain multiple transport entries if the server can’t handle parallel transports/sessions?)

If no, what is the correct pattern for handling multiple concurrent clients/sessions over Streamable HTTP to a single server instance?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions