René's URL Explorer Experiment


Title: Stop counting an interactive OAuth login against request timeouts by maxisbey · Pull Request #3635 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Stop counting an interactive OAuth login against request timeouts by maxisbey · Pull Request #3635 · modelcontextprotocol/python-sdk

X Title: Stop counting an interactive OAuth login against request timeouts by maxisbey · Pull Request #3635 · modelcontextprotocol/python-sdk

Description: Fixes #3601 A request's timeout was also counting the time a person spends in the browser during an interactive OAuth login. For the server/discover probe that Client(mode="auto") sends on connect, a login longer than its 10 seconds looked like a legacy server, so the client settled on 2025-11-25 against a server that speaks 2026-07-28. The timeout now stops counting while OAuthClientProvider waits on redirect_handler and callback_handler, and picks up again with whatever was left. The probe keeps its 10 seconds, and a server that never answers is handled as before. This is kept deliberately small. The clock lives in a private module and isn't public API. Where a request's timeout lives is likely to move as the client transport and dispatcher work (#3517) takes shape, and this will be looked at again alongside it. Worth knowing: A request timeout no longer ends a login nobody finishes. That takes a limit inside callback_handler, or cancelling the caller. Only OAuthClientProvider is covered. A custom httpx2.Auth, like the one in the issue's example script, is still counted. The tests run the real provider on a virtual clock: a login that outlasts the 10 seconds negotiates 2026-07-28, and a silent server still falls back at 10 seconds. AI Disclaimer

Open Graph Description: Fixes #3601 A request's timeout was also counting the time a person spends in the browser during an interactive OAuth login. For the server/discover probe that Client(mode="auto") sen...

X Description: Fixes #3601 A request's timeout was also counting the time a person spends in the browser during an interactive OAuth login. For the server/discover probe that Client(mode="auto&am...

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

X: @github

direct link

Domain: redirect.github.com

