René's URL Explorer Experiment


Title: MCP server: AccessToken class should have field for subject claim ("sub") · Issue #1038 · modelcontextprotocol/python-sdk · GitHub

Open Graph Title: MCP server: AccessToken class should have field for subject claim ("sub") · Issue #1038 · modelcontextprotocol/python-sdk

X Title: MCP server: AccessToken class should have field for subject claim ("sub") · Issue #1038 · modelcontextprotocol/python-sdk

Description: Description I'm proposing to add subject to AccessToken in mcp/server/auth/provider.py, which can be used to store the sub JWT claim that usually corresponds to the user ID: class AccessToken(BaseModel): token: str client_id: str scopes:...

Open Graph Description: Description I'm proposing to add subject to AccessToken in mcp/server/auth/provider.py, which can be used to store the sub JWT claim that usually corresponds to the user ID: class AccessToken(BaseM...

X Description: Description I'm proposing to add subject to AccessToken in mcp/server/auth/provider.py, which can be used to store the sub JWT claim that usually corresponds to the user ID: class AccessToken(B...

Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/1038

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"MCP server: AccessToken class should have field for subject claim (\"sub\")","articleBody":"### Description\n\nI'm proposing to add `subject` to `AccessToken` in `mcp/server/auth/provider.py`, which can be used to store the `sub` JWT claim that usually corresponds to the user ID:\n```\nclass AccessToken(BaseModel):\n    token: str\n    client_id: str\n    scopes: list[str]\n    expires_at: int | None = None\n    resource: str | None = None  # RFC 8707 resource indicator\n\n    # Proposed:\n    subject: str | None = None  # Subject (user ID)\n```\n\nThen we can implement a token verifier as follows:\n\n```\nclass MyTokenVerifier:\n    async def verify_token(self, token: str) -> AccessToken | None:\n        try:\n            token_claims = decode_and_validate_jwt(token)\n        except ...:\n            return None\n\n        return AccessToken(\n            token=token,\n            ...\n            subject=token_claims[\"sub\"],\n        )\n```\n\nand directly retrieve the user ID from the auth token in the context:\n\n```\nfrom mcp.server.auth.middleware.auth_context import get_access_token\n\nuser_id = get_access_token().subject\n```\n\n### References\n\n_No response_","author":{"url":"https://github.com/thomasst","@type":"Person","name":"thomasst"},"datePublished":"2025-06-26T11:08:56Z","url":"https://github.com/modelcontextprotocol/python-sdk/issues/1038"}

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/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9940825f-61e7-c560-a516-fabe8a2f3ab7
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idAF2C:39F674:FD4D6:14D83C:6AFD1E9C
html-safe-nonce0a9a876aa6f63e88488100c6e3cdce6db41d0f11bebc007c360ade73e12c7bb6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjJDOjM5RjY3NDpGRDRENjoxNEQ4M0M6NkFGRDFFOUMiLCJ2aXNpdG9yX2lkIjoiNDI2MDMwNjE1NTgwMjAwOTI0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac38f1763d48d94ed294d5fcd9598efa765ee91c4788a1adf5eafacd45953bd9e0
hovercard-subject-tagissue:3178744615
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/modelcontextprotocol/python-sdk/1038/issue_layout
twitter:imagehttps://opengraph.githubassets.com/42f0eee50768d2094138afb829523f468c950dae0a3d8bd690f534c29e2578a1/modelcontextprotocol/python-sdk/issues/1038
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/42f0eee50768d2094138afb829523f468c950dae0a3d8bd690f534c29e2578a1/modelcontextprotocol/python-sdk/issues/1038
og:image:altDescription I'm proposing to add subject to AccessToken in mcp/server/auth/provider.py, which can be used to store the sub JWT claim that usually corresponds to the user ID: class AccessToken(BaseM...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamethomasst
hostnamegithub.com
expected-hostnamegithub.com
None065128366c233a9d57ff68ab6c96e25b99dd1b0ab70d23b70873d3dd6b5e4f19
turbo-cache-controlno-preview
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
release941021edf0c2ec58298f4a2c8f27ae507d129c92
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/modelcontextprotocol/python-sdk/issues/1038#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2F1038
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%2Fissues%2F1038
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%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk
Reloadhttps://github.com/modelcontextprotocol/python-sdk/issues/1038
Reloadhttps://github.com/modelcontextprotocol/python-sdk/issues/1038
Reloadhttps://github.com/modelcontextprotocol/python-sdk/issues/1038
modelcontextprotocolhttps://github.com/modelcontextprotocol
python-sdkhttps://github.com/modelcontextprotocol/python-sdk
Codehttps://github.com/modelcontextprotocol/python-sdk
Issues306 (306)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
New issuehttps://github.com/login?return_to=https://github.com/modelcontextprotocol/python-sdk/issues/1038
New issuehttps://github.com/login?return_to=https://github.com/modelcontextprotocol/python-sdk/issues/1038
#2686https://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#top
#2686https://github.com/modelcontextprotocol/python-sdk/pull/2686
https://github.com/pcarleton
P3Nice to haves, rare edge caseshttps://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22P3%22
enhancementRequest for a new feature that's not currently supportedhttps://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22enhancement%22
good first issueGood for newcomershttps://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
ready for workEnough information for someone to start working onhttps://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22ready%20for%20work%22
https://github.com/thomasst
thomassthttps://github.com/thomasst
on Jun 26, 2025https://github.com/modelcontextprotocol/python-sdk/issues/1038#issue-3178744615
https://github.com/lukebuehler
lukebuehlerhttps://github.com/lukebuehler
on Jul 4, 2025https://github.com/modelcontextprotocol/python-sdk/issues/1038#issuecomment-3034711125
https://github.com/robertofalk
robertofalkhttps://github.com/robertofalk
on Jul 14, 2025https://github.com/modelcontextprotocol/python-sdk/issues/1038#issuecomment-3069262171
felixweinbergerhttps://github.com/felixweinberger
good first issueGood for newcomershttps://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
PR welcomehttps://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22PR%20welcome%22
enhancementRequest for a new feature that's not currently supportedhttps://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22enhancement%22
ready for workEnough information for someone to start working onhttps://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22ready%20for%20work%22
P3Nice to haves, rare edge caseshttps://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22P3%22
on Oct 6, 2025https://github.com/modelcontextprotocol/python-sdk/issues/1038#event-20123627359
https://github.com/felixweinberger
felixweinbergerhttps://github.com/felixweinberger
on Oct 6, 2025https://github.com/modelcontextprotocol/python-sdk/issues/1038#issuecomment-3373373979
@robertofalkhttps://github.com/robertofalk
#1165https://github.com/modelcontextprotocol/python-sdk/pull/1165
felixweinbergerhttps://github.com/felixweinberger
PR welcomehttps://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22PR%20welcome%22
on Nov 12, 2025https://github.com/modelcontextprotocol/python-sdk/issues/1038#event-20894762552
https://github.com/aptsalt
aptsalthttps://github.com/aptsalt
on Feb 22, 2026https://github.com/modelcontextprotocol/python-sdk/issues/1038#issuecomment-3940518914
@felixweinbergerhttps://github.com/felixweinberger
#1165https://github.com/modelcontextprotocol/python-sdk/pull/1165
@robertofalkhttps://github.com/robertofalk
https://github.com/shivama205
shivama205https://github.com/shivama205
on Mar 4, 2026https://github.com/modelcontextprotocol/python-sdk/issues/1038#issuecomment-3999569543
@felixweinbergerhttps://github.com/felixweinberger
@aptsalthttps://github.com/aptsalt
#2125https://github.com/modelcontextprotocol/python-sdk/pull/2125
@robertofalkhttps://github.com/robertofalk
@lukebuehlerhttps://github.com/lukebuehler
shivama205https://github.com/shivama205
on Mar 4, 2026https://github.com/modelcontextprotocol/python-sdk/issues/1038#event-23270621542
feat: add subject and claims fields to AccessTokenhttps://github.com/shivama205/python-sdk/commit/c76d6d56411386c1da9a427ea9da11d64ae55771
https://docs.github.com/articles/closing-issues-via-commit-messages
c76d6d5https://github.com/shivama205/python-sdk/commit/c76d6d56411386c1da9a427ea9da11d64ae55771
feat: add subject and claims fields to AccessTokenhttps://github.com/shivama205/python-sdk/commit/cf4bce5cc7242f0485e74bb2879509afbef0d8b6
https://docs.github.com/articles/closing-issues-via-commit-messages
cf4bce5https://github.com/shivama205/python-sdk/commit/cf4bce5cc7242f0485e74bb2879509afbef0d8b6
feat: add subject and claims fields to AccessTokenhttps://github.com/shivama205/python-sdk/commit/f57edfa7b5d3a5346fc185caceff67cd41b3a358
https://docs.github.com/articles/closing-issues-via-commit-messages
f57edfahttps://github.com/shivama205/python-sdk/commit/f57edfa7b5d3a5346fc185caceff67cd41b3a358
maxisbeyhttps://github.com/maxisbey
pcarletonhttps://github.com/pcarleton
on Mar 5, 2026https://github.com/modelcontextprotocol/python-sdk/issues/1038#event-23300152505
yakub268https://github.com/yakub268
on Mar 12, 2026https://github.com/modelcontextprotocol/python-sdk/issues/1038#event-23521227731
feat: add subject and claims fields to AccessTokenhttps://github.com/yakub268/python-sdk/commit/231990b60379f5faab327ecb7aaac1b546ca982a
https://docs.github.com/articles/closing-issues-via-commit-messages
231990bhttps://github.com/yakub268/python-sdk/commit/231990b60379f5faab327ecb7aaac1b546ca982a
maxisbeyhttps://github.com/maxisbey
completedhttps://github.com/modelcontextprotocol/python-sdk/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#2686https://github.com/modelcontextprotocol/python-sdk/pull/2686
on May 26, 2026https://github.com/modelcontextprotocol/python-sdk/issues/1038#event-25968028706
Sign up for freehttps://github.com/signup?return_to=https://github.com/modelcontextprotocol/python-sdk/issues/1038
Sign in to commenthttps://github.com/login?return_to=https://github.com/modelcontextprotocol/python-sdk/issues/1038
pcarletonhttps://github.com/pcarleton
P3Nice to haves, rare edge caseshttps://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22P3%22
enhancementRequest for a new feature that's not currently supportedhttps://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22enhancement%22
good first issueGood for newcomershttps://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22good%20first%20issue%22
ready for workEnough information for someone to start working onhttps://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22ready%20for%20work%22
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.