René's URL Explorer Experiment


Title: Retry a tool call once after a HeaderMismatch rejection by maxisbey · Pull Request #3627 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Retry a tool call once after a HeaderMismatch rejection by maxisbey · Pull Request #3627 · modelcontextprotocol/python-sdk

X Title: Retry a tool call once after a HeaderMismatch rejection by maxisbey · Pull Request #3627 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - Retry a tool call once after a HeaderMismatch rejection by maxisbey · Pull Request #3627 · modelcontextprotocol/python-sdk

Open Graph Description: Fixes #3483. What was wrong On a 2026-07-28 Streamable HTTP connection, Client.call_tool for a tool with x-mcp-header arguments failed with -32020 (HeaderMismatch) unless that client had already li...

X Description: Fixes #3483. What was wrong On a 2026-07-28 Streamable HTTP connection, Client.call_tool for a tool with x-mcp-header arguments failed with -32020 (HeaderMismatch) unless that client had already li...

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
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:6567b1e7-a655-e661-92aa-59869178c6bf
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD5A8:E9D16:89FC13:AE93F5:6B012159
html-safe-nonce1e79addd12a57b7cf15b54830d0ab7c7f21a415de2f140db32c80335d947481a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENUE4OkU5RDE2Ojg5RkMxMzpBRTkzRjU6NkIwMTIxNTkiLCJ2aXNpdG9yX2lkIjoiNjY1MzcyNDI2NTQ0MDk0NDQ3NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac99041efc4b49d5a8d29edc054734ea8decc037f963ffdc87af011ac4c327b6a7
hovercard-subject-tagpull_request:4716800696
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/3627/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/e74a83f8e9949c813a206be82818b93f92fc06f589d569e274ee6d68f1b42971/modelcontextprotocol/python-sdk/pull/3627
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e74a83f8e9949c813a206be82818b93f92fc06f589d569e274ee6d68f1b42971/modelcontextprotocol/python-sdk/pull/3627
og:image:altFixes #3483. What was wrong On a 2026-07-28 Streamable HTTP connection, Client.call_tool for a tool with x-mcp-header arguments failed with -32020 (HeaderMismatch) unless that client had already li...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemaxisbey
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/3627#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3627
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3627
Sign uphttps://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/3627
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3627
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3627
modelcontextprotocolhttps://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Codehttps://github.com/modelcontextprotocol/python-sdk
Issues310 (310)https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests112 (112)https://github.com/modelcontextprotocol/python-sdk/pulls
Actionshttps://github.com/modelcontextprotocol/python-sdk/actions
Projectshttps://github.com/modelcontextprotocol/python-sdk/projects
Security and quality12 (12)https://github.com/modelcontextprotocol/python-sdk/security
Insightshttps://github.com/modelcontextprotocol/python-sdk/insights
https://github.com/modelcontextprotocol/python-sdk
maxisbeyhttps://github.com/maxisbey
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
3483-retry-after-header-mismatchhttps://github.com/modelcontextprotocol/python-sdk/tree/3483-retry-after-header-mismatch
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/3627
Commits4 (4)https://github.com/modelcontextprotocol/python-sdk/pull/3627/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/3627/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/3627/files
Retry a tool call once after a HeaderMismatch rejectionhttps://github.com/modelcontextprotocol/python-sdk/pull/3627#top
maxisbeyhttps://github.com/maxisbey
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
3483-retry-after-header-mismatchhttps://github.com/modelcontextprotocol/python-sdk/tree/3483-retry-after-header-mismatch
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
Oct 2, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3627#issue-5677841282
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3627
#3483https://github.com/modelcontextprotocol/python-sdk/issues/3483
Client Behaviorhttps://modelcontextprotocol.io/specification/2026-07-28/basic/transports/streamable-http#client-behavior
fix(spec): replace Mcp-Param-* implementation note  modelcontextprotocol#3071https://github.com/modelcontextprotocol/modelcontextprotocol/pull/3071
#3583https://github.com/modelcontextprotocol/python-sdk/pull/3583
AI Disclaimerhttps://gist.github.com/maxisbey/6123d132484e4c533eab519a2800693d
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3627
https://github.com/maxisbey
Retry a tool call once after a HeaderMismatch rejectionhttps://github.com/modelcontextprotocol/python-sdk/pull/3627/commits/fe11e39c1be92194442b43aea6cfd3677f524275
fe11e39https://github.com/modelcontextprotocol/python-sdk/pull/3627/commits/fe11e39c1be92194442b43aea6cfd3677f524275
#3483https://github.com/modelcontextprotocol/python-sdk/issues/3483
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Oct 2, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3627#issuecomment-5953118964
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3627
https://pr-3627.mcp-python-docs.pages.devhttps://pr-3627.mcp-python-docs.pages.dev
https://795b230a.mcp-python-docs.pages.devhttps://795b230a.mcp-python-docs.pages.dev
@maxisbeyhttps://github.com/maxisbey
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3627
https://github.com/apps/cubic-dev-ai
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
Oct 2, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3627#pullrequestreview-5392181471
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/3627/files/fe11e39c1be92194442b43aea6cfd3677f524275
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
https://github.com/modelcontextprotocol/python-sdk/pull/3627#pullrequestreview-5392181471
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/3627/ai_pr_review_github_delivery_f979e7c3f05e6ddcc2b123c057c42011b111bc689116c64a8dd740e9eef72e4d?returnTo=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3627
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3627
src/mcp/client/client.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3627/files/fe11e39c1be92194442b43aea6cfd3677f524275#diff-34e945ebc2fea8a427b8d0c45ccd28eb4e4cceb33c82048bd7998e6bb2f754f3
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
Oct 2, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3627#discussion_r4166020063
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3627
https://github.com/apps/claude
claudehttps://github.com/apps/claude
Oct 2, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3627#pullrequestreview-5392236440
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/3627/files/fe11e39c1be92194442b43aea6cfd3677f524275
claudehttps://github.com/apps/claude
https://github.com/modelcontextprotocol/python-sdk/pull/3627#pullrequestreview-5392236440
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
19e4f2ahttps://github.com/modelcontextprotocol/python-sdk/commit/19e4f2a6c4a35e8aaad0ca07d3d9f37703865e2e
conformance suitehttps://github.com/modelcontextprotocol/conformance
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3627
src/mcp/client/client.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3627/files/fe11e39c1be92194442b43aea6cfd3677f524275#diff-34e945ebc2fea8a427b8d0c45ccd28eb4e4cceb33c82048bd7998e6bb2f754f3
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3627
src/mcp/client/client.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3627/files/fe11e39c1be92194442b43aea6cfd3677f524275#diff-34e945ebc2fea8a427b8d0c45ccd28eb4e4cceb33c82048bd7998e6bb2f754f3
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3627
src/mcp/client/client.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3627/files/fe11e39c1be92194442b43aea6cfd3677f524275#diff-34e945ebc2fea8a427b8d0c45ccd28eb4e4cceb33c82048bd7998e6bb2f754f3
claudehttps://github.com/apps/claude
Oct 2, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3627#discussion_r4166064697
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3627
docs/migration.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/3627/files/fe11e39c1be92194442b43aea6cfd3677f524275#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
claudehttps://github.com/apps/claude
Oct 2, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3627#discussion_r4166064704
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3627
claudehttps://github.com/apps/claude
Oct 2, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3627#discussion_r4166427821
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3627
src/mcp/client/client.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3627/files/fe11e39c1be92194442b43aea6cfd3677f524275#diff-34e945ebc2fea8a427b8d0c45ccd28eb4e4cceb33c82048bd7998e6bb2f754f3
claudehttps://github.com/apps/claude
Oct 2, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3627#discussion_r4166064714
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#3483https://github.com/modelcontextprotocol/python-sdk/issues/3483
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3627
https://github.com/maxisbey
Bound the re-list by the caller's timeout and chain every re-list fai…https://github.com/modelcontextprotocol/python-sdk/pull/3627/commits/98d9dd04476fc0bff686f7aa28424ceb7f9e9313
98d9dd0https://github.com/modelcontextprotocol/python-sdk/pull/3627/commits/98d9dd04476fc0bff686f7aa28424ceb7f9e9313
https://github.com/apps/claude
claudehttps://github.com/apps/claude
Oct 2, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3627#pullrequestreview-5392582186
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/3627/files/98d9dd04476fc0bff686f7aa28424ceb7f9e9313
claudehttps://github.com/apps/claude
https://github.com/modelcontextprotocol/python-sdk/pull/3627#pullrequestreview-5392582186
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
98d9dd0https://github.com/modelcontextprotocol/python-sdk/commit/98d9dd04476fc0bff686f7aa28424ceb7f9e9313
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3627
maxisbeyhttps://github.com/maxisbey
October 2, 2026 13:50https://github.com/modelcontextprotocol/python-sdk/pull/3627#commits-pushed-a57f2e4
https://github.com/maxisbey
Bound the re-list by the client's default timeouthttps://github.com/modelcontextprotocol/python-sdk/pull/3627/commits/a57f2e4f7a6b6d67f530c252d1fabc379157bf72
a57f2e4https://github.com/modelcontextprotocol/python-sdk/pull/3627/commits/a57f2e4f7a6b6d67f530c252d1fabc379157bf72
https://github.com/maxisbey
Say on the Header parameters page that Client re-lists and resendshttps://github.com/modelcontextprotocol/python-sdk/pull/3627/commits/64fab09390af40b42c3799518ab8a88c87cf0695
64fab09https://github.com/modelcontextprotocol/python-sdk/pull/3627/commits/64fab09390af40b42c3799518ab8a88c87cf0695
https://github.com/apps/claude
claudehttps://github.com/apps/claude
Oct 2, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3627#pullrequestreview-5392692588
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/3627/files/64fab09390af40b42c3799518ab8a88c87cf0695
claudehttps://github.com/apps/claude
https://github.com/modelcontextprotocol/python-sdk/pull/3627#pullrequestreview-5392692588
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3627
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
9afccaehttps://github.com/modelcontextprotocol/python-sdk/commit/9afccae3d0bff4062add01b7fb746634b9aad2a7
Oct 2, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3627#event-32339495278
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3627
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
October 2, 2026 14:02https://github.com/modelcontextprotocol/python-sdk/pull/3627#event-32339498142
Client never retries after -32020 HeaderMismatch, and there is no public way to pre-load the x-mcp-header map (SEP-2243 client SHOULD/MAY both unimplemented) #3483 https://github.com/modelcontextprotocol/python-sdk/issues/3483
Link What's new to the Header parameters page #3632 https://github.com/modelcontextprotocol/python-sdk/pull/3632
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%2F3627
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/3627/files/fe11e39c1be92194442b43aea6cfd3677f524275
https://github.com/apps/claude
claude[bot] https://github.com/apps/claude
https://github.com/modelcontextprotocol/python-sdk/pull/3627/files/64fab09390af40b42c3799518ab8a88c87cf0695
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3627
Client never retries after -32020 HeaderMismatch, and there is no public way to pre-load the x-mcp-header map (SEP-2243 client SHOULD/MAY both unimplemented) https://github.com/modelcontextprotocol/python-sdk/issues/3483
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3627
https://github.com/maxisbey
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.