From 9a4bacd85d8d2e66ca33318cc3e21178e84ae1c9 Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Wed, 4 Mar 2026 16:07:05 -0800 Subject: [PATCH] fix: add missing spec_path column to LiteLLM_MCPServerTable schema (#22820) The OpenAPI-to-MCP feature (PR #21575) added spec_path to the code (_types.py, mcp_server_manager.py) but missed adding the column to the Prisma schema files. This causes "Could not find field spec_path" errors when creating OpenAPI-based MCP servers via the UI or API. Adds `spec_path String?` to LiteLLM_MCPServerTable in all three schema files (root, litellm/proxy, litellm-proxy-extras). Made-with: Cursor --- litellm-proxy-extras/litellm_proxy_extras/schema.prisma | 1 + litellm/proxy/schema.prisma | 1 + schema.prisma | 1 + 3 files changed, 3 insertions(+) diff --git a/litellm-proxy-extras/litellm_proxy_extras/schema.prisma b/litellm-proxy-extras/litellm_proxy_extras/schema.prisma index 5abe7a0a2b..6d20a71f03 100644 --- a/litellm-proxy-extras/litellm_proxy_extras/schema.prisma +++ b/litellm-proxy-extras/litellm_proxy_extras/schema.prisma @@ -277,6 +277,7 @@ model LiteLLM_MCPServerTable { alias String? description String? url String? + spec_path String? transport String @default("sse") auth_type String? credentials Json? @default("{}") diff --git a/litellm/proxy/schema.prisma b/litellm/proxy/schema.prisma index 25ee275054..f7c0711241 100644 --- a/litellm/proxy/schema.prisma +++ b/litellm/proxy/schema.prisma @@ -277,6 +277,7 @@ model LiteLLM_MCPServerTable { alias String? description String? url String? + spec_path String? transport String @default("sse") auth_type String? credentials Json? @default("{}") diff --git a/schema.prisma b/schema.prisma index 25ee275054..f7c0711241 100644 --- a/schema.prisma +++ b/schema.prisma @@ -277,6 +277,7 @@ model LiteLLM_MCPServerTable { alias String? description String? url String? + spec_path String? transport String @default("sse") auth_type String? credentials Json? @default("{}")