stateless mode for fastmcp entrypoint

This commit is contained in:
Taylor Wilsdon
2025-08-23 11:19:46 -04:00
parent 8f9a46e55b
commit 3280a76a65
2 changed files with 35 additions and 31 deletions

View File

@@ -1,5 +1,6 @@
import inspect
import logging
import re
from functools import wraps
from typing import Dict, List, Optional, Any, Callable, Union, Tuple
@@ -38,9 +39,7 @@ from auth.scopes import (
CUSTOM_SEARCH_SCOPE,
)
# OAuth 2.1 integration is now handled by FastMCP auth
OAUTH21_INTEGRATION_AVAILABLE = True
logger = logging.getLogger(__name__)
# Authentication helper functions
def _get_auth_context(
@@ -236,9 +235,6 @@ async def get_authenticated_google_service_oauth21(
return service, user_google_email
logger = logging.getLogger(__name__)
def _remove_user_email_arg_from_docstring(docstring: str) -> str:
"""
Remove user_google_email parameter documentation from docstring.