| 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:2e001756-4ced-8d77-831f-434f23aad272 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E1FC:1DBE45:108108:159761:6A5AB19C |
| html-safe-nonce | c55b1a1b07dbb3ce914fba46a9ead84afe285796be726e473f227129b71ffa44 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUZDOjFEQkU0NToxMDgxMDg6MTU5NzYxOjZBNUFCMTlDIiwidmlzaXRvcl9pZCI6IjI1MjgwMTQ2NzI3MTgzNzczNzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 322865a36c8a0f99eb0f43a69d6ff0db66939540d59fc9a9e6948872f3c4f363 |
| hovercard-subject-tag | pull_request:3777839896 |
| 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/2745/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/3fb1a75f399ee246b30b9edfd452e8c007294a14af251d0db2e82d97c1cf207d/modelcontextprotocol/python-sdk/pull/2745 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3fb1a75f399ee246b30b9edfd452e8c007294a14af251d0db2e82d97c1cf207d/modelcontextprotocol/python-sdk/pull/2745 |
| og:image:alt | Summary
catch KeyboardInterrupt at the synchronous MCPServer.run() boundary
keep normal transport errors unchanged
add a regression test for the stdio branch so Ctrl-C exits without re-raising thr... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | he-yufeng |
| hostname | github.com |
| expected-hostname | github.com |
| None | 21c53da6db0c40484841ba32fe19ecf485e7e734334faab487cd59d884d2bb33 |
| 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 | 6e85f20f54e1147d8162094880590864abefff6b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/modelcontextprotocol/python-sdk/pull/2745#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2745 |
| 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%2F2745 |
|
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/2745 |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/2745 |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/2745 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2745 |
|
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
257
| 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 |
| he-yufeng | https://github.com/he-yufeng |
| modelcontextprotocol:main | https://github.com/modelcontextprotocol/python-sdk/tree/main |
| he-yufeng:fix/stdio-keyboardinterrupt-clean-exit-v2 | https://github.com/he-yufeng/python-sdk/tree/fix/stdio-keyboardinterrupt-clean-exit-v2 |
| Conversation | https://github.com/modelcontextprotocol/python-sdk/pull/2745 |
| Commits4 (4) | https://github.com/modelcontextprotocol/python-sdk/pull/2745/commits |
| Checks | https://github.com/modelcontextprotocol/python-sdk/pull/2745/checks |
| Files changed | https://github.com/modelcontextprotocol/python-sdk/pull/2745/files |
| fix: exit stdio server cleanly on interrupt | https://github.com/modelcontextprotocol/python-sdk/pull/2745#top |
| he-yufeng | https://github.com/he-yufeng |
| modelcontextprotocol:main | https://github.com/modelcontextprotocol/python-sdk/tree/main |
| he-yufeng:fix/stdio-keyboardinterrupt-clean-exit-v2 | https://github.com/he-yufeng/python-sdk/tree/fix/stdio-keyboardinterrupt-clean-exit-v2 |
|
| https://github.com/he-yufeng |
| he-yufeng | https://github.com/he-yufeng |
| Jun 1, 2026 | https://github.com/modelcontextprotocol/python-sdk/pull/2745#issue-4559442057 |
| #2663 | https://github.com/modelcontextprotocol/python-sdk/issues/2663 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2745 |
| https://github.com/StantonMatt |
| Sign in to view | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2745 |
| https://github.com/he-yufeng |
| he-yufeng | https://github.com/he-yufeng |
| Jun 4, 2026 | https://github.com/modelcontextprotocol/python-sdk/pull/2745#issuecomment-4618740261 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2745 |
| https://github.com/he-yufeng |
| he-yufeng | https://github.com/he-yufeng |
| Jun 4, 2026 | https://github.com/modelcontextprotocol/python-sdk/pull/2745#issuecomment-4618931758 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2745 |
| https://github.com/he-yufeng |
| he-yufeng | https://github.com/he-yufeng |
| force-pushed | https://github.com/modelcontextprotocol/python-sdk/compare/958ecbeec51ba1e79d6221e72eb160c034b272ed..8da53867b6680757323da3bc7ee3c87ea13ae95c |
| 958ecbe | https://github.com/modelcontextprotocol/python-sdk/commit/958ecbeec51ba1e79d6221e72eb160c034b272ed |
| 8da5386 | https://github.com/modelcontextprotocol/python-sdk/commit/8da53867b6680757323da3bc7ee3c87ea13ae95c |
|
Compare
| https://github.com/modelcontextprotocol/python-sdk/compare/958ecbeec51ba1e79d6221e72eb160c034b272ed..8da53867b6680757323da3bc7ee3c87ea13ae95c |
| June 4, 2026 04:27 | https://github.com/modelcontextprotocol/python-sdk/pull/2745#event-26319931805 |
| https://github.com/he-yufeng |
| he-yufeng | https://github.com/he-yufeng |
| Jun 4, 2026 | https://github.com/modelcontextprotocol/python-sdk/pull/2745#issuecomment-4618945091 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2745 |
| https://github.com/he-yufeng |
| he-yufeng | https://github.com/he-yufeng |
| Jun 4, 2026 | https://github.com/modelcontextprotocol/python-sdk/pull/2745#issuecomment-4619008070 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2745 |
| https://github.com/Bartok9 |
| Bartok9 | https://github.com/Bartok9 |
|
Jun 5, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2745#ref-pullrequest-4556922210 |
|
fix: preserve stdio streams in server transport
#2734
| https://github.com/modelcontextprotocol/python-sdk/pull/2734 |
| https://github.com/he-yufeng |
| he-yufeng | https://github.com/he-yufeng |
|
Jun 5, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2745#ref-pullrequest-4509438972 |
|
fix: exit cleanly on stdio KeyboardInterrupt
#2671
| https://github.com/modelcontextprotocol/python-sdk/pull/2671 |
| he-yufeng | https://github.com/he-yufeng |
| June 7, 2026 05:42 | https://github.com/modelcontextprotocol/python-sdk/pull/2745#commits-pushed-60d99f3 |
|
| https://github.com/he-yufeng |
| fix: exit stdio server cleanly on interrupt | https://github.com/modelcontextprotocol/python-sdk/pull/2745/commits/60d99f3f3811b39dafd64d47746ec58c2ca7af50 |
| 60d99f3 | https://github.com/modelcontextprotocol/python-sdk/pull/2745/commits/60d99f3f3811b39dafd64d47746ec58c2ca7af50 |
|
| https://github.com/he-yufeng |
| test: cover interrupt exit for all transports | https://github.com/modelcontextprotocol/python-sdk/pull/2745/commits/9ddabd2689dbbdbe3d8e571f6e9677e86b513f1c |
| 9ddabd2 | https://github.com/modelcontextprotocol/python-sdk/pull/2745/commits/9ddabd2689dbbdbe3d8e571f6e9677e86b513f1c |
|
| https://github.com/he-yufeng |
| test: align transport coverage markers | https://github.com/modelcontextprotocol/python-sdk/pull/2745/commits/bc5021073a65956aa1c950e91ef910217f3ee55b |
| bc50210 | https://github.com/modelcontextprotocol/python-sdk/pull/2745/commits/bc5021073a65956aa1c950e91ef910217f3ee55b |
|
| https://github.com/he-yufeng |
| test: tolerate dependency stderr warnings | https://github.com/modelcontextprotocol/python-sdk/pull/2745/commits/9d420008797bf0b4f1f8d33b9b64cbd9cc0c1c22 |
| 9d42000 | https://github.com/modelcontextprotocol/python-sdk/pull/2745/commits/9d420008797bf0b4f1f8d33b9b64cbd9cc0c1c22 |
| https://github.com/he-yufeng |
| he-yufeng | https://github.com/he-yufeng |
| force-pushed | https://github.com/modelcontextprotocol/python-sdk/compare/4655d30e097dd97980d380ead90e4616677d8839..9d420008797bf0b4f1f8d33b9b64cbd9cc0c1c22 |
| 4655d30 | https://github.com/modelcontextprotocol/python-sdk/commit/4655d30e097dd97980d380ead90e4616677d8839 |
| 9d42000 | https://github.com/modelcontextprotocol/python-sdk/commit/9d420008797bf0b4f1f8d33b9b64cbd9cc0c1c22 |
|
Compare
| https://github.com/modelcontextprotocol/python-sdk/compare/4655d30e097dd97980d380ead90e4616677d8839..9d420008797bf0b4f1f8d33b9b64cbd9cc0c1c22 |
| June 6, 2026 21:44 | https://github.com/modelcontextprotocol/python-sdk/pull/2745#event-26429270603 |
| https://github.com/he-yufeng |
| he-yufeng | https://github.com/he-yufeng |
| Jun 6, 2026 | https://github.com/modelcontextprotocol/python-sdk/pull/2745#issuecomment-4640458092 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2745 |
| 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%2F2745 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2745 |
|
| https://github.com/he-yufeng |
|
| https://github.com/StantonMatt |
|
| 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 |