René's URL Explorer Experiment


Title: fix: clean up SSE session on client disconnect by Varun6578 · Pull Request #2200 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: fix: clean up SSE session on client disconnect by Varun6578 · Pull Request #2200 · modelcontextprotocol/python-sdk

X Title: fix: clean up SSE session on client disconnect by Varun6578 · Pull Request #2200 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - fix: clean up SSE session on client disconnect by Varun6578 · Pull Request #2200 · modelcontextprotocol/python-sdk

Open Graph Description: NoteEDIT from @maxisbey: Retargeting to Fixes #1227 — see #2200 (comment) for details. The fix is correct and useful, but #423 is a different bug (client-side EventSource auto-reconnect without re-...

X Description: NoteEDIT from @maxisbey: Retargeting to Fixes #1227 — see #2200 (comment) for details. The fix is correct and useful, but #423 is a different bug (client-side EventSource auto-reconnect without re-...

Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/2200

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:984fb1fc-17b3-650b-cfdb-a739f2872fc6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8B8C:2A60AD:6344537:8625E3D:6A5E0627
html-safe-nonce530aac48e62d5d2d3fc318652f8f6349396b74dd4b02eeaa66245a25b1c89a0e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjhDOjJBNjBBRDo2MzQ0NTM3Ojg2MjVFM0Q6NkE1RTA2MjciLCJ2aXNpdG9yX2lkIjoiNjg0Njg2MDA1ODQ0NDAzOTcxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbbcc89cc76ac94060aa64964c0dea1f0da739c777004c8756d0a33cdd7d25826
hovercard-subject-tagpull_request:3343854254
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/modelcontextprotocol/python-sdk/2200/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/3e1ec0ac4d9d908dd11e21bd93d7f70635e8f4a8dd5fe002931a52bfd8b8ec86/modelcontextprotocol/python-sdk/pull/2200
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3e1ec0ac4d9d908dd11e21bd93d7f70635e8f4a8dd5fe002931a52bfd8b8ec86/modelcontextprotocol/python-sdk/pull/2200
og:image:altNoteEDIT from @maxisbey: Retargeting to Fixes #1227 — see #2200 (comment) for details. The fix is correct and useful, but #423 is a different bug (client-side EventSource auto-reconnect without re-...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameVarun6578
hostnamegithub.com
expected-hostnamegithub.com
None7c1de870f4c0eff05971cd22970403a1239a98dc1a35e52a43594f23fc4d546f
turbo-cache-controlno-cache
go-importgithub.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git
octolytics-dimension-user_id182288589
octolytics-dimension-user_loginmodelcontextprotocol
octolytics-dimension-repository_id862584018
octolytics-dimension-repository_nwomodelcontextprotocol/python-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id862584018
octolytics-dimension-repository_network_root_nwomodelcontextprotocol/python-sdk
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee90635d4b07e4a20ff548df2e2bfea2179c6a3f3
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/2200#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2200
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2200
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2200
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2200
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2200
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2200
modelcontextprotocol https://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Notifications https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Fork 3.7k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Star 23.7k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Code https://github.com/modelcontextprotocol/python-sdk
Issues 263 https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests 309 https://github.com/modelcontextprotocol/python-sdk/pulls
Actions https://github.com/modelcontextprotocol/python-sdk/actions
Projects https://github.com/modelcontextprotocol/python-sdk/projects
Models https://github.com/modelcontextprotocol/python-sdk/models
Security and quality 6 https://github.com/modelcontextprotocol/python-sdk/security
Insights https://github.com/modelcontextprotocol/python-sdk/pulse
Code https://github.com/modelcontextprotocol/python-sdk
Issues https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests https://github.com/modelcontextprotocol/python-sdk/pulls
Actions https://github.com/modelcontextprotocol/python-sdk/actions
Projects https://github.com/modelcontextprotocol/python-sdk/projects
Models https://github.com/modelcontextprotocol/python-sdk/models
Security and quality https://github.com/modelcontextprotocol/python-sdk/security
Insights https://github.com/modelcontextprotocol/python-sdk/pulse
maxisbeyhttps://github.com/maxisbey
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
Varun6578:fix/sse-session-cleanuphttps://github.com/Varun6578/python-sdk/tree/fix/sse-session-cleanup
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/2200
Commits5 (5)https://github.com/modelcontextprotocol/python-sdk/pull/2200/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/2200/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/2200/files
fix: clean up SSE session on client disconnecthttps://github.com/modelcontextprotocol/python-sdk/pull/2200#top
maxisbeyhttps://github.com/maxisbey
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
Varun6578:fix/sse-session-cleanuphttps://github.com/Varun6578/python-sdk/tree/fix/sse-session-cleanup
https://github.com/Varun6578
Varun6578https://github.com/Varun6578
Mar 2, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2200#issue-4010836437
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2200
@maxisbeyhttps://github.com/maxisbey
#2200 (comment)https://github.com/modelcontextprotocol/python-sdk/pull/2200#issuecomment-3997883845
#423https://github.com/modelcontextprotocol/python-sdk/issues/423
#822https://github.com/modelcontextprotocol/python-sdk/pull/822
#1478https://github.com/modelcontextprotocol/python-sdk/pull/1478
#1227https://github.com/modelcontextprotocol/python-sdk/issues/1227
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2200
https://github.com/apps/github-copilot-cli
fix: clean up SSE session on client disconnecthttps://github.com/modelcontextprotocol/python-sdk/pull/2200/commits/1fce2fdc6b83dc1de8bf6716752912303a2de69b
1fce2fdhttps://github.com/modelcontextprotocol/python-sdk/pull/2200/commits/1fce2fdc6b83dc1de8bf6716752912303a2de69b
modelcontextprotocol#423https://github.com/modelcontextprotocol/python-sdk/issues/423
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Mar 2, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2200#issuecomment-3983958551
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2200
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
needs more work https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22needs%20more%20work%22
Mar 2, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2200#event-23190810686
https://github.com/apps/github-copilot-cli
Add regression test for SSE session cleanup on disconnecthttps://github.com/modelcontextprotocol/python-sdk/pull/2200/commits/c152ca5d24f7a38c58b93e1740772b536bcfde40
c152ca5https://github.com/modelcontextprotocol/python-sdk/pull/2200/commits/c152ca5d24f7a38c58b93e1740772b536bcfde40
modelcontextprotocol#423https://github.com/modelcontextprotocol/python-sdk/issues/423
https://github.com/Varun6578
Varun6578https://github.com/Varun6578
Mar 2, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2200#issuecomment-3984092414
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2200
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2200
March 2, 2026 18:01https://github.com/modelcontextprotocol/python-sdk/pull/2200#commits-pushed-3d28ad1
https://github.com/apps/github-copilot-cli
Fix coverage: simplify test by removing unnecessary retry loophttps://github.com/modelcontextprotocol/python-sdk/pull/2200/commits/3d28ad1df59c32ad13af040aa4d2ddc3ead1d5c6
3d28ad1https://github.com/modelcontextprotocol/python-sdk/pull/2200/commits/3d28ad1df59c32ad13af040aa4d2ddc3ead1d5c6
https://github.com/maxisbey
Update test docstring to reference correct issue (https://github.com/modelcontextprotocol/python-sdk/pull/2200/commits/f0057a5468e702ac53ccc7e96141a63b4cc11689
modelcontextprotoco…https://github.com/modelcontextprotocol/python-sdk/issues/1227
f0057a5https://github.com/modelcontextprotocol/python-sdk/pull/2200/commits/f0057a5468e702ac53ccc7e96141a63b4cc11689
…l#1227https://github.com/modelcontextprotocol/python-sdk/issues/1227
modelcontextprotocol#1227https://github.com/modelcontextprotocol/python-sdk/issues/1227
modelcontextprotocol#423https://github.com/modelcontextprotocol/python-sdk/issues/423
modelcontextprotocol#822https://github.com/modelcontextprotocol/python-sdk/pull/822
modelcontextprotocol#1478https://github.com/modelcontextprotocol/python-sdk/pull/1478
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Mar 4, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2200#issuecomment-3997883845
@Varun6578https://github.com/Varun6578
#1227https://github.com/modelcontextprotocol/python-sdk/issues/1227
#423https://github.com/modelcontextprotocol/python-sdk/issues/423
#1227https://github.com/modelcontextprotocol/python-sdk/issues/1227
#423https://github.com/modelcontextprotocol/python-sdk/issues/423
#423https://github.com/modelcontextprotocol/python-sdk/issues/423
#423https://github.com/modelcontextprotocol/python-sdk/issues/423
#822https://github.com/modelcontextprotocol/python-sdk/pull/822
#1478https://github.com/modelcontextprotocol/python-sdk/pull/1478
this commenthttps://github.com/modelcontextprotocol/python-sdk/issues/423#issuecomment-2968839587
#423https://github.com/modelcontextprotocol/python-sdk/issues/423
2024-11-05https://modelcontextprotocol.io/specification/2024-11-05/basic/transports
2025-03-26 onwardshttps://modelcontextprotocol.io/specification/2025-03-26/basic/transports
#2044https://github.com/modelcontextprotocol/python-sdk/pull/2044
AI Disclaimerhttps://gist.github.com/maxisbey/6123d132484e4c533eab519a2800693d
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2200
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Mar 4, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2200#ref-pullrequest-3930493429
fix: clean up session when disconnected #2044 https://github.com/modelcontextprotocol/python-sdk/pull/2044
https://github.com/maxisbey
Use list.append for session_id capture to fix 3.11 coverage gaphttps://github.com/modelcontextprotocol/python-sdk/pull/2200/commits/25d75bb35c6f0e2a4396a4243d56415a4b668910
25d75bbhttps://github.com/modelcontextprotocol/python-sdk/pull/2200/commits/25d75bb35c6f0e2a4396a4243d56415a4b668910
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Mar 4, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2200#ref-issue-3282997229
SSE: ConnectionClosed exception after session disconnect #1227 https://github.com/modelcontextprotocol/python-sdk/issues/1227
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Mar 4, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2200#pullrequestreview-3889877226
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2200/files/25d75bb35c6f0e2a4396a4243d56415a4b668910
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
b3149d2https://github.com/modelcontextprotocol/python-sdk/commit/b3149d2f33dd929143123195755bf4b9b57efddb
Mar 4, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2200#event-23263184088
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2200
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Mar 4, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2200#ref-pullrequest-4022574304
tests: remove lax-no-cover pragmas by moving assertions before cancellation #2206 https://github.com/modelcontextprotocol/python-sdk/pull/2206
https://github.com/thebenlamm
thebenlammhttps://github.com/thebenlamm
May 6, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2200#issuecomment-4392439286
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2200
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2200
https://github.com/maxisbey
maxisbey https://github.com/maxisbey
https://github.com/modelcontextprotocol/python-sdk/pull/2200/files/25d75bb35c6f0e2a4396a4243d56415a4b668910
needs more work https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22needs%20more%20work%22
SSE: ConnectionClosed exception after session disconnect https://github.com/modelcontextprotocol/python-sdk/issues/1227
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2200
https://github.com/Varun6578
https://github.com/maxisbey
https://github.com/thebenlamm
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.