Title: When no authorization is required dont fail on missing user scope 401 Unauthorized #615 · Issue #616 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: When no authorization is required dont fail on missing user scope 401 Unauthorized #615 · Issue #616 · modelcontextprotocol/python-sdk
X Title: When no authorization is required dont fail on missing user scope 401 Unauthorized #615 · Issue #616 · modelcontextprotocol/python-sdk
Description: While developing a mcp server that wil run locally I want to use the sse protocal and not stdio. Because im running local i dont need any authentication, but the default RequireAuthMiddleware will fail if if not isinstance(auth_user, Aut...
Open Graph Description: While developing a mcp server that wil run locally I want to use the sse protocal and not stdio. Because im running local i dont need any authentication, but the default RequireAuthMiddleware will ...
X Description: While developing a mcp server that wil run locally I want to use the sse protocal and not stdio. Because im running local i dont need any authentication, but the default RequireAuthMiddleware will ...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/issues/616
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"When no authorization is required dont fail on missing user scope 401 Unauthorized #615","articleBody":"While developing a mcp server that wil run locally I want to use the sse protocal and not stdio. Because im running local i dont need any authentication, but the default `RequireAuthMiddleware` will fail if `if not isinstance(auth_user, AuthenticatedUser)`. \n\nI want the solution to be \n`if not isinstance(auth_user, AuthenticatedUser) and self.required_scopes:` so if there are no required scopes I wont have to do anything and i can just connect to the server withtou any autherization\n\nI submitted a pr https://github.com/modelcontextprotocol/python-sdk/pull/615\n","author":{"url":"https://github.com/yonigottesman","@type":"Person","name":"yonigottesman"},"datePublished":"2025-05-02T11:17:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/616/python-sdk/issues/616"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6e75a61d-ae61-b2c5-3be1-474adcce26a4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A6FC:280B69:BCD8F4:FC5EC2:6A60132B |
| html-safe-nonce | a990eda538c89e641a36106fe1fda4d07a9e376315b813a6262b83c900e8f216 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkZDOjI4MEI2OTpCQ0Q4RjQ6RkM1RUMyOjZBNjAxMzJCIiwidmlzaXRvcl9pZCI6IjQ2MjgzODE2NzkwNzgwODU0MTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9dc8ce80fcda35ccb36f1011774f95a9241492c4cbc5c0ddceacc5810a700876 |
| hovercard-subject-tag | issue:3035782968 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/modelcontextprotocol/python-sdk/616/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a249faf2f33569d318b984a05f2896b4848eaf201038883b26d2331b0bc1b137/modelcontextprotocol/python-sdk/issues/616 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a249faf2f33569d318b984a05f2896b4848eaf201038883b26d2331b0bc1b137/modelcontextprotocol/python-sdk/issues/616 |
| og:image:alt | While developing a mcp server that wil run locally I want to use the sse protocal and not stdio. Because im running local i dont need any authentication, but the default RequireAuthMiddleware will ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | yonigottesman |
| hostname | github.com |
| expected-hostname | github.com |
| None | 399e662401f6b9a532ecd80b305d17b9efadd864681448a290ab2901b98f288a |
| turbo-cache-control | no-preview |
| 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 | 2f4d68ce236d24a2cd682f94ef8bd8537c09d73d |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width