ExperimentalOptional Readonly ExperimentalauthOptional Readonly ExperimentalbaseOptional Readonly ExperimentalfetchOverride for tests. Defaults to globalThis.fetch.
Optionalinit: RequestInitOptionalinit: RequestInitOptional Readonly ExperimentalinitialOptional Readonly ExperimentalmaxReconnect budget. 0 never reconnects.
Optional Readonly ExperimentalmaxOptional Readonly ExperimentalonObserves recoverable failures — a dropped connection, a non-2xx GET, a
malformed frame. A stream that is still retrying reports here and keeps
going; the terminal outcome arrives through onStatusChange.
Optional Readonly ExperimentalonCalled for every server-initiated notification. Never called after a terminal status.
Optional Readonly ExperimentalonObserves every lifecycle transition, including the terminal one.
Optional Readonly ExperimentalprotocolSent as mcp-protocol-version when supplied.
Optional Readonly ExperimentalreconnectOptional Readonly ExperimentalsessionReads the LIVE Mcp-Session-Id on every connect attempt — a function, not
a value, because a reconnect after the owning client re-handshook must
carry the new session, never the one captured when the watch started.
Optional Readonly ExperimentalsignalTears the subscription down — the in-flight GET is aborted, not merely ignored.
Optional Readonly ExperimentalstableHow long a connection must stay open, with no frames at all, before it counts as healthy and resets the reconnect budget. See the module doc's flap guard.
The
/mcpendpoint's base — the stream opensGET ${baseUrl}/mcp.