diff --git a/litellm/proxy/_experimental/mcp_server/db.py b/litellm/proxy/_experimental/mcp_server/db.py index a0290f51aeb..357925d2ba3 100644 --- a/litellm/proxy/_experimental/mcp_server/db.py +++ b/litellm/proxy/_experimental/mcp_server/db.py @@ -513,7 +513,7 @@ async def get_mcp_submissions( """ rows = await prisma_client.db.litellm_mcpservertable.find_many( where={"submitted_at": {"not": None}}, - order={"submitted_at": "asc"}, + order={"submitted_at": "desc"}, ) items = [LiteLLM_MCPServerTable(**r.model_dump()) for r in rows] diff --git a/litellm/proxy/management_endpoints/mcp_management_endpoints.py b/litellm/proxy/management_endpoints/mcp_management_endpoints.py index 57a784dfca9..43dcde535a4 100644 --- a/litellm/proxy/management_endpoints/mcp_management_endpoints.py +++ b/litellm/proxy/management_endpoints/mcp_management_endpoints.py @@ -1026,6 +1026,10 @@ if MCP_AVAILABLE: # TODO: audit log for create + # Admin-created servers are always active regardless of any lifecycle fields + # in the payload — prevents an admin from accidentally creating a pending server. + payload.approval_status = MCPApprovalStatus.active + # Attempt to create the mcp server try: new_mcp_server = await create_mcp_server(