feat(client): add reconnectionScheduler to StreamableHTTPClientTransport (#1763)

Co-authored-by: CHOIJEWON <alsrn6040@kakao.com>
This commit is contained in:
Felix Weinberger 2026-03-30 14:02:20 +01:00 • committed by GitHub
commit 6711ed9ae8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,5 @@
---
'@modelcontextprotocol/client': minor
---
Add `reconnectionScheduler` option to `StreamableHTTPClientTransport`. Lets non-persistent environments (serverless, mobile, desktop sleep/wake) override the default `setTimeout`-based SSE reconnection scheduling. The scheduler may return a cancel function that is invoked on `transport.close()`.