π The fast, Pythonic way to build MCP servers and clients.
Clean-up merge from master
William Easton36565079ce11
diff --git a/src/fastmcp/server/auth/oauth_proxy.py b/src/fastmcp/server/auth/oauth_proxy.pyindex 6cab473d7..6bf340da8 100644--- a/src/fastmcp/server/auth/oauth_proxy.py+++ b/src/fastmcp/server/auth/oauth_proxy.py@@ -22,13 +22,12 @@ import hashlibimport secretsimport timefrom base64 import urlsafe_b64encode-from dataclasses import dataclassfrom typing import TYPE_CHECKING, Any, Finalfrom urllib.parse import urlencodeimport httpxfrom authlib.common.security import generate_token-from authlib.integrations.httpx_client import AsyncOAuth2Cli+from authlib.integrations.httpx_client import AsyncOAuth2Clientfrom key_value.aio.adapters.pydantic import PydanticAdapterfrom key_value.aio.protocols import AsyncKeyValuefrom mcp.server.auth.handlers.token import TokenErrorResponse, TokenSuccessResponse@@ -48,7 +47,7 @@ from mcp.server.auth.settings import (RevocationOptions,)from mcp.shared.auth import OAuthClientInformationFull, OAuthToken-from pydantic import AnyHttpUrl, AnyUrl, BaseModel, Field, SecretStr+from pydantic import AnyHttpUrl, AnyUrl, Field, SecretStrfrom starlette.requests import Requestfrom starlette.responses import RedirectResponsefrom starlette.routing import Route