clean up stdio

This commit is contained in:
Taylor Wilsdon
2025-07-10 14:33:24 -04:00
parent 9afdcf1b2b
commit 28a31904d7
2 changed files with 3 additions and 4 deletions

View File

@@ -181,16 +181,15 @@ class MinimalOAuthServer:
# Global instance for stdio mode
_minimal_oauth_server: Optional[MinimalOAuthServer] = None
def get_oauth_redirect_uri(transport_mode: str = "stdio", port: int = 8000, base_uri: str = "http://localhost") -> str:
def get_oauth_redirect_uri(port: int = 8000, base_uri: str = "http://localhost") -> str:
"""
Get the appropriate OAuth redirect URI.
Priority:
1. GOOGLE_OAUTH_REDIRECT_URI environment variable
2. Constructed from transport mode, port, and base URI
2. Constructed from port and base URI
Args:
transport_mode: "stdio" or "streamable-http"
port: Port number (default 8000)
base_uri: Base URI (default "http://localhost")