René's URL Explorer Experiment


Title: Fix stdio client shutdown bugs and rebuild the stdio test suite by maxisbey · Pull Request #2773 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Fix stdio client shutdown bugs and rebuild the stdio test suite by maxisbey · Pull Request #2773 · modelcontextprotocol/python-sdk

X Title: Fix stdio client shutdown bugs and rebuild the stdio test suite by maxisbey · Pull Request #2773 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - Fix stdio client shutdown bugs and rebuild the stdio test suite by maxisbey · Pull Request #2773 · modelcontextprotocol/python-sdk

Open Graph Description: The stdio test suite has a long flake history (#1775, #1158, #559, #401). Auditing it surfaced real bugs in the client transport's shutdown path. This PR fixes the transport and rebuilds the st...

X Description: The stdio test suite has a long flake history (#1775, #1158, #559, #401). Auditing it surfaced real bugs in the client transport's shutdown path. This PR fixes the transport and rebuilds th...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:280a8266-8f3e-837f-2344-0c5607649373
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9E1A:15B8D9:183FA56:229AF6B:6A5A348E
html-safe-noncec4d5cfe3cd29282f1ee7c47e61f9fbb955a4cdc7760a1981251e82fdbb1d5ec2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTFBOjE1QjhEOToxODNGQTU2OjIyOUFGNkI6NkE1QTM0OEUiLCJ2aXNpdG9yX2lkIjoiMjQ2NDg5NjU2NjY1NDUzNzExIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaccebba35b7b29627a09d716090968d47c4b2789b1cb0969d5e79c4ffdb6a34af8
hovercard-subject-tagpull_request:3796466322
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///pull_requests/show/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits
twitter:imagehttps://opengraph.githubassets.com/e59c1b9b7d0b2f31e42f93bae7e0fbd3cdbe0acabb7584d68cddc848382d7d07/modelcontextprotocol/python-sdk/pull/2773
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e59c1b9b7d0b2f31e42f93bae7e0fbd3cdbe0acabb7584d68cddc848382d7d07/modelcontextprotocol/python-sdk/pull/2773
og:image:altThe stdio test suite has a long flake history (#1775, #1158, #559, #401). Auditing it surfaced real bugs in the client transport's shutdown path. This PR fixes the transport and rebuilds the st...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemaxisbey
hostnamegithub.com
expected-hostnamegithub.com
None19c67ad7579d2401ff06e88a32ef45460fbb40fab3191c7f7582d5e166f326fc
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
releasea3dea2706161c733403beb02e41d5765d358d44e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2773%2Fcommits
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%2F2773%2Fcommits
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%2Fpull_requests%2Fshow%2Fcommits&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits
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 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
maxisbeyhttps://github.com/maxisbey
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
maxisbey/deflake-stdio-testshttps://github.com/modelcontextprotocol/python-sdk/tree/maxisbey/deflake-stdio-tests
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/2773
Commits16 (16)https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/2773/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/2773/files
Fix stdio client shutdown bugs and rebuild the stdio test suitehttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits#top
maxisbeyhttps://github.com/maxisbey
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
maxisbey/deflake-stdio-testshttps://github.com/modelcontextprotocol/python-sdk/tree/maxisbey/deflake-stdio-tests
Replace wall-clock margins in stdio cleanup tests with kernel-level signalshttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/8a6abc02a0b846f02996004f7ca955e77e302108
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
8a6abc0https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/8a6abc02a0b846f02996004f7ca955e77e302108
https://github.com/modelcontextprotocol/python-sdk/tree/8a6abc02a0b846f02996004f7ca955e77e302108
Fix stdio client shutdown: cancellation deadlock, orphaned children, spurious killshttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/023300caf540615aee0f054e666e18d7eba00820
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
023300chttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/023300caf540615aee0f054e666e18d7eba00820
https://github.com/modelcontextprotocol/python-sdk/tree/023300caf540615aee0f054e666e18d7eba00820
Consolidate stdio tests: in-process logic tests, minimal real-process sethttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/3035984afcbb699c35f3606947cb2780ba1acdb5
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
3035984https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/3035984afcbb699c35f3606947cb2780ba1acdb5
https://github.com/modelcontextprotocol/python-sdk/tree/3035984afcbb699c35f3606947cb2780ba1acdb5
Add real-subprocess stdio lifecycle tests for POSIX and Windowshttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/fb960d9e80d90d6631a09d0967eac01b6990b619
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
fb960d9https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/fb960d9e80d90d6631a09d0967eac01b6990b619
https://github.com/modelcontextprotocol/python-sdk/tree/fb960d9e80d90d6631a09d0967eac01b6990b619
Address review findings: comment accuracy, test hardening, trio reap pinhttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/6b7fa829d4c524288f9ebf1329e18839235bbc05
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
6b7fa82https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/6b7fa829d4c524288f9ebf1329e18839235bbc05
https://github.com/modelcontextprotocol/python-sdk/tree/6b7fa829d4c524288f9ebf1329e18839235bbc05
Make the Windows job-reap test diagnosable and align its server shapehttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/c5eff45b7728363b71a010f79983f58c6b1fd41a
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
c5eff45https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/c5eff45b7728363b71a010f79983f58c6b1fd41a
https://github.com/modelcontextprotocol/python-sdk/tree/c5eff45b7728363b71a010f79983f58c6b1fd41a
Instrument the Windows job-reap test's child-side failureshttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/2223efd9497e0c72c6fed74e617f9d4f7aa60c52
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
2223efdhttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/2223efd9497e0c72c6fed74e617f9d4f7aa60c52
https://github.com/modelcontextprotocol/python-sdk/tree/2223efd9497e0c72c6fed74e617f9d4f7aa60c52
Spawn the job-reap test's grandchild via the base interpreterhttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/1dc0f3538f281cd32869412d5d56e88e1e029697
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
1dc0f35https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/1dc0f3538f281cd32869412d5d56e88e1e029697
https://github.com/modelcontextprotocol/python-sdk/tree/1dc0f3538f281cd32869412d5d56e88e1e029697
Decouple the job-reap test's child from the server's stdin pipehttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/dbb885b7af11ea6a1fe4c4319af95cffbe77704d
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
dbb885bhttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/dbb885b7af11ea6a1fe4c4319af95cffbe77704d
https://github.com/modelcontextprotocol/python-sdk/tree/dbb885b7af11ea6a1fe4c4319af95cffbe77704d
Give the stdio interaction test's child headroom for coverage shutdownhttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/17a9dcac9a4b20fde3ea0c3ce84fdf5782a9833b
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
17a9dcahttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/17a9dcac9a4b20fde3ea0c3ce84fdf5782a9833b
https://github.com/modelcontextprotocol/python-sdk/tree/17a9dcac9a4b20fde3ea0c3ce84fdf5782a9833b
Simplify the stdio client transporthttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/1ba4065f59f5d5612d9db0a30cd0f24106143329
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
1ba4065https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/1ba4065f59f5d5612d9db0a30cd0f24106143329
https://github.com/modelcontextprotocol/python-sdk/tree/1ba4065f59f5d5612d9db0a30cd0f24106143329
Fix stdio shutdown edge cases found in reviewhttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/58f5a695b0c0bc26684b37edc4f753deb1457a67
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
58f5a69https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/58f5a695b0c0bc26684b37edc4f753deb1457a67
https://github.com/modelcontextprotocol/python-sdk/tree/58f5a695b0c0bc26684b37edc4f753deb1457a67
Simplify stdio client shutdown internalshttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/b7c2809aca14254933597bbf3d242c18d68ac96b
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
b7c2809https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/b7c2809aca14254933597bbf3d242c18d68ac96b
https://github.com/modelcontextprotocol/python-sdk/tree/b7c2809aca14254933597bbf3d242c18d68ac96b
Annotate stdio_client's return type with TransportStreamshttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/0f2c1325690ad052590044985db50b577867e030
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
0f2c132https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/0f2c1325690ad052590044985db50b577867e030
https://github.com/modelcontextprotocol/python-sdk/tree/0f2c1325690ad052590044985db50b577867e030
Slim comments and docstrings across the stdio surfacehttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/7adb379471f96c4efd950b513134fabdeb178df3
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
7adb379https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/7adb379471f96c4efd950b513134fabdeb178df3
https://github.com/modelcontextprotocol/python-sdk/tree/7adb379471f96c4efd950b513134fabdeb178df3
Conform stdio docstrings to Google stylehttps://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/3c13fc95ddbdaee00a6ad201efd5374ee01d3673
https://github.com/maxisbey
maxisbeyhttps://github.com/modelcontextprotocol/python-sdk/commits?author=maxisbey
3c13fc9https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/3c13fc95ddbdaee00a6ad201efd5374ee01d3673
https://github.com/modelcontextprotocol/python-sdk/tree/3c13fc95ddbdaee00a6ad201efd5374ee01d3673
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.