diff --git a/litellm/proxy/_experimental/mcp_server/rest_endpoints.py b/litellm/proxy/_experimental/mcp_server/rest_endpoints.py index 5395142eb9a..56aeb31984a 100644 --- a/litellm/proxy/_experimental/mcp_server/rest_endpoints.py +++ b/litellm/proxy/_experimental/mcp_server/rest_endpoints.py @@ -857,6 +857,7 @@ if MCP_AVAILABLE: ######################################################## from litellm.proxy.management_endpoints.mcp_management_endpoints import ( NewMCPServerRequest, + _inherit_credentials_from_existing_server, ) def _extract_credentials( @@ -1074,6 +1075,10 @@ if MCP_AVAILABLE: }, ) + new_mcp_server_request = _inherit_credentials_from_existing_server( + new_mcp_server_request + ) + # For OpenAPI spec servers, generate tools from the spec directly if new_mcp_server_request.spec_path: return await _preview_openapi_tools(new_mcp_server_request.spec_path)