| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:c884aede-7503-5da0-9e38-cb4c938ebf82 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A6E2:368174:81A6D4:ABD980:6A5B3B1D |
| html-safe-nonce | 1a95f507a23665f75426671f384badcfa6f46a83d56c54ae1a5f9086c843b288 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkUyOjM2ODE3NDo4MUE2RDQ6QUJEOTgwOjZBNUIzQjFEIiwidmlzaXRvcl9pZCI6IjQ4NTQyMjkwOTQwNjkxMjM4NjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0a4166c3e30d82d512eb1f6da435a7314546bae0ebfb25af53f0c085dda8b95f |
| hovercard-subject-tag | pull_request:2503921989 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/modelcontextprotocol/python-sdk/648/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/66d083e3a9860e09cf6d042a7b353b160c2e1a3ad1702ce34174ce15d35ba920/modelcontextprotocol/python-sdk/pull/648 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/66d083e3a9860e09cf6d042a7b353b160c2e1a3ad1702ce34174ce15d35ba920/modelcontextprotocol/python-sdk/pull/648 |
| og:image:alt | Motivation and Context
See the confused deputy consideration here:
https://github.com/modelcontextprotocol/modelcontextprotocol/blob/c255349bd98d9dc73f3579c828d195bd09c0bee8/docs/specification/dra... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | pcarleton |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-cache |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/modelcontextprotocol/python-sdk/pull/648#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F648 |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | https://github.com/security/advanced-security |
| Copilot for BusinessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F648 |
|
Sign up
| https://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 |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/648 |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/648 |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/648 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/648 |
|
modelcontextprotocol
| https://github.com/modelcontextprotocol |
| python-sdk | https://github.com/modelcontextprotocol/python-sdk |
|
Notifications
| https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk |
|
Fork
3.7k
| https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk |
|
Star
23.6k
| https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk |
|
Code
| https://github.com/modelcontextprotocol/python-sdk |
|
Issues
258
| https://github.com/modelcontextprotocol/python-sdk/issues |
|
Pull requests
301
| https://github.com/modelcontextprotocol/python-sdk/pulls |
|
Actions
| https://github.com/modelcontextprotocol/python-sdk/actions |
|
Projects
| https://github.com/modelcontextprotocol/python-sdk/projects |
|
Models
| https://github.com/modelcontextprotocol/python-sdk/models |
|
Security and quality
6
| https://github.com/modelcontextprotocol/python-sdk/security |
|
Insights
| https://github.com/modelcontextprotocol/python-sdk/pulse |
|
Code
| https://github.com/modelcontextprotocol/python-sdk |
|
Issues
| https://github.com/modelcontextprotocol/python-sdk/issues |
|
Pull requests
| https://github.com/modelcontextprotocol/python-sdk/pulls |
|
Actions
| https://github.com/modelcontextprotocol/python-sdk/actions |
|
Projects
| https://github.com/modelcontextprotocol/python-sdk/projects |
|
Models
| https://github.com/modelcontextprotocol/python-sdk/models |
|
Security and quality
| https://github.com/modelcontextprotocol/python-sdk/security |
|
Insights
| https://github.com/modelcontextprotocol/python-sdk/pulse |
| pcarleton | https://github.com/pcarleton |
| main | https://github.com/modelcontextprotocol/python-sdk/tree/main |
| pcarleton/auth-confused-deputy | https://github.com/modelcontextprotocol/python-sdk/tree/pcarleton/auth-confused-deputy |
| Conversation | https://github.com/modelcontextprotocol/python-sdk/pull/648 |
| Commits8 (8) | https://github.com/modelcontextprotocol/python-sdk/pull/648/commits |
| Checks | https://github.com/modelcontextprotocol/python-sdk/pull/648/checks |
| Files changed | https://github.com/modelcontextprotocol/python-sdk/pull/648/files |
| confused deputy fix in example + supporting sdk changes | https://github.com/modelcontextprotocol/python-sdk/pull/648#top |
| pcarleton | https://github.com/pcarleton |
| main | https://github.com/modelcontextprotocol/python-sdk/tree/main |
| pcarleton/auth-confused-deputy | https://github.com/modelcontextprotocol/python-sdk/tree/pcarleton/auth-confused-deputy |
|
| https://github.com/pcarleton |
| pcarleton | https://github.com/pcarleton |
| May 7, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/648#issue-3045440065 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/648 |
| https://github.com/modelcontextprotocol/modelcontextprotocol/blob/c255349bd98d9dc73f3579c828d195bd09c0bee8/docs/specification/draft/basic/security_best_practices.mdx#21-confused-deputy-problem | https://github.com/modelcontextprotocol/modelcontextprotocol/blob/c255349bd98d9dc73f3579c828d195bd09c0bee8/docs/specification/draft/basic/security_best_practices.mdx#21-confused-deputy-problem |
| https://private-user-images.githubusercontent.com/704663/441186639-345ab87c-9a32-416e-b576-e39d1f8fa5ec.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODQzNjQxMDUsIm5iZiI6MTc4NDM2MzgwNSwicGF0aCI6Ii83MDQ2NjMvNDQxMTg2NjM5LTM0NWFiODdjLTlhMzItNDE2ZS1iNTc2LWUzOWQxZjhmYTVlYy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNzE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDcxOFQwODM2NDVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zODViODIwMmIyYTg0ODRiZDIzYzU4YTE1NjQ5ZmY3ZWI4ZmFiMTkzMzY5Y2M4NGI5MTAyOTRhMTE1NGRlYTg0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.25ZXJ-ucAWcuMRFKOxO834tOeduICyu_6IpbX9nn0RM |
| MCP Documentation | https://modelcontextprotocol.io |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/648 |
| https://github.com/pcarleton |
| pcarleton | https://github.com/pcarleton |
|
May 7, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/648#ref-pullrequest-3034324343 |
|
Auth SSE simple example
#610
| https://github.com/modelcontextprotocol/python-sdk/pull/610 |
| https://github.com/pcarleton |
| pcarleton | https://github.com/pcarleton |
| force-pushed | https://github.com/modelcontextprotocol/python-sdk/compare/061739d5b6d9f7d37b3eba5a4a2eddfc5e6eb706..bdea6dd030915c2ccd261374eb80da2f93db3809 |
| 061739d | https://github.com/modelcontextprotocol/python-sdk/commit/061739d5b6d9f7d37b3eba5a4a2eddfc5e6eb706 |
| bdea6dd | https://github.com/modelcontextprotocol/python-sdk/commit/bdea6dd030915c2ccd261374eb80da2f93db3809 |
|
Compare
| https://github.com/modelcontextprotocol/python-sdk/compare/061739d5b6d9f7d37b3eba5a4a2eddfc5e6eb706..bdea6dd030915c2ccd261374eb80da2f93db3809 |
| May 7, 2025 10:13 | https://github.com/modelcontextprotocol/python-sdk/pull/648#event-17553437745 |
| https://github.com/pcarleton |
| pcarleton | https://github.com/pcarleton |
|
May 7, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/648#pullrequestreview-2821208373 |
|
View reviewed changes
| https://github.com/modelcontextprotocol/python-sdk/pull/648/files |
| src/mcp/server/auth/handlers/authorize.py | https://github.com/modelcontextprotocol/python-sdk/pull/648/files#diff-29f49c82612bbc9e8070a2be90b36aa33ca72f1ddae66f15f261bfcbb1a9a85d |
| pcarleton | https://github.com/pcarleton |
| May 7, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/648#discussion_r2077300978 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/648 |
| src/mcp/server/auth/provider.py | https://github.com/modelcontextprotocol/python-sdk/pull/648/files#diff-f7e852ad288ea2750460eb8e8ef0d6152216cd97ae505acd5f06146cf866abec |
| pcarleton | https://github.com/pcarleton |
| May 7, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/648#discussion_r2077303403 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/648 |
| May 7, 2025 16:52 | https://github.com/modelcontextprotocol/python-sdk/pull/648#event-17560111064 |
| pcarleton | https://github.com/pcarleton |
| May 9, 2025 12:21 | https://github.com/modelcontextprotocol/python-sdk/pull/648#commits-pushed-99d7735 |
|
| https://github.com/pcarleton |
| first cut at a per-client consent flow | https://github.com/modelcontextprotocol/python-sdk/pull/648/commits/99d77357b14e64a55af37442a00bbd6a48a60247 |
| 99d7735 | https://github.com/modelcontextprotocol/python-sdk/pull/648/commits/99d77357b14e64a55af37442a00bbd6a48a60247 |
|
| https://github.com/pcarleton |
| add consent | https://github.com/modelcontextprotocol/python-sdk/pull/648/commits/15ecf7319a77c3137ed5aec89703f115580aaa95 |
| 15ecf73 | https://github.com/modelcontextprotocol/python-sdk/pull/648/commits/15ecf7319a77c3137ed5aec89703f115580aaa95 |
|
| https://github.com/pcarleton |
| make consent optional, default true | https://github.com/modelcontextprotocol/python-sdk/pull/648/commits/e05f0b6f27a422cbf49ba4b0ae52c499aea4dafa |
| e05f0b6 | https://github.com/modelcontextprotocol/python-sdk/pull/648/commits/e05f0b6f27a422cbf49ba4b0ae52c499aea4dafa |
|
| https://github.com/pcarleton |
| default client consent to false to preserve backwards compatibility | https://github.com/modelcontextprotocol/python-sdk/pull/648/commits/2a8e67ba2a8248b915b7b2b5396a19abb00640b4 |
| 2a8e67b | https://github.com/modelcontextprotocol/python-sdk/pull/648/commits/2a8e67ba2a8248b915b7b2b5396a19abb00640b4 |
|
| https://github.com/pcarleton |
| require consent in example | https://github.com/modelcontextprotocol/python-sdk/pull/648/commits/011fd078b001c369e3a10aa76c079c3e9599739a |
| 011fd07 | https://github.com/modelcontextprotocol/python-sdk/pull/648/commits/011fd078b001c369e3a10aa76c079c3e9599739a |
|
| https://github.com/pcarleton |
| move consent to example | https://github.com/modelcontextprotocol/python-sdk/pull/648/commits/429c28f2bec15d51f2e859d24c6be98c9132c30f |
| 429c28f | https://github.com/modelcontextprotocol/python-sdk/pull/648/commits/429c28f2bec15d51f2e859d24c6be98c9132c30f |
|
| https://github.com/pcarleton |
| more cleanup | https://github.com/modelcontextprotocol/python-sdk/pull/648/commits/9439a4c65fee2fde27110eddb5c20ec3ee88255b |
| 9439a4c | https://github.com/modelcontextprotocol/python-sdk/pull/648/commits/9439a4c65fee2fde27110eddb5c20ec3ee88255b |
|
| https://github.com/pcarleton |
| more cleanup | https://github.com/modelcontextprotocol/python-sdk/pull/648/commits/48eb13d0c459a7abf6362b9926b727715d7e286b |
| 48eb13d | https://github.com/modelcontextprotocol/python-sdk/pull/648/commits/48eb13d0c459a7abf6362b9926b727715d7e286b |
| https://github.com/pcarleton |
| pcarleton | https://github.com/pcarleton |
| force-pushed | https://github.com/modelcontextprotocol/python-sdk/compare/ede25d329c5f349df2c4bc8572e54642bc8fa9fb..48eb13d0c459a7abf6362b9926b727715d7e286b |
| ede25d3 | https://github.com/modelcontextprotocol/python-sdk/commit/ede25d329c5f349df2c4bc8572e54642bc8fa9fb |
| 48eb13d | https://github.com/modelcontextprotocol/python-sdk/commit/48eb13d0c459a7abf6362b9926b727715d7e286b |
|
Compare
| https://github.com/modelcontextprotocol/python-sdk/compare/ede25d329c5f349df2c4bc8572e54642bc8fa9fb..48eb13d0c459a7abf6362b9926b727715d7e286b |
| May 9, 2025 11:21 | https://github.com/modelcontextprotocol/python-sdk/pull/648#event-17589382781 |
| https://github.com/felixweinberger |
| felixweinberger | https://github.com/felixweinberger |
|
needs more work
| https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22needs%20more%20work%22 |
|
needs publish
| https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22needs%20publish%22 |
| Sep 5, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/648#event-19529444733 |
| https://github.com/felixweinberger |
| felixweinberger | https://github.com/felixweinberger |
|
Sep 5, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/648#pullrequestreview-3189450800 |
|
View reviewed changes
| https://github.com/modelcontextprotocol/python-sdk/pull/648/files/48eb13d0c459a7abf6362b9926b727715d7e286b |
| felixweinberger | https://github.com/felixweinberger |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/648 |
| https://github.com/modelcontextprotocol/python-sdk/pull/648#pullrequestreview-3189450800 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| @pcarleton | https://github.com/pcarleton |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/648 |
| https://github.com/felixweinberger |
| felixweinberger | https://github.com/felixweinberger |
|
pending publish
| https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22pending%20publish%22 |
| Nov 12, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/648#event-20894725272 |
| https://github.com/maxisbey |
| maxisbey | https://github.com/maxisbey |
| Dec 19, 2025 | https://github.com/modelcontextprotocol/python-sdk/pull/648#event-21674020272 |
| https://github.com/maxisbey |
| maxisbey | https://github.com/maxisbey |
| March 17, 2026 19:55 | https://github.com/modelcontextprotocol/python-sdk/pull/648#event-23657429190 |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F648 |
|
| https://github.com/felixweinberger |
|
felixweinberger
| https://github.com/felixweinberger |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/648/files/48eb13d0c459a7abf6362b9926b727715d7e286b |
|
needs more work
| https://github.com/modelcontextprotocol/python-sdk/issues?q=state%3Aopen%20label%3A%22needs%20more%20work%22 |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/648 |
|
| https://github.com/pcarleton |
|
| https://github.com/felixweinberger |
|
| https://github.com/maxisbey |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |