René's URL Explorer Experiment


Title: fix(oauth): narrow context.lock scope in async_auth_flow (rebase of #2660 by @peisuke, closes #2847) by Bartok9 · Pull Request #2858 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: fix(oauth): narrow context.lock scope in async_auth_flow (rebase of #2660 by @peisuke, closes #2847) by Bartok9 · Pull Request #2858 · modelcontextprotocol/python-sdk

X Title: fix(oauth): narrow context.lock scope in async_auth_flow (rebase of #2660 by @peisuke, closes #2847) by Bartok9 · Pull Request #2858 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - fix(oauth): narrow context.lock scope in async_auth_flow (rebase of #2660 by @peisuke, closes #2847) by Bartok9 · Pull Request #2858 · modelcontextprotocol/python-sdk

Open Graph Description: Summary Conflict-free salvage of #2660 by @peisuke onto current main, opened as a fresh, mergeable PR so the fix can land without waiting on the original draft to be un-conflicted. All credit for t...

X Description: Summary Conflict-free salvage of #2660 by @peisuke onto current main, opened as a fresh, mergeable PR so the fix can land without waiting on the original draft to be un-conflicted. All credit for t...

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:de0dd5f4-a4e6-6d1a-f5bc-567fb8e22633
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idD7B6:21AC3F:18A8204:1F3F958:6B0128E4
html-safe-nonce560d335713ebe654bc0c30f3191b3a539a3c1775fa9c8d977795291929ee9441
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0I2OjIxQUMzRjoxOEE4MjA0OjFGM0Y5NTg6NkIwMTI4RTQiLCJ2aXNpdG9yX2lkIjoiODg0MDg2NDcyMDg3NDQ0OTEyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacc30c6ebeddd267a5f6206d66ffaf09493a4821d3f04e2c9e46a34132b6669840
hovercard-subject-tagpull_request:3860121384
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/modelcontextprotocol/python-sdk/2858/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/3b78b76a4137d8bb348a20cb89fd02c0fc852d5ae92a6a68088048e8833bd55e/modelcontextprotocol/python-sdk/pull/2858
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3b78b76a4137d8bb348a20cb89fd02c0fc852d5ae92a6a68088048e8833bd55e/modelcontextprotocol/python-sdk/pull/2858
og:image:altSummary Conflict-free salvage of #2660 by @peisuke onto current main, opened as a fresh, mergeable PR so the fix can land without waiting on the original draft to be un-conflicted. All credit for t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameBartok9
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-cache
go-importgithub.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git
octolytics-dimension-user_id182288589
octolytics-dimension-user_loginmodelcontextprotocol
octolytics-dimension-repository_id862584018
octolytics-dimension-repository_nwomodelcontextprotocol/python-sdk
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id862584018
octolytics-dimension-repository_network_root_nwomodelcontextprotocol/python-sdk
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/2858#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2858
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%2F2858
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2858
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2858
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2858
modelcontextprotocolhttps://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Codehttps://github.com/modelcontextprotocol/python-sdk
Issues313 (313)https://github.com/modelcontextprotocol/python-sdk/issues
Pull requests112 (112)https://github.com/modelcontextprotocol/python-sdk/pulls
Actionshttps://github.com/modelcontextprotocol/python-sdk/actions
Projectshttps://github.com/modelcontextprotocol/python-sdk/projects
Security and quality12 (12)https://github.com/modelcontextprotocol/python-sdk/security
Insightshttps://github.com/modelcontextprotocol/python-sdk/insights
https://github.com/modelcontextprotocol/python-sdk
Bartok9https://github.com/Bartok9
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
Bartok9:salvage/2660-oauth-lock-rebasehttps://github.com/Bartok9/python-sdk/tree/salvage/2660-oauth-lock-rebase
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/2858
Commits6 (6)https://github.com/modelcontextprotocol/python-sdk/pull/2858/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/2858/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/2858/files
fix(oauth): narrow context.lock scope in async_auth_flow (rebase of #2660 by @peisuke, closes #2847)https://github.com/modelcontextprotocol/python-sdk/pull/2858#top
Bartok9https://github.com/Bartok9
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
Bartok9:salvage/2660-oauth-lock-rebasehttps://github.com/Bartok9/python-sdk/tree/salvage/2660-oauth-lock-rebase
https://github.com/Bartok9
Bartok9https://github.com/Bartok9
Jun 13, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2858#issue-4655774482
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2858
#2660https://github.com/modelcontextprotocol/python-sdk/pull/2660
@peisukehttps://github.com/peisuke
@peisukehttps://github.com/peisuke
#2847https://github.com/modelcontextprotocol/python-sdk/issues/2847
#2644https://github.com/modelcontextprotocol/python-sdk/issues/2644
#2847https://github.com/modelcontextprotocol/python-sdk/issues/2847
#2660https://github.com/modelcontextprotocol/python-sdk/pull/2660
#2847https://github.com/modelcontextprotocol/python-sdk/issues/2847
#2660https://github.com/modelcontextprotocol/python-sdk/pull/2660
#2660https://github.com/modelcontextprotocol/python-sdk/pull/2660
@peisukehttps://github.com/peisuke
@peisukehttps://github.com/peisuke
@peisukehttps://github.com/peisuke
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2858
fix(oauth): narrow context.lock scope in async_auth_flow #2660 https://github.com/modelcontextprotocol/python-sdk/pull/2660
Bug: anyio.Lock in async_auth_flow causes RuntimeError under concurrent OAuth MCP connections #2847 https://github.com/modelcontextprotocol/python-sdk/issues/2847
feat(auth): proactive OAuth token refresh with jitter to reduce concurrent refresh spikes #2859 https://github.com/modelcontextprotocol/python-sdk/pull/2859
https://github.com/Bartok9
Bartok9https://github.com/Bartok9
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/425161d4b4bc822fcf4d224c41be0a172a940d12..a9be0b9f359c243d380628eb30369ceb2f42f18a
425161dhttps://github.com/modelcontextprotocol/python-sdk/commit/425161d4b4bc822fcf4d224c41be0a172a940d12
a9be0b9https://github.com/modelcontextprotocol/python-sdk/commit/a9be0b9f359c243d380628eb30369ceb2f42f18a
Compare https://github.com/modelcontextprotocol/python-sdk/compare/425161d4b4bc822fcf4d224c41be0a172a940d12..a9be0b9f359c243d380628eb30369ceb2f42f18a
June 23, 2026 06:06https://github.com/modelcontextprotocol/python-sdk/pull/2858#event-27077289001
https://github.com/diaanhw
diaanhwhttps://github.com/diaanhw
Jul 8, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2858#ref-issue-4579751666
[Bug]: OAuth-backed MCP server permanently deadlocks after keepalive reconnect: auth-flow generator's lock is released cross-task. NousResearch/hermes-agent#38193 https://github.com/NousResearch/hermes-agent/issues/38193
https://github.com/stayclosetothequestion
stayclosetothequestionhttps://github.com/stayclosetothequestion
Jul 29, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2858#ref-issue-5008752248
Bug: OAuth provider holds context.lock for the whole request, so the standalone GET SSE stream stalls the first tools/call by ~15s #3209 https://github.com/modelcontextprotocol/python-sdk/issues/3209
https://github.com/ctaylor86
ctaylor86https://github.com/ctaylor86
Aug 4, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2858#ref-pullrequest-5056075736
fix(oauth): avoid lock contention for long-running requests #3243 https://github.com/modelcontextprotocol/python-sdk/pull/3243
https://github.com/ctaylor86
ctaylor86https://github.com/ctaylor86
Aug 4, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2858#issuecomment-5173965679
#3243https://github.com/modelcontextprotocol/python-sdk/pull/3243
fix(oauth): avoid lock contention for long-running requests #3243https://github.com/modelcontextprotocol/python-sdk/pull/3243
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2858
https://github.com/Bartok9
Bartok9https://github.com/Bartok9
Aug 4, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2858#issuecomment-5173976731
@ctaylor86https://github.com/ctaylor86
#3243https://github.com/modelcontextprotocol/python-sdk/pull/3243
fix(oauth): avoid lock contention for long-running requests #3243https://github.com/modelcontextprotocol/python-sdk/pull/3243
fix(oauth): narrow context.lock scope in async_auth_flow #2660https://github.com/modelcontextprotocol/python-sdk/pull/2660
@peisukehttps://github.com/peisuke
#2660https://github.com/modelcontextprotocol/python-sdk/pull/2660
#3243https://github.com/modelcontextprotocol/python-sdk/pull/3243
#2858https://github.com/modelcontextprotocol/python-sdk/pull/2858
#3243https://github.com/modelcontextprotocol/python-sdk/pull/3243
#2660https://github.com/modelcontextprotocol/python-sdk/pull/2660
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2858
https://github.com/guptaishaan
guptaishaanhttps://github.com/guptaishaan
Aug 4, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2858#ref-pullrequest-5064800740
Release context.lock before the protected request is sent #3252 https://github.com/modelcontextprotocol/python-sdk/pull/3252
Bartok9https://github.com/Bartok9
Aug 6, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2858#ref-commit-16e003c
https://github.com/Bartok9
fix: reapplyhttps://github.com/Bartok9/python-sdk/commit/16e003c107cf3a0cb2685c5c0c0a57171dde416d
modelcontextprotocol#2858https://github.com/modelcontextprotocol/python-sdk/pull/2858
onto current mainhttps://github.com/Bartok9/python-sdk/commit/16e003c107cf3a0cb2685c5c0c0a57171dde416d
16e003chttps://github.com/Bartok9/python-sdk/commit/16e003c107cf3a0cb2685c5c0c0a57171dde416d
https://github.com/Bartok9
Bartok9https://github.com/Bartok9
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/a9be0b9f359c243d380628eb30369ceb2f42f18a..16e003c107cf3a0cb2685c5c0c0a57171dde416d
a9be0b9https://github.com/modelcontextprotocol/python-sdk/commit/a9be0b9f359c243d380628eb30369ceb2f42f18a
16e003chttps://github.com/modelcontextprotocol/python-sdk/commit/16e003c107cf3a0cb2685c5c0c0a57171dde416d
Compare https://github.com/modelcontextprotocol/python-sdk/compare/a9be0b9f359c243d380628eb30369ceb2f42f18a..16e003c107cf3a0cb2685c5c0c0a57171dde416d
August 6, 2026 16:22https://github.com/modelcontextprotocol/python-sdk/pull/2858#event-29079058284
feat(hermes): auto-recover MCP clients parked on a poisoned auth lock carpenike/nix-config#934 https://github.com/carpenike/nix-config/pull/934
docs(workarounds): record the upstream lock fix and the rebase trigger carpenike/nix-config#935 https://github.com/carpenike/nix-config/pull/935
https://github.com/Bartok9
Bartok9https://github.com/Bartok9
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/16e003c107cf3a0cb2685c5c0c0a57171dde416d..614b03307b9a0ccef69c97a6038c62e05e682ec6
16e003chttps://github.com/modelcontextprotocol/python-sdk/commit/16e003c107cf3a0cb2685c5c0c0a57171dde416d
614b033https://github.com/modelcontextprotocol/python-sdk/commit/614b03307b9a0ccef69c97a6038c62e05e682ec6
Compare https://github.com/modelcontextprotocol/python-sdk/compare/16e003c107cf3a0cb2685c5c0c0a57171dde416d..614b03307b9a0ccef69c97a6038c62e05e682ec6
October 19, 2026 15:46https://github.com/modelcontextprotocol/python-sdk/pull/2858#event-33660555568
https://github.com/apps/cubic-dev-ai
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
Oct 19, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2858#pullrequestreview-5574216525
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2858/files
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
https://github.com/modelcontextprotocol/python-sdk/pull/2858#pullrequestreview-5574216525
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Re-trigger cubichttps://www.cubic.dev/action/re-review/pr/modelcontextprotocol/python-sdk/2858/ai_pr_review_github_delivery_197ce09b12201af89f1dcf66c75a55d59d0b13260f80a66d3c9f9fc269d7cf5a?returnTo=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2858
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2858
src/mcp/client/auth/oauth2.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2858/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
Oct 19, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2858#discussion_r4315945029
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2858
src/mcp/client/auth/oauth2.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2858/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
Oct 19, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2858#discussion_r4315945039
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2858
src/mcp/client/auth/oauth2.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2858/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
Oct 19, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2858#discussion_r4315945056
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2858
https://github.com/apps/cubic-dev-ai
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
Oct 19, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2858#pullrequestreview-5574735429
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2858/files
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
https://github.com/modelcontextprotocol/python-sdk/pull/2858#pullrequestreview-5574735429
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
cubic CLIhttps://docs.cubic.dev/ide/cli-review?utm_source=github&utm_content=general_review_body
Re-trigger cubichttps://www.cubic.dev/action/re-review/pr/modelcontextprotocol/python-sdk/2858/ai_pr_review_github_delivery_528cd5531220e15f7e73be8e0de8e72b63eda40505be6aa55a3381818aacc247?returnTo=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2858
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2858
tests/client/test_auth.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2858/files#diff-f083d075f463e8b1ecfa6b931c33288c3d09b00ee3af3e5f74df16b7e75c3ab1
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
Oct 19, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2858#discussion_r4316378980
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2858
src/mcp/client/auth/oauth2.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2858/files#diff-b7aaf2062da175cea9a532176d6eb78b659eaadb757cc48929f0bafccfdb8d98
cubic-dev-aihttps://github.com/apps/cubic-dev-ai
Oct 19, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2858#discussion_r4316378991
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2858
Bartok9https://github.com/Bartok9
October 25, 2026 17:26https://github.com/modelcontextprotocol/python-sdk/pull/2858#commits-pushed-742290b
https://github.com/Bartok9
fix(oauth): release context.lock around the primary requesthttps://github.com/modelcontextprotocol/python-sdk/pull/2858/commits/742290ba72114e98fe522afaf6c59c2931e02738
742290bhttps://github.com/modelcontextprotocol/python-sdk/pull/2858/commits/742290ba72114e98fe522afaf6c59c2931e02738
https://github.com/Bartok9
fix(oauth): keep the auth flow under the complexity limithttps://github.com/modelcontextprotocol/python-sdk/pull/2858/commits/fc80795ca737864bcbf4a7bd2931a23343f3d623
fc80795https://github.com/modelcontextprotocol/python-sdk/pull/2858/commits/fc80795ca737864bcbf4a7bd2931a23343f3d623
https://github.com/Bartok9
style(oauth): format the step-up scope checkhttps://github.com/modelcontextprotocol/python-sdk/pull/2858/commits/fc0517fe98668a2783652d7e0bc49ecbe246881d
fc0517fhttps://github.com/modelcontextprotocol/python-sdk/pull/2858/commits/fc0517fe98668a2783652d7e0bc49ecbe246881d
https://github.com/Bartok9
test(oauth): cover refresh success, failure, and a skipped re-checkhttps://github.com/modelcontextprotocol/python-sdk/pull/2858/commits/aabc0098bfa525e2001a22be6eb203a351fcbea5
aabc009https://github.com/modelcontextprotocol/python-sdk/pull/2858/commits/aabc0098bfa525e2001a22be6eb203a351fcbea5
https://github.com/Bartok9
fix(oauth): keep the challenged request's login on its own clockhttps://github.com/modelcontextprotocol/python-sdk/pull/2858/commits/c550173cfa25dc1208a33c4387ed18aa87ebdac5
c550173https://github.com/modelcontextprotocol/python-sdk/pull/2858/commits/c550173cfa25dc1208a33c4387ed18aa87ebdac5
https://github.com/Bartok9
test(oauth): cover both arms of the refresh-lock stand-inhttps://github.com/modelcontextprotocol/python-sdk/pull/2858/commits/5cb9f2db588af3bfed07b1e772f66afe20768b60
5cb9f2dhttps://github.com/modelcontextprotocol/python-sdk/pull/2858/commits/5cb9f2db588af3bfed07b1e772f66afe20768b60
https://github.com/Bartok9
Bartok9https://github.com/Bartok9
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/0286c24f8adc3842b822604752767443ca33a3ed..5cb9f2db588af3bfed07b1e772f66afe20768b60
0286c24https://github.com/modelcontextprotocol/python-sdk/commit/0286c24f8adc3842b822604752767443ca33a3ed
5cb9f2dhttps://github.com/modelcontextprotocol/python-sdk/commit/5cb9f2db588af3bfed07b1e772f66afe20768b60
Compare https://github.com/modelcontextprotocol/python-sdk/compare/0286c24f8adc3842b822604752767443ca33a3ed..5cb9f2db588af3bfed07b1e772f66afe20768b60
October 25, 2026 21:26https://github.com/modelcontextprotocol/python-sdk/pull/2858#event-34204985670
https://github.com/AkshayShah03
AkshayShah03https://github.com/AkshayShah03
Nov 9, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2858#issuecomment-6732260190
#2847https://github.com/modelcontextprotocol/python-sdk/issues/2847
5cb9f2dhttps://github.com/modelcontextprotocol/python-sdk/commit/5cb9f2db588af3bfed07b1e772f66afe20768b60
https://gist.github.com/AkshayShah03/6db565aa52ea1864e3864542a1fc8f2fhttps://gist.github.com/AkshayShah03/6db565aa52ea1864e3864542a1fc8f2f
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2858
https://github.co/hiddenchars
https://github.com/modelcontextprotocol/python-sdk/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2858
https://github.com/apps/cubic-dev-ai
cubic-dev-ai[bot] https://github.com/apps/cubic-dev-ai
https://github.com/modelcontextprotocol/python-sdk/pull/2858/files/8ef6688f7ebbd5e007a94e26f583d41c96f0c57d
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2858
Bug: anyio.Lock in async_auth_flow causes RuntimeError under concurrent OAuth MCP connections https://github.com/modelcontextprotocol/python-sdk/issues/2847
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2858
https://github.com/Bartok9
https://github.com/ctaylor86
https://github.com/AkshayShah03
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.