René's URL Explorer Experiment


Title: Handle Abrupt Server Disconnect in Middle of Tool Call by EiffL · Pull Request #1321 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Handle Abrupt Server Disconnect in Middle of Tool Call by EiffL · Pull Request #1321 · modelcontextprotocol/python-sdk

X Title: Handle Abrupt Server Disconnect in Middle of Tool Call by EiffL · Pull Request #1321 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - Handle Abrupt Server Disconnect in Middle of Tool Call by EiffL · Pull Request #1321 · modelcontextprotocol/python-sdk

Open Graph Description: Propagates transport disconnects (e.g. server killed mid tool call) as CONNECTION_CLOSED errors instead of hanging indefinitely. Adds regression test. Motivation and Context A call_tool over the St...

X Description: Propagates transport disconnects (e.g. server killed mid tool call) as CONNECTION_CLOSED errors instead of hanging indefinitely. Adds regression test. Motivation and Context A call_tool over the St...

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

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:7451c381-4805-27fb-49d9-852bf2014d91
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD5EC:12CC5:229891F:2F978E8:6A63142A
html-safe-nonce00556c11771165400e46b5c89a75da7174f513a33e9111a2725c176965f1279e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENUVDOjEyQ0M1OjIyOTg5MUY6MkY5NzhFODo2QTYzMTQyQSIsInZpc2l0b3JfaWQiOiI2MTE0NTMwMDkzOTUxMDMwMzE0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacddc07b668a18e0db1d5bad28eb19ca68875e2c5e9c78693497b5a5dab18edfae
hovercard-subject-tagpull_request:2783256377
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/1321/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/05b71d293a089eb8e715573802eb6bcfb53430c87ebe1a89be2f5a95ec39a0a0/modelcontextprotocol/python-sdk/pull/1321
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/05b71d293a089eb8e715573802eb6bcfb53430c87ebe1a89be2f5a95ec39a0a0/modelcontextprotocol/python-sdk/pull/1321
og:image:altPropagates transport disconnects (e.g. server killed mid tool call) as CONNECTION_CLOSED errors instead of hanging indefinitely. Adds regression test. Motivation and Context A call_tool over the St...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameEiffL
hostnamegithub.com
expected-hostnamegithub.com
None1a6c056e02f174fffc096c521ec0ff6fb83e40a2ec8cb8875466ec1524872dd6
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
release6a93e25585f487ddff9e3996c06d5b869d6e1828
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/1321#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F1321
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
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
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%2F1321
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/1321
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/1321
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/1321
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1321
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.7k https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk
Code https://github.com/modelcontextprotocol/python-sdk
Issues 270 https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests 317 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
EiffLhttps://github.com/EiffL
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
EiffL:mainhttps://github.com/EiffL/python-sdk/tree/main
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/1321
Commits5 (5)https://github.com/modelcontextprotocol/python-sdk/pull/1321/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/1321/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/1321/files
Handle Abrupt Server Disconnect in Middle of Tool Callhttps://github.com/modelcontextprotocol/python-sdk/pull/1321#top
EiffLhttps://github.com/EiffL
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
EiffL:mainhttps://github.com/EiffL/python-sdk/tree/main
https://github.com/EiffL
EiffLhttps://github.com/EiffL
Aug 28, 2025https://github.com/modelcontextprotocol/python-sdk/pull/1321#issue-3364996824
MCP Documentationhttps://modelcontextprotocol.io
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1321
EiffLhttps://github.com/EiffL
August 29, 2025 01:23https://github.com/modelcontextprotocol/python-sdk/pull/1321#commits-pushed-671d077
https://github.com/EiffL
fix: handle transport exceptions and ensure proper cleanup of in-flig…https://github.com/modelcontextprotocol/python-sdk/pull/1321/commits/671d07724042218700bca2fdcc504e4898ea7dd1
671d077https://github.com/modelcontextprotocol/python-sdk/pull/1321/commits/671d07724042218700bca2fdcc504e4898ea7dd1
https://github.com/EiffL
Merge pull requesthttps://github.com/modelcontextprotocol/python-sdk/pull/1321/commits/de6dd615a592e725b19f34d25c5a57c102682c7b
#1https://github.com/EiffL/python-sdk/pull/1
from EiffL/streamable_http_disconnecthttps://github.com/modelcontextprotocol/python-sdk/pull/1321/commits/de6dd615a592e725b19f34d25c5a57c102682c7b
de6dd61https://github.com/modelcontextprotocol/python-sdk/pull/1321/commits/de6dd615a592e725b19f34d25c5a57c102682c7b
https://github.com/EiffL
EiffLhttps://github.com/EiffL
felixweinbergerhttps://github.com/felixweinberger
August 28, 2025 23:53https://github.com/modelcontextprotocol/python-sdk/pull/1321#event-19401440868
EiffLhttps://github.com/EiffL
August 29, 2025 02:03https://github.com/modelcontextprotocol/python-sdk/pull/1321#commits-pushed-c5bce60
https://github.com/EiffL
Applying formattinghttps://github.com/modelcontextprotocol/python-sdk/pull/1321/commits/c5bce606e3373f8b5856573cab45dfe3b2d24a63
c5bce60https://github.com/modelcontextprotocol/python-sdk/pull/1321/commits/c5bce606e3373f8b5856573cab45dfe3b2d24a63
https://github.com/EiffL
Merge branch 'main' into mainhttps://github.com/modelcontextprotocol/python-sdk/pull/1321/commits/3c1d164adb0aefedfee87ecfa83442b2a8112dd8
3c1d164https://github.com/modelcontextprotocol/python-sdk/pull/1321/commits/3c1d164adb0aefedfee87ecfa83442b2a8112dd8
https://github.com/EiffL
Merge branch 'main' into mainhttps://github.com/modelcontextprotocol/python-sdk/pull/1321/commits/2e6bc0e99a17c719902b9e6f2adc2d541893405b
2e6bc0ehttps://github.com/modelcontextprotocol/python-sdk/pull/1321/commits/2e6bc0e99a17c719902b9e6f2adc2d541893405b
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
Sep 23, 2025 https://github.com/modelcontextprotocol/python-sdk/pull/1321#pullrequestreview-3259091026
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/1321/files/2e6bc0e99a17c719902b9e6f2adc2d541893405b
src/mcp/client/streamable_http.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/1321/files/2e6bc0e99a17c719902b9e6f2adc2d541893405b#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
felixweinbergerhttps://github.com/felixweinberger
Sep 23, 2025https://github.com/modelcontextprotocol/python-sdk/pull/1321#discussion_r2373130811
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1321
src/mcp/shared/session.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/1321/files/2e6bc0e99a17c719902b9e6f2adc2d541893405b#diff-aaa1596dd4db91f5cd7f743c8afbe58596daf01a2ecec4a0024768f7409fb1dc
felixweinbergerhttps://github.com/felixweinberger
Sep 23, 2025https://github.com/modelcontextprotocol/python-sdk/pull/1321#discussion_r2373132369
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1321
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
needs more work https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22needs%20more%20work%22
needs more eyes https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22needs%20more%20eyes%22
needs maintainer https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22needs%20maintainer%22
Sep 23, 2025https://github.com/modelcontextprotocol/python-sdk/pull/1321#event-19872727085
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
Sep 30, 2025https://github.com/modelcontextprotocol/python-sdk/pull/1321#event-20005744961
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
needs maintainer https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22needs%20maintainer%22
Sep 30, 2025https://github.com/modelcontextprotocol/python-sdk/pull/1321#event-20013978307
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
Oct 13, 2025https://github.com/modelcontextprotocol/python-sdk/pull/1321#issuecomment-3398009909
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1321
@EiffLhttps://github.com/EiffL
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1321
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
Oct 13, 2025https://github.com/modelcontextprotocol/python-sdk/pull/1321#event-20250219339
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%2F1321
https://github.com/felixweinberger
felixweinberger https://github.com/felixweinberger
https://github.com/modelcontextprotocol/python-sdk/pull/1321/files/2e6bc0e99a17c719902b9e6f2adc2d541893405b
https://github.com/felixweinberger
felixweinberger https://github.com/felixweinberger
needs more work https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22needs%20more%20work%22
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/1321
https://github.com/EiffL
https://github.com/felixweinberger
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.