You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to support multiple clients, we will need to spawn a new STDIO container per client connecting to the MCP proxy.
This should be transparent to the end user, and they can treat it as a single MCP server.
Background
The STDIO transport was not made to handle multiple client connection and may be behave in unexpected ways if multiple clients are connected to the same STDIO MCP server.
One of the issues that arrises is if multiple clients send an initialize request, ToolHive currently forwards the request to the STDIO workload, which may reject the request or behave unexpectedly, since this is not described by the protocol.
The proxy will need to detect when it gets a new client connection and spawn a new server when this happens. We also need to be able to remove an MCP server if a client disconnects.
This was initiated from a conversation with Bob Dickinson [1]
This is being investigated under #1062. When we have confirmed findings, we can go forward with a solution. I've already got a "attach per request" implementation working locally. I just need to work on it some more
Activity
ChrisJBurns commentedon Jul 21, 2025
This is being investigated under #1062. When we have confirmed findings, we can go forward with a solution. I've already got a "attach per request" implementation working locally. I just need to work on it some more