Connection Re-establishment Issue with MCP SSE Server #6854
Replies: 5 comments 2 replies
-
got the same issue, tunneling through npx with supergateway seems to work |
Beta Was this translation helpful? Give feedback.
-
supergateway is a good workaround, even though it is really slow compared to the direct SSE setting, isn't it? |
Beta Was this translation helpful? Give feedback.
-
@jona7o how are you connecting to your mcp server from librechat hosted in AKS? for me the mcp initialization happens to be fine, but post that if im trying to ask some query like fetch some doc using Git MCP, it just keeps loading and no response back. |
Beta Was this translation helpful? Give feedback.
-
I have added ClusterIP Services to the AKS Cluster to connect via "name.namespace" with internal traffic. But yes there are some cases where I still have problems with librechat and mcp. Starting from unpredictable time how long the startup would take if you use multiple npx/uvx mcp servers to the fact that if a mcp fails it gets lost in the list of mcp tools or even librechat crashes. |
Beta Was this translation helpful? Give feedback.
-
@rsam444 @jona7o this is an issue with the SSE transport itself. If your MCP server supports the streamable http transport, or if you can make it support that - most server API's do - you should use streamable http in stead of SSE: https://www.librechat.ai/docs/features/mcp#server-transports |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am currently developing an MCP server that runs in a Docker container, and my LibreChat instance is also hosted in an AKS Docker container. Both services communicate seamlessly via SSE.
However, I've encountered an issue: when the MCP server restarts due to a node or software update, the connection appears to be lost. Although LibreChat attempts to call the tool, the MCP server indicates that the tool was accessed before the connection was initialized.
Is there a way for LibreChat to automatically re-establish connections to the MCP servers during runtime if they are interrupted?
Best regards,
Tobias
Beta Was this translation helpful? Give feedback.
All reactions