The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(schema): restore MCP server fields dropped by schema_sync migration
Tuan Vuong4f7e63ed4a26
diff --git a/litellm-proxy-extras/litellm_proxy_extras/migrations/20260319000000_restore_mcp_approval_fields/migration.sql b/litellm-proxy-extras/litellm_proxy_extras/migrations/20260319000000_restore_mcp_approval_fields/migration.sqlnew file mode 100644index 00000000000..fa8724046c2--- /dev/null+++ b/litellm-proxy-extras/litellm_proxy_extras/migrations/20260319000000_restore_mcp_approval_fields/migration.sql@@ -0,0 +1,13 @@+-- Restore fields dropped by 20260311180521_schema_sync on LiteLLM_MCPServerTable+-- AlterTable+ALTER TABLE "LiteLLM_MCPServerTable"+ ADD COLUMN IF NOT EXISTS "source_url" TEXT,+ ADD COLUMN IF NOT EXISTS "approval_status" TEXT DEFAULT 'active',+ ADD COLUMN IF NOT EXISTS "submitted_by" TEXT,+ ADD COLUMN IF NOT EXISTS "submitted_at" TIMESTAMP(3),+ ADD COLUMN IF NOT EXISTS "reviewed_at" TIMESTAMP(3),+ ADD COLUMN IF NOT EXISTS "review_notes" TEXT;++-- CreateIndex+CREATE INDEX IF NOT EXISTS "LiteLLM_MCPServerTable_approval_status_idx"+ ON "LiteLLM_MCPServerTable"("approval_status");diff --git a/litellm-proxy-extras/litellm_proxy_extras/schema.prisma b/litellm-proxy-extras/litellm_proxy_extras/schema.prismaindex a2c83295403..88affb3c519 100644--- a/litellm-proxy-extras/litellm_proxy_extras/schema.prisma+++ b/litellm-proxy-extras/litellm_proxy_extras/schema.prisma@@ -320,11 +320,14 @@ model LiteLLM_MCPServerTable {is_byok Boolean @default(false)byok_description String[] @default([])byok_api_key_help_url String?+ source_url String?approval_status String @default("approved")submitted_by String?submitted_at DateTime?reviewed_at DateTime?review_notes String?++ @@index([approval_status])}// Per-user BYOK credentials for MCP servers