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:
parent
32523cc21a
commit
4686e064e2
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue