fix!: require negotiated version when using HTTP by kurtisvg · Pull Request #548 · modelcontextprotocol/modelcontextprotocol

@bhosmer-ant mentioned this pull request

Jun 4, 2025

bhosmer-ant

@kurtisvg

@kurtisvg

Co-authored-by: bhosmer-ant <basil@anthropic.com>

@kurtisvg

@kurtisvg

bhosmer-ant

stephentoub

felixweinberger added a commit to modelcontextprotocol/python-sdk that referenced this pull request

Jun 7, 2025
Add integration tests to verify the new spec requirement that HTTP
clients must include the negotiated MCP-Protocol-Version header in
all requests after initialization.

Tests verify:
1. Client includes MCP-Protocol-Version header after initialization
2. Server validates header presence and returns 400 for missing/invalid
3. Server accepts requests with valid negotiated version

These tests currently fail as the feature is not yet implemented.

Related to spec change: modelcontextprotocol/modelcontextprotocol#548

felixweinberger added a commit to modelcontextprotocol/python-sdk that referenced this pull request

Jun 9, 2025
Add integration tests to verify the new spec requirement that HTTP
clients must include the negotiated MCP-Protocol-Version header in
all requests after initialization.

Tests verify:
1. Client includes MCP-Protocol-Version header after initialization
2. Server validates header presence and returns 400 for missing/invalid
3. Server accepts requests with valid negotiated version

These tests currently fail as the feature is not yet implemented.

Related to spec change: modelcontextprotocol/modelcontextprotocol#548

@ihrpr ihrpr mentioned this pull request

Jun 9, 2025

felixweinberger added a commit to modelcontextprotocol/python-sdk that referenced this pull request

Jun 12, 2025
Add integration tests to verify the new spec requirement that HTTP
clients must include the negotiated MCP-Protocol-Version header in
all requests after initialization.

Tests verify:
1. Client includes MCP-Protocol-Version header after initialization
2. Server validates header presence and returns 400 for missing/invalid
3. Server accepts requests with valid negotiated version

These tests currently fail as the feature is not yet implemented.

Related to spec change: modelcontextprotocol/modelcontextprotocol#548

This was referenced

Jun 27, 2025