René's URL Explorer Experiment


Title: test: regression test for initialize hang on unexpected content-type by Christian-Sidak · Pull Request #2472 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: test: regression test for initialize hang on unexpected content-type by Christian-Sidak · Pull Request #2472 · modelcontextprotocol/python-sdk

X Title: test: regression test for initialize hang on unexpected content-type by Christian-Sidak · Pull Request #2472 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - test: regression test for initialize hang on unexpected content-type by Christian-Sidak · Pull Request #2472 · modelcontextprotocol/python-sdk

Open Graph Description: Summary Adds a regression test (test_initialize_does_not_hang_on_unexpected_content_type) that directly reproduces the hang described in issue Initialize call hangs forever if MCP server does not ...

X Description: Summary Adds a regression test (test_initialize_does_not_hang_on_unexpected_content_type) that directly reproduces the hang described in issue Initialize call hangs forever if MCP server does not ...

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

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:8016f469-a860-5e81-d06b-729e49f535ae
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAC5E:26817B:2D8D23:3E45DE:6A63987D
html-safe-nonce9cd6d179c080d0329a1aab72b9227e3b71c3013f237548ffb5a1ac9f214201cb
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQzVFOjI2ODE3QjoyRDhEMjM6M0U0NURFOjZBNjM5ODdEIiwidmlzaXRvcl9pZCI6IjUzMTM2NjMyOTA3OTUzNTc0MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac4ebbce86529915feee641a5c6e558b36fbd03724f55dc97de5d67a0881d751e5
hovercard-subject-tagpull_request:3551395585
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/2472/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/ca142097738de04037b7eeb00f30140673683d0ef700ec7eb63b22e48621e371/modelcontextprotocol/python-sdk/pull/2472
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ca142097738de04037b7eeb00f30140673683d0ef700ec7eb63b22e48621e371/modelcontextprotocol/python-sdk/pull/2472
og:image:altSummary Adds a regression test (test_initialize_does_not_hang_on_unexpected_content_type) that directly reproduces the hang described in issue Initialize call hangs forever if MCP server does not ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameChristian-Sidak
hostnamegithub.com
expected-hostnamegithub.com
None4ca676e17c4da4532dc68541e9fc874034ae840c26b5f34da7f1c42d9a600659
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
release3a0a9f049e072eb8e5795dfddcefdba9e277501d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/2472#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2472
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%2F2472
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/2472
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2472
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2472
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2472
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 245 https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests 284 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
Christian-Sidakhttps://github.com/Christian-Sidak
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
Christian-Sidak:fix/issue-2432https://github.com/Christian-Sidak/python-sdk/tree/fix/issue-2432
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/2472
Commits3 (3)https://github.com/modelcontextprotocol/python-sdk/pull/2472/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/2472/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/2472/files
test: regression test for initialize hang on unexpected content-typehttps://github.com/modelcontextprotocol/python-sdk/pull/2472#top
Christian-Sidakhttps://github.com/Christian-Sidak
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
Christian-Sidak:fix/issue-2432https://github.com/Christian-Sidak/python-sdk/tree/fix/issue-2432
https://github.com/Christian-Sidak
Christian-Sidakhttps://github.com/Christian-Sidak
Apr 19, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2472#issue-4290130856
Initialize call hangs forever if MCP server does not return a Content-Type: text/plain #2432https://github.com/modelcontextprotocol/python-sdk/issues/2432
#2432https://github.com/modelcontextprotocol/python-sdk/issues/2432
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2472
test: add regression test for initialize hang on unexpected content-t…https://github.com/modelcontextprotocol/python-sdk/pull/2472/commits/34dc68a296466a9a025cbfc71d40a91d3384bf30
34dc68ahttps://github.com/modelcontextprotocol/python-sdk/pull/2472/commits/34dc68a296466a9a025cbfc71d40a91d3384bf30
modelcontextprotocol#2432https://github.com/modelcontextprotocol/python-sdk/issues/2432
modelcontextprotocol#2432https://github.com/modelcontextprotocol/python-sdk/issues/2432
https://github.com/Christian-Sidak
Christian-Sidakhttps://github.com/Christian-Sidak
Apr 19, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2472#ref-issue-4253218415
Initialize call hangs forever if MCP server does not return a Content-Type: text/plain #2432 https://github.com/modelcontextprotocol/python-sdk/issues/2432
https://github.com/Christian-Sidak
Christian-Sidakhttps://github.com/Christian-Sidak
Apr 26, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2472#issuecomment-4321349743
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2472
https://github.com/Christian-Sidak
Christian-Sidakhttps://github.com/Christian-Sidak
May 3, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2472#issuecomment-4365502766
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2472
https://github.com/MukundaKatta
MukundaKattahttps://github.com/MukundaKatta
May 3, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2472#issuecomment-4366908252
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2472
https://github.com/Christian-Sidak
Christian-Sidakhttps://github.com/Christian-Sidak
May 4, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2472#issuecomment-4368632721
#2432https://github.com/modelcontextprotocol/python-sdk/issues/2432
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2472
https://github.com/Christian-Sidak
Christian-Sidakhttps://github.com/Christian-Sidak
May 11, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2472#issuecomment-4418097787
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2472
https://github.com/Christian-Sidak
Update httpx/mcp.types references to match renamed httpx2/mcp_types o…https://github.com/modelcontextprotocol/python-sdk/pull/2472/commits/b5ddbf442ccbe3e8594935640611bdab793706a8
b5ddbf4https://github.com/modelcontextprotocol/python-sdk/pull/2472/commits/b5ddbf442ccbe3e8594935640611bdab793706a8
https://github.com/Christian-Sidak
Christian-Sidakhttps://github.com/Christian-Sidak
Jul 17, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2472#issuecomment-4999395111
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2472
https://github.com/apps/cubic-dev-ai
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
Jul 17, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2472#pullrequestreview-4719653735
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2472/files/b5ddbf442ccbe3e8594935640611bdab793706a8
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2472
https://github.com/modelcontextprotocol/python-sdk/pull/2472#pullrequestreview-4719653735
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/2472/ai_pr_review_1784266866459_eaee78e2-e3ea-4b6e-94ac-527fae47c3f5?returnTo=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2472
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2472
tests/client/test_notification_response.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2472/files/b5ddbf442ccbe3e8594935640611bdab793706a8#diff-8c7bb1142c1c9cb43b4d2e7bf265054daca89ba175deec8b690f00464c00c182
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
Jul 17, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2472#discussion_r3600648003
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2472
tests/client/test_notification_response.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2472/files/b5ddbf442ccbe3e8594935640611bdab793706a8#diff-8c7bb1142c1c9cb43b4d2e7bf265054daca89ba175deec8b690f00464c00c182
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
Jul 17, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2472#discussion_r3600648007
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2472
tests/client/test_notification_response.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2472/files/b5ddbf442ccbe3e8594935640611bdab793706a8#diff-8c7bb1142c1c9cb43b4d2e7bf265054daca89ba175deec8b690f00464c00c182
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2472
https://github.com/Christian-Sidak
test: bound initialize() with anyio.fail_after to fail fast on regres…https://github.com/modelcontextprotocol/python-sdk/pull/2472/commits/5ef8194171573b961e67967b767b06b8844e04f4
5ef8194https://github.com/modelcontextprotocol/python-sdk/pull/2472/commits/5ef8194171573b961e67967b767b06b8844e04f4
https://github.com/Christian-Sidak
Christian-Sidakhttps://github.com/Christian-Sidak
Jul 19, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2472#issuecomment-5014596475
5ef8194https://github.com/modelcontextprotocol/python-sdk/commit/5ef8194171573b961e67967b767b06b8844e04f4
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2472
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%2F2472
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/2472/files/b5ddbf442ccbe3e8594935640611bdab793706a8
Initialize call hangs forever if MCP server does not return a Content-Type: text/plain https://github.com/modelcontextprotocol/python-sdk/issues/2432
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2472
https://github.com/Christian-Sidak
https://github.com/MukundaKatta
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.