Skip to content

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

Merged
pcarleton merged 1 commit into
mainfrom
fweinberger/sse-polling-protocol-version
Jun 25, 2026
Merged

fix(server-sse-polling): send mcp-protocol-version 2025-11-25 (the version this scenario tests)#366
pcarleton merged 1 commit into
mainfrom
fweinberger/sse-polling-protocol-version

Conversation

@felixweinberger

Copy link
Copy Markdown
Collaborator

The server-sse-polling scenario has introducedIn: '2025-11-25' and tests SEP-1699 priming events (which require empty-data SSE support, introduced in 2025-11-25). But the scenario's raw-fetch probes send mcp-protocol-version: '2025-03-26'.

A server that correctly version-gates priming events (suppressing them for clients whose declared version predates empty-data SSE support) will never emit a priming event for this scenario, so the scenario emits WARNING: Server did not send priming event against a conformant implementation.

How Has This Been Tested?

Verified against typescript-sdk@v2-2026-07-28 (which gates priming on protocolVersion >= '2025-11-25'): with this fix, server-sse-polling goes from WARNING to ✓ 3 passed, 0 failed.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

…rsion 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'.
@pkg-pr-new

pkg-pr-new Bot commented Jun 24, 2026

Copy link
Copy Markdown

Open in StackBlitz

npx https://pkg.pr.new/@modelcontextprotocol/conformance@366

commit: 1817d81

@pcarleton pcarleton merged commit 4686e06 into main Jun 25, 2026
8 checks passed
@pcarleton pcarleton deleted the fweinberger/sse-polling-protocol-version branch June 25, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants