René's URL Explorer Experiment


Title: fix(oauth): narrow context.lock scope in async_auth_flow by peisuke · Pull Request #2660 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: fix(oauth): narrow context.lock scope in async_auth_flow by peisuke · Pull Request #2660 · modelcontextprotocol/python-sdk

X Title: fix(oauth): narrow context.lock scope in async_auth_flow by peisuke · Pull Request #2660 · 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 by peisuke · Pull Request #2660 · modelcontextprotocol/python-sdk

Open Graph Description: Narrows the lock scope inside OAuthClientProvider.async_auth_flow so the actual HTTP request yield runs outside any lock. Concurrent requests through the same provider — in particular, a POST issue...

X Description: Narrows the lock scope inside OAuthClientProvider.async_auth_flow so the actual HTTP request yield runs outside any lock. Concurrent requests through the same provider — in particular, a POST issue...

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

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:17f6686e-e152-2b41-c9f4-718628d1972b
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9732:19E4BB:13D1C69:1947F97:6B0128F2
html-safe-noncee8aa7a6150cb31f0bd8dba361be1a47dc220d9eaa9e8c2030245d222fa7959ef
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzMyOjE5RTRCQjoxM0QxQzY5OjE5NDdGOTc6NkIwMTI4RjIiLCJ2aXNpdG9yX2lkIjoiNzE0NTM0ODk0NjgxMzA2OTU1NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac75b3edbf73cdc729db3e968a327d11e53b26f74807b932d161c76b7db1e49cd3
hovercard-subject-tagpull_request:3728793527
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/2660/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/aa229b8221c23aeeae41b0be0e174a7af63d537adcd00cc62b683ad43eb99284/modelcontextprotocol/python-sdk/pull/2660
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/aa229b8221c23aeeae41b0be0e174a7af63d537adcd00cc62b683ad43eb99284/modelcontextprotocol/python-sdk/pull/2660
og:image:altNarrows the lock scope inside OAuthClientProvider.async_auth_flow so the actual HTTP request yield runs outside any lock. Concurrent requests through the same provider — in particular, a POST issue...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepeisuke
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-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/2660#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2660
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%2F2660
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/2660
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2660
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2660
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
peisukehttps://github.com/peisuke
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
peisuke:pr/oauth-lock-scopehttps://github.com/peisuke/python-sdk/tree/pr/oauth-lock-scope
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/2660
Commits4 (4)https://github.com/modelcontextprotocol/python-sdk/pull/2660/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/2660/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/2660/files
fix(oauth): narrow context.lock scope in async_auth_flowhttps://github.com/modelcontextprotocol/python-sdk/pull/2660#top
peisukehttps://github.com/peisuke
modelcontextprotocol:mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
peisuke:pr/oauth-lock-scopehttps://github.com/peisuke/python-sdk/tree/pr/oauth-lock-scope
https://github.com/peisuke
peisukehttps://github.com/peisuke
May 22, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2660#issue-4500853807
MCP Documentationhttps://modelcontextprotocol.io
#1326https://github.com/modelcontextprotocol/python-sdk/issues/1326
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2660
peisukehttps://github.com/peisuke
May 21, 2026 01:33https://github.com/modelcontextprotocol/python-sdk/pull/2660#commits-pushed-15dbfd5
https://github.com/peisuke
fix(oauth): narrow async_auth_flow lock scope to avoid blocking long-…https://github.com/modelcontextprotocol/python-sdk/pull/2660/commits/15dbfd5356a1a5a2d9f316c4776fd105be6bba47
15dbfd5https://github.com/modelcontextprotocol/python-sdk/pull/2660/commits/15dbfd5356a1a5a2d9f316c4776fd105be6bba47
modelcontextprotocol#1326https://github.com/modelcontextprotocol/python-sdk/issues/1326
https://github.com/peisuke
test: add regression coverage for OAuthClientProvider concurrent requ…https://github.com/modelcontextprotocol/python-sdk/pull/2660/commits/54ea6a52574453a6253d89c774e7857f2c902bc4
54ea6a5https://github.com/modelcontextprotocol/python-sdk/pull/2660/commits/54ea6a52574453a6253d89c774e7857f2c902bc4
https://github.com/peisuke
test: cover refresh failure paths and double-check refresh skiphttps://github.com/modelcontextprotocol/python-sdk/pull/2660/commits/b4320fb6f1cbb4bf7dd26bb5a3aa98fac4bf19e0
b4320fbhttps://github.com/modelcontextprotocol/python-sdk/pull/2660/commits/b4320fb6f1cbb4bf7dd26bb5a3aa98fac4bf19e0
https://github.com/peisuke
peisukehttps://github.com/peisuke
May 22, 2026 07:46https://github.com/modelcontextprotocol/python-sdk/pull/2660#event-25841012460
https://github.com/peisuke
peisukehttps://github.com/peisuke
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/4f5e8e34fcff6333daf503f2ed8c9c270f8e2ba3..97b4bfaa526506dcdb06aae3825e34ef1eca8f24
4f5e8e3https://github.com/modelcontextprotocol/python-sdk/commit/4f5e8e34fcff6333daf503f2ed8c9c270f8e2ba3
97b4bfahttps://github.com/modelcontextprotocol/python-sdk/commit/97b4bfaa526506dcdb06aae3825e34ef1eca8f24
Compare https://github.com/modelcontextprotocol/python-sdk/compare/4f5e8e34fcff6333daf503f2ed8c9c270f8e2ba3..97b4bfaa526506dcdb06aae3825e34ef1eca8f24
May 27, 2026 13:47https://github.com/modelcontextprotocol/python-sdk/pull/2660#event-26017316669
https://github.com/peisuke
fix(oauth): cover Python 3.10/3.11 partial-branch coverage gaphttps://github.com/modelcontextprotocol/python-sdk/pull/2660/commits/a09f68ea3bedf730ebaacca32de7cbc47493ea89
a09f68ehttps://github.com/modelcontextprotocol/python-sdk/pull/2660/commits/a09f68ea3bedf730ebaacca32de7cbc47493ea89
https://github.com/peisuke
peisukehttps://github.com/peisuke
force-pushedhttps://github.com/modelcontextprotocol/python-sdk/compare/97b4bfaa526506dcdb06aae3825e34ef1eca8f24..a09f68ea3bedf730ebaacca32de7cbc47493ea89
97b4bfahttps://github.com/modelcontextprotocol/python-sdk/commit/97b4bfaa526506dcdb06aae3825e34ef1eca8f24
a09f68ehttps://github.com/modelcontextprotocol/python-sdk/commit/a09f68ea3bedf730ebaacca32de7cbc47493ea89
Compare https://github.com/modelcontextprotocol/python-sdk/compare/97b4bfaa526506dcdb06aae3825e34ef1eca8f24..a09f68ea3bedf730ebaacca32de7cbc47493ea89
May 27, 2026 14:20https://github.com/modelcontextprotocol/python-sdk/pull/2660#event-26018802844
https://github.com/EnGassa
EnGassahttps://github.com/EnGassa
Jun 12, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2660#ref-issue-4648518240
Bug: anyio.Lock in async_auth_flow causes RuntimeError under concurrent OAuth MCP connections #2847 https://github.com/modelcontextprotocol/python-sdk/issues/2847
https://github.com/Bartok9
Bartok9https://github.com/Bartok9
Jun 13, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2660#issuecomment-4697696713
#2847https://github.com/modelcontextprotocol/python-sdk/issues/2847
https://github.com/Bartok9/python-sdk/tree/salvage/2660-oauth-lock-rebasehttps://github.com/Bartok9/python-sdk/tree/salvage/2660-oauth-lock-rebase
@peisukehttps://github.com/peisuke
@peisukehttps://github.com/peisuke
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2660
https://github.com/Bartok9
Bartok9https://github.com/Bartok9
Jun 13, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2660#ref-pullrequest-4655774482
fix(oauth): narrow context.lock scope in async_auth_flow (rebase of #2660 by @peisuke, closes #2847) #2858 https://github.com/modelcontextprotocol/python-sdk/pull/2858
https://github.com/Bartok9
Bartok9https://github.com/Bartok9
Jun 13, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2660#issuecomment-4698765556
#2858https://github.com/modelcontextprotocol/python-sdk/pull/2858
@peisukehttps://github.com/peisuke
#2847https://github.com/modelcontextprotocol/python-sdk/issues/2847
#2858https://github.com/modelcontextprotocol/python-sdk/pull/2858
#2847https://github.com/modelcontextprotocol/python-sdk/issues/2847
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2660
https://github.com/Bartok9
Bartok9https://github.com/Bartok9
Jun 13, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2660#issuecomment-4698771955
@peisukehttps://github.com/peisuke
#2858https://github.com/modelcontextprotocol/python-sdk/pull/2858
#2847https://github.com/modelcontextprotocol/python-sdk/issues/2847
#2858https://github.com/modelcontextprotocol/python-sdk/pull/2858
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2660
https://github.com/peisuke
peisukehttps://github.com/peisuke
Jun 18, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2660#issuecomment-4738167202
@Bartok9https://github.com/Bartok9
#2858https://github.com/modelcontextprotocol/python-sdk/pull/2858
#2847https://github.com/modelcontextprotocol/python-sdk/issues/2847
#2858https://github.com/modelcontextprotocol/python-sdk/pull/2858
#2660https://github.com/modelcontextprotocol/python-sdk/pull/2660
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2660
https://github.com/peisuke
peisukehttps://github.com/peisuke
Jun 18, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2660#event-26893624552
Bartok9https://github.com/Bartok9
Jun 21, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2660#ref-commit-425161d
https://github.com/peisuke
fix(oauth): narrow async_auth_flow lock scope to avoid blocking long-…https://github.com/Bartok9/python-sdk/commit/425161d4b4bc822fcf4d224c41be0a172a940d12
425161dhttps://github.com/Bartok9/python-sdk/commit/425161d4b4bc822fcf4d224c41be0a172a940d12
modelcontextprotocol#2847https://github.com/modelcontextprotocol/python-sdk/issues/2847
modelcontextprotocol#2660https://github.com/modelcontextprotocol/python-sdk/pull/2660
@peisukehttps://github.com/peisuke
Bartok9https://github.com/Bartok9
Jun 23, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2660#ref-commit-a9be0b9
https://github.com/peisuke
https://github.com/Bartok9
fix(oauth): narrow async_auth_flow lock scope to avoid blocking long-…https://github.com/Bartok9/python-sdk/commit/a9be0b9f359c243d380628eb30369ceb2f42f18a
a9be0b9https://github.com/Bartok9/python-sdk/commit/a9be0b9f359c243d380628eb30369ceb2f42f18a
modelcontextprotocol#2847https://github.com/modelcontextprotocol/python-sdk/issues/2847
modelcontextprotocol#2660https://github.com/modelcontextprotocol/python-sdk/pull/2660
@peisukehttps://github.com/peisuke
https://github.com/stayclosetothequestion
stayclosetothequestionhttps://github.com/stayclosetothequestion
Jul 29, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2660#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/2660#ref-pullrequest-5056075736
fix(oauth): avoid lock contention for long-running requests #3243 https://github.com/modelcontextprotocol/python-sdk/pull/3243
https://github.com/llitost
llitosthttps://github.com/llitost
Aug 24, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2660#ref-issue-5231272986
MCP OAuth servers: 'hermes mcp test'/'login' fail with empty error (SDK lock deadlock); patches/50-mcp-oauth-lock-fix.sh not applied NousResearch/hermes-agent#93562 https://github.com/NousResearch/hermes-agent/issues/93562
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%2F2660
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2660
Clients Using Storage Face Deadlock on Token Refresh for SSE https://github.com/modelcontextprotocol/python-sdk/issues/1326
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2660
https://github.com/peisuke
https://github.com/Bartok9
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.