| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:b2106aa2-67ad-4673-f6b5-32ffcf9962af |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8E96:336741:65A800:8749B1:6A5B338C |
| html-safe-nonce | c61b6cf8c92bab2501fa3f6740d333681a40369e5d4b411c82be11f2f41f6536 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTk2OjMzNjc0MTo2NUE4MDA6ODc0OUIxOjZBNUIzMzhDIiwidmlzaXRvcl9pZCI6IjM2MzQzMjAzOTMyOTU4MzYwNDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | dfdfc7925e71f74c333dde1984ca358495cba16d8f386afb2275e0bea8965945 |
| hovercard-subject-tag | pull_request:2416744454 |
| 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 | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/371/files |
| twitter:image | https://avatars.githubusercontent.com/u/156136903?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/156136903?s=400&v=4 |
| og:image:alt | Allow any origin to make requests
Allow GET, POST, and OPTIONS HTTP methods
Allow any headers
Allow sending credentials with requests
Also added OPTIONS method to auth routes to handle CORS prefli... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| 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/371/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmodelcontextprotocol%2Fpython-sdk%2Fpull%2F371%2Ffiles |
| 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%2F371%2Ffiles |
|
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=modelcontextprotocol%2Fpython-sdk |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/371/files |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/371/files |
| Reload | https://github.com/modelcontextprotocol/python-sdk/pull/371/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/371/files |
|
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 |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fmodelcontextprotocol%2Fpython-sdk%2Fissues%2Fnew%2Fchoose |
| jerome3o-anthropic | https://github.com/jerome3o-anthropic |
| main | https://github.com/modelcontextprotocol/python-sdk/tree/main |
| jerome/auth-fixes | https://github.com/modelcontextprotocol/python-sdk/tree/jerome/auth-fixes |
|
Conversation
6
| https://github.com/modelcontextprotocol/python-sdk/pull/371 |
|
Commits
61
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits |
|
Checks
0
| https://github.com/modelcontextprotocol/python-sdk/pull/371/checks |
|
Files changed
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/371/files |
|
Added CORS middleware to allow cross-origin requests
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#top |
|
Show all changes
61 commits
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files |
|
682ff1e
wip
praboud-ant Mar 6, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/682ff1e9e3c8c66aafa5a9f1acd2e21deeeaa9a4 |
|
331d51e
Unwind changes
praboud-ant Mar 6, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/331d51eb04d0f667ff131c6d2315b00fd6751c00 |
|
d283f56
wip
praboud-ant Mar 7, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/d283f560cc3a461555daba6acd533ab0be157cde |
|
e96d280
Get tests passing
praboud-ant Mar 10, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/e96d280a683f0dbfab4f3939d4f5cbd93c47928a |
|
1e9dd4c
Clean up provider interface
praboud-ant Mar 10, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/1e9dd4c213a2e31920df0c7dab4e6db699c3c5bc |
|
d535089
Lint
praboud-ant Mar 10, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/d535089a661a94f43f5f0e24846c07d0fd23919e |
|
031cadf
Clean up registration endpoint
praboud-ant Mar 10, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/031cadff64ecde859f59b1a5ab19997ffe84979e |
|
765efb6
Lint
praboud-ant Mar 10, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/765efb6a096ef187c103f5a95f5d3423885514b5 |
|
0637bc3
update token + revoke to use form data
praboud-ant Mar 10, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/0637bc3c09013388438ec3fd67878e6b37b62d74 |
|
b99633a
Adjust more things to fit spec
praboud-ant Mar 10, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/b99633af2a3de7e68a6852f46d3f7c50478898dc |
|
9ae1c21
Lint
praboud-ant Mar 10, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/9ae1c2174b6fe5105bfd730f3485e03eb10471a9 |
|
50683b9
Remove dup
praboud-ant Mar 10, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/50683b9cb752663eb7a378e3db637196fbdabec7 |
|
2c5f26a
Comment
praboud-ant Mar 10, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/2c5f26a86ddb52c0f7b531d7a10470dddd43264d |
|
e605994
Refactor back to authorize()
praboud-ant Mar 10, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/e60599461b397450b10e423534ccd71e1b062ada |
|
e7c5f87
Improve validation for /token
praboud-ant Mar 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/e7c5f87fd30910e61fd0321a7f725d49eb782eba |
|
83c0c9f
Improve validation for registration
praboud-ant Mar 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/83c0c9f7b5a16e85fb814b3bda9675bd5b10399d |
|
0c1aae9
Improve /authorize validation & add tests
praboud-ant Mar 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/0c1aae97c7de1ea09ba33b356d3b1d41fe9a010b |
|
038fb04
Hoist oauth token expiration check into bearer auth middleware
praboud-ant Mar 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/038fb045f076b6aa8b151febdd7f93f827834316 |
|
a4e17f3
Add tests for /revoke validation
praboud-ant Mar 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/a4e17f3f13446e26fe1f6dc3dd7688e72a0c5bb5 |
|
5f11c60
Lint + typecheck
praboud-ant Mar 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/5f11c601f4743e2fed2dd1dd67671ad0edbbca22 |
|
571913a
Clean up unused error classes
praboud-ant Mar 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/571913a89397a9f1c29e7150d9cf3adecc367073 |
|
d43647f
Update to use Python 3.10 types
praboud-ant Mar 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/d43647f8f385207a04eb7f0eb737875cfbe70cfd |
|
9d72c1e
Use classes for handlers
praboud-ant Mar 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/9d72c1e598f41e8e1741e20b541ce1776c57882d |
|
a5079af
Refactor
praboud-ant Mar 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/a5079af9844b169a7bc34668275554fced20565a |
|
c4c2608
Simplify bearer auth logic
praboud-ant Mar 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/c4c26087c224d443853723913666ef0218652586 |
|
bc62d73
Avoid asyncio dependency in tests
praboud-ant Mar 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/bc62d73214b62415b8e6f1fe346d8a4320054041 |
|
3852179
Add comment
praboud-ant Mar 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/3852179c7dc1801c67c193632ccb10667346dd28 |
|
874838a
Lint
praboud-ant Mar 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/874838a58f54c11287a32b2f6d89e21ecc9a7c5a |
|
f788d79
Add json_response.py comment
praboud-ant Mar 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/f788d7900beed7fa0ae582c9e855d6b35b664af5 |
|
152feb9
Format
praboud-ant Mar 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/152feb94df7324f47ba9d1a1521bcc9062a1fd8d |
|
f37ebc4
Move around the response models to be closer to the handlers
praboud-ant Mar 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/f37ebc46e5b19d3ee0e6e57f937dfd12e40e106c |
|
c2873fd
Get rid of silly TS comments
praboud-ant Mar 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/c2873fdb16ca939fea14e06f6e018aa67301370c |
|
fe2c029
Remove ClientAuthRequest
praboud-ant Mar 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/fe2c029096e5c8e2a5d8973d7db9d3b1eefa7d59 |
|
3a13f5d
Reorganize AuthInfo
praboud-ant Mar 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/3a13f5d8e3458258cdaedb242ee049e93af9ee18 |
|
37c5fc4
Refactor client metadata endpoint
praboud-ant Mar 11, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/37c5fc4e22ee488541cec001fbc331d42318adba |
|
792d302
Make metadata more spec compliant
praboud-ant Mar 12, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/792d3020e2495ee8ef995e18df63e4b3bfa23a3b |
|
6c48b11
Use python 3.10 types everywhere
praboud-ant Mar 12, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/6c48b1107b80b91fae17fea0d7438cf392b9c5e1 |
|
a437566
Add back authorization to the /revoke endpoint, simplify revoke
praboud-ant Mar 12, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/a437566229b5b97eff4233cba5a2a86466665b43 |
|
9fee929
Move around validation logic
praboud-ant Mar 12, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/9fee92976c165d02692cb4da315b87cca1cbdde5 |
|
d79be8f
Fixups while integrating new auth capabilities
praboud-ant Mar 19, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/d79be8f227d7dd23f2a9782d4edb559273a70a31 |
|
8d637b4
Pull all auth settings out into a separate config
praboud-ant Mar 19, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/8d637b432eae7ffcfb6a21c22be4372cdcea743f |
|
8c86bce
Move router file to be routes
praboud-ant Mar 19, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/8c86bce36275c6eb5018dafe613841078d5f75da |
|
31618c1
Add auth context middleware
praboud-ant Mar 19, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/31618c148e9600dec4b0a3baeed62e8b2695c6f1 |
|
5ebbc19
Validate scopes + provide default
praboud-ant Mar 19, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/5ebbc19b713bd896764cad369cdf8432823e50c7 |
|
50673c6
Validate grant_types on registration
praboud-ant Mar 19, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/50673c6360749521db9181effec0e883ae51781a |
|
02d76f3
auth: client implementation
dsp-ant Mar 12, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/02d76f32c54a367758072b8541f755188ce20fba |
|
88edddc
update lock
dsp-ant Mar 12, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/88edddcd0a776966cc87d1673b2a8d64b27c4af5 |
|
d774be7
fix
dsp-ant Mar 12, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/d774be7daefaf6968f60b9ab9bdd3c8966153e70 |
|
a09e958
foo
dsp-ant Mar 14, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/a09e9580c71ed4ff7892468a7dbe7bfabea1fd0c |
|
4e73552
Format
praboud-ant Mar 19, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/4e73552027316dce3b3b9fa5a8130341b50d037c |
|
56f694e
Move StreamingASGITransport into the library code, so MCP integration…
praboud-ant Mar 19, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/56f694e16aa072e5e53fead581260ebae044cddb |
|
60da682
Improved error handling, generic types for provider
praboud-ant Mar 21, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/60da6822a3f836becba91b73e533bf31ca0d53fa |
|
374a0b4
Rename AuthInfo to AccessToken
praboud-ant Mar 21, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/374a0b4903ffcaf4dc0b99cb46ad1465a0f7d8a2 |
|
fb5a568
Rename
praboud-ant Mar 22, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/fb5a56831e5f0573d0cd6eaa3647d7470d0b904a |
|
76ddc65
Add docs
praboud-ant Mar 22, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/76ddc65a2dad159960b73326aab326565969c722 |
|
e42dbf5
Merge remote-tracking branch 'origin/main' into praboud/auth
praboud-ant Mar 22, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/e42dbf560ac2349958b65ded65592054e214f567 |
|
10e00e7
Typecheck
praboud-ant Mar 22, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/10e00e7e128d858091d541d56382e72d7df67ea0 |
|
87571d8
Return 401 on missing auth, not 403
praboud-ant Mar 25, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/87571d8ff4fee015709438b72c8999d3a026a780 |
|
c6f991b
Convert AuthContextMiddleware to plain ASGI middleware & add tests
praboud-ant Mar 25, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/c6f991bdd9b92349bd48a2340db3b81fea4705a3 |
|
800b66a
Added CORS middleware to allow cross-origin requests
jerome3o-anthropic Mar 25, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/800b66a6242959673273b214ff405d810e6cde98 |
|
f614ea2
Commented out redirect_uri checks in authorization code request handling
jerome3o-anthropic Mar 25, 2025
| https://github.com/modelcontextprotocol/python-sdk/pull/371/commits/f614ea25e11c8042e5cb9ee09fa7305ff3ae499d |
|
Clear filters
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/371/files |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/371/files |
|
.gitignore
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947 |
|
CLAUDE.md
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-6ebdb617a8104a7756d0cf36578ab01103dc9f07e4dc6feb751296b9c402faf7 |
|
README.md
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 |
|
main.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-29fac9db8eee314fe4708bc7f3c4f8cef31dd11aec180a8ccb995f840716c4f8 |
|
pyproject.toml
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711 |
|
__init__.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-7ad3a87606502cd0dc2339923e00e0f6f66844db32c207d4ee35e1030ca48dee |
|
oauth.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-b6618fde0a5f3ef76956f9b34f975c0b1ab001cc4b58f85dde8dc28a01f00c70 |
|
sse.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-41ed2e8548ae223801c0a37a6b50ce913e24f0e660bbbc2ddd91686820c86336 |
|
__init__.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-e54c103464b3d0669244bec49b8fa9d7de388a14eca2cb680fae101d9df59df3 |
|
errors.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-ec9e76cf64548fe5d817a1b432debc029e70bdc762089621445d4b38ba09334c |
|
__init__.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-41be071f4a433c410c0fadab4ecb9a4ccaee7c9aeb2d8292951e31588bd3c1e8 |
|
authorize.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-29f49c82612bbc9e8070a2be90b36aa33ca72f1ddae66f15f261bfcbb1a9a85d |
|
metadata.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-1b7fbdcb4ef897175becf3eb92b73af8726d5c5a52f72b22d61aba56efe1dc30 |
|
register.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-6643f748c6f203d6b3c55593361c894373aa78f360ebaa4f3b60b445efccc5af |
|
revoke.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-56bd9bb95f99c6e44613e86b1f8a83f343d920dbd1c6d195af80d8ec54384852 |
|
token.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-0bfdf5a468abdd078a0287db095a4ad5ebfcb04ea3e437026cdc8038c137ecab |
|
json_response.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-0c9125a55c25ea92c8a852b894dbfb7ca863984511d92ec209f2894e276b042f |
|
__init__.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-8aaec87d6c3fbde4ff1bbe88b64da350a5ae59134eddbb38f018d2ed1dca1151 |
|
auth_context.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-0c533b2b9dc4b0c5803c44c5b970efe3366bcefc785cfdfadf0da311dc82fa18 |
|
bearer_auth.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-0b11aaab79fc19c511b87711ce27207efba24fbd0226bea59af663715ba0f0ec |
|
client_auth.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-24c1b3fd929c3f6acb7f5a09322c15122e44e894b595a6013b0ae6259ad27500 |
|
provider.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-f7e852ad288ea2750460eb8e8ef0d6152216cd97ae505acd5f06146cf866abec |
|
routes.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-6dfb076f1d9772b9a78be06b88bbbae0f92a0108284fcf247f342cd1a88433f2 |
|
settings.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-ed6123a6a50ac222dad0c2887aa3186d37bbc67f7a2105d4a06320638a75fd25 |
|
server.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-14a2991a8f2be5b9e60dab5fae92d2230dc23e57937ad5e5641b832d9c662738 |
|
server.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-b21bf5e21c058ccfddb404c209f2d4288e4f32b121111ffc9d466638631d13e4 |
|
sse.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-db3d89720f05f9c8a375c9ce008a6b477be25dccabca86a7d422814c5ab3f12c |
|
streaming_asgi_transport.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-450cf973f68283f2afdc57506764dc6baa67eef15ef22b828e0c98dbdb9770c2 |
|
auth.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-01350058961f3196e3373d707e2178962377dc9a85f481ade94e8f05e4701c8d |
|
test_oauth.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-60bb2c0093052ebdfbdb21dc463496a8e5143f14ab5ed16fd635f2a3bc6db183 |
|
test_bearer_auth.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-e9da357dd9e1fbd6287ffd8766f14cfb02020d11144474be22c36805c6fa6382 |
|
test_error_handling.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-91ee20daa15c8be5663ae23f6ebbc6294ef39fd9f22c8165b93f1b6ed9a415ba |
|
__init__.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-b43e52f566a27fab5112b032c3bcedb7f814a43b0387699c43bc0bb521da565b |
|
test_auth_integration.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-6db9f61c163fde554e33209f7b184b6485d848942a133b8cf17024c70f216004 |
|
test_sse.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-a2934f5f6ec610dff6774352c41b8c697b539614667643d69fd67f6fc6d7765e |
|
test_ws.py
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-42c069f4857387aa663d81e4dc484bffa345f00b175503cfe090ca14d6dcdfd5 |
|
uv.lock
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-84321598744d84dbee2318e634c74c9aae39a1c253f1c4bd17ebf9ef2f807b11 |
| .gitignore | https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947 |
|
View file
| https://github.com/modelcontextprotocol/python-sdk/blob/f614ea25e11c8042e5cb9ee09fa7305ff3ae499d/.gitignore |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/371/{{ revealButtonHref }} |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947 |
| CLAUDE.md | https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-6ebdb617a8104a7756d0cf36578ab01103dc9f07e4dc6feb751296b9c402faf7 |
|
View file
| https://github.com/modelcontextprotocol/python-sdk/blob/f614ea25e11c8042e5cb9ee09fa7305ff3ae499d/CLAUDE.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/371/{{ revealButtonHref }} |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-6ebdb617a8104a7756d0cf36578ab01103dc9f07e4dc6feb751296b9c402faf7 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-6ebdb617a8104a7756d0cf36578ab01103dc9f07e4dc6feb751296b9c402faf7 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-6ebdb617a8104a7756d0cf36578ab01103dc9f07e4dc6feb751296b9c402faf7 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-6ebdb617a8104a7756d0cf36578ab01103dc9f07e4dc6feb751296b9c402faf7 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-6ebdb617a8104a7756d0cf36578ab01103dc9f07e4dc6feb751296b9c402faf7 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-6ebdb617a8104a7756d0cf36578ab01103dc9f07e4dc6feb751296b9c402faf7 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-6ebdb617a8104a7756d0cf36578ab01103dc9f07e4dc6feb751296b9c402faf7 |
| README.md | https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 |
|
View file
| https://github.com/modelcontextprotocol/python-sdk/blob/f614ea25e11c8042e5cb9ee09fa7305ff3ae499d/README.md |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/371/{{ revealButtonHref }} |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5 |
| examples/clients/simple-chatbot/mcp_simple_chatbot/main.py | https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-29fac9db8eee314fe4708bc7f3c4f8cef31dd11aec180a8ccb995f840716c4f8 |
|
View file
| https://github.com/modelcontextprotocol/python-sdk/blob/f614ea25e11c8042e5cb9ee09fa7305ff3ae499d/examples/clients/simple-chatbot/mcp_simple_chatbot/main.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/371/{{ revealButtonHref }} |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-29fac9db8eee314fe4708bc7f3c4f8cef31dd11aec180a8ccb995f840716c4f8 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-29fac9db8eee314fe4708bc7f3c4f8cef31dd11aec180a8ccb995f840716c4f8 |
| pyproject.toml | https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711 |
|
View file
| https://github.com/modelcontextprotocol/python-sdk/blob/f614ea25e11c8042e5cb9ee09fa7305ff3ae499d/pyproject.toml |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/modelcontextprotocol/python-sdk/pull/371/{{ revealButtonHref }} |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711 |
|
| https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711 |
| src/mcp/client/auth/__init__.py | https://github.com/modelcontextprotocol/python-sdk/pull/371/files#diff-7ad3a87606502cd0dc2339923e00e0f6f66844db32c207d4ee35e1030ca48dee |
|
View file
| https://github.com/modelcontextprotocol/python-sdk/blob/f614ea25e11c8042e5cb9ee09fa7305ff3ae499d/src/mcp/client/auth/__init__.py |
|
Open in desktop
| https://desktop.github.com |
| Please reload this page | https://github.com/modelcontextprotocol/python-sdk/pull/371/files |
|
| 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 |