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/claude code plugin schema (#22271)
Rahul Dhanawade64c85dbc9fd3
diff --git a/litellm/proxy/schema.prisma b/litellm/proxy/schema.prismaindex 13461be3e7c..a5b0d930f58 100644--- a/litellm/proxy/schema.prisma+++ b/litellm/proxy/schema.prisma@@ -1096,4 +1096,19 @@ model LiteLLM_AccessGroupTable {created_by String?updated_at DateTime @default(now()) @updatedAtupdated_by String?-}\ No newline at end of file+}+// Claude Code Plugin Marketplace table+model LiteLLM_ClaudeCodePluginTable {+ id String @id @default(uuid())+ name String @unique+ version String?+ description String?+ manifest_json String?+ files_json String? @default("{}")+ enabled Boolean @default(true)+ created_at DateTime? @default(now())+ updated_at DateTime? @default(now()) @updatedAt+ created_by String?++ @@map("LiteLLM_ClaudeCodePluginTable")+}diff --git a/schema.prisma b/schema.prismaindex 34308b29ebf..bc32a8cce32 100644--- a/schema.prisma+++ b/schema.prisma@@ -1095,4 +1095,19 @@ model LiteLLM_AccessGroupTable {created_by String?updated_at DateTime @default(now()) @updatedAtupdated_by String?-}\ No newline at end of file+}+// Claude Code Plugin Marketplace table+model LiteLLM_ClaudeCodePluginTable {+ id String @id @default(uuid())+ name String @unique+ version String?+ description String?+ manifest_json String?+ files_json String? @default("{}")+ enabled Boolean @default(true)+ created_at DateTime? @default(now())+ updated_at DateTime? @default(now()) @updatedAt+ created_by String?++ @@map("LiteLLM_ClaudeCodePluginTable")+}diff --git a/tests/litellm/proxy/test_claude_code_marketplace.py b/tests/litellm/proxy/test_claude_code_marketplace.pynew file mode 100644index 00000000000..5376e81012b--- /dev/null+++ b/tests/litellm/proxy/test_claude_code_marketplace.py@@ -0,0 +1,18 @@+import pytest+++async def test_claude_code_plugin_table_schema_exists():++ with open("schema.prisma", "r") as f:+ schema = f.read()+ assert "LiteLLM_ClaudeCodePluginTable" in schema, (+ "LiteLLM_ClaudeCodePluginTable model missing from schema.prisma - "+ "this causes AttributeError on all /claude-code/plugins endpoints"+ )++ with open("litellm/proxy/schema.prisma", "r") as f:+ proxy_schema = f.read()+ assert "LiteLLM_ClaudeCodePluginTable" in proxy_schema, (+ "LiteLLM_ClaudeCodePluginTable model missing from litellm/proxy/schema.prisma"+ )