fastmcp deployment config

This commit is contained in:
Taylor Wilsdon
2025-12-23 08:35:52 -08:00
parent 82703cffa8
commit 258ea58436
3 changed files with 225 additions and 469 deletions

View File

@@ -9,6 +9,10 @@ import os
import sys
from dotenv import load_dotenv
# Load environment variables BEFORE any other imports that might read them
dotenv_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), ".env")
load_dotenv(dotenv_path=dotenv_path)
from auth.oauth_config import reload_oauth_config, is_stateless_mode
from core.log_formatter import EnhancedLogFormatter, configure_file_logging
from core.utils import check_credentials_directory_permissions
@@ -49,10 +53,6 @@ def enforce_fastmcp_cloud_defaults():
return enforced
# Load environment variables
dotenv_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), ".env")
load_dotenv(dotenv_path=dotenv_path)
_fastmcp_cloud_overrides = enforce_fastmcp_cloud_defaults()
# Suppress googleapiclient discovery cache warning