diff --git a/docs/servers/auth/oauth-proxy.mdx b/docs/servers/auth/oauth-proxy.mdx index 435168cfd..dec952cb1 100644 --- a/docs/servers/auth/oauth-proxy.mdx +++ b/docs/servers/auth/oauth-proxy.mdx @@ -165,7 +165,7 @@ The `OAuthProxy` class provides the complete proxy implementation: ```python from fastmcp import FastMCP -from fastmcp.server.auth.proxy import OAuthProxy +from fastmcp.server.auth import OAuthProxy from fastmcp.server.auth.providers.jwt import JWTVerifier # Configure token validation for your provider diff --git a/src/fastmcp/server/auth/__init__.py b/src/fastmcp/server/auth/__init__.py index cdc3310ae..e7111ec97 100644 --- a/src/fastmcp/server/auth/__init__.py +++ b/src/fastmcp/server/auth/__init__.py @@ -6,6 +6,7 @@ from .auth import ( AuthProvider, ) from .providers.jwt import JWTVerifier, StaticTokenVerifier +from .oauth_proxy import OAuthProxy __all__ = [ @@ -16,6 +17,7 @@ __all__ = [ "StaticTokenVerifier", "RemoteAuthProvider", "AccessToken", + "OAuthProxy", ]