fix(server-sse-polling): send mcp-protocol-version 2025-11-25 (the version this scenario tests) (#366)

The scenario has introducedIn: '2025-11-25' and tests SEP-1699 priming events,
which were introduced in that version. Sending '2025-03-26' as the client's
protocol version makes a correctly-behaving server suppress the priming event
(older clients cannot handle empty-data SSE), so the scenario WARNs against a
conformant server.

Verified against typescript-sdk@v2-2026-07-28: with this fix the scenario goes
from 'WARNING: Server did not send priming event' to '3 passed, 0 failed'.
This commit is contained in:
Felix Weinberger 2026-06-25 10:57:48 +01:00 • committed by GitHub
commit 4686e064e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -138,7 +138,7 @@ export class ServerSSEPollingScenario implements ClientScenario {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
Accept: 'text/event-stream, application/json', Accept: 'text/event-stream, application/json',
...(sessionId && { 'mcp-session-id': sessionId }), ...(sessionId && { 'mcp-session-id': sessionId }),
'mcp-protocol-version': '2025-03-26' 'mcp-protocol-version': '2025-11-25'
}, },
body: JSON.stringify({ body: JSON.stringify({
jsonrpc: '2.0', jsonrpc: '2.0',
@ -417,7 +417,7 @@ export class ServerSSEPollingScenario implements ClientScenario {
headers: { headers: {
Accept: 'text/event-stream', Accept: 'text/event-stream',
'mcp-session-id': sessionId, 'mcp-session-id': sessionId,
'mcp-protocol-version': '2025-03-26', 'mcp-protocol-version': '2025-11-25',
'last-event-id': lastEventId 'last-event-id': lastEventId
} }
}); });