diff --git a/api/core/mcp/auth/auth_flow.py b/api/core/mcp/auth/auth_flow.py index d015769b54..c96686ba35 100644 --- a/api/core/mcp/auth/auth_flow.py +++ b/api/core/mcp/auth/auth_flow.py @@ -527,7 +527,7 @@ def register_client( response = ssrf_proxy.post( registration_url, - json=client_metadata.model_dump(), + json=client_metadata.model_dump(exclude_none=True), headers={"Content-Type": "application/json"}, ) if not response.is_success: