10000 refactor: align protocol version header capitalization to lowercase by felixweinberger · Pull Request #911 · modelcontextprotocol/python-sdk · GitHub
[go: up one dir, main page]

Skip to content
10000

refactor: align protocol version header capitalization to lowercase #911

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

felixweinberger
Copy link
Contributor
@felixweinberger felixweinberger commented Jun 9, 2025

Summary

This PR standardizes the MCP protocol version header name to lowercase mcp-protocol-version across the entire Python SDK codebase for consistency.

Changes

Changed MCP-Protocol-Version to mcp-protocol-version throughout and aligned usage of constants

Rationale

The lowercase format aligns with common HTTP header conventions (similar to headers like content-type, accept-encoding, etc.) and ensures consistent header handling throughout the SDK.

Test plan

  • All existing tests pass
  • Header validation continues to work correctly
  • Backwards compatibility is maintained

@felixweinberger felixweinberger changed the base branch from main to fweinberger/require-version June 9, 2025 18:24
@felixweinberger felixweinberger marked this pull request as ready for review June 9, 2025 18:37
@felixweinberger felixweinberger force-pushed the fweinberger/require-version branch from 9ee6458 to 14c3af8 Compare June 9, 2025 18:41
Standardize the MCP protocol version header name to lowercase
"mcp-protocol-version" across the entire codebase for consistency.

This change affects:
- Client auth module
- Client streamable HTTP transport
- Server auth routes
- Server streamable HTTP transport
- Test files

The lowercase format aligns with common HTTP header conventions
and ensures consistent header handling throughout the SDK.
@felixweinberger felixweinberger force-pushed the fweinberger/align-version-header branch from 2ebed85 to f2524de Compare June 9, 2025 18:43
@Kludex Kludex merged commit 32e64b6 into fweinberger/require-version Jun 10, 2025
10 checks passed
@Kludex Kludex deleted the fweinberger/align-version-header branch June 10, 2025 07:32
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
0