8000 How to use MCP client in a multi-user application? · Issue #243 · modelcontextprotocol/typescript-sdk · GitHub
[go: up one dir, main page]

Skip to content
How to use MCP client in a multi-user application? #243
Open
@mehdi-sp

Description

@mehdi-sp

I'm working on a web based chat application. Unlike desktop apps (Claude Desktop, Cursor IDE, ...), at each moment multiple users might be working with my app. What is the recommended way of using MCP client in this scenario?

  • Should I reuse one transport/client for all of the users? As I see in the code, the auth function does not support more than one user
  • Should I create a new client/transport for each of the active users? the overhead of Initialization flow is too much in this case. also it is unclear how long the transport will be alive and when it should be terminated

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

      0