| 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:75bcdb8d-284d-0183-4180-d317e4ef0fcb |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D06A:3B72BF:12DCD94:195C1A2:6A5AB1CF |
| html-safe-nonce | 63c965d4a31ee335167fefd683775372d1b9c85fd00c4ad7b975facda09e8376 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDZBOjNCNzJCRjoxMkRDRDk0OjE5NUMxQTI6NkE1QUIxQ0YiLCJ2aXNpdG9yX2lkIjoiOTA4NzY0MzA2NjI2NjQ2NDcxOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8430345aab316bc792d4719c80edd39640ae6e362774ab411a5a21ce64ab0f41 |
| hovercard-subject-tag | pull_request:2642002694 |
| 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/1091/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/ad0efda2ea068250d966c8a36f659e515d4476e2c017c7818c9155b4d46a4d45/modelcontextprotocol/python-sdk/pull/1091 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ad0efda2ea068250d966c8a36f659e515d4476e2c017c7818c9155b4d46a4d45/modelcontextprotocol/python-sdk/pull/1091 |
| og:image:alt | Motivation and Context
This PR implements the MCP spec-compliant stdio shutdown sequence as defined in the MCP specification.
The MCP specification recommends that stdio transport clients should:
... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | felixweinberger |
| 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/1091#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F1091 |
| 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%2F1091 |
|
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/1091 |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/1091 |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/1091 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/1091 |
|
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 |
| bhosmer-ant | https://github.com/bhosmer-ant |
| main | https://github.com/modelcontextprotocol/python-sdk/tree/main |
| fweinberger/align-shutdown-with-spec | https://github.com/modelcontextprotocol/python-sdk/tree/fweinberger/align-shutdown-with-spec |
| Conversation | https://github.com/modelcontextprotocol/python-sdk/pull/1091 |
| Commits2 (2) | https://github.com/modelcontextprotocol/python-sdk/pull/1091/commits |
| Checks | https://github.com/modelcontextprotocol/python-sdk/pull/1091/checks |
| Files changed | https://github.com/modelcontextprotocol/python-sdk/pull/1091/files |
| fweinberger/align shutdown with spec | https://github.com/modelcontextprotocol/python-sdk/pull/1091#top |
| bhosmer-ant | https://github.com/bhosmer-ant |
| main | https://github.com/modelcontextprotocol/python-sdk/tree/main |
| fweinberger/align-shutdown-with-spec | https://github.com/modelcontextprotocol/python-sdk/tree/fweinberger/align-shutdown-with-spec |
|
| https://github.com/felixweinberger |
| felixweinberger | https://github.com/felixweinberger |
| Jul 4, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/1091#issue-3203324181 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/1091 |
| MCP specification | https://modelcontextprotocol.io/specification/2025-06-18/basic/lifecycle#shutdown |
| #765 | https://github.com/modelcontextprotocol/python-sdk/pull/765 |
| #1044 | https://github.com/modelcontextprotocol/python-sdk/pull/1044 |
| #1078 | https://github.com/modelcontextprotocol/python-sdk/pull/1078 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/1091 |
| https://github.com/felixweinberger |
| felixweinberger | https://github.com/felixweinberger |
|
Jul 4, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1091#ref-pullrequest-3180450736 |
|
Unify process termination on POSIX & Windows (+ tests)
#1044
| https://github.com/modelcontextprotocol/python-sdk/pull/1044 |
| https://github.com/felixweinberger |
| felixweinberger | https://github.com/felixweinberger |
| force-pushed | https://github.com/modelcontextprotocol/python-sdk/compare/3ba87adfb7272493fd167d236483b09c3df99d89..9f4696d1e28997a5f8106912b010183f98900947 |
| 3ba87ad | https://github.com/modelcontextprotocol/python-sdk/commit/3ba87adfb7272493fd167d236483b09c3df99d89 |
| 9f4696d | https://github.com/modelcontextprotocol/python-sdk/commit/9f4696d1e28997a5f8106912b010183f98900947 |
|
Compare
| https://github.com/modelcontextprotocol/python-sdk/compare/3ba87adfb7272493fd167d236483b09c3df99d89..9f4696d1e28997a5f8106912b010183f98900947 |
| July 8, 2025 16:00 | https://github.com/modelcontextprotocol/python-sdk/pull/1091#event-18529606699 |
|
| https://github.com/felixweinberger |
|
| https://github.com/davenpi |
| Implement MCP spec-compliant stdio shutdown sequence | https://github.com/modelcontextprotocol/python-sdk/pull/1091/commits/757d1542b5a3fd546daa3a688d9b1b07c82ed278 |
| 757d154 | https://github.com/modelcontextprotocol/python-sdk/pull/1091/commits/757d1542b5a3fd546daa3a688d9b1b07c82ed278 |
| #765 | https://github.com/modelcontextprotocol/python-sdk/pull/765 |
| https://github.com/felixweinberger |
| felixweinberger | https://github.com/felixweinberger |
| force-pushed | https://github.com/modelcontextprotocol/python-sdk/compare/9f4696d1e28997a5f8106912b010183f98900947..757d1542b5a3fd546daa3a688d9b1b07c82ed278 |
| 9f4696d | https://github.com/modelcontextprotocol/python-sdk/commit/9f4696d1e28997a5f8106912b010183f98900947 |
| 757d154 | https://github.com/modelcontextprotocol/python-sdk/commit/757d1542b5a3fd546daa3a688d9b1b07c82ed278 |
|
Compare
| https://github.com/modelcontextprotocol/python-sdk/compare/9f4696d1e28997a5f8106912b010183f98900947..757d1542b5a3fd546daa3a688d9b1b07c82ed278 |
| July 8, 2025 16:26 | https://github.com/modelcontextprotocol/python-sdk/pull/1091#event-18530020591 |
| https://github.com/felixweinberger |
| felixweinberger | https://github.com/felixweinberger |
| July 8, 2025 16:36 | https://github.com/modelcontextprotocol/python-sdk/pull/1091#event-18530192631 |
| https://github.com/felixweinberger |
| felixweinberger | https://github.com/felixweinberger |
| dsp-ant | https://github.com/dsp-ant |
| July 8, 2025 16:36 | https://github.com/modelcontextprotocol/python-sdk/pull/1091#event-18530196380 |
| https://github.com/felixweinberger |
| felixweinberger | https://github.com/felixweinberger |
| Jul 8, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/1091#issuecomment-3049611457 |
| @dsp-ant | https://github.com/dsp-ant |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/1091 |
| https://github.com/felixweinberger |
| felixweinberger | https://github.com/felixweinberger |
|
Jul 8, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1091#ref-pullrequest-3193717345 |
|
Add regression test for issue #1027
#1069
| https://github.com/modelcontextprotocol/python-sdk/pull/1069 |
| felixweinberger | https://github.com/felixweinberger |
|
Jul 8, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1091#ref-commit-d9c4b2a |
|
| https://github.com/felixweinberger |
| Add test demonstrating issue | https://github.com/modelcontextprotocol/python-sdk/commit/d9c4b2ad09165cf46a28a9322b964912480f9891 |
| #1027 | https://github.com/modelcontextprotocol/python-sdk/issues/1027 |
| and verifying PR | https://github.com/modelcontextprotocol/python-sdk/commit/d9c4b2ad09165cf46a28a9322b964912480f9891 |
| #1091 | https://github.com/modelcontextprotocol/python-sdk/pull/1091 |
| fixes it | https://github.com/modelcontextprotocol/python-sdk/commit/d9c4b2ad09165cf46a28a9322b964912480f9891 |
| d9c4b2a | https://github.com/modelcontextprotocol/python-sdk/commit/d9c4b2ad09165cf46a28a9322b964912480f9891 |
| #1044 | https://github.com/modelcontextprotocol/python-sdk/pull/1044 |
| #1027 | https://github.com/modelcontextprotocol/python-sdk/issues/1027 |
| felixweinberger | https://github.com/felixweinberger |
|
Jul 8, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1091#ref-commit-26e1e49 |
|
| https://github.com/felixweinberger |
| Add test demonstrating issue | https://github.com/modelcontextprotocol/python-sdk/commit/26e1e496a587cf3b6342eaad369c6676c97eae44 |
| #1027 | https://github.com/modelcontextprotocol/python-sdk/issues/1027 |
| and verifying PR | https://github.com/modelcontextprotocol/python-sdk/commit/26e1e496a587cf3b6342eaad369c6676c97eae44 |
| #1091 | https://github.com/modelcontextprotocol/python-sdk/pull/1091 |
| fixes it | https://github.com/modelcontextprotocol/python-sdk/commit/26e1e496a587cf3b6342eaad369c6676c97eae44 |
| 26e1e49 | https://github.com/modelcontextprotocol/python-sdk/commit/26e1e496a587cf3b6342eaad369c6676c97eae44 |
| #1044 | https://github.com/modelcontextprotocol/python-sdk/pull/1044 |
| #1027 | https://github.com/modelcontextprotocol/python-sdk/issues/1027 |
|
| https://github.com/felixweinberger |
| Add regression test for issue | https://github.com/modelcontextprotocol/python-sdk/pull/1091/commits/96b40593c2890595b0e2ff64d09ebdf4bdb79795 |
| #1027 | https://github.com/modelcontextprotocol/python-sdk/issues/1027 |
| ( | https://github.com/modelcontextprotocol/python-sdk/pull/1091/commits/96b40593c2890595b0e2ff64d09ebdf4bdb79795 |
| #1069 | https://github.com/modelcontextprotocol/python-sdk/pull/1069 |
| ) | https://github.com/modelcontextprotocol/python-sdk/pull/1091/commits/96b40593c2890595b0e2ff64d09ebdf4bdb79795 |
| 96b4059 | https://github.com/modelcontextprotocol/python-sdk/pull/1091/commits/96b40593c2890595b0e2ff64d09ebdf4bdb79795 |
| https://github.com/ihrpr |
| ihrpr | https://github.com/ihrpr |
|
Jul 9, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1091#ref-pullrequest-3078526201 |
|
Align stdio shutdown sequence with spec
#765
| https://github.com/modelcontextprotocol/python-sdk/pull/765 |
| https://github.com/felixweinberger |
| felixweinberger | https://github.com/felixweinberger |
| bhosmer-ant | https://github.com/bhosmer-ant |
| ihrpr | https://github.com/ihrpr |
| July 9, 2025 13:14 | https://github.com/modelcontextprotocol/python-sdk/pull/1091#event-18546277886 |
| https://github.com/bhosmer-ant |
| bhosmer-ant | https://github.com/bhosmer-ant |
|
Jul 9, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/1091#pullrequestreview-3001753499 |
|
View reviewed changes
| https://github.com/modelcontextprotocol/python-sdk/pull/1091/files/96b40593c2890595b0e2ff64d09ebdf4bdb79795 |
| bhosmer-ant | https://github.com/bhosmer-ant |
| https://github.com/modelcontextprotocol/python-sdk/pull/1091#pullrequestreview-3001753499 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/1091 |
| https://github.com/bhosmer-ant |
| bhosmer-ant | https://github.com/bhosmer-ant |
| 3abefee | https://github.com/modelcontextprotocol/python-sdk/commit/3abefeeeaf6e50756571251ae8dcab120f1ccaca |
| Jul 9, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/1091#event-18547407232 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/1091 |
| https://github.com/bhosmer-ant |
| bhosmer-ant | https://github.com/bhosmer-ant |
| July 9, 2025 14:14 | https://github.com/modelcontextprotocol/python-sdk/pull/1091#event-18547407776 |
| 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%2F1091 |
|
| https://github.com/bhosmer-ant |
|
bhosmer-ant
| https://github.com/bhosmer-ant |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/1091/files/96b40593c2890595b0e2ff64d09ebdf4bdb79795 |
|
| https://github.com/dsp-ant |
|
dsp-ant
| https://github.com/dsp-ant |
|
| https://github.com/ihrpr |
|
ihrpr
| https://github.com/ihrpr |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/1091 |
|
| https://github.com/felixweinberger |
|
| https://github.com/bhosmer-ant |
|
| 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 |