René's URL Explorer Experiment


Title: Add regression test for issue #1027 by felixweinberger · Pull Request #1069 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Add regression test for issue #1027 by felixweinberger · Pull Request #1069 · modelcontextprotocol/python-sdk

X Title: Add regression test for issue #1027 by felixweinberger · Pull Request #1069 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - Add regression test for issue #1027 by felixweinberger · Pull Request #1069 · modelcontextprotocol/python-sdk

Open Graph Description: Motivation and Context Issue #1027 reports that MCP server cleanup code (after yield in lifespan) is unreachable when the process is terminated. This PR adds tests that: Demonstrate the issue exi...

X Description: Motivation and Context Issue #1027 reports that MCP server cleanup code (after yield in lifespan) is unreachable when the process is terminated. This PR adds tests that: Demonstrate the issue exi...

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

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:56408bbf-447d-cbf7-039e-a5169ab49b8b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA96E:100D5A:810C6:A9B3B:6A5AC2DD
html-safe-nonce3fc8f25549d1b2727a525e5c89414d8b83f14b2a51a9175b810eeb54c008c949
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTZFOjEwMEQ1QTo4MTBDNjpBOUIzQjo2QTVBQzJERCIsInZpc2l0b3JfaWQiOiIyNzIxMDk1MzM1NTMxOTU0OTA5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac9de8143173c6590ae6fb8af5772bda465067c45f5ab1e8e6e44ba9d1daf2cf70
hovercard-subject-tagpull_request:2633565357
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/1069/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/ac6cb8b130a2dc31ab5f04d2666dcedd328029b5d6e5663cd9af83d45ff7b911/modelcontextprotocol/python-sdk/pull/1069
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ac6cb8b130a2dc31ab5f04d2666dcedd328029b5d6e5663cd9af83d45ff7b911/modelcontextprotocol/python-sdk/pull/1069
og:image:altMotivation and Context Issue #1027 reports that MCP server cleanup code (after yield in lifespan) is unreachable when the process is terminated. This PR adds tests that: Demonstrate the issue exi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamefelixweinberger
hostnamegithub.com
expected-hostnamegithub.com
Nonef422022de939199d6afcbaac024b42b6232a3498a95f198e17717afb8b46fb15
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
release2fa01ceb3b3a801409f050561abfb062094702d0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/1069#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F1069
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%2F1069
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/1069
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/1069
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/1069
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1069
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 301 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
bhosmer-anthttps://github.com/bhosmer-ant
fweinberger/align-shutdown-with-spechttps://github.com/modelcontextprotocol/python-sdk/tree/fweinberger/align-shutdown-with-spec
fweinberger/issue-1027https://github.com/modelcontextprotocol/python-sdk/tree/fweinberger/issue-1027
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/1069
Commits1 (1)https://github.com/modelcontextprotocol/python-sdk/pull/1069/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/1069/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/1069/files
Add regression test for issue #1027https://github.com/modelcontextprotocol/python-sdk/pull/1069#top
bhosmer-anthttps://github.com/bhosmer-ant
fweinberger/align-shutdown-with-spechttps://github.com/modelcontextprotocol/python-sdk/tree/fweinberger/align-shutdown-with-spec
fweinberger/issue-1027https://github.com/modelcontextprotocol/python-sdk/tree/fweinberger/issue-1027
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
Jul 1, 2025https://github.com/modelcontextprotocol/python-sdk/pull/1069#issue-3193717345
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1069
#1027https://github.com/modelcontextprotocol/python-sdk/issues/1027
fweinberger/align shutdown with spec #1091https://github.com/modelcontextprotocol/python-sdk/pull/1091
#1091https://github.com/modelcontextprotocol/python-sdk/pull/1091
MCP Documentationhttps://modelcontextprotocol.io
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1069
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
July 1, 2025 20:29https://github.com/modelcontextprotocol/python-sdk/pull/1069#event-18418653802
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/0e4626a6f248d8172283470bb88831288870d075..c032dbc85143ac5fcc242c71d695e698e10349dc
0e4626ahttps://github.com/modelcontextprotocol/python-sdk/commit/0e4626a6f248d8172283470bb88831288870d075
c032dbchttps://github.com/modelcontextprotocol/python-sdk/commit/c032dbc85143ac5fcc242c71d695e698e10349dc
Compare https://github.com/modelcontextprotocol/python-sdk/compare/0e4626a6f248d8172283470bb88831288870d075..c032dbc85143ac5fcc242c71d695e698e10349dc
July 1, 2025 20:30https://github.com/modelcontextprotocol/python-sdk/pull/1069#event-18418664616
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
Jul 1, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/1069#ref-issue-3176263287
The cleanup procedure after "yield" in lifespan is unreachable on Windows #1027 https://github.com/modelcontextprotocol/python-sdk/issues/1027
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
July 1, 2025 20:35https://github.com/modelcontextprotocol/python-sdk/pull/1069#event-18418717523
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/1224de0bbfedee17173750dc8290e04062000387..3c8eabe5955b43055ddaaf8a026204d5c60ccdd6
1224de0https://github.com/modelcontextprotocol/python-sdk/commit/1224de0bbfedee17173750dc8290e04062000387
3c8eabehttps://github.com/modelcontextprotocol/python-sdk/commit/3c8eabe5955b43055ddaaf8a026204d5c60ccdd6
Compare https://github.com/modelcontextprotocol/python-sdk/compare/1224de0bbfedee17173750dc8290e04062000387..3c8eabe5955b43055ddaaf8a026204d5c60ccdd6
July 1, 2025 20:48https://github.com/modelcontextprotocol/python-sdk/pull/1069#event-18418874333
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/7af9e65f2c2f877c13bbdc96a6275db02ea35f92..c9b43bca38ef26f95150e608482ae3ee0061b3fa
7af9e65https://github.com/modelcontextprotocol/python-sdk/commit/7af9e65f2c2f877c13bbdc96a6275db02ea35f92
c9b43bchttps://github.com/modelcontextprotocol/python-sdk/commit/c9b43bca38ef26f95150e608482ae3ee0061b3fa
Compare https://github.com/modelcontextprotocol/python-sdk/compare/7af9e65f2c2f877c13bbdc96a6275db02ea35f92..c9b43bca38ef26f95150e608482ae3ee0061b3fa
July 7, 2025 13:59https://github.com/modelcontextprotocol/python-sdk/pull/1069#event-18506281689
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/3c8eabe5955b43055ddaaf8a026204d5c60ccdd6..72cfeca3842da03e40596a67f894ccb4201256e5
3c8eabehttps://github.com/modelcontextprotocol/python-sdk/commit/3c8eabe5955b43055ddaaf8a026204d5c60ccdd6
72cfecahttps://github.com/modelcontextprotocol/python-sdk/commit/72cfeca3842da03e40596a67f894ccb4201256e5
Compare https://github.com/modelcontextprotocol/python-sdk/compare/3c8eabe5955b43055ddaaf8a026204d5c60ccdd6..72cfeca3842da03e40596a67f894ccb4201256e5
July 7, 2025 15:03https://github.com/modelcontextprotocol/python-sdk/pull/1069#event-18507568818
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
July 7, 2025 15:03https://github.com/modelcontextprotocol/python-sdk/pull/1069#event-18507572567
July 8, 2025 13:57https://github.com/modelcontextprotocol/python-sdk/pull/1069#event-18527237670
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/72cfeca3842da03e40596a67f894ccb4201256e5..526d27623ec9b79329f907660a36f85fea1e0d31
72cfecahttps://github.com/modelcontextprotocol/python-sdk/commit/72cfeca3842da03e40596a67f894ccb4201256e5
526d276https://github.com/modelcontextprotocol/python-sdk/commit/526d27623ec9b79329f907660a36f85fea1e0d31
Compare https://github.com/modelcontextprotocol/python-sdk/compare/72cfeca3842da03e40596a67f894ccb4201256e5..526d27623ec9b79329f907660a36f85fea1e0d31
July 8, 2025 16:39https://github.com/modelcontextprotocol/python-sdk/pull/1069#event-18530230170
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
July 8, 2025 16:39https://github.com/modelcontextprotocol/python-sdk/pull/1069#event-18530233972
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/79ebf22cb6e135248e037e44fec8b9d6a8a7b0cd..34643bd0dc7c7e5a5c8c53331ff714c159873c82
79ebf22https://github.com/modelcontextprotocol/python-sdk/commit/79ebf22cb6e135248e037e44fec8b9d6a8a7b0cd
34643bdhttps://github.com/modelcontextprotocol/python-sdk/commit/34643bd0dc7c7e5a5c8c53331ff714c159873c82
Compare https://github.com/modelcontextprotocol/python-sdk/compare/79ebf22cb6e135248e037e44fec8b9d6a8a7b0cd..34643bd0dc7c7e5a5c8c53331ff714c159873c82
July 8, 2025 19:35https://github.com/modelcontextprotocol/python-sdk/pull/1069#event-18532825595
https://github.com/felixweinberger
Add test demonstrating issuehttps://github.com/modelcontextprotocol/python-sdk/pull/1069/commits/26e1e496a587cf3b6342eaad369c6676c97eae44
#1027https://github.com/modelcontextprotocol/python-sdk/issues/1027
and verifying PRhttps://github.com/modelcontextprotocol/python-sdk/pull/1069/commits/26e1e496a587cf3b6342eaad369c6676c97eae44
#1091https://github.com/modelcontextprotocol/python-sdk/pull/1091
fixes ithttps://github.com/modelcontextprotocol/python-sdk/pull/1069/commits/26e1e496a587cf3b6342eaad369c6676c97eae44
26e1e49https://github.com/modelcontextprotocol/python-sdk/pull/1069/commits/26e1e496a587cf3b6342eaad369c6676c97eae44
#1044https://github.com/modelcontextprotocol/python-sdk/pull/1044
#1027https://github.com/modelcontextprotocol/python-sdk/issues/1027
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/34643bd0dc7c7e5a5c8c53331ff714c159873c82..26e1e496a587cf3b6342eaad369c6676c97eae44
34643bdhttps://github.com/modelcontextprotocol/python-sdk/commit/34643bd0dc7c7e5a5c8c53331ff714c159873c82
26e1e49https://github.com/modelcontextprotocol/python-sdk/commit/26e1e496a587cf3b6342eaad369c6676c97eae44
Compare https://github.com/modelcontextprotocol/python-sdk/compare/34643bd0dc7c7e5a5c8c53331ff714c159873c82..26e1e496a587cf3b6342eaad369c6676c97eae44
July 8, 2025 19:44https://github.com/modelcontextprotocol/python-sdk/pull/1069#event-18532938249
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
July 8, 2025 19:48https://github.com/modelcontextprotocol/python-sdk/pull/1069#event-18532987196
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
bhosmer-anthttps://github.com/bhosmer-ant
ihrprhttps://github.com/ihrpr
July 8, 2025 19:48https://github.com/modelcontextprotocol/python-sdk/pull/1069#event-18532988855
https://github.com/bhosmer-ant
bhosmer-anthttps://github.com/bhosmer-ant
Jul 8, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/1069#pullrequestreview-2999128092
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/1069/files/26e1e496a587cf3b6342eaad369c6676c97eae44
bhosmer-anthttps://github.com/bhosmer-ant
https://github.com/modelcontextprotocol/python-sdk/pull/1069#pullrequestreview-2999128092
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1069
https://github.com/bhosmer-ant
bhosmer-anthttps://github.com/bhosmer-ant
96b4059https://github.com/modelcontextprotocol/python-sdk/commit/96b40593c2890595b0e2ff64d09ebdf4bdb79795
Jul 8, 2025https://github.com/modelcontextprotocol/python-sdk/pull/1069#event-18534131118
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1069
https://github.com/bhosmer-ant
bhosmer-anthttps://github.com/bhosmer-ant
July 8, 2025 21:21https://github.com/modelcontextprotocol/python-sdk/pull/1069#event-18534131422
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Jan 24, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/1069#ref-issue-3849369759
Add {path}/.well-known/oauth-authorization-server as a discovery URL fallback #1944 https://github.com/modelcontextprotocol/python-sdk/issues/1944
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%2F1069
https://github.com/bhosmer-ant
bhosmer-ant https://github.com/bhosmer-ant
https://github.com/modelcontextprotocol/python-sdk/pull/1069/files/26e1e496a587cf3b6342eaad369c6676c97eae44
https://github.com/ihrpr
ihrpr https://github.com/ihrpr
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1069
https://github.com/felixweinberger
https://github.com/bhosmer-ant
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.