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
Wire Redis session storage from RunConfig into MCPServer proxy runner transports #4531
The operator correctly populates RunConfig.ScalingConfig.SessionRedis from the MCPServer CRD's spec.sessionStorage field, but the proxy runner (thv run) never reads this config. Sessions always use in-memory LocalStorage, making cross-replica MCPServer deployments non-functional for stateful MCP protocols (streamable-http, SSE).
Context
The vMCP equivalent is being addressed by #4479. This issue covers the MCPServer proxy runner path, which uses a different transport layer (pkg/transport/ vs pkg/vmcp/).
When an MCPServer is deployed with replicas > 1 and sessionStorage.provider: redis, the proxy runner pods each maintain independent in-memory session stores. A session created via Initialize on pod A is invisible to pod B, so subsequent requests routed to pod B fail with Session not found (-32001).
Acceptance Criteria
When MCPServer.spec.sessionStorage.provider is redis, the proxy runner creates a RedisStorage and injects it into the transport
Sessions created on one proxy replica are accessible from any other replica via Redis
When sessionStorage is not configured, behavior is unchanged (in-memory LocalStorage)
E2E test verifies cross-replica session routing: Initialize on pod A, ListTools on pod B with the same session ID
Activity