René's URL Explorer Experiment


Title: Don't close real process stdio in stdio_server (#1933) by steps-re · Pull Request #3090 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Don't close real process stdio in stdio_server (#1933) by steps-re · Pull Request #3090 · modelcontextprotocol/python-sdk

X Title: Don't close real process stdio in stdio_server (#1933) by steps-re · Pull Request #3090 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - Don't close real process stdio in stdio_server (#1933) by steps-re · Pull Request #3090 · modelcontextprotocol/python-sdk

Open Graph Description: The bug transport="stdio" closes the real process stdin/stdout. Any code that runs after the server exits raises: ValueError: I/O operation on closed file. A minimal reproduction is just...

X Description: The bug transport="stdio" closes the real process stdin/stdout. Any code that runs after the server exits raises: ValueError: I/O operation on closed file. A minimal reproduction...

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

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:18a819ee-ccd8-986a-b463-d1d018dccf3f
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCF54:3A4699:3BAC70:537AC5:6A5A4B38
html-safe-nonce2c35d9793b9865ec6c7f42de03fddb1328bbd8dbc170755cea9284da258e255d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRjU0OjNBNDY5OTozQkFDNzA6NTM3QUM1OjZBNUE0QjM4IiwidmlzaXRvcl9pZCI6IjE0MjAxNDEwOTU4MDQzNTc0MzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac0bc75d5a34f38607e3f498ab5c325d0cb2abe2c78e9dd8990fc7e970fa5d5417
hovercard-subject-tagpull_request:4046815685
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/3090/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/75cad0de4864eeb90c89fd8af1da25cf009870895a8a5f484b1c5aedef2917fe/modelcontextprotocol/python-sdk/pull/3090
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/75cad0de4864eeb90c89fd8af1da25cf009870895a8a5f484b1c5aedef2917fe/modelcontextprotocol/python-sdk/pull/3090
og:image:altThe bug transport="stdio" closes the real process stdin/stdout. Any code that runs after the server exits raises: ValueError: I/O operation on closed file. A minimal reproduction is just...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesteps-re
hostnamegithub.com
expected-hostnamegithub.com
Nonea793cd1fa898929111edad5857ee1f24ecf4bf7702525e67357cabc9df136fc3
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
release311929384671aa49f385b6fcc680ae3933943203
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/3090#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3090
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%2F3090
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/3090
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3090
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3090
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3090
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 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
steps-rehttps://github.com/steps-re
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
steps-re:fix/stdio-preserve-real-std-handleshttps://github.com/steps-re/python-sdk/tree/fix/stdio-preserve-real-std-handles
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/3090
Commits3 (3)https://github.com/modelcontextprotocol/python-sdk/pull/3090/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/3090/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/3090/files
Don't close real process stdio in stdio_server (#1933)https://github.com/modelcontextprotocol/python-sdk/pull/3090#top
steps-rehttps://github.com/steps-re
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
steps-re:fix/stdio-preserve-real-std-handleshttps://github.com/steps-re/python-sdk/tree/fix/stdio-preserve-real-std-handles
https://github.com/steps-re
steps-rehttps://github.com/steps-re
Jul 13, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3090#issue-4876482701
#1933https://github.com/modelcontextprotocol/python-sdk/issues/1933
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3090
https://github.com/steps-re
https://github.com/claude
fix(server): don't close real process stdio in stdio_server (https://github.com/modelcontextprotocol/python-sdk/pull/3090/commits/0e48b3e7a0401c1f08737dff5d52c0838917f298
modelcon…https://github.com/modelcontextprotocol/python-sdk/issues/1933
0e48b3ehttps://github.com/modelcontextprotocol/python-sdk/pull/3090/commits/0e48b3e7a0401c1f08737dff5d52c0838917f298
…textprotocol#1933https://github.com/modelcontextprotocol/python-sdk/issues/1933
https://github.com/apps/cubic-dev-ai
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
Jul 13, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3090#pullrequestreview-4687636509
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/3090/files/0e48b3e7a0401c1f08737dff5d52c0838917f298
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3090
https://github.com/modelcontextprotocol/python-sdk/pull/3090#pullrequestreview-4687636509
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Re-trigger cubichttps://www.cubic.dev/action/re-review/pr/modelcontextprotocol/python-sdk/3090/ai_pr_review_1783967250056_e057c0cd-7f02-4d56-8e53-1a5cc8185dc6?returnTo=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3090
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3090
src/mcp/server/stdio.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3090/files/0e48b3e7a0401c1f08737dff5d52c0838917f298#diff-19a44750677a645222700b9984d14682f626518ae045cf909c4daf665cb3264e
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3090
steps-rehttps://github.com/steps-re
July 13, 2026 17:46https://github.com/modelcontextprotocol/python-sdk/pull/3090#commits-pushed-9a57007
https://github.com/steps-re
https://github.com/claude
fix(stdio): handle bufferless in-memory text streams in fallbackhttps://github.com/modelcontextprotocol/python-sdk/pull/3090/commits/9a57007148a2f1eceff98621aa4ee94caa2c90fa
9a57007https://github.com/modelcontextprotocol/python-sdk/pull/3090/commits/9a57007148a2f1eceff98621aa4ee94caa2c90fa
modelcontextprotocol#3090https://github.com/modelcontextprotocol/python-sdk/pull/3090
https://github.com/steps-re
https://github.com/claude
test(stdio): close streams explicitly to satisfy 100% branch coveragehttps://github.com/modelcontextprotocol/python-sdk/pull/3090/commits/b04f535460516d564b91ad1cae7cbfc46311df48
b04f535https://github.com/modelcontextprotocol/python-sdk/pull/3090/commits/b04f535460516d564b91ad1cae7cbfc46311df48
https://github.com/steps-re
steps-rehttps://github.com/steps-re
Jul 14, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3090#issuecomment-4968144202
@cubic-dev-aihttps://github.com/cubic-dev-ai
9a57007https://github.com/modelcontextprotocol/python-sdk/commit/9a57007148a2f1eceff98621aa4ee94caa2c90fa
b04f535https://github.com/modelcontextprotocol/python-sdk/commit/b04f535460516d564b91ad1cae7cbfc46311df48
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3090
https://github.com/apps/cubic-dev-ai
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
Jul 14, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3090#issuecomment-4968145376
@cubic-dev-aihttps://github.com/cubic-dev-ai
9a57007https://github.com/modelcontextprotocol/python-sdk/commit/9a57007148a2f1eceff98621aa4ee94caa2c90fa
b04f535https://github.com/modelcontextprotocol/python-sdk/commit/b04f535460516d564b91ad1cae7cbfc46311df48
@steps-rehttps://github.com/steps-re
the review UIhttps://www.cubic.dev/pr/modelcontextprotocol/python-sdk/pull/3090?utm_source=github_bot_reply&utm_medium=chat_bot
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3090
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%2F3090
https://github.com/apps/cubic-dev-ai
cubic-dev-ai[bot] https://github.com/apps/cubic-dev-ai
https://github.com/modelcontextprotocol/python-sdk/pull/3090/files/0e48b3e7a0401c1f08737dff5d52c0838917f298
Using transport="stdio" closes real stdio, causing ValueError after server exits https://github.com/modelcontextprotocol/python-sdk/issues/1933
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3090
https://github.com/steps-re
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.