René's URL Explorer Experiment


Title: fix: exit stdio server cleanly on interrupt by he-yufeng · Pull Request #2745 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: fix: exit stdio server cleanly on interrupt by he-yufeng · Pull Request #2745 · modelcontextprotocol/python-sdk

X Title: fix: exit stdio server cleanly on interrupt by he-yufeng · Pull Request #2745 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - fix: exit stdio server cleanly on interrupt by he-yufeng · Pull Request #2745 · modelcontextprotocol/python-sdk

Open Graph Description: 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...

X Description: 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...

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

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:2e001756-4ced-8d77-831f-434f23aad272
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE1FC:1DBE45:108108:159761:6A5AB19C
html-safe-noncec55b1a1b07dbb3ce914fba46a9ead84afe285796be726e473f227129b71ffa44
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUZDOjFEQkU0NToxMDgxMDg6MTU5NzYxOjZBNUFCMTlDIiwidmlzaXRvcl9pZCI6IjI1MjgwMTQ2NzI3MTgzNzczNzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac322865a36c8a0f99eb0f43a69d6ff0db66939540d59fc9a9e6948872f3c4f363
hovercard-subject-tagpull_request:3777839896
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/2745/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/3fb1a75f399ee246b30b9edfd452e8c007294a14af251d0db2e82d97c1cf207d/modelcontextprotocol/python-sdk/pull/2745
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3fb1a75f399ee246b30b9edfd452e8c007294a14af251d0db2e82d97c1cf207d/modelcontextprotocol/python-sdk/pull/2745
og:image:altSummary 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehe-yufeng
hostnamegithub.com
expected-hostnamegithub.com
None21c53da6db0c40484841ba32fe19ecf485e7e734334faab487cd59d884d2bb33
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
release6e85f20f54e1147d8162094880590864abefff6b
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://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 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%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
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2745
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2745
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2745
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2745
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.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-yufenghttps://github.com/he-yufeng
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
he-yufeng:fix/stdio-keyboardinterrupt-clean-exit-v2https://github.com/he-yufeng/python-sdk/tree/fix/stdio-keyboardinterrupt-clean-exit-v2
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/2745
Commits4 (4)https://github.com/modelcontextprotocol/python-sdk/pull/2745/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/2745/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/2745/files
fix: exit stdio server cleanly on interrupthttps://github.com/modelcontextprotocol/python-sdk/pull/2745#top
he-yufenghttps://github.com/he-yufeng
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
he-yufeng:fix/stdio-keyboardinterrupt-clean-exit-v2https://github.com/he-yufeng/python-sdk/tree/fix/stdio-keyboardinterrupt-clean-exit-v2
https://github.com/he-yufeng
he-yufenghttps://github.com/he-yufeng
Jun 1, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2745#issue-4559442057
#2663https://github.com/modelcontextprotocol/python-sdk/issues/2663
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2745
https://github.com/StantonMatt
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2745
https://github.com/he-yufeng
he-yufenghttps://github.com/he-yufeng
Jun 4, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2745#issuecomment-4618740261
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2745
https://github.com/he-yufeng
he-yufenghttps://github.com/he-yufeng
Jun 4, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2745#issuecomment-4618931758
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2745
https://github.com/he-yufeng
he-yufenghttps://github.com/he-yufeng
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/958ecbeec51ba1e79d6221e72eb160c034b272ed..8da53867b6680757323da3bc7ee3c87ea13ae95c
958ecbehttps://github.com/modelcontextprotocol/python-sdk/commit/958ecbeec51ba1e79d6221e72eb160c034b272ed
8da5386https://github.com/modelcontextprotocol/python-sdk/commit/8da53867b6680757323da3bc7ee3c87ea13ae95c
Compare https://github.com/modelcontextprotocol/python-sdk/compare/958ecbeec51ba1e79d6221e72eb160c034b272ed..8da53867b6680757323da3bc7ee3c87ea13ae95c
June 4, 2026 04:27https://github.com/modelcontextprotocol/python-sdk/pull/2745#event-26319931805
https://github.com/he-yufeng
he-yufenghttps://github.com/he-yufeng
Jun 4, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2745#issuecomment-4618945091
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2745
https://github.com/he-yufeng
he-yufenghttps://github.com/he-yufeng
Jun 4, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2745#issuecomment-4619008070
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2745
https://github.com/Bartok9
Bartok9https://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-yufenghttps://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-yufenghttps://github.com/he-yufeng
June 7, 2026 05:42https://github.com/modelcontextprotocol/python-sdk/pull/2745#commits-pushed-60d99f3
https://github.com/he-yufeng
fix: exit stdio server cleanly on interrupthttps://github.com/modelcontextprotocol/python-sdk/pull/2745/commits/60d99f3f3811b39dafd64d47746ec58c2ca7af50
60d99f3https://github.com/modelcontextprotocol/python-sdk/pull/2745/commits/60d99f3f3811b39dafd64d47746ec58c2ca7af50
https://github.com/he-yufeng
test: cover interrupt exit for all transportshttps://github.com/modelcontextprotocol/python-sdk/pull/2745/commits/9ddabd2689dbbdbe3d8e571f6e9677e86b513f1c
9ddabd2https://github.com/modelcontextprotocol/python-sdk/pull/2745/commits/9ddabd2689dbbdbe3d8e571f6e9677e86b513f1c
https://github.com/he-yufeng
test: align transport coverage markershttps://github.com/modelcontextprotocol/python-sdk/pull/2745/commits/bc5021073a65956aa1c950e91ef910217f3ee55b
bc50210https://github.com/modelcontextprotocol/python-sdk/pull/2745/commits/bc5021073a65956aa1c950e91ef910217f3ee55b
https://github.com/he-yufeng
test: tolerate dependency stderr warningshttps://github.com/modelcontextprotocol/python-sdk/pull/2745/commits/9d420008797bf0b4f1f8d33b9b64cbd9cc0c1c22
9d42000https://github.com/modelcontextprotocol/python-sdk/pull/2745/commits/9d420008797bf0b4f1f8d33b9b64cbd9cc0c1c22
https://github.com/he-yufeng
he-yufenghttps://github.com/he-yufeng
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/4655d30e097dd97980d380ead90e4616677d8839..9d420008797bf0b4f1f8d33b9b64cbd9cc0c1c22
4655d30https://github.com/modelcontextprotocol/python-sdk/commit/4655d30e097dd97980d380ead90e4616677d8839
9d42000https://github.com/modelcontextprotocol/python-sdk/commit/9d420008797bf0b4f1f8d33b9b64cbd9cc0c1c22
Compare https://github.com/modelcontextprotocol/python-sdk/compare/4655d30e097dd97980d380ead90e4616677d8839..9d420008797bf0b4f1f8d33b9b64cbd9cc0c1c22
June 6, 2026 21:44https://github.com/modelcontextprotocol/python-sdk/pull/2745#event-26429270603
https://github.com/he-yufeng
he-yufenghttps://github.com/he-yufeng
Jun 6, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2745#issuecomment-4640458092
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2745
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%2F2745
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2745
https://github.com/he-yufeng
https://github.com/StantonMatt
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.