From 1817d818482dee2417fa0a0c82a95cf0737f1a6b Mon Sep 17 00:00:00 2001 From: Felix Weinberger Date: Wed, 24 Jun 2026 22:23:54 +0000 Subject: [PATCH] fix(server-sse-polling): send mcp-protocol-version 2025-11-25 (the version this scenario tests) 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'. --- src/scenarios/server/sse-polling.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scenarios/server/sse-polling.ts b/src/scenarios/server/sse-polling.ts index 0f52f406..d197d3f9 100644 --- a/src/scenarios/server/sse-polling.ts +++ b/src/scenarios/server/sse-polling.ts @@ -138,7 +138,7 @@ export class ServerSSEPollingScenario implements ClientScenario { 'Content-Type': 'application/json', Accept: 'text/event-stream, application/json', ...(sessionId && { 'mcp-session-id': sessionId }), - 'mcp-protocol-version': '2025-03-26' + 'mcp-protocol-version': '2025-11-25' }, body: JSON.stringify({ jsonrpc: '2.0', @@ -417,7 +417,7 @@ export class ServerSSEPollingScenario implements ClientScenario { headers: { Accept: 'text/event-stream', 'mcp-session-id': sessionId, - 'mcp-protocol-version': '2025-03-26', + 'mcp-protocol-version': '2025-11-25', 'last-event-id': lastEventId } });