René's URL Explorer Experiment


Title: Scope HTTP client redirect following to the request's origin by maxisbey · Pull Request #3075 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Scope HTTP client redirect following to the request's origin by maxisbey · Pull Request #3075 · modelcontextprotocol/python-sdk

X Title: Scope HTTP client redirect following to the request's origin by maxisbey · Pull Request #3075 · modelcontextprotocol/python-sdk

Description: Clients created by the SDK's httpx factory always enabled follow_redirects=True, so everything configured on a client — headers, auth, request bodies — was re-sent to whatever host a Location header named, and a misconfigured URL failed with an unhelpful Unexpected content type: error. This PR scopes redirect following to the request's origin and makes every refused redirect fail loudly with the target URL and the remedy. Motivation and Context follow_redirects=True was added for operational convenience: trailing-slash 307s from Starlette-mounted servers (#105, #732) and hosted-server redirects (#283). The dominant case — the same-origin slash fix — keeps working exactly as before; the server-side cause was also fixed long ago in #1115. What the blanket default additionally did was silently re-send client configuration to arbitrary redirect targets and silently mask misconfigured URLs. httpx's own default is follow_redirects=False for the same reason (encode/httpx#2533 keeps its cross-origin strip list deliberately minimal and leaves per-application policy to the application). Clients built by create_mcp_http_client now: follow redirects within the same origin (scheme, host, port) and same-host http→https upgrades on default ports — trailing-slash normalization and TLS-upgrade redirects keep working, verified end-to-end against real Starlette apps; raise the new RedirectError for any other redirect target, before the next request is sent, with a message naming the resolved target and how to proceed (connect to the final URL, or supply your own pre-configured httpx.AsyncClient after verifying the destination). Transports resolve a refused redirect in-band — a request gets a JSON-RPC error rather than a hung caller, notifications are delivered to the session's message handler, and the standalone GET stream stops retrying an endpoint that redirects on every attempt. Caller-supplied clients that follow no redirects (httpx's default) get the same clear error on POST, GET-stream, and SSE-connect paths. OAuth discovery, registration, token, refresh, and the identity-assertion token exchange fail loudly on redirect responses instead of silently trying the next URL or abandoning the discovery chain. create_mcp_http_client and RedirectError are now exported from the top-level mcp package (a deliberate API addition): the docs previously told users to build their own httpx.AsyncClient for headers/auth, which quietly lost the SDK's defaults. Docs and examples now configure clients through the factory; the general-purpose simple-tool fetch example gets a browser-like client of its own, since it fetches arbitrary web pages rather than a configured MCP endpoint. How Has This Been Tested? Real-server verification: booted MCPServer.streamable_http_app() under uvicorn and drove it with the real client. A trailing-slash /mcp/ URL initializes and completes a full session lifecycle (every request rides a genuine Starlette 307); a redirect to a different origin resolves initialization with a clear error naming the target; a typo'd path still yields the usual not-found error. New unit and transport tests (all proven failing on the base revision): same-origin and https-upgrade redirects followed with method/body/headers intact; other-host, other-port, https→http, and empty-host absolute-form Locations refused before a second request is sent; unparsable Location defers to httpx's own error; per-request and client-level headers behave identically; request/notification/resumption/GET-stream/SSE paths each surface the in-band error; OAuth handlers raise on redirect responses; a caller-supplied follow_redirects=True client is untouched (opt-in preserved). A parametrized test asserts the target-resolution helper matches response.next_request.url from httpx itself across relative, protocol-relative, absolute-form-without-host, and cross-origin shapes, so an httpx behavior change surfaces as a test failure rather than a silent policy divergence. Full suite: 5458 passed, 100% coverage including strict-no-cover, pyright and ruff clean. Breaking Changes Yes, deliberate and documented in docs/migration.md: a redirect to a different origin now raises mcp.RedirectError instead of being followed. Same-origin redirects and same-host https upgrades are unaffected. Deployments that genuinely need cross-origin redirect following can pass their own httpx.AsyncClient(follow_redirects=True) to streamable_http_client / sse_client. Types of changes Bug fix (non-breaking change which fixes an issue) New feature (non-breaking change which adds functionality) Breaking change (fix or feature that would cause existing functionality to change) Documentation update Checklist I have read the MCP Documentation My code follows the repository's style guidelines New and existing tests pass locally I have added appropriate error handling I have added or updated documentation as needed Additional context Four # pragma: no branch / # pragma: no cover comments are added in tests: three for the coverage.py nested-async with phantom-arc misreport documented in AGENTS.md, one marking an unreachable context-manager body in a connect-failure test. Known, accepted scope edges: resumption/reconnection GETs with a caller-supplied non-following client surface httpx's generic status error rather than the typed one (the factory's clients get the typed error everywhere); the origin comparison is deliberately conservative and fails loud on exotic-but-equivalent forms (IPv6 long-form vs. shorthand, trailing-dot hosts, non-default-port https upgrades) — supply your own client for those chains. The RedirectPolicy proposal in #2180 addressed the scheme-downgrade slice of the same default; with redirect targets now vetted at the factory for every consumer, that policy knob is superseded by this change. AI Disclaimer

Open Graph Description: Clients created by the SDK's httpx factory always enabled follow_redirects=True, so everything configured on a client — headers, auth, request bodies — was re-sent to whatever host a Location h...

X Description: Clients created by the SDK's httpx factory always enabled follow_redirects=True, so everything configured on a client — headers, auth, request bodies — was re-sent to whatever host a Locati...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:e31046a3-c64f-63d5-b8b0-6847077605a0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD8E2:26CE68:C67967:10C82B4:6A5B9A55
html-safe-nonced5a8473201d4341e07dff2014b8d4d07b557eaecf414386e2295cec292139bc1
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOEUyOjI2Q0U2ODpDNjc5Njc6MTBDODJCNDo2QTVCOUE1NSIsInZpc2l0b3JfaWQiOiI0NzU3NTEwNjc4Mjg1ODgzOTg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac1d379707ae2ba3b973fd657467c54b46a9a25ac3eaf18d28fa16505e3d19ab72
hovercard-subject-tagpull_request:4013648428
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///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/3075/files
twitter:imagehttps://avatars.githubusercontent.com/u/224885523?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/224885523?s=400&v=4
og:image:altClients created by the SDK's httpx factory always enabled follow_redirects=True, so everything configured on a client — headers, auth, request bodies — was re-sent to whatever host a Location h...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c975978430e9ad293956f2bbdaf153b1bd84a99
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3075%2Ffiles
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%2F3075%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files
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 259 https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests 305 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
Sign up for GitHub https://github.com/signup?return_to=%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose
maxisbeyhttps://github.com/maxisbey
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
scope-headers-to-originhttps://github.com/modelcontextprotocol/python-sdk/tree/scope-headers-to-origin
Conversation 11 https://github.com/modelcontextprotocol/python-sdk/pull/3075
Commits 1 https://github.com/modelcontextprotocol/python-sdk/pull/3075/commits
Checks 39 https://github.com/modelcontextprotocol/python-sdk/pull/3075/checks
Files changed https://github.com/modelcontextprotocol/python-sdk/pull/3075/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files
Scope HTTP client redirect following to the request's origin https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#top
Show all changes 1 commit https://github.com/modelcontextprotocol/python-sdk/pull/3075/files
b8a107d Scope HTTP client redirect following to the request's origin maxisbey Jul 7, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3075/commits/b8a107d16c8543391af58e2e06acdf296bb34cda
Clear filters https://github.com/modelcontextprotocol/python-sdk/pull/3075/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files
transports.md https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-1e8dad68fc5833fd229242cdafbfe85ab6382fbfb42e0c7e3080118ddc9b68c2
migration.md https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
asgi.md https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-87798bcf24a8cb8d02744b88e8d10738db40d75a24f5b3bf6f1ff27483b1bcc8
tutorial003.py https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-fdbc5c2ee10fdb42216c507550877693504f95e49084c542727a409e94ff46c5
tutorial001.py https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-c1a85c88138b90b132f75ac4f800192f3b68cd3229eb095b60e39741db46893b
tutorial001.py https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-cf4029dcf939a0e84c4a2d45ee3bbe58d6ab62c80ed7d1d98a2df452c79c8eac
tutorial002.py https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-e977f9ef9cd790f35b4d4ab1aeea39007c95a5478704997b8a6ae2c6f64f62d1
main.py https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-967e8584a0021a6f5b81aa9ef3f1e549efd761fe3fb4733e5212ce027e0bcfce
server.py https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-ba52c682d4e3fbfa81efb481c7df117341f6502fcf7b99f0722448f0ffbfb9bd
identity_assertion_client.py https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-d9f410e6ec455a5b5eb325f6a53c2a67daf7ffc7376a00ebb1296df6210f74c5
oauth_client.py https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-027c2794f55d97303e0b285c161c1f068be0f1ae44624885ddb1664bee9edd32
__init__.py https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-208c9cff9cd42bad47f1042db6861d931673ca78db6de12bd4d8f65885f8f126
identity_assertion.py https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-46a914434a87fa6647279942143c579485166d92ba2690db1c704ac88d804a06
oauth2.py https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
utils.py https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-1aed3def34492fb7eafa6e7aee6e9cc9973171b28c9574dc5c5b288a09878996
sse.py https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
streamable_http.py https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
_httpx_utils.py https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-c4baff3567caa38efcdfd8b6a554abe19fcf6429c80e6e693ed1a847a7aec431
test_identity_assertion.py https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-5d6fc6f0686a5ecd96f4c48fe2790affe1b26dcae8dd2890463e821af12e087b
test_auth.py https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-f083d075f463e8b1ecfa6b931c33288c3d09b00ee3af3e5f74df16b7e75c3ab1
conftest.py https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-15491fe777db50025c3dc04b6c61bc3e54d37c41d24c9f557b35e5b67c0a1769
test_httpx_utils.py https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-b0498e819959a6703b5a7ae1a5d5738d0779b500589c6fd4eca497bfa0fe32bb
test_sse.py https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-a2934f5f6ec610dff6774352c41b8c697b539614667643d69fd67f6fc6d7765e
test_streamable_http.py https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-57d1f3c64af36960aa61b1d77387fb6201b90fbc2f3d606bf2761315ce618cc5
docs/client/transports.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-1e8dad68fc5833fd229242cdafbfe85ab6382fbfb42e0c7e3080118ddc9b68c2
View file https://github.com/modelcontextprotocol/python-sdk/blob/b8a107d16c8543391af58e2e06acdf296bb34cda/docs/client/transports.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3075/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-1e8dad68fc5833fd229242cdafbfe85ab6382fbfb42e0c7e3080118ddc9b68c2
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
Jul 8, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#r3545852024
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files
https://github.com/modelcontextprotocol/python-sdk/pull/3075/checks?check_run_id=85927039873
claudehttps://github.com/apps/claude
Jul 8, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#r3545788898
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-1e8dad68fc5833fd229242cdafbfe85ab6382fbfb42e0c7e3080118ddc9b68c2
docs/migration.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
View file https://github.com/modelcontextprotocol/python-sdk/blob/b8a107d16c8543391af58e2e06acdf296bb34cda/docs/migration.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3075/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
Jul 8, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#r3545852035
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-758ba107a728fccfdf0d098b2c06ded59127dd53ea287d630f72fb51040bc72d
docs/run/asgi.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-87798bcf24a8cb8d02744b88e8d10738db40d75a24f5b3bf6f1ff27483b1bcc8
View file https://github.com/modelcontextprotocol/python-sdk/blob/b8a107d16c8543391af58e2e06acdf296bb34cda/docs/run/asgi.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3075/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-87798bcf24a8cb8d02744b88e8d10738db40d75a24f5b3bf6f1ff27483b1bcc8
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-87798bcf24a8cb8d02744b88e8d10738db40d75a24f5b3bf6f1ff27483b1bcc8
docs_src/client_transports/tutorial003.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-fdbc5c2ee10fdb42216c507550877693504f95e49084c542727a409e94ff46c5
View file https://github.com/modelcontextprotocol/python-sdk/blob/b8a107d16c8543391af58e2e06acdf296bb34cda/docs_src/client_transports/tutorial003.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3075/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-fdbc5c2ee10fdb42216c507550877693504f95e49084c542727a409e94ff46c5
docs_src/identity_assertion/tutorial001.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-c1a85c88138b90b132f75ac4f800192f3b68cd3229eb095b60e39741db46893b
View file https://github.com/modelcontextprotocol/python-sdk/blob/b8a107d16c8543391af58e2e06acdf296bb34cda/docs_src/identity_assertion/tutorial001.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3075/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-c1a85c88138b90b132f75ac4f800192f3b68cd3229eb095b60e39741db46893b
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-c1a85c88138b90b132f75ac4f800192f3b68cd3229eb095b60e39741db46893b
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-c1a85c88138b90b132f75ac4f800192f3b68cd3229eb095b60e39741db46893b
docs_src/oauth_clients/tutorial001.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-cf4029dcf939a0e84c4a2d45ee3bbe58d6ab62c80ed7d1d98a2df452c79c8eac
View file https://github.com/modelcontextprotocol/python-sdk/blob/b8a107d16c8543391af58e2e06acdf296bb34cda/docs_src/oauth_clients/tutorial001.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3075/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-cf4029dcf939a0e84c4a2d45ee3bbe58d6ab62c80ed7d1d98a2df452c79c8eac
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-cf4029dcf939a0e84c4a2d45ee3bbe58d6ab62c80ed7d1d98a2df452c79c8eac
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-cf4029dcf939a0e84c4a2d45ee3bbe58d6ab62c80ed7d1d98a2df452c79c8eac
docs_src/oauth_clients/tutorial002.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-e977f9ef9cd790f35b4d4ab1aeea39007c95a5478704997b8a6ae2c6f64f62d1
View file https://github.com/modelcontextprotocol/python-sdk/blob/b8a107d16c8543391af58e2e06acdf296bb34cda/docs_src/oauth_clients/tutorial002.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3075/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-e977f9ef9cd790f35b4d4ab1aeea39007c95a5478704997b8a6ae2c6f64f62d1
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-e977f9ef9cd790f35b4d4ab1aeea39007c95a5478704997b8a6ae2c6f64f62d1
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-e977f9ef9cd790f35b4d4ab1aeea39007c95a5478704997b8a6ae2c6f64f62d1
examples/clients/simple-auth-client/mcp_simple_auth_client/main.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-967e8584a0021a6f5b81aa9ef3f1e549efd761fe3fb4733e5212ce027e0bcfce
View file https://github.com/modelcontextprotocol/python-sdk/blob/b8a107d16c8543391af58e2e06acdf296bb34cda/examples/clients/simple-auth-client/mcp_simple_auth_client/main.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3075/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-967e8584a0021a6f5b81aa9ef3f1e549efd761fe3fb4733e5212ce027e0bcfce
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-967e8584a0021a6f5b81aa9ef3f1e549efd761fe3fb4733e5212ce027e0bcfce
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-967e8584a0021a6f5b81aa9ef3f1e549efd761fe3fb4733e5212ce027e0bcfce
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-967e8584a0021a6f5b81aa9ef3f1e549efd761fe3fb4733e5212ce027e0bcfce
examples/servers/simple-tool/mcp_simple_tool/server.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-ba52c682d4e3fbfa81efb481c7df117341f6502fcf7b99f0722448f0ffbfb9bd
View file https://github.com/modelcontextprotocol/python-sdk/blob/b8a107d16c8543391af58e2e06acdf296bb34cda/examples/servers/simple-tool/mcp_simple_tool/server.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3075/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-ba52c682d4e3fbfa81efb481c7df117341f6502fcf7b99f0722448f0ffbfb9bd
examples/snippets/clients/identity_assertion_client.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-d9f410e6ec455a5b5eb325f6a53c2a67daf7ffc7376a00ebb1296df6210f74c5
View file https://github.com/modelcontextprotocol/python-sdk/blob/b8a107d16c8543391af58e2e06acdf296bb34cda/examples/snippets/clients/identity_assertion_client.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3075/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-d9f410e6ec455a5b5eb325f6a53c2a67daf7ffc7376a00ebb1296df6210f74c5
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-d9f410e6ec455a5b5eb325f6a53c2a67daf7ffc7376a00ebb1296df6210f74c5
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-d9f410e6ec455a5b5eb325f6a53c2a67daf7ffc7376a00ebb1296df6210f74c5
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-d9f410e6ec455a5b5eb325f6a53c2a67daf7ffc7376a00ebb1296df6210f74c5
examples/snippets/clients/oauth_client.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-027c2794f55d97303e0b285c161c1f068be0f1ae44624885ddb1664bee9edd32
View file https://github.com/modelcontextprotocol/python-sdk/blob/b8a107d16c8543391af58e2e06acdf296bb34cda/examples/snippets/clients/oauth_client.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3075/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-027c2794f55d97303e0b285c161c1f068be0f1ae44624885ddb1664bee9edd32
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-027c2794f55d97303e0b285c161c1f068be0f1ae44624885ddb1664bee9edd32
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-027c2794f55d97303e0b285c161c1f068be0f1ae44624885ddb1664bee9edd32
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-027c2794f55d97303e0b285c161c1f068be0f1ae44624885ddb1664bee9edd32
src/mcp/__init__.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-208c9cff9cd42bad47f1042db6861d931673ca78db6de12bd4d8f65885f8f126
View file https://github.com/modelcontextprotocol/python-sdk/blob/b8a107d16c8543391af58e2e06acdf296bb34cda/src/mcp/__init__.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3075/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-208c9cff9cd42bad47f1042db6861d931673ca78db6de12bd4d8f65885f8f126
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-208c9cff9cd42bad47f1042db6861d931673ca78db6de12bd4d8f65885f8f126
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-208c9cff9cd42bad47f1042db6861d931673ca78db6de12bd4d8f65885f8f126
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-208c9cff9cd42bad47f1042db6861d931673ca78db6de12bd4d8f65885f8f126
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-208c9cff9cd42bad47f1042db6861d931673ca78db6de12bd4d8f65885f8f126
maxisbeyhttps://github.com/maxisbey
Jul 16, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#r3596286647
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files
maxisbeyhttps://github.com/maxisbey
Jul 16, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#r3596288132
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files
src/mcp/client/auth/extensions/identity_assertion.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-46a914434a87fa6647279942143c579485166d92ba2690db1c704ac88d804a06
View file https://github.com/modelcontextprotocol/python-sdk/blob/b8a107d16c8543391af58e2e06acdf296bb34cda/src/mcp/client/auth/extensions/identity_assertion.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3075/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-46a914434a87fa6647279942143c579485166d92ba2690db1c704ac88d804a06
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-46a914434a87fa6647279942143c579485166d92ba2690db1c704ac88d804a06
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-46a914434a87fa6647279942143c579485166d92ba2690db1c704ac88d804a06
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-46a914434a87fa6647279942143c579485166d92ba2690db1c704ac88d804a06
src/mcp/client/auth/oauth2.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
View file https://github.com/modelcontextprotocol/python-sdk/blob/b8a107d16c8543391af58e2e06acdf296bb34cda/src/mcp/client/auth/oauth2.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3075/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
Jul 8, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#r3545852030
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files
https://github.com/modelcontextprotocol/python-sdk/pull/3075/checks?check_run_id=85927039873
claudehttps://github.com/apps/claude
Jul 8, 2026https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#r3545788718
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
src/mcp/client/auth/utils.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-1aed3def34492fb7eafa6e7aee6e9cc9973171b28c9574dc5c5b288a09878996
View file https://github.com/modelcontextprotocol/python-sdk/blob/b8a107d16c8543391af58e2e06acdf296bb34cda/src/mcp/client/auth/utils.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3075/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-1aed3def34492fb7eafa6e7aee6e9cc9973171b28c9574dc5c5b288a09878996
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-1aed3def34492fb7eafa6e7aee6e9cc9973171b28c9574dc5c5b288a09878996
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-1aed3def34492fb7eafa6e7aee6e9cc9973171b28c9574dc5c5b288a09878996
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-1aed3def34492fb7eafa6e7aee6e9cc9973171b28c9574dc5c5b288a09878996
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-1aed3def34492fb7eafa6e7aee6e9cc9973171b28c9574dc5c5b288a09878996
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-1aed3def34492fb7eafa6e7aee6e9cc9973171b28c9574dc5c5b288a09878996
https://github.com/modelcontextprotocol/python-sdk/pull/3075/files#diff-1aed3def34492fb7eafa6e7aee6e9cc9973171b28c9574dc5c5b288a09878996
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3075/files
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.