Skip to content

Commit 8c86bce

Browse files
committed
Move router file to be routes
1 parent 8d637b4 commit 8c86bce

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ class AuthSettings(BaseModel):
2828
description="URL advertised as OAuth issuer; this should be the URL the server "
2929
"is reachable at",
3030
)
31-
service_documentation_url: AnyHttpUrl | None = Field(
32-
None, description="Service documentation URL advertised by OAuth"
33-
)
31+
service_documentation_url: AnyHttpUrl | None = None
3432
client_registration_options: ClientRegistrationOptions | None = None
3533
revocation_options: RevocationOptions | None = None
3634
required_scopes: list[str] | None = None

src/mcp/server/fastmcp/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
RequireAuthMiddleware,
3131
)
3232
from mcp.server.auth.provider import OAuthServerProvider
33-
from mcp.server.auth.router import (
33+
from mcp.server.auth.routes import (
3434
AuthSettings,
3535
)
3636
from mcp.server.fastmcp.exceptions import ResourceError
@@ -545,7 +545,7 @@ async def handle_sse(request) -> EventSourceResponse:
545545
# Add auth endpoints if auth provider is configured
546546
if self._auth_provider:
547547
assert self.settings.auth
548-
from mcp.server.auth.router import create_auth_routes
548+
from mcp.server.auth.routes import create_auth_routes
549549

550550
required_scopes = self.settings.auth.required_scopes or []
551551

tests/server/fastmcp/auth/test_auth_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
RefreshToken,
2727
construct_redirect_uri,
2828
)
29-
from mcp.server.auth.router import (
29+
from mcp.server.auth.routes import (
3030
AuthSettings,
3131
ClientRegistrationOptions,
3232
RevocationOptions,

0 commit comments

Comments
 (0)