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
fix: expose session_idle_timeout in streamable_http_app and prevent active request cancellation
- Add session_idle_timeout parameter to Server.streamable_http_app(),
MCPServer.streamable_http_app(), and run_streamable_http_async() so
users of the high-level API can configure idle session reaping without
dropping down to manual StreamableHTTPSessionManager wiring.
- Suspend the idle CancelScope deadline (set to math.inf) while a
request is in-flight and reset it after, preventing a slow handler
from being cancelled mid-execution by the idle timeout.
Fixes#2455
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments