Skip to content

Host abstraction for multiple client → server connections in one process #9

Description

@jspahrsummers

Multiplexing has recurred for me a few times now—clients often need to connect to multiple servers simultaneously. Might be worth building something for it into the client SDK.

I think it's not too hard (send all list commands to all servers, then associate the IDs you get back with the server for follow-up gets, reads, calls), it's just annoying boilerplate.

Maybe we build an actual Host abstraction into the SDK, which has multiple Clients?

See also modelcontextprotocol/typescript-sdk#6.

Activity

  1. added
    enhancementRequest for a new feature that's not currently supported
    ready for workEnough information for someone to start working on
    P3Nice to haves, rare edge cases
    and removed on Oct 7, 2025
  2. felixweinberger commented on Oct 7, 2025

    @felixweinberger
    Contributor

    Looks like this was addressed by #639 (though not specifically with the Host abstraction but by having ClientSessionGroup)

  3. added a commit that references this issue on Dec 5, 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

    P3Nice to haves, rare edge casesenhancementRequest for a new feature that's not currently supportedready for workEnough information for someone to start working on

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions