You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
stateful session enhancement: to support the MCP protocol session management #38983
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:]
Any extra documentation required to understand the issue.
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.
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.
Activity
wbpcode commentedon Apr 1, 2025
@wbpcode @cpakulski
cpakulski commentedon Apr 1, 2025
Statefulness support for MCP would be super helpful. Thanks for raising this issue.
botengyao commentedon Apr 2, 2025
It seems this is a config stuff, and we can use something like
?
botengyao commentedon Apr 2, 2025
Aha, the difference here is
POST InitializeRequestwhich there is no id, and then we will know theMcp-Session-Idfrom the response from the server.wbpcode commentedon Apr 2, 2025
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.
github-actions commentedon May 2, 2025
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.