Commit 36e5bf6
committed
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- src/server
4 files changed
+546
-280
lines changed
0 commit comments