Skip to content
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

sse: introduce dummy init in the dev mode #109

Merged
merged 1 commit into from
Feb 13, 2025

Conversation

mkouba
Copy link
Contributor

@mkouba mkouba commented Feb 12, 2025

  • if an MCP client attempts to reconnect an SSE connection but does not reinitialize propertly, we could perform a "dummy" initialization

This PR does not fix #102 because when the app is restarted, the HTTP SSE connection is closed and there's not much we can do about it. However, some MCP clients (such as MCP Inspector) do attempt to reconnect but do not reinitialize MCP properly. With this change, we perform a "dummy" initialization when needed and so the subsequent requests can be processed as normally.

CC @maxandersen @sebastienblanc

@mkouba mkouba requested a review from a team as a code owner February 12, 2025 13:06
- if an MCP client attempts to reconnect an SSE connection but does not
reinitialize propertly, we could perform a "dummy" initialization
@mkouba mkouba force-pushed the dev-mode-dummy-init branch from c32230b to 337bfa2 Compare February 12, 2025 13:06
@mkouba mkouba merged commit 45cf0ab into quarkiverse:main Feb 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make the server resilient to restart in SSE mode
1 participant