From b8d1b395d256c424a3efb04feaaa6ee77226f515 Mon Sep 17 00:00:00 2001 From: Tin Chi Lo Date: Fri, 10 Jul 2026 01:50:15 -0700 Subject: [PATCH] refactor(mcp): align register redirect_uris raise shape and forward client redirect_uris at the root path --- .../proxy/_experimental/mcp_server/discoverable_endpoints.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litellm/proxy/_experimental/mcp_server/discoverable_endpoints.py b/litellm/proxy/_experimental/mcp_server/discoverable_endpoints.py index 12e7fd7fe8b..a215ff675cd 100644 --- a/litellm/proxy/_experimental/mcp_server/discoverable_endpoints.py +++ b/litellm/proxy/_experimental/mcp_server/discoverable_endpoints.py @@ -1024,7 +1024,7 @@ async def register_client_with_server( if bridge_relay and not client_redirect_uris: raise HTTPException( status_code=400, - detail={"error": "redirect_uris is required to register a client with this server"}, + detail="redirect_uris is required to register a client with this server", ) register_data = { @@ -1814,6 +1814,7 @@ async def register_client(request: Request, mcp_server_name: Optional[str] = Non response_types=data.get("response_types", []), token_endpoint_auth_method=data.get("token_endpoint_auth_method", ""), fallback_client_id=resolved.server_name or resolved.name, + client_redirect_uris=data.get("redirect_uris"), ) return dummy_return