-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
stateful session enhancement: to support the MCP protocol session management #38983
Comments
Statefulness support for MCP would be super helpful. Thanks for raising this issue. |
It seems this is a config stuff, and we can use something like
? |
Aha, the difference here is |
Yeah. I think we need some minor enhancement to encode our selected host to the original session ID from the server. And then, when the client send the request with the ID, we can extract the addresses and rewrite the header to the original session ID. |
Title: stateful session enhancement: to support the MCP protocol session management
Description:
See https://github.com/modelcontextprotocol/specification/blob/main/docs/specification/2025-03-26/basic/transports.md#session-management
MCP protocol is become more and more popular for AI agent developing. The session affinity is very important part for proxying MCP traffic becase it's stateful protocol.
But fortunately, Envoy have provided the stateful sesssion filter which could provide a stateful session support based on the header or cookie. This would be great if we can support the MCP session affinity support.
[optional Relevant Links:]
The text was updated successfully, but these errors were encountered: