You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
I want the solution to be 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
The text was updated successfully, but these errors were encountered:
yonigottesman
changed the title
When no authorization is required dont fail on missing user scope #615
When no authorization is required dont fail on missing user scope 401 Unauthorized #615
May 2, 2025
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 ifif not isinstance(auth_user, AuthenticatedUser)
.I want the solution to be
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 autherizationI submitted a pr #615
The text was updated successfully, but these errors were encountered: