| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:efd41d28-169b-b3e4-43e8-faa40b3ef1b1 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CB16:155BEF:8D1D95:BF71DF:6A5A85CB |
| html-safe-nonce | 772ec9a86ec901b238cc2de9d5c0bffee323effe293ae3eff7884c29643d5497 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjE2OjE1NUJFRjo4RDFEOTU6QkY3MURGOjZBNUE4NUNCIiwidmlzaXRvcl9pZCI6IjQ4NTMzMzg5MTgwMjYyOTU3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 29f60b08f8b248fa8e4a592d375cdb32f0c8594cdc8e9b46bdbbbd5c3ddbaf46 |
| hovercard-subject-tag | pull_request:3796466322 |
| 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 | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/2773/files |
| twitter:image | https://avatars.githubusercontent.com/u/224885523?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/224885523?s=400&v=4 |
| og:image:alt | 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... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 922bdba685ea48400234d557977f0e32d9adbae6f5125725b4f48cacc6801106 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c8a44665d760d73ead7e85d8f88b299152aa681 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/modelcontextprotocol/python-sdk/pull/2773/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2773%2Ffiles |
| 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%2F2773%2Ffiles |
|
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%2Ffiles&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/2773/files |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/2773/files |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/2773/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2773/files |
|
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
256
| 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 |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose |
| maxisbey | https://github.com/maxisbey |
| main | https://github.com/modelcontextprotocol/python-sdk/tree/main |
| maxisbey/deflake-stdio-tests | https://github.com/modelcontextprotocol/python-sdk/tree/maxisbey/deflake-stdio-tests |
|
Conversation
8
| https://github.com/modelcontextprotocol/python-sdk/pull/2773 |
|
Commits
16
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits |
|
Checks
33
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/checks |
|
Files changed
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2773/files |
|
Fix stdio client shutdown bugs and rebuild the stdio test suite
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/files#top |
|
Show all changes
16 commits
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/files |
|
8a6abc0
Replace wall-clock margins in stdio cleanup tests with kernel-level s…
maxisbey Jun 3, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/8a6abc02a0b846f02996004f7ca955e77e302108 |
|
023300c
Fix stdio client shutdown: cancellation deadlock, orphaned children, …
maxisbey Jun 3, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/023300caf540615aee0f054e666e18d7eba00820 |
|
3035984
Consolidate stdio tests: in-process logic tests, minimal real-process…
maxisbey Jun 3, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/3035984afcbb699c35f3606947cb2780ba1acdb5 |
|
fb960d9
Add real-subprocess stdio lifecycle tests for POSIX and Windows
maxisbey Jun 4, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/fb960d9e80d90d6631a09d0967eac01b6990b619 |
|
6b7fa82
Address review findings: comment accuracy, test hardening, trio reap pin
maxisbey Jun 4, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/6b7fa829d4c524288f9ebf1329e18839235bbc05 |
|
c5eff45
Make the Windows job-reap test diagnosable and align its server shape
maxisbey Jun 4, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/c5eff45b7728363b71a010f79983f58c6b1fd41a |
|
2223efd
Instrument the Windows job-reap test's child-side failures
maxisbey Jun 4, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/2223efd9497e0c72c6fed74e617f9d4f7aa60c52 |
|
1dc0f35
Spawn the job-reap test's grandchild via the base interpreter
maxisbey Jun 4, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/1dc0f3538f281cd32869412d5d56e88e1e029697 |
|
dbb885b
Decouple the job-reap test's child from the server's stdin pipe
maxisbey Jun 4, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/dbb885b7af11ea6a1fe4c4319af95cffbe77704d |
|
17a9dca
Give the stdio interaction test's child headroom for coverage shutdown
maxisbey Jun 4, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/17a9dcac9a4b20fde3ea0c3ce84fdf5782a9833b |
|
1ba4065
Simplify the stdio client transport
maxisbey Jun 4, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/1ba4065f59f5d5612d9db0a30cd0f24106143329 |
|
58f5a69
Fix stdio shutdown edge cases found in review
maxisbey Jun 5, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/58f5a695b0c0bc26684b37edc4f753deb1457a67 |
|
b7c2809
Simplify stdio client shutdown internals
maxisbey Jun 5, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/b7c2809aca14254933597bbf3d242c18d68ac96b |
|
0f2c132
Annotate stdio_client's return type with TransportStreams
maxisbey Jun 5, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/0f2c1325690ad052590044985db50b577867e030 |
|
7adb379
Slim comments and docstrings across the stdio surface
maxisbey Jun 5, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/7adb379471f96c4efd950b513134fabdeb178df3 |
|
3c13fc9
Conform stdio docstrings to Google style
maxisbey Jun 5, 2026
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/commits/3c13fc95ddbdaee00a6ad201efd5374ee01d3673 |
|
Clear filters
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2773/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2773/files |
|
migration.md
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d |
|
stdio.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/files#diff-a906fce75e115cde24e79b8cdac6442af7845748f57ec0e997ff81f089408186 |
|
utilities.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/files#diff-c311b33a6b6ca2f6c5c9f1ec44fbfc336d4d7f6a5e7c69b9bf579b60df18b702 |
|
utilities.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/files#diff-0adc630bbecb11fd2fe8fc302a21e9afe0ebb9c3ae019a95d9bf84817cf73f61 |
|
test_stdio.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/files#diff-49f66b09e4d89b29b440c955c429fe948dbcc3bbb08fffb504cf40be24382352 |
|
test_stdio.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/files#diff-e87dd7470dc7d367b9901aacfcc577a54864d05e8e50b4b9a25c6d1bfc543fb5 |
|
test_1027_win_unreachable_cleanup.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/files#diff-58ee556cdf4f7669f21584c546737c09da73fcbb6b3b839a8db7212793152ff6 |
|
test_552_windows_hang.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/files#diff-75f0c3f56e683e126a1427b31c4c5c2745e19a517433a65dbda20eff519564f4 |
|
test_elicitation.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/files#diff-6cf9570e46bbc0eb2485392dfaa05780418f6295efc86d9f79bf047584880d54 |
|
test_stdio.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/files#diff-3e62be39a5c1d8b8dfe922d017c0fae7b023fa1ffac872a0e046f13ef8ca899a |
|
test_win32_utils.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/files#diff-d9cfdc4b179126e0de08eeeb163c38dedf1359893920622a3f7c4d5f3e829a7b |
|
__init__.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/files#diff-343206963a75647fdc70efab86abe45a78eaccca0883c8568b331a8fc19c3889 |
|
__init__.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/files#diff-12c99efd704599760cb1a5bcf2ae08331247ca826f4880892cd99af8eae86509 |
|
_liveness.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/files#diff-8e3d803b95eb308e48896c12a56c4538d3f7e3d47479cc22994a71ce08965ec8 |
|
conftest.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/files#diff-7ea490b371122c7bee3ef08f22f959735f2bac1d5240dfd382cafcc52159b3d5 |
|
test_lifecycle.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/files#diff-dfe48f06b0fabf3d8171942bed96fe7a26a5557f860b742b9bd5cb4bb9d006b5 |
|
test_posix.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/files#diff-499184b52f50cccda608f63c7f11cedee0fac7032fc1596711a908472f8386bf |
|
test_windows.py
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/files#diff-314c849a12297cace60d12dc9f5983e06fac171fdb2a7ed454a389c4e08aebb1 |
| docs/migration.md | https://github.com/modelcontextprotocol/python-sdk/pull/2773/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d |
|
View file
| https://github.com/modelcontextprotocol/python-sdk/blob/3c13fc95ddbdaee00a6ad201efd5374ee01d3673/docs/migration.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/{{ revealButtonHref }} |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/2773/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2773/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/2773/files |
|
| 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 |