smithery
This commit is contained in:
@@ -71,6 +71,17 @@ def get_oauth_redirect_uri_for_current_mode() -> str:
|
||||
"""Get OAuth redirect URI based on current transport mode."""
|
||||
return get_oauth_redirect_uri(_current_transport_mode, WORKSPACE_MCP_PORT)
|
||||
|
||||
# Health check endpoint
|
||||
@server.custom_route("/health", methods=["GET"])
|
||||
async def health_check() -> Dict[str, Any]:
|
||||
"""Health check endpoint for container orchestration."""
|
||||
return {
|
||||
"status": "healthy",
|
||||
"service": "google-workspace-mcp",
|
||||
"version": "0.1.1",
|
||||
"transport": _current_transport_mode
|
||||
}
|
||||
|
||||
# Register OAuth callback as a custom route
|
||||
@server.custom_route("/oauth2callback", methods=["GET"])
|
||||
async def oauth2_callback(request: Request) -> HTMLResponse:
|
||||
|
||||
Reference in New Issue
Block a user