-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the server resilient to restart in SSE mode #102
Comments
Maybe we could have https://github.com/quarkiverse/quarkus-mcp-server/blob/main/core/runtime/src/main/java/io/quarkiverse/mcp/server/runtime/ConnectionManager.java as an interface, so we could have a implementation that uses Redis for instance, to keep the connection details ? |
Hi Sebastien, that is a very good question. However, I'm not so sure there's something we can do on the server side. If an SSE connection is lost then the server has no way to send messages to the client and reconnection (and MCP reinitialization) is probably the only way to fix that.
This would help to keep the session state but the SSE connection is lost anyway. WDYT @jmartisk |
Make sense. If I'm using |
I have no idea, that's a question for Jan ;-). |
Yeah, it's on my radar to see what we can do on the client side, thanks for opening the issue there. I assume it could try reconnecting automatically and just doing the whole init phase again, failing the currently active operations. |
Yes, I think so. FYI I've implemented the dummy initialization in the dev mode for SSE which basically means that the server is able to accept new requests after the hot reload if the client reconnects SSE. |
Hi !
Not sure if my questions here or on the
mcp-client
side.Basically I would like the mcp-server to be resilient to restarts, now of course after a restart, the SSE connection is lost and when a request comes in, I get something like :
Is there a way to solve to that ? Like force a reconnection if the connection is not found ?
The text was updated successfully, but these errors were encountered: