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
Accelerator
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
Type
/
to 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.7k
Star
23.9k
Code
Issues
239
Pull requests
272
Actions
Projects
Security and quality
6
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
[v2] ClientSession runs on JSONRPCDispatcher; BaseSession removed
- #2838
#2838
Merged
maxisbey
merged 28 commits into
main
modelcontextprotocol/python-sdk:main
from
maxisbey/v2-client-dispatcher-swap
modelcontextprotocol/python-sdk:maxisbey/v2-client-dispatcher-swap
Copy head branch name to clipboard
Jun 15, 2026
Conversation
Commits
28
(28)
Checks
Files changed
Merged
[v2] ClientSession runs on JSONRPCDispatcher; BaseSession removed
#2838
maxisbey
merged 28 commits into
main
modelcontextprotocol/python-sdk:main
from
maxisbey/v2-client-dispatcher-swap
modelcontextprotocol/python-sdk:maxisbey/v2-client-dispatcher-swap
Copy head branch name to clipboard
Commits
Commits on Jun 12, 2026
Add courtesy-cancel controls and bound shielded dispatcher writes
Show description for 35a3722
maxisbey
committed
35a3722
View commit details
Copy full SHA for 35a3722
Browse repository at this point
Contain notification-handler exceptions in the dispatcher
Show description for 0ac7937
maxisbey
committed
0ac7937
View commit details
Copy full SHA for 0ac7937
Browse repository at this point
Add an on_stream_exception observer to the dispatcher
Show description for aaacafc
maxisbey
committed
aaacafc
View commit details
Copy full SHA for aaacafc
Browse repository at this point
Collapse the dispatcher constructor overloads with a defaulted TypeVar
Show description for 83c4ba7
maxisbey
committed
83c4ba7
View commit details
Copy full SHA for 83c4ba7
Browse repository at this point
Move ClientSession onto JSONRPCDispatcher and delete BaseSession
Show description for 12c8ef3
maxisbey
committed
12c8ef3
View commit details
Copy full SHA for 12c8ef3
Browse repository at this point
Cover the remaining client-session branches and document the migration
Show description for ad471be
maxisbey
committed
ad471be
View commit details
Copy full SHA for ad471be
Browse repository at this point
Stop logging an error when the standalone SSE stream closes mid-listen
Show description for 2d4c5cd
maxisbey
committed
2d4c5cd
View commit details
Copy full SHA for 2d4c5cd
Browse repository at this point
Accept a pre-built dispatcher via a constructor keyword
Show description for 36a091d
maxisbey
committed
36a091d
View commit details
Copy full SHA for 36a091d
Browse repository at this point
Restore full coverage after the BaseSession deletion
Show description for dbd1693
maxisbey
committed
dbd1693
View commit details
Copy full SHA for dbd1693
Browse repository at this point
Tighten dispatcher abandon-path writes and response invariants
Show description for c4720d3
maxisbey
committed
c4720d3
View commit details
Copy full SHA for c4720d3
Browse repository at this point
Harden ClientSession enter/exit and fault delivery
Show description for c67b8d1
maxisbey
committed
c67b8d1
View commit details
Copy full SHA for c67b8d1
Browse repository at this point
Pin initialize-abandon suppression and tidy the interaction suite
Show description for 33a5482
maxisbey
committed
33a5482
View commit details
Copy full SHA for 33a5482
Browse repository at this point
Exercise the standalone SSE teardown window deterministically
Show description for 8786a52
maxisbey
committed
8786a52
View commit details
Copy full SHA for 8786a52
Browse repository at this point
Document the dispatcher behavior changes in the migration guide
maxisbey
committed
0d4762f
View commit details
Copy full SHA for 0d4762f
Browse repository at this point
Tighten comments and docstrings across the dispatcher swap
Show description for 9d4e02e
maxisbey
committed
9d4e02e
View commit details
Copy full SHA for 9d4e02e
Browse repository at this point
Remove the client-side related_request_id surface
Show description for 07f1b6d
maxisbey
committed
07f1b6d
View commit details
Copy full SHA for 07f1b6d
Browse repository at this point
Make ClientRequestContext a concrete class
Show description for 48f2b01
maxisbey
committed
48f2b01
View commit details
Copy full SHA for 48f2b01
Browse repository at this point
Synthesize request ids in DirectDispatcher
Show description for 421e65b
maxisbey
committed
421e65b
View commit details
Copy full SHA for 421e65b
Browse repository at this point
Raise CONNECTION_CLOSED for requests sent after the connection closed
Show description for 2d33ade
maxisbey
committed
2d33ade
View commit details
Copy full SHA for 2d33ade
Browse repository at this point
Make the late-response-ignored pin falsifiable
Show description for 1703d42
maxisbey
committed
1703d42
View commit details
Copy full SHA for 1703d42
Browse repository at this point
Trim the dispatcher-swap migration notes
Show description for 1672788
maxisbey
committed
1672788
View commit details
Copy full SHA for 1672788
Browse repository at this point
Close the write stream only after the task-group join
Show description for 47616ac
maxisbey
committed
47616ac
View commit details
Copy full SHA for 47616ac
Browse repository at this point
Pin client request concurrency in both directions
Show description for 04778b6
maxisbey
committed
04778b6
View commit details
Copy full SHA for 04778b6
Browse repository at this point
Tidy naming and doc nits from review
Show description for 0a54692
maxisbey
committed
0a54692
View commit details
Copy full SHA for 0a54692
Browse repository at this point
Commits on Jun 15, 2026
Trim the ClientSession migration section to behavior-relevant changes
Show description for 32b76cf
maxisbey
committed
32b76cf
View commit details
Copy full SHA for 32b76cf
Browse repository at this point
Harden ClientSession/dispatcher lifecycle and error handling
Show description for a27bca7
maxisbey
committed
a27bca7
View commit details
Copy full SHA for a27bca7
Browse repository at this point
Heal 3.11 coverage tracing in the new dispatcher tests
Show description for 9dedb40
maxisbey
committed
9dedb40
View commit details
Copy full SHA for 9dedb40
Browse repository at this point
Heal 3.11 coverage tracing at JSONRPCDispatcher.run() exit
Show description for ea52a87
maxisbey
committed
ea52a87
View commit details
Copy full SHA for ea52a87
Browse repository at this point
You can’t perform that action at this time.