| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:a78aa30d-a876-2f77-36fa-fbdbe9eb2c67 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9E2E:2B9CDD:508554E:6B7ABE3:6A5DC198 |
| html-safe-nonce | cad210b1b75de591dc45399bbaa1eedf21071724ae396174affe72e1275151da |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTJFOjJCOUNERDo1MDg1NTRFOjZCN0FCRTM6NkE1REMxOTgiLCJ2aXNpdG9yX2lkIjoiNjQ1MDk0MTk4ODc1NDUzODkwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | fa1231eabe719820b9c4b0704f2b19a22c858a6be67f5ef422a8c42bac1d0e40 |
| hovercard-subject-tag | pull_request:2478596200 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/modelcontextprotocol/python-sdk/582/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/19ea382436ba261e88b7ca30e6294cb791cf99cadcebc31f73904a222a616f28/modelcontextprotocol/python-sdk/pull/582 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/19ea382436ba261e88b7ca30e6294cb791cf99cadcebc31f73904a222a616f28/modelcontextprotocol/python-sdk/pull/582 |
| og:image:alt | Motivation and Context
When SSE Connection disconnect , we should free the _read_stream_writers
How Has This Been Tested?
Test with inspector -> connect -> disconnect
Breaking Changes
Ty... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lcamhoa |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-cache |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/modelcontextprotocol/python-sdk/pull/582#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F582 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://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%2F582 |
|
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 |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/582 |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/582 |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/582 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/582 |
|
modelcontextprotocol
| https://github.com/modelcontextprotocol |
| python-sdk | https://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 |
| lcamhoa | https://github.com/lcamhoa |
| modelcontextprotocol:v1.3.x | https://github.com/modelcontextprotocol/python-sdk/tree/v1.3.x |
| lcamhoa:sse-disconnect | https://github.com/lcamhoa/python-sdk/tree/sse-disconnect |
| Conversation | https://github.com/modelcontextprotocol/python-sdk/pull/582 |
| Commits9 (9) | https://github.com/modelcontextprotocol/python-sdk/pull/582/commits |
| Checks | https://github.com/modelcontextprotocol/python-sdk/pull/582/checks |
| Files changed | https://github.com/modelcontextprotocol/python-sdk/pull/582/files |
| Fix handle sse disconnect event to free read_stream_writers[session_id] | https://github.com/modelcontextprotocol/python-sdk/pull/582#top |
| lcamhoa | https://github.com/lcamhoa |
| modelcontextprotocol:v1.3.x | https://github.com/modelcontextprotocol/python-sdk/tree/v1.3.x |
| lcamhoa:sse-disconnect | https://github.com/lcamhoa/python-sdk/tree/sse-disconnect |
|
| https://github.com/lcamhoa |
| lcamhoa | https://github.com/lcamhoa |
| Apr 24, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/582#issue-3016678346 |
| MCP Documentation | https://modelcontextprotocol.io |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/582 |
| Fix handle sse disconnect | https://github.com/modelcontextprotocol/python-sdk/pull/582/commits/f7d33ad00eb8fb1311d1480762451d50bb917bc9 |
| f7d33ad | https://github.com/modelcontextprotocol/python-sdk/pull/582/commits/f7d33ad00eb8fb1311d1480762451d50bb917bc9 |
| https://github.com/lcamhoa |
| lcamhoa | https://github.com/lcamhoa |
|
Apr 25, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/582#ref-pullrequest-2995880517 |
|
perf: clean up SSE session writer
#518
| https://github.com/modelcontextprotocol/python-sdk/pull/518 |
| Add close read write stream | https://github.com/modelcontextprotocol/python-sdk/pull/582/commits/e8e0491e24c0507537abbeae4d4893cd12f4ba51 |
| e8e0491 | https://github.com/modelcontextprotocol/python-sdk/pull/582/commits/e8e0491e24c0507537abbeae4d4893cd12f4ba51 |
| https://github.com/Kludex |
| Kludex | https://github.com/Kludex |
| Apr 25, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/582#issuecomment-2829581686 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/582 |
| Add unittest sse disconnect | https://github.com/modelcontextprotocol/python-sdk/pull/582/commits/c7ef8a201b424113799892e2d9902952bb3efc22 |
| c7ef8a2 | https://github.com/modelcontextprotocol/python-sdk/pull/582/commits/c7ef8a201b424113799892e2d9902952bb3efc22 |
| https://github.com/lcamhoa |
| lcamhoa | https://github.com/lcamhoa |
| Apr 26, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/582#issuecomment-2832146693 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/582 |
| https://github.com/ihrpr |
| ihrpr | https://github.com/ihrpr |
|
Apr 29, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/582#pullrequestreview-2802837817 |
|
View reviewed changes
| https://github.com/modelcontextprotocol/python-sdk/pull/582/files/c7ef8a201b424113799892e2d9902952bb3efc22 |
| src/mcp/server/sse.py | https://github.com/modelcontextprotocol/python-sdk/pull/582/files/c7ef8a201b424113799892e2d9902952bb3efc22#diff-db3d89720f05f9c8a375c9ce008a6b477be25dccabca86a7d422814c5ab3f12c |
| ihrpr | https://github.com/ihrpr |
| Apr 29, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/582#discussion_r2065980899 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| #586 | https://github.com/modelcontextprotocol/python-sdk/pull/586 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/582 |
| lcamhoa | https://github.com/lcamhoa |
| May 6, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/582#discussion_r2074717771 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| here | https://github.com/modelcontextprotocol/python-sdk/pull/586/files#r2074716958 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/582 |
| https://github.com/ihrpr |
| ihrpr | https://github.com/ihrpr |
| 2025-03-26 spec release | https://github.com/modelcontextprotocol/python-sdk/milestone/6 |
| Apr 29, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/582#event-17452112334 |
| Upgrade sse-starlette to fix type annotation | https://github.com/modelcontextprotocol/python-sdk/pull/582/commits/bda260af2d746dd1771050c755817a3161b007f4 |
| bda260a | https://github.com/modelcontextprotocol/python-sdk/pull/582/commits/bda260af2d746dd1771050c755817a3161b007f4 |
| https://github.com/lcamhoa |
| lcamhoa | https://github.com/lcamhoa |
| force-pushed | https://github.com/modelcontextprotocol/python-sdk/compare/a37b6eb31788ef0cb5bbde9edf12d1da1a29d5a6..a4793730f23acc3947c3a02fad07672a615a97ca |
| a37b6eb | https://github.com/modelcontextprotocol/python-sdk/commit/a37b6eb31788ef0cb5bbde9edf12d1da1a29d5a6 |
| a479373 | https://github.com/modelcontextprotocol/python-sdk/commit/a4793730f23acc3947c3a02fad07672a615a97ca |
|
Compare
| https://github.com/modelcontextprotocol/python-sdk/compare/a37b6eb31788ef0cb5bbde9edf12d1da1a29d5a6..a4793730f23acc3947c3a02fad07672a615a97ca |
| May 6, 2025 02:48 | https://github.com/modelcontextprotocol/python-sdk/pull/582#event-17529516169 |
| Update uv lock + typer | https://github.com/modelcontextprotocol/python-sdk/pull/582/commits/36bb4c6a3208bc12a1a330cdc7f0f4a862ca184b |
| 36bb4c6 | https://github.com/modelcontextprotocol/python-sdk/pull/582/commits/36bb4c6a3208bc12a1a330cdc7f0f4a862ca184b |
| https://github.com/lcamhoa |
| lcamhoa | https://github.com/lcamhoa |
| force-pushed | https://github.com/modelcontextprotocol/python-sdk/compare/a4793730f23acc3947c3a02fad07672a615a97ca..36bb4c6a3208bc12a1a330cdc7f0f4a862ca184b |
| a479373 | https://github.com/modelcontextprotocol/python-sdk/commit/a4793730f23acc3947c3a02fad07672a615a97ca |
| 36bb4c6 | https://github.com/modelcontextprotocol/python-sdk/commit/36bb4c6a3208bc12a1a330cdc7f0f4a862ca184b |
|
Compare
| https://github.com/modelcontextprotocol/python-sdk/compare/a4793730f23acc3947c3a02fad07672a615a97ca..36bb4c6a3208bc12a1a330cdc7f0f4a862ca184b |
| May 6, 2025 04:11 | https://github.com/modelcontextprotocol/python-sdk/pull/582#event-17530073126 |
| May 7, 2025 14:12 | https://github.com/modelcontextprotocol/python-sdk/pull/582#commits-pushed-ee8d1eb |
| fix uv lock | https://github.com/modelcontextprotocol/python-sdk/pull/582/commits/ee8d1ebf7f35f1b926ea4b6577899d70450e1ec2 |
| ee8d1eb | https://github.com/modelcontextprotocol/python-sdk/pull/582/commits/ee8d1ebf7f35f1b926ea4b6577899d70450e1ec2 |
| Fix NoneType return starlette/routing.py line 74, | https://github.com/modelcontextprotocol/python-sdk/pull/582/commits/74701dd83382ce2735d86a590a84b42a9d7365f4 |
| 74701dd | https://github.com/modelcontextprotocol/python-sdk/pull/582/commits/74701dd83382ce2735d86a590a84b42a9d7365f4 |
| Fix format | https://github.com/modelcontextprotocol/python-sdk/pull/582/commits/49262a93983912ff43c7d03aa99d07cb746c5821 |
| 49262a9 | https://github.com/modelcontextprotocol/python-sdk/pull/582/commits/49262a93983912ff43c7d03aa99d07cb746c5821 |
| https://github.com/lcamhoa |
| lcamhoa | https://github.com/lcamhoa |
| force-pushed | https://github.com/modelcontextprotocol/python-sdk/compare/4c5d8fac1bacced33c4619619a65e1342413bcfb..49262a93983912ff43c7d03aa99d07cb746c5821 |
| 4c5d8fa | https://github.com/modelcontextprotocol/python-sdk/commit/4c5d8fac1bacced33c4619619a65e1342413bcfb |
| 49262a9 | https://github.com/modelcontextprotocol/python-sdk/commit/49262a93983912ff43c7d03aa99d07cb746c5821 |
|
Compare
| https://github.com/modelcontextprotocol/python-sdk/compare/4c5d8fac1bacced33c4619619a65e1342413bcfb..49262a93983912ff43c7d03aa99d07cb746c5821 |
| May 7, 2025 11:35 | https://github.com/modelcontextprotocol/python-sdk/pull/582#event-17554606105 |
| https://github.com/ihrpr |
| ihrpr | https://github.com/ihrpr |
|
May 7, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/582#pullrequestreview-2821562479 |
|
View reviewed changes
| https://github.com/modelcontextprotocol/python-sdk/pull/582/files/49262a93983912ff43c7d03aa99d07cb746c5821 |
| ihrpr | https://github.com/ihrpr |
| https://github.com/modelcontextprotocol/python-sdk/pull/582#pullrequestreview-2821562479 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| #612 | https://github.com/modelcontextprotocol/python-sdk/pull/612 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/582 |
| uv.lock | https://github.com/modelcontextprotocol/python-sdk/pull/582/files/49262a93983912ff43c7d03aa99d07cb746c5821#diff-84321598744d84dbee2318e634c74c9aae39a1c253f1c4bd17ebf9ef2f807b11 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/582 |
| examples/servers/simple-tool/mcp_simple_tool/server.py | https://github.com/modelcontextprotocol/python-sdk/pull/582/files/49262a93983912ff43c7d03aa99d07cb746c5821#diff-ba52c682d4e3fbfa81efb481c7df117341f6502fcf7b99f0722448f0ffbfb9bd |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/582 |
| upgreade sse-starlette 2.3.5 | https://github.com/modelcontextprotocol/python-sdk/pull/582/commits/dbe05d650a854ed7c1c4e5c6bf3b4126e97cae7c |
| dbe05d6 | https://github.com/modelcontextprotocol/python-sdk/pull/582/commits/dbe05d650a854ed7c1c4e5c6bf3b4126e97cae7c |
| https://github.com/lcamhoa |
| lcamhoa | https://github.com/lcamhoa |
| Jun 6, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/582#issuecomment-2947668128 |
| #612 | https://github.com/modelcontextprotocol/python-sdk/pull/612 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/582 |
| https://github.com/lcamhoa |
| lcamhoa | https://github.com/lcamhoa |
| Jun 6, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/582#event-18014655733 |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F582 |
|
| https://github.com/ihrpr |
|
ihrpr
| https://github.com/ihrpr |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/582/files/49262a93983912ff43c7d03aa99d07cb746c5821 |
|
2025-03-26 spec release
| https://github.com/modelcontextprotocol/python-sdk/milestone/6 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/582 |
|
| https://github.com/lcamhoa |
|
| https://github.com/Kludex |
|
| https://github.com/ihrpr |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |