From 17b60c8815de12bc47cbe484f6d7f08a8d3f1ee9 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Mon, 20 Oct 2025 19:12:56 -0400 Subject: [PATCH] Fix settings import pattern in OAuth providers Use direct imports for non-deprecated items (ENV_FILE, ExtendedEnvSettingsSource, ExtendedSettingsConfigDict) and settings_module for the deprecated settings instance. --- examples/auth/github_oauth/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/auth/github_oauth/server.py b/examples/auth/github_oauth/server.py index 84b00d349..3b01d470f 100644 --- a/examples/auth/github_oauth/server.py +++ b/examples/auth/github_oauth/server.py @@ -13,7 +13,7 @@ To run: import os from fastmcp import FastMCP -from fastmcp.server.auth.providers.github import GitHubDCRProvider +from fastmcp.server.auth.providers.github import GitHubProvider as GitHubDCRProvider auth = GitHubDCRProvider( client_id=os.getenv("FASTMCP_SERVER_AUTH_GITHUB_CLIENT_ID") or "",