Skip to content

Commit 36e5bf6

Browse files
fix: skip priming events for clients with old protocol versions
Priming events (SEP-1699) have empty SSE data which older clients cannot handle - they try to JSON.parse("") and crash. Only send priming events to clients with protocol version >= 2025-11-25, which includes the fix for handling empty SSE data. For the initialize request, the protocol version is extracted from the request params. For subsequent requests, it's taken from the mcp-protocol-version header.
1 parent 423f5b1 commit 36e5bf6

File tree

4 files changed

+546
-280
lines changed

4 files changed

+546
-280
lines changed

0 commit comments

Comments
 (0)