IPv4 address: 140.82.114.4

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:0f70f228-29ca-1182-003e-0417eee98e48
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDAD6:317DD2:C2054:10F26D:6B056E00
html-safe-nonce167636219046bd46ae9f5647c7dd491120d1bc168571920bd1672215eab3e901
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUQ2OjMxN0REMjpDMjA1NDoxMEYyNkQ6NkIwNTZFMDAiLCJ2aXNpdG9yX2lkIjoiNjk1MTc4MDc3NTE0NjkwOTE4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac5073922c21bf3380ac5f277093e0617459ac520ea2fb51f7afd91a5b97eb88b9
hovercard-subject-tagpull_request:4721598809
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/3635/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:altFixes #3601 A request's timeout was also counting the time a person spends in the browser during an interactive OAuth login. For the server/discover probe that Client(mode="auto") sen...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None9b4256ac5f3e310e7945ef5b71c9cb9e264357b1eb20e91d369ed6502a4c486c
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
releasef089e689ad324655ac44bf6cdbc04d976105b374
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#start-of-content
https://redirect.github.com/
Sign inhttps://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3635%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://redirect.github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3635%2Ffiles
Sign uphttps://redirect.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://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files
Reloadhttps://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files
Reloadhttps://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files
modelcontextprotocolhttps://redirect.github.com/modelcontextprotocol
python-sdkhttps://redirect.github.com/modelcontextprotocol/python-sdk
Codehttps://redirect.github.com/modelcontextprotocol/python-sdk
Issues320 (320)https://redirect.github.com/modelcontextprotocol/python-sdk/issues
Pull requests112 (112)https://redirect.github.com/modelcontextprotocol/python-sdk/pulls
Actionshttps://redirect.github.com/modelcontextprotocol/python-sdk/actions
Projectshttps://redirect.github.com/modelcontextprotocol/python-sdk/projects
Security and quality12 (12)https://redirect.github.com/modelcontextprotocol/python-sdk/security
Insightshttps://redirect.github.com/modelcontextprotocol/python-sdk/insights
Sign up for GitHub https://redirect.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://redirect.github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose
maxisbeyhttps://redirect.github.com/maxisbey
mainhttps://redirect.github.com/modelcontextprotocol/python-sdk/tree/main
3601-pause-the-clockhttps://redirect.github.com/modelcontextprotocol/python-sdk/tree/3601-pause-the-clock
Conversation 9 https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635
Commits 1 https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/commits
Checks 37 https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/checks
Files changed 7 https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files
Stop counting an interactive OAuth login against request timeouts https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#top
Show all changes 1 commit https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files
fbf4943 Stop counting an interactive OAuth login against request timeouts maxisbey Oct 2, 2026 https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/commits/fbf494395f8577ae05dadab7ba79b6ba25a2a790
Clear filters https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files
Please reload this pagehttps://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files
Please reload this pagehttps://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files
oauth2.py https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
_request_clock.py https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-bbbff44135d945de5c0477487bbb57a3d550253eb31d23a92a0643564c122a53
jsonrpc_dispatcher.py https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-3d8fb73fa8b126691302c15bb63bbc44a3a0e9338a17f14b3b4ea1d97bb10c2c
_requirements.py https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-c12ce54cbf13a11daa3f93343e5df8c89ca2b25d0f20f00b5408a2402a223228
_harness.py https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-4ac9813efeab1673bfd09096e1374c2d00a185f7948b812eefeb565db6c23247
test_login_time.py https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-d1efaa3d6fc0ad7670b13a4fb3a7d432aaf42a46032c5d3a48fdf57fb459d8c0
test_request_clock.py https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-4289fc196898a9fd8d16dad55d58a0477bd1397ecae53abdc1591dd1da1484df
src/mcp/client/auth/oauth2.pyhttps://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
View file https://redirect.github.com/modelcontextprotocol/python-sdk/blob/fbf494395f8577ae05dadab7ba79b6ba25a2a790/src/mcp/client/auth/oauth2.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/{{ revealButtonHref }}
https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
claudehttps://redirect.github.com/apps/claude
Oct 2, 2026https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#r4170059425
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files
claudehttps://redirect.github.com/apps/claude
Oct 2, 2026https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#r4170059400
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files
https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
src/mcp/shared/_request_clock.pyhttps://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-bbbff44135d945de5c0477487bbb57a3d550253eb31d23a92a0643564c122a53
View file https://redirect.github.com/modelcontextprotocol/python-sdk/blob/fbf494395f8577ae05dadab7ba79b6ba25a2a790/src/mcp/shared/_request_clock.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/{{ revealButtonHref }}
cubic-dev-aihttps://redirect.github.com/apps/cubic-dev-ai
Oct 2, 2026https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#r4169962518
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files
claudehttps://redirect.github.com/apps/claude
Oct 2, 2026https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#r4170059393
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files
claudehttps://redirect.github.com/apps/claude
Oct 2, 2026https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#r4170059429
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files
src/mcp/shared/jsonrpc_dispatcher.pyhttps://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-3d8fb73fa8b126691302c15bb63bbc44a3a0e9338a17f14b3b4ea1d97bb10c2c
View file https://redirect.github.com/modelcontextprotocol/python-sdk/blob/fbf494395f8577ae05dadab7ba79b6ba25a2a790/src/mcp/shared/jsonrpc_dispatcher.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/{{ revealButtonHref }}
https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-3d8fb73fa8b126691302c15bb63bbc44a3a0e9338a17f14b3b4ea1d97bb10c2c
https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-3d8fb73fa8b126691302c15bb63bbc44a3a0e9338a17f14b3b4ea1d97bb10c2c
https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-3d8fb73fa8b126691302c15bb63bbc44a3a0e9338a17f14b3b4ea1d97bb10c2c
claudehttps://redirect.github.com/apps/claude
Oct 2, 2026https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#r4170059408
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
#3601https://github.com/modelcontextprotocol/python-sdk/issues/3601
#3517https://github.com/modelcontextprotocol/python-sdk/pull/3517
Please reload this pagehttps://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files
https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-3d8fb73fa8b126691302c15bb63bbc44a3a0e9338a17f14b3b4ea1d97bb10c2c
https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-3d8fb73fa8b126691302c15bb63bbc44a3a0e9338a17f14b3b4ea1d97bb10c2c
tests/interaction/_requirements.pyhttps://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-c12ce54cbf13a11daa3f93343e5df8c89ca2b25d0f20f00b5408a2402a223228
View file https://redirect.github.com/modelcontextprotocol/python-sdk/blob/fbf494395f8577ae05dadab7ba79b6ba25a2a790/tests/interaction/_requirements.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/{{ revealButtonHref }}
https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-c12ce54cbf13a11daa3f93343e5df8c89ca2b25d0f20f00b5408a2402a223228
https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-c12ce54cbf13a11daa3f93343e5df8c89ca2b25d0f20f00b5408a2402a223228
https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-c12ce54cbf13a11daa3f93343e5df8c89ca2b25d0f20f00b5408a2402a223228
https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-c12ce54cbf13a11daa3f93343e5df8c89ca2b25d0f20f00b5408a2402a223228
tests/interaction/auth/_harness.pyhttps://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-4ac9813efeab1673bfd09096e1374c2d00a185f7948b812eefeb565db6c23247
View file https://redirect.github.com/modelcontextprotocol/python-sdk/blob/fbf494395f8577ae05dadab7ba79b6ba25a2a790/tests/interaction/auth/_harness.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/{{ revealButtonHref }}
https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-4ac9813efeab1673bfd09096e1374c2d00a185f7948b812eefeb565db6c23247
https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-4ac9813efeab1673bfd09096e1374c2d00a185f7948b812eefeb565db6c23247
https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-4ac9813efeab1673bfd09096e1374c2d00a185f7948b812eefeb565db6c23247
https://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-4ac9813efeab1673bfd09096e1374c2d00a185f7948b812eefeb565db6c23247
Please reload this pagehttps://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/files
Please reload this pagehttps://redirect.github.com/modelcontextprotocol/python-sdk/pull/3635/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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.