really dress this puppy up

This commit is contained in:
Taylor Wilsdon
2025-06-07 16:16:48 -04:00
parent aaa39a5b1b
commit 3b8e44b089
5 changed files with 274 additions and 144 deletions

View File

@@ -489,10 +489,10 @@ async def get_authenticated_google_service(
from core.server import get_oauth_redirect_uri_for_current_mode
from auth.oauth_callback_server import ensure_oauth_callback_available
# Ensure OAuth callback is available
# Ensure OAuth callback is available
redirect_uri = get_oauth_redirect_uri_for_current_mode()
# Note: We don't know the transport mode here, but the server should have set it
# Generate auth URL and raise exception with it
auth_response = await start_auth_flow(
mcp_session_id=None, # No longer using session-based auth
@@ -500,7 +500,7 @@ async def get_authenticated_google_service(
service_name=f"Google {service_name.title()}",
redirect_uri=redirect_uri,
)
# Extract the auth URL from the response and raise with it
raise GoogleAuthenticationError(auth_response)