| 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:72c0f7fe-4b70-eacc-af57-2917a8f14118 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | DB18:131B09:195B86D:24235A9:6A5A3783 |
| html-safe-nonce | ef1e93e562848d38513df5f5ef58eb5cf55e280616afaa5e1ce9e254e18e5ce7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQjE4OjEzMUIwOToxOTVCODZEOjI0MjM1QTk6NkE1QTM3ODMiLCJ2aXNpdG9yX2lkIjoiNzcxODY4NjE3OTg0NDU2ODk2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 20a76577e52e6723813ef4f568499adddb75ebada9ef6325ccb282e782e9270a |
| hovercard-subject-tag | pull_request:3415641486 |
| 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/2306/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/08834df1d02db6f01b85333a42fe4d0af6c6d7368284dd0343098219884bdcda/modelcontextprotocol/python-sdk/pull/2306 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/08834df1d02db6f01b85333a42fe4d0af6c6d7368284dd0343098219884bdcda/modelcontextprotocol/python-sdk/pull/2306 |
| og:image:alt | When the transport closes mid-request, server.run() now cancels in-flight handlers instead of waiting for them.
Motivation and Context
Discovered while investigating #2231. That issue's stated ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maxisbey |
| hostname | github.com |
| expected-hostname | github.com |
| None | 19c67ad7579d2401ff06e88a32ef45460fbb40fab3191c7f7582d5e166f326fc |
| 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 | e618485bff22dab2ef1ffb4e34e4e6626688df69 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/modelcontextprotocol/python-sdk/pull/2306#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2306 |
| 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%2F2306 |
|
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/2306 |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/2306 |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/2306 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2306 |
|
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.6k
| https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk |
|
Code
| https://github.com/modelcontextprotocol/python-sdk |
|
Issues
255
| https://github.com/modelcontextprotocol/python-sdk/issues |
|
Pull requests
303
| 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 |
| maxisbey | https://github.com/maxisbey |
| main | https://github.com/modelcontextprotocol/python-sdk/tree/main |
| fix/cancel-in-flight-on-transport-close | https://github.com/modelcontextprotocol/python-sdk/tree/fix/cancel-in-flight-on-transport-close |
| Conversation | https://github.com/modelcontextprotocol/python-sdk/pull/2306 |
| Commits4 (4) | https://github.com/modelcontextprotocol/python-sdk/pull/2306/commits |
| Checks | https://github.com/modelcontextprotocol/python-sdk/pull/2306/checks |
| Files changed | https://github.com/modelcontextprotocol/python-sdk/pull/2306/files |
| fix: cancel in-flight handlers when transport closes in server.run() | https://github.com/modelcontextprotocol/python-sdk/pull/2306#top |
| maxisbey | https://github.com/maxisbey |
| main | https://github.com/modelcontextprotocol/python-sdk/tree/main |
| fix/cancel-in-flight-on-transport-close | https://github.com/modelcontextprotocol/python-sdk/tree/fix/cancel-in-flight-on-transport-close |
|
| https://github.com/maxisbey |
| maxisbey | https://github.com/maxisbey |
| Mar 18, 2026 | https://github.com/modelcontextprotocol/python-sdk/pull/2306#issue-4096089190 |
| #2231 | https://github.com/modelcontextprotocol/python-sdk/issues/2231 |
| server.run()'s task group | https://github.com/modelcontextprotocol/python-sdk/blob/ff50351f9e08b0a7dbbcade3813c48986b737b05/src/mcp/server/lowlevel/server.py#L389-L399 |
| _receive_loop already closed | https://github.com/modelcontextprotocol/python-sdk/blob/ff50351f9e08b0a7dbbcade3813c48986b737b05/src/mcp/shared/session.py#L334 |
| #2257 | https://github.com/modelcontextprotocol/python-sdk/pull/2257 |
| #1153 | https://github.com/modelcontextprotocol/python-sdk/pull/1153 |
| #526 | https://github.com/modelcontextprotocol/python-sdk/issues/526 |
| conn.go:167 | https://github.com/modelcontextprotocol/go-sdk/blob/a433a83/internal/jsonrpc2/conn.go#L166-L168 |
| modelcontextprotocol/csharp-sdk#226 | https://github.com/modelcontextprotocol/csharp-sdk/pull/226 |
| MCP Documentation | https://modelcontextprotocol.io |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2306 |
|
| https://github.com/maxisbey |
| fix: cancel in-flight handlers when transport closes in server.run() | https://github.com/modelcontextprotocol/python-sdk/pull/2306/commits/f638a9d3588e20d45516bf8fb475f416875416ce |
| f638a9d | https://github.com/modelcontextprotocol/python-sdk/pull/2306/commits/f638a9d3588e20d45516bf8fb475f416875416ce |
| #1153 | https://github.com/modelcontextprotocol/python-sdk/pull/1153 |
| #526 | https://github.com/modelcontextprotocol/python-sdk/issues/526 |
| https://github.com/maxisbey |
| maxisbey | https://github.com/maxisbey |
| March 18, 2026 15:51 | https://github.com/modelcontextprotocol/python-sdk/pull/2306#event-23687396665 |
| https://github.com/maxisbey |
| maxisbey | https://github.com/maxisbey |
| Kludex | https://github.com/Kludex |
| March 18, 2026 15:51 | https://github.com/modelcontextprotocol/python-sdk/pull/2306#event-23687398496 |
| https://github.com/apps/claude |
| claude | https://github.com/apps/claude |
|
Mar 18, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2306#pullrequestreview-3969092124 |
|
View reviewed changes
| https://github.com/modelcontextprotocol/python-sdk/pull/2306/files/f638a9d3588e20d45516bf8fb475f416875416ce |
| claude | https://github.com/apps/claude |
| https://github.com/modelcontextprotocol/python-sdk/pull/2306#pullrequestreview-3969092124 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2306 |
|
| https://github.com/maxisbey |
| fix: handle transport close with pending server-to-client requests | https://github.com/modelcontextprotocol/python-sdk/pull/2306/commits/36a974acd8d28969e9b2df8e9bbf6f8fea18d421 |
| 36a974a | https://github.com/modelcontextprotocol/python-sdk/pull/2306/commits/36a974acd8d28969e9b2df8e9bbf6f8fea18d421 |
| https://github.com/apps/claude |
| claude | https://github.com/apps/claude |
|
Mar 18, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2306#pullrequestreview-3969632455 |
|
View reviewed changes
| https://github.com/modelcontextprotocol/python-sdk/pull/2306/files/36a974acd8d28969e9b2df8e9bbf6f8fea18d421 |
| src/mcp/server/lowlevel/server.py | https://github.com/modelcontextprotocol/python-sdk/pull/2306/files/36a974acd8d28969e9b2df8e9bbf6f8fea18d421#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2306 |
| src/mcp/server/lowlevel/server.py | https://github.com/modelcontextprotocol/python-sdk/pull/2306/files/36a974acd8d28969e9b2df8e9bbf6f8fea18d421#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2306 |
| maxisbey | https://github.com/maxisbey |
| March 18, 2026 18:09 | https://github.com/modelcontextprotocol/python-sdk/pull/2306#commits-pushed-e1d712d |
|
| https://github.com/maxisbey |
| refactor: unify respond() call after if/else to avoid 3.14 phantom trace | https://github.com/modelcontextprotocol/python-sdk/pull/2306/commits/e1d712dd1902037ae5f1a37219b16541880e48bd |
| e1d712d | https://github.com/modelcontextprotocol/python-sdk/pull/2306/commits/e1d712dd1902037ae5f1a37219b16541880e48bd |
|
| https://github.com/maxisbey |
| fix: also catch BrokenResourceError from respond() for SHTTP terminate() | https://github.com/modelcontextprotocol/python-sdk/pull/2306/commits/328bb0b411119567ad9250eadc38893a3138868b |
| 328bb0b | https://github.com/modelcontextprotocol/python-sdk/pull/2306/commits/328bb0b411119567ad9250eadc38893a3138868b |
| https://github.com/maxisbey |
| maxisbey | https://github.com/maxisbey |
| felixweinberger | https://github.com/felixweinberger |
| March 20, 2026 11:57 | https://github.com/modelcontextprotocol/python-sdk/pull/2306#event-23750153470 |
| https://github.com/felixweinberger |
| felixweinberger | https://github.com/felixweinberger |
|
Mar 20, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2306#pullrequestreview-3981457063 |
|
View reviewed changes
| https://github.com/modelcontextprotocol/python-sdk/pull/2306/files/328bb0b411119567ad9250eadc38893a3138868b |
| https://github.com/maxisbey |
| maxisbey | https://github.com/maxisbey |
| 92c693b | https://github.com/modelcontextprotocol/python-sdk/commit/92c693bb730d059b2cc3836ccf0cdfe0720e9e18 |
| Mar 20, 2026 | https://github.com/modelcontextprotocol/python-sdk/pull/2306#event-23752685557 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2306 |
| https://github.com/maxisbey |
| maxisbey | https://github.com/maxisbey |
| March 20, 2026 13:37 | https://github.com/modelcontextprotocol/python-sdk/pull/2306#event-23752686818 |
| https://github.com/maxisbey |
| maxisbey | https://github.com/maxisbey |
|
Mar 20, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2306#ref-issue-4033813323 |
|
Stdio transport: MCP server process survives parent death (stdin EOF not causing shutdown)
#2231
| https://github.com/modelcontextprotocol/python-sdk/issues/2231 |
| https://github.com/owendevereaux |
| owendevereaux | https://github.com/owendevereaux |
|
Mar 22, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2306#ref-pullrequest-4117149733 |
|
[v1.x] fix: handle ClosedResourceError when transport closes mid-request
#2334
| https://github.com/modelcontextprotocol/python-sdk/pull/2334 |
|
fix: upgrade mcp SDK to v1.x branch to fix ClosedResourceError
datagouv/datagouv-mcp#84
| https://github.com/datagouv/datagouv-mcp/pull/84 |
|
MCP Out of Memory errors on production instances
datagouv/datagouv-mcp#86
| https://github.com/datagouv/datagouv-mcp/issues/86 |
| https://github.com/bbarwik |
| bbarwik | https://github.com/bbarwik |
|
Apr 9, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2306#ref-issue-4234724647 |
|
Bug: AssertionError: Request already responded to — cancellation race in v1.27.0
#2416
| https://github.com/modelcontextprotocol/python-sdk/issues/2416 |
| https://github.com/maxisbey |
| maxisbey | https://github.com/maxisbey |
|
May 18, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2306#ref-issue-4114933914 |
|
[Bug] Server crashes with anyio.ClosedResourceError when receiving raw invalid UTF-8 bytes
#2328
| https://github.com/modelcontextprotocol/python-sdk/issues/2328 |
| https://github.com/apps/mcp-claude |
| mcp-claude | https://github.com/apps/mcp-claude |
|
Jun 1, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2306#ref-issue-4456573446 |
|
RequestResponder.__exit__ leaks CancelledError on cancelled request, killing the stdio receive loop
#2610
| https://github.com/modelcontextprotocol/python-sdk/issues/2610 |
| https://github.com/maxisbey |
| maxisbey | https://github.com/maxisbey |
|
Jun 12, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2306#ref-pullrequest-4642346713 |
|
[v2] ClientSession runs on JSONRPCDispatcher; BaseSession removed
#2838
| https://github.com/modelcontextprotocol/python-sdk/pull/2838 |
| 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%2F2306 |
|
| https://github.com/apps/claude |
|
claude[bot]
| https://github.com/apps/claude |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/2306/files/36a974acd8d28969e9b2df8e9bbf6f8fea18d421 |
|
| https://github.com/felixweinberger |
|
felixweinberger
| https://github.com/felixweinberger |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/2306/files/328bb0b411119567ad9250eadc38893a3138868b |
|
| https://github.com/Kludex |
|
Kludex
| https://github.com/Kludex |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2306 |
|
| https://github.com/maxisbey |
|
| https://github.com/felixweinberger |
|
| 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 |