René's URL Explorer Experiment


Title: Add subject and claims to AccessToken by maxisbey · Pull Request #2686 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: Add subject and claims to AccessToken by maxisbey · Pull Request #2686 · modelcontextprotocol/python-sdk

X Title: Add subject and claims to AccessToken by maxisbey · Pull Request #2686 · modelcontextprotocol/python-sdk

Description: The official Python SDK for Model Context Protocol servers and clients - Add subject and claims to AccessToken by maxisbey · Pull Request #2686 · modelcontextprotocol/python-sdk

Open Graph Description: Summary Adds optional subject and claims fields to AccessToken so token verifiers can surface the resource owner (sub) and any additional claims to request handlers, and adds subject to Authorizati...

X Description: Summary Adds optional subject and claims fields to AccessToken so token verifiers can surface the resource owner (sub) and any additional claims to request handlers, and adds subject to Authorizati...

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

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:de5e1640-14c2-c5d5-e1fc-55dd9d67503e
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8EBA:2723BB:30ADA0:42C4A1:6AFD0D46
html-safe-nonce3530909877531f8124552d533092d618e94180a23d8a2246d42f473d0b3a8fba
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RUJBOjI3MjNCQjozMEFEQTA6NDJDNEExOjZBRkQwRDQ2IiwidmlzaXRvcl9pZCI6IjYxNjMxMTUwMzAzMDE0NDU0NDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd8deb8c5507be9894f24bd50d82c00117867bc186105da801ea924c475bf462a
hovercard-subject-tagpull_request:3747314127
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/2686/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/0a13bdf746dd5f2969c5981e80f558aff0e370c06c2aaee008ba05c413cbc74e/modelcontextprotocol/python-sdk/pull/2686
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0a13bdf746dd5f2969c5981e80f558aff0e370c06c2aaee008ba05c413cbc74e/modelcontextprotocol/python-sdk/pull/2686
og:image:altSummary Adds optional subject and claims fields to AccessToken so token verifiers can surface the resource owner (sub) and any additional claims to request handlers, and adds subject to Authorizati...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemaxisbey
hostnamegithub.com
expected-hostnamegithub.com
Noneb29de2abb97b6307b16270785efeb58b51a117d5a9b659acf00b77aa00e7043b
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
release8c9e619def6d670dc18a45d3b02cea938c1c7e47
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/pull/2686#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F2686
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%2F2686
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/2686
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2686
Reloadhttps://github.com/modelcontextprotocol/python-sdk/pull/2686
modelcontextprotocolhttps://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Codehttps://github.com/modelcontextprotocol/python-sdk
Issues305 (305)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
maxisbeyhttps://github.com/maxisbey
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
auth-access-token-subjecthttps://github.com/modelcontextprotocol/python-sdk/tree/auth-access-token-subject
Conversationhttps://github.com/modelcontextprotocol/python-sdk/pull/2686
Commits4 (4)https://github.com/modelcontextprotocol/python-sdk/pull/2686/commits
Checkshttps://github.com/modelcontextprotocol/python-sdk/pull/2686/checks
Files changedhttps://github.com/modelcontextprotocol/python-sdk/pull/2686/files
Add subject and claims to AccessTokenhttps://github.com/modelcontextprotocol/python-sdk/pull/2686#top
maxisbeyhttps://github.com/maxisbey
mainhttps://github.com/modelcontextprotocol/python-sdk/tree/main
auth-access-token-subjecthttps://github.com/modelcontextprotocol/python-sdk/tree/auth-access-token-subject
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
May 26, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2686#issue-4523211403
#1038https://github.com/modelcontextprotocol/python-sdk/issues/1038
#2209https://github.com/modelcontextprotocol/python-sdk/pull/2209
#1517https://github.com/modelcontextprotocol/python-sdk/pull/1517
#2209https://github.com/modelcontextprotocol/python-sdk/pull/2209
#1517https://github.com/modelcontextprotocol/python-sdk/pull/1517
@thomassthttps://github.com/thomasst
@yukuanjhttps://github.com/yukuanj
@shivama205https://github.com/shivama205
AI Disclaimerhttps://gist.github.com/maxisbey/6123d132484e4c533eab519a2800693d
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2686
https://github.com/maxisbey
Add subject and claims to AccessTokenhttps://github.com/modelcontextprotocol/python-sdk/pull/2686/commits/c4fe4d254aeb7d1a502e9a805a900869ab73219a
c4fe4d2https://github.com/modelcontextprotocol/python-sdk/pull/2686/commits/c4fe4d254aeb7d1a502e9a805a900869ab73219a
#1038https://github.com/modelcontextprotocol/python-sdk/issues/1038
@thomassthttps://github.com/thomasst
@yukuanjhttps://github.com/yukuanj
@shivama205https://github.com/shivama205
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
pcarletonhttps://github.com/pcarleton
May 26, 2026 09:54https://github.com/modelcontextprotocol/python-sdk/pull/2686#event-25961898068
https://github.com/maxisbey
Clarify subject docstrings and add Context.claimshttps://github.com/modelcontextprotocol/python-sdk/pull/2686/commits/7e542e9c64a4bd03e99e2ac19c6f02159900ab3c
7e542e9https://github.com/modelcontextprotocol/python-sdk/pull/2686/commits/7e542e9c64a4bd03e99e2ac19c6f02159900ab3c
https://github.com/Kludex
Kludexhttps://github.com/Kludex
May 26, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2686#pullrequestreview-4362746133
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2686/files/7e542e9c64a4bd03e99e2ac19c6f02159900ab3c
tests/server/mcpserver/auth/test_context_subject.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2686/files/7e542e9c64a4bd03e99e2ac19c6f02159900ab3c#diff-c1c374ef3313dd8f25a5afa681e19ef65a3ed9f41185e1a946f6c7160da50d8f
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2686
https://github.com/Kludex
Kludexhttps://github.com/Kludex
May 26, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2686#pullrequestreview-4362747873
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2686/files/7e542e9c64a4bd03e99e2ac19c6f02159900ab3c
tests/server/auth/test_provider.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2686/files/7e542e9c64a4bd03e99e2ac19c6f02159900ab3c#diff-090895fbd2e2a1cda5d11052a596df207dc9c6c7db0fab74177844c7cb96c3e4
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2686
https://github.com/Kludex
Kludexhttps://github.com/Kludex
May 26, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2686#pullrequestreview-4362751523
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2686/files/7e542e9c64a4bd03e99e2ac19c6f02159900ab3c
src/mcp/server/mcpserver/context.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2686/files/7e542e9c64a4bd03e99e2ac19c6f02159900ab3c#diff-b8a980ea2822cbd7a2f938f77b794ef9df6724acb5d637fdf87c0ad2bfe2db1a
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2686
https://github.com/Kludex
Kludexhttps://github.com/Kludex
May 26, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2686#pullrequestreview-4362753219
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2686/files/7e542e9c64a4bd03e99e2ac19c6f02159900ab3c
src/mcp/server/mcpserver/context.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2686/files/7e542e9c64a4bd03e99e2ac19c6f02159900ab3c#diff-b8a980ea2822cbd7a2f938f77b794ef9df6724acb5d637fdf87c0ad2bfe2db1a
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2686
https://github.com/Kludex
Kludexhttps://github.com/Kludex
May 26, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2686#pullrequestreview-4362754760
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2686/files/7e542e9c64a4bd03e99e2ac19c6f02159900ab3c
src/mcp/server/mcpserver/context.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2686/files/7e542e9c64a4bd03e99e2ac19c6f02159900ab3c#diff-b8a980ea2822cbd7a2f938f77b794ef9df6724acb5d637fdf87c0ad2bfe2db1a
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2686
https://github.com/Kludex
Kludexhttps://github.com/Kludex
May 26, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2686#pullrequestreview-4362755096
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2686/files/7e542e9c64a4bd03e99e2ac19c6f02159900ab3c
src/mcp/server/auth/provider.pyhttps://github.com/modelcontextprotocol/python-sdk/pull/2686/files/7e542e9c64a4bd03e99e2ac19c6f02159900ab3c#diff-f7e852ad288ea2750460eb8e8ef0d6152216cd97ae505acd5f06146cf866abec
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2686
https://github.com/maxisbey
Scope down to model fields and add subject to auth integration testhttps://github.com/modelcontextprotocol/python-sdk/pull/2686/commits/4185d1c3b8fadc1895679463d4693fce24025565
4185d1chttps://github.com/modelcontextprotocol/python-sdk/pull/2686/commits/4185d1c3b8fadc1895679463d4693fce24025565
https://github.com/Kludex
Kludexhttps://github.com/Kludex
May 26, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2686#pullrequestreview-4362950642
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2686/files/4185d1c3b8fadc1895679463d4693fce24025565
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
May 26, 2026 10:50https://github.com/modelcontextprotocol/python-sdk/pull/2686#event-25964036344
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
May 26, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2686#issuecomment-4543719184
@pcarletonhttps://github.com/pcarleton
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2686
https://github.com/pcarleton
pcarletonhttps://github.com/pcarleton
May 26, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2686#pullrequestreview-4363461690
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2686/files/4185d1c3b8fadc1895679463d4693fce24025565
pcarletonhttps://github.com/pcarleton
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2686
https://github.com/modelcontextprotocol/python-sdk/pull/2686#pullrequestreview-4363461690
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2686
https://github.com/maxisbey
Address review: iss in introspection, tighten field commentshttps://github.com/modelcontextprotocol/python-sdk/pull/2686/commits/a857cfc25ff0eae9d92bc45c7d76af371a325c48
a857cfchttps://github.com/modelcontextprotocol/python-sdk/pull/2686/commits/a857cfc25ff0eae9d92bc45c7d76af371a325c48
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
pcarletonhttps://github.com/pcarleton
Kludexhttps://github.com/Kludex
a857cfchttps://github.com/modelcontextprotocol/python-sdk/commit/a857cfc25ff0eae9d92bc45c7d76af371a325c48
May 26, 2026 13:10https://github.com/modelcontextprotocol/python-sdk/pull/2686#event-25967866713
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
May 26, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2686#pullrequestreview-4363838116
View reviewed changes https://github.com/modelcontextprotocol/python-sdk/pull/2686/files/a857cfc25ff0eae9d92bc45c7d76af371a325c48
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
May 26, 2026 13:11https://github.com/modelcontextprotocol/python-sdk/pull/2686#event-25967915117
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
3eb5799https://github.com/modelcontextprotocol/python-sdk/commit/3eb579948a4719d606d2adbd1f3f69371c9c0f48
May 26, 2026https://github.com/modelcontextprotocol/python-sdk/pull/2686#event-25968027202
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2686
https://github.com/maxisbey
maxisbeyhttps://github.com/maxisbey
May 26, 2026 13:13https://github.com/modelcontextprotocol/python-sdk/pull/2686#event-25968028815
[v1.x] Add subject and claims to AccessToken #2690 https://github.com/modelcontextprotocol/python-sdk/pull/2690
feat: add subject and claims fields to AccessToken #2209 https://github.com/modelcontextprotocol/python-sdk/pull/2209
Add resource_owner field to AuthorizationCode and AccessToken classes #1517 https://github.com/modelcontextprotocol/python-sdk/pull/1517
https://github.com/piaudonn
piaudonnhttps://github.com/piaudonn
Jun 2, 2026 https://github.com/modelcontextprotocol/python-sdk/pull/2686#ref-pullrequest-4574845657
Add subject field to AccessToken initialization PrefectHQ/fastmcp#4267 https://github.com/PrefectHQ/fastmcp/pull/4267
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%2F2686
https://github.com/felixweinberger
felixweinberger https://github.com/felixweinberger
https://github.com/modelcontextprotocol/python-sdk/pull/2686/files/a857cfc25ff0eae9d92bc45c7d76af371a325c48
https://github.com/pcarleton
pcarleton https://github.com/pcarleton
https://github.com/modelcontextprotocol/python-sdk/pull/2686/files/4185d1c3b8fadc1895679463d4693fce24025565
https://github.com/Kludex
Kludex https://github.com/Kludex
https://github.com/modelcontextprotocol/python-sdk/pull/2686/files/4185d1c3b8fadc1895679463d4693fce24025565
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2686
MCP server: AccessToken class should have field for subject claim ("sub") https://github.com/modelcontextprotocol/python-sdk/issues/1038
Please reload this pagehttps://github.com/modelcontextprotocol/python-sdk/pull/2686
https://github.com/maxisbey
https://github.com/pcarleton
https://github.com/felixweinberger
https://github.com/Kludex
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.