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: 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:671cea83-0053-bb48-68f5-2c18d5897142
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA9EA:1F8F:9A9631:CA733C:6B013595
html-safe-nonce76e44613953a17294f4b54eab820084cac9c078c8e6a8462b1dd6c16b5924186
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOUVBOjFGOEY6OUE5NjMxOkNBNzMzQzo2QjAxMzU5NSIsInZpc2l0b3JfaWQiOiI4ODU1NDEwNTEyMzg1NjE5MzQ5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac448b578784e61540c442f0ea3d49bb655ecfd545fc09277fd3f4f4c0fac4dd1b
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
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/3635/files#start-of-content
https://github.com/
Sign inhttps://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://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F3635%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/3635/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3635/files
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/3635/files
modelcontextprotocolhttps://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Codehttps://github.com/modelcontextprotocol/python-sdk
Issues315 (315)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
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
3601-pause-the-clockhttps://github.com/modelcontextprotocol/python-sdk/tree/3601-pause-the-clock
Conversation 9 https://github.com/modelcontextprotocol/python-sdk/pull/3635
Commits 1 https://github.com/modelcontextprotocol/python-sdk/pull/3635/commits
Checks 37 https://github.com/modelcontextprotocol/python-sdk/pull/3635/checks
Files changed https://github.com/modelcontextprotocol/python-sdk/pull/3635/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3635/files
Stop counting an interactive OAuth login against request timeouts https://github.com/modelcontextprotocol/python-sdk/pull/3635/files#top
Show all changes 1 commit https://github.com/modelcontextprotocol/python-sdk/pull/3635/files
fbf4943 Stop counting an interactive OAuth login against request timeouts maxisbey Oct 2, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/3635/commits/fbf494395f8577ae05dadab7ba79b6ba25a2a790
Clear filters https://github.com/modelcontextprotocol/python-sdk/pull/3635/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3635/files
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3635/files
oauth2.py https://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
_request_clock.py https://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-bbbff44135d945de5c0477487bbb57a3d550253eb31d23a92a0643564c122a53
jsonrpc_dispatcher.py https://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-3d8fb73fa8b126691302c15bb63bbc44a3a0e9338a17f14b3b4ea1d97bb10c2c
_requirements.py https://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-c12ce54cbf13a11daa3f93343e5df8c89ca2b25d0f20f00b5408a2402a223228
_harness.py https://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-4ac9813efeab1673bfd09096e1374c2d00a185f7948b812eefeb565db6c23247
test_login_time.py https://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-d1efaa3d6fc0ad7670b13a4fb3a7d432aaf42a46032c5d3a48fdf57fb459d8c0
test_request_clock.py https://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-4289fc196898a9fd8d16dad55d58a0477bd1397ecae53abdc1591dd1da1484df
src/mcp/client/auth/oauth2.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
View file https://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://github.com/modelcontextprotocol/python-sdk/pull/3635/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
https://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
https://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
claudehttps://github.com/apps/claude
Oct 2, 2026https://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://github.com/modelcontextprotocol/python-sdk/pull/3635/files
claudehttps://github.com/apps/claude
Oct 2, 2026https://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://github.com/modelcontextprotocol/python-sdk/pull/3635/files
https://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
src/mcp/shared/_request_clock.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-bbbff44135d945de5c0477487bbb57a3d550253eb31d23a92a0643564c122a53
View file https://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://github.com/modelcontextprotocol/python-sdk/pull/3635/{{ revealButtonHref }}
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
Oct 2, 2026https://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://github.com/modelcontextprotocol/python-sdk/pull/3635/files
claudehttps://github.com/apps/claude
Oct 2, 2026https://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://github.com/modelcontextprotocol/python-sdk/pull/3635/files
claudehttps://github.com/apps/claude
Oct 2, 2026https://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://github.com/modelcontextprotocol/python-sdk/pull/3635/files
src/mcp/shared/jsonrpc_dispatcher.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-3d8fb73fa8b126691302c15bb63bbc44a3a0e9338a17f14b3b4ea1d97bb10c2c
View file https://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://github.com/modelcontextprotocol/python-sdk/pull/3635/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-3d8fb73fa8b126691302c15bb63bbc44a3a0e9338a17f14b3b4ea1d97bb10c2c
https://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-3d8fb73fa8b126691302c15bb63bbc44a3a0e9338a17f14b3b4ea1d97bb10c2c
https://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-3d8fb73fa8b126691302c15bb63bbc44a3a0e9338a17f14b3b4ea1d97bb10c2c
claudehttps://github.com/apps/claude
Oct 2, 2026https://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://github.com/modelcontextprotocol/python-sdk/pull/3635/files
https://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-3d8fb73fa8b126691302c15bb63bbc44a3a0e9338a17f14b3b4ea1d97bb10c2c
https://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-3d8fb73fa8b126691302c15bb63bbc44a3a0e9338a17f14b3b4ea1d97bb10c2c
tests/interaction/_requirements.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-c12ce54cbf13a11daa3f93343e5df8c89ca2b25d0f20f00b5408a2402a223228
View file https://github.com/modelcontextprotocol/python-sdk/blob/fbf494395f8577ae05dadab7ba79b6ba25a2a790/tests/interaction/_requirements.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3635/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-c12ce54cbf13a11daa3f93343e5df8c89ca2b25d0f20f00b5408a2402a223228
https://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-c12ce54cbf13a11daa3f93343e5df8c89ca2b25d0f20f00b5408a2402a223228
https://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-c12ce54cbf13a11daa3f93343e5df8c89ca2b25d0f20f00b5408a2402a223228
https://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-c12ce54cbf13a11daa3f93343e5df8c89ca2b25d0f20f00b5408a2402a223228
tests/interaction/auth/_harness.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-4ac9813efeab1673bfd09096e1374c2d00a185f7948b812eefeb565db6c23247
View file https://github.com/modelcontextprotocol/python-sdk/blob/fbf494395f8577ae05dadab7ba79b6ba25a2a790/tests/interaction/auth/_harness.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/3635/{{ revealButtonHref }}
https://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-4ac9813efeab1673bfd09096e1374c2d00a185f7948b812eefeb565db6c23247
https://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-4ac9813efeab1673bfd09096e1374c2d00a185f7948b812eefeb565db6c23247
https://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-4ac9813efeab1673bfd09096e1374c2d00a185f7948b812eefeb565db6c23247
https://github.com/modelcontextprotocol/python-sdk/pull/3635/files#diff-4ac9813efeab1673bfd09096e1374c2d00a185f7948b812eefeb565db6c23247
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/3635/files
Please reload this pagehttps://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

Viewport: width=device-width


URLs of crawlers that visited me.