Proposal: Session Cleanup for Disconnected Clients in Stateful Connections (MCP Server) #2746
lokendra-ss-18283
started this conversation in
Ideas - General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Pre-submission Checklist
Discussion Topic
When a client connects, a stateful session is established between the client and server to support features like elicitation. However, there is currently no notification mechanism to inform the server when a client disconnects. This leads to stale sessions accumulating on the server side, causing unnecessary memory and resource bloat.
Is there a way for the server to detect when a client session has been disconnected? If this isn't currently supported, is it on the roadmap — or is this something that could be raised as SEP?
Beta Was this translation helpful? Give feedback.
All reactions