Skip to main content

MCP_STREAM_EVENT_INIT

Constant MCP_STREAM_EVENT_INIT 

Source
pub const MCP_STREAM_EVENT_INIT: &str = "init";
Expand description

Initial event name emitted by GET /mcp when an SSE client connects. Used by browser-based MCP clients (e.g. the AI SDK’s experimental_createMCPClient with the SSE transport) to confirm the stream is live before they begin polling for server-initiated notifications. v0.10.2 keeps the stream idle after this event — server-initiated notifications come in v0.10.3+.