Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
modelcontextprotocol
/
python-sdk
Public
Notifications
You must be signed in to change notification settings
Fork
3.8k
Star
24.2k
Code
Issues
206
Pull requests
184
Actions
Projects
Security and quality
6
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
feat: implement MCP-Protocol-Version header requirement for HTTP transport
- #898
#898
Merged
ihrpr
merged 10 commits into
main
modelcontextprotocol/python-sdk:main
from
fweinberger/require-version
modelcontextprotocol/python-sdk:fweinberger/require-version
Copy head branch name to clipboard
Jun 12, 2025
Conversation
Commits
10
(10)
Checks
Files changed
Merged
feat: implement MCP-Protocol-Version header requirement for HTTP transport
#898
ihrpr
merged 10 commits into
main
modelcontextprotocol/python-sdk:main
from
fweinberger/require-version
modelcontextprotocol/python-sdk:fweinberger/require-version
Copy head branch name to clipboard
Commits
Commits on Jun 12, 2025
test: add failing tests for MCP-Protocol-Version header requirement
Show description for 2314b5a
felixweinberger
committed
2314b5a
View commit details
Copy full SHA for 2314b5a
Browse repository at this point
feat: track protocol version in StreamableHttpTransport
Show description for c6cca13
felixweinberger
committed
c6cca13
View commit details
Copy full SHA for c6cca13
Browse repository at this point
feat: implement MCP-Protocol-Version header validation in server
Show description for 4ce7e4c
felixweinberger
committed
4ce7e4c
View commit details
Copy full SHA for 4ce7e4c
Browse repository at this point
refactor: extract protocol version parsing to helper function
Show description for 370b993
felixweinberger
committed
370b993
View commit details
Copy full SHA for 370b993
Browse repository at this point
refactor: consolidate header validation into single method
Show description for 6832394
felixweinberger
committed
6832394
View commit details
Copy full SHA for 6832394
Browse repository at this point
refactor: rename _update_headers_for_request to _prepare_request_headers
Show description for b9a0c96
felixweinberger
committed
b9a0c96
View commit details
Copy full SHA for b9a0c96
Browse repository at this point
feat: add backwards compatibility for missing MCP-Protocol-Version header
Show description for d14666b
felixweinberger
committed
d14666b
View commit details
Copy full SHA for d14666b
Browse repository at this point
refactor: align protocol version header capitalization to lowercase (#911)
felixweinberger
committed
bb4eaab
View commit details
Copy full SHA for bb4eaab
Browse repository at this point
fix: address @ochafik comments
Show description for 56c1b0a
felixweinberger
committed
56c1b0a
View commit details
Copy full SHA for 56c1b0a
Browse repository at this point
fix: address @ihrpr comments
Show description for 5a5e7a9
felixweinberger
committed
5a5e7a9
View commit details
Copy full SHA for 5a5e7a9
Browse repository at this point
You can’t perform that action at this time.