René's URL Explorer Experiment


Title: [v1.x] Follow redirects only within the MCP endpoint's origin by maxisbey · Pull Request #3448 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: [v1.x] Follow redirects only within the MCP endpoint's origin by maxisbey · Pull Request #3448 · modelcontextprotocol/python-sdk

X Title: [v1.x] Follow redirects only within the MCP endpoint's origin by maxisbey · Pull Request #3448 · modelcontextprotocol/python-sdk

Description: v1.x backport of #3397. streamable_http_client / streamablehttp_client and sse_client on 1.x now follow a redirect only when it stays on the endpoint's origin and keeps the request method, whoever built the httpx.AsyncClient, and OAuthClientProvider applies the same rule to the requests its flow makes. Motivation and Context Same as #3397. On 1.x the default client from create_mcp_http_client followed every redirect, so a Location naming another host moved the connection there with everything configured for the endpoint (headers, auth, request body), while a caller-supplied client followed none unless it set follow_redirects=True, which the examples did. The transports now send each request with following off and re-send httpx's own next request only when it stays on the origin (same scheme, host and port, or http→https on the same host with default ports), keeps the method (307/308; any status for a GET) and carries no userinfo, up to the client's max_redirects. Anything else is handed back unfollowed and no request is made to its location. Differences from #3397: 1.x has no per-request error path for HTTP failures: a non-2xx answer to a message POST raises httpx.HTTPStatusError inside the transport's task group and ends the connection. An unfollowed redirect does the same, with the message from #3397 ("Redirect to … not followed; use that URL as the endpoint if it is the intended server", and the TLS-terminating-proxy explanation for an https→http downgrade) in place of httpx's generic redirect text. The standalone GET stream logs it and stops, as on main. httpx / httpx-sse instead of httpx2: the SSE helper adds the two headers aconnect_sse adds and yields httpx_sse.EventSource. Checked against httpx 0.28.1 and 0.27.2 (the lowest-direct floor). Only OAuthClientProvider defines an auth flow on 1.x (the client-credentials providers subclass it), so it is the only class moved onto the RedirectAwareAuth base; async_auth_flow keeps its name and signature. sse_client now also closes its receive streams in its finally; before, failing to connect (which the new test does on purpose) left them to the garbage collector. Docs: a short "HTTP redirects" section in docs/client.md; docs/authorization.md and the examples drop follow_redirects=True. 1.x has no deploy page, so the proxy hint lives in that section. How Has This Been Tested? tests/shared/test_httpx_utils.py (ported): within-origin, relative, host-case/port-normalised and https-upgrade redirects followed with method and body and the intermediate response closed; other host / port / subdomain / scheme, https→http, 301/302/303-on-POST and userinfo locations handed back with no request to the location; max_redirects budget; a follow_redirects=True client is still scoped; SSE headers; auth sub-requests inherit no-follow. Transport tests: Starlette's /mcp → /mcp/ 307 over a real uvicorn server is followed with a caller-supplied client at httpx's default; a 307 to another origin with a follow_redirects=True client ends the connection with HTTPStatusError carrying the message above and that origin is never contacted; GET stream gives up after one request; resumption GET; the three message texts; sse_client follows /sse → /sse/ and refuses another origin. OAuth: a flow request follows a same-origin redirect, hands back a cross-origin one, stops after five hops; a 3xx discovery answer means "try the next URL"; the registration error names the redirect without userinfo or query. The behaviour tests fail on v1.x and pass here (the helper module imports names v1.x lacks, so it cannot be collected there). By hand over loopback with uvicorn: the Mount 307 is followed and call_tool works for the default client, a no-follow client, a follow_redirects=True client and streamablehttp_client(headers=…); an endpoint that 307s to another port fails with the error above for all four and for sse_client, and the other port logs nothing (on v1.x it receives the initialize POST with the caller's headers); 301-on-POST and a userinfo Location are not followed; a same-origin loop stops at max_redirects; an OAuth flow whose first metadata URL 307s to another port skips it and whose registration endpoint 308s to /register/ registers normally. Full suite with coverage, pyright, ruff, markdownlint and mkdocs build --strict pass locally. Breaking Changes A redirect from the MCP endpoint to another origin, or a 301/302/303 answering a POST, is no longer followed; connecting or the call fails with httpx.HTTPStatusError as for any non-2xx response. The http→https allowance applies only when neither side names a non-default port. follow_redirects on a caller-supplied client is not consulted for MCP requests; same-origin redirects are followed regardless of it, so the trailing-slash case no longer needs the flag. OAuthClientProvider's own requests follow the same rule; a 3xx from a metadata URL is treated like a 4xx. A redirect loop ends at the client's max_redirects with HTTPStatusError rather than httpx.TooManyRedirects. The private create_mcp_http_client no longer enables follow_redirects. 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 am assigned to the linked issue (or it is labeled help wanted, or I'm a maintainer) I have disclosed any AI assistance and can explain the change in my own words 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 examples/servers/simple-tool fetched arbitrary pages through the private client factory and relied on it following redirects; it now builds its own httpx.AsyncClient(follow_redirects=True). The session-termination-204 test patched AsyncClient.delete, which the transport no longer calls, so it wraps the HTTP transport instead. AI Disclaimer

Open Graph Description: v1.x backport of #3397. streamable_http_client / streamablehttp_client and sse_client on 1.x now follow a redirect only when it stays on the endpoint's origin and keeps the request method, whoe...

X Description: v1.x backport of #3397. streamable_http_client / streamablehttp_client and sse_client on 1.x now follow a redirect only when it stays on the endpoint's origin and keeps the request method, ...

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

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:2896aac1-2c53-7c3b-8696-2f1f5b1d90cb
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9BA6:2D96F1:10B2AFF:162B68E:6B010F5C
html-safe-nonce4fff1ef4c073fdf1d3fc6fc53ab14eb13caf12461978bd68cc40e599f2a6eb03
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QkE2OjJEOTZGMToxMEIyQUZGOjE2MkI2OEU6NkIwMTBGNUMiLCJ2aXNpdG9yX2lkIjoiMzYwNjA5Njk4MjA4ODY4MzM1NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacbf2bb8111980b1d199305edec78f298eb218f6e4fa688668865294bc686e9fd7
hovercard-subject-tagpull_request:4447502157
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/3448/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:altv1.x backport of #3397. streamable_http_client / streamablehttp_client and sse_client on 1.x now follow a redirect only when it stays on the endpoint's origin and keeps the request method, whoe...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
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
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/3448/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3448%2Ffiles
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%2F3448%2Ffiles
Sign uphttps://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/3448/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3448/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3448/files
modelcontextprotocolhttps://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Codehttps://github.com/modelcontextprotocol/python-sdk
Issues308 (308)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
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
v1.xhttps://github.com/modelcontextprotocol/python-sdk/tree/v1.x
same-origin-redirects-v1xhttps://github.com/modelcontextprotocol/python-sdk/tree/same-origin-redirects-v1x
Conversation 20 https://github.com/modelcontextprotocol/python-sdk/pull/3448
Commits 3 https://github.com/modelcontextprotocol/python-sdk/pull/3448/commits
Checks 33 https://github.com/modelcontextprotocol/python-sdk/pull/3448/checks
Files changed 14 https://github.com/modelcontextprotocol/python-sdk/pull/3448/files
[v1.x] Follow redirects only within the MCP endpoint's origin https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#top
Show all changes 3 commits https://github.com/modelcontextprotocol/python-sdk/pull/3448/files
0a2fe62 [v1.x] Follow redirects only within the MCP endpoint's origin maxisbey Sep 4, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3448/commits/0a2fe62cdee1b370af6dd93212802e513f6fc03a
0cff7e3 tests: keep assertions inside the awaited helpers maxisbey Sep 4, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3448/commits/0cff7e3299accd5137f2bcab40ca9a7ff31b3513
113c83f Keep following a relative redirect when the endpoint URL carries user… maxisbey Sep 4, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3448/commits/113c83f97350fe7abc2124d5c682741ee212290e
Clear filters https://github.com/modelcontextprotocol/python-sdk/pull/3448/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3448/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3448/files
authorization.md https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-ec2c5421acf6c04095584eec725f0c75f375b5177b64b45f7f6d51df6c691a4c
client.md https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-5323dcc2b5e999ce4ad5b916d9f63514e20a8d40d86ff16d89a1c21aad7179f0
main.py https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-967e8584a0021a6f5b81aa9ef3f1e549efd761fe3fb4733e5212ce027e0bcfce
server.py https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-ba52c682d4e3fbfa81efb481c7df117341f6502fcf7b99f0722448f0ffbfb9bd
oauth_client.py https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-027c2794f55d97303e0b285c161c1f068be0f1ae44624885ddb1664bee9edd32
oauth2.py https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
utils.py https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-1aed3def34492fb7eafa6e7aee6e9cc9973171b28c9574dc5c5b288a09878996
sse.py https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
streamable_http.py https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
_httpx_utils.py https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-c4baff3567caa38efcdfd8b6a554abe19fcf6429c80e6e693ed1a847a7aec431
test_auth.py https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-f083d075f463e8b1ecfa6b931c33288c3d09b00ee3af3e5f74df16b7e75c3ab1
test_httpx_utils.py https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-b0498e819959a6703b5a7ae1a5d5738d0779b500589c6fd4eca497bfa0fe32bb
test_sse.py https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-a2934f5f6ec610dff6774352c41b8c697b539614667643d69fd67f6fc6d7765e
test_streamable_http.py https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-57d1f3c64af36960aa61b1d77387fb6201b90fbc2f3d606bf2761315ce618cc5
docs/authorization.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-ec2c5421acf6c04095584eec725f0c75f375b5177b64b45f7f6d51df6c691a4c
View file https://github.com/modelcontextprotocol/python-sdk/blob/113c83f97350fe7abc2124d5c682741ee212290e/docs/authorization.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3448/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-ec2c5421acf6c04095584eec725f0c75f375b5177b64b45f7f6d51df6c691a4c
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-ec2c5421acf6c04095584eec725f0c75f375b5177b64b45f7f6d51df6c691a4c
docs/client.mdhttps://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-5323dcc2b5e999ce4ad5b916d9f63514e20a8d40d86ff16d89a1c21aad7179f0
View file https://github.com/modelcontextprotocol/python-sdk/blob/113c83f97350fe7abc2124d5c682741ee212290e/docs/client.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3448/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-5323dcc2b5e999ce4ad5b916d9f63514e20a8d40d86ff16d89a1c21aad7179f0
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3448/files
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-5323dcc2b5e999ce4ad5b916d9f63514e20a8d40d86ff16d89a1c21aad7179f0
examples/clients/simple-auth-client/mcp_simple_auth_client/main.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-967e8584a0021a6f5b81aa9ef3f1e549efd761fe3fb4733e5212ce027e0bcfce
View file https://github.com/modelcontextprotocol/python-sdk/blob/113c83f97350fe7abc2124d5c682741ee212290e/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/3448/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-967e8584a0021a6f5b81aa9ef3f1e549efd761fe3fb4733e5212ce027e0bcfce
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-967e8584a0021a6f5b81aa9ef3f1e549efd761fe3fb4733e5212ce027e0bcfce
examples/servers/simple-tool/mcp_simple_tool/server.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-ba52c682d4e3fbfa81efb481c7df117341f6502fcf7b99f0722448f0ffbfb9bd
View file https://github.com/modelcontextprotocol/python-sdk/blob/113c83f97350fe7abc2124d5c682741ee212290e/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/3448/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-ba52c682d4e3fbfa81efb481c7df117341f6502fcf7b99f0722448f0ffbfb9bd
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-ba52c682d4e3fbfa81efb481c7df117341f6502fcf7b99f0722448f0ffbfb9bd
examples/snippets/clients/oauth_client.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-027c2794f55d97303e0b285c161c1f068be0f1ae44624885ddb1664bee9edd32
View file https://github.com/modelcontextprotocol/python-sdk/blob/113c83f97350fe7abc2124d5c682741ee212290e/examples/snippets/clients/oauth_client.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3448/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-027c2794f55d97303e0b285c161c1f068be0f1ae44624885ddb1664bee9edd32
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-027c2794f55d97303e0b285c161c1f068be0f1ae44624885ddb1664bee9edd32
src/mcp/client/auth/oauth2.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
View file https://github.com/modelcontextprotocol/python-sdk/blob/113c83f97350fe7abc2124d5c682741ee212290e/src/mcp/client/auth/oauth2.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3448/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
src/mcp/client/auth/utils.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-1aed3def34492fb7eafa6e7aee6e9cc9973171b28c9574dc5c5b288a09878996
View file https://github.com/modelcontextprotocol/python-sdk/blob/113c83f97350fe7abc2124d5c682741ee212290e/src/mcp/client/auth/utils.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3448/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-1aed3def34492fb7eafa6e7aee6e9cc9973171b28c9574dc5c5b288a09878996
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-1aed3def34492fb7eafa6e7aee6e9cc9973171b28c9574dc5c5b288a09878996
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-1aed3def34492fb7eafa6e7aee6e9cc9973171b28c9574dc5c5b288a09878996
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-1aed3def34492fb7eafa6e7aee6e9cc9973171b28c9574dc5c5b288a09878996
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-1aed3def34492fb7eafa6e7aee6e9cc9973171b28c9574dc5c5b288a09878996
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-1aed3def34492fb7eafa6e7aee6e9cc9973171b28c9574dc5c5b288a09878996
src/mcp/client/sse.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
View file https://github.com/modelcontextprotocol/python-sdk/blob/113c83f97350fe7abc2124d5c682741ee212290e/src/mcp/client/sse.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3448/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3448/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3448/files
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336
src/mcp/client/streamable_http.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
View file https://github.com/modelcontextprotocol/python-sdk/blob/113c83f97350fe7abc2124d5c682741ee212290e/src/mcp/client/streamable_http.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3448/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3448/files
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3448/files
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
https://github.com/modelcontextprotocol/python-sdk/pull/3448/files#diff-e8c18a3067a9b157c5c39a947f53d395afeb00e7026dad2d5a279011da943b5e
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3448/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3448/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.