feat(schema): add token_validation and token_storage_ttl_seconds to LiteLLM_MCPServerTable

This commit is contained in:
Ishaan Jaffer 2026-04-09 17:29:44 -07:00
parent b84acc66a3
commit f6ed98eff8
No known key found for this signature in database
4 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,5 @@
-- Add OAuth token validation fields to LiteLLM_MCPServerTable
-- AlterTable
ALTER TABLE "LiteLLM_MCPServerTable"
ADD COLUMN IF NOT EXISTS "token_validation" JSONB,
ADD COLUMN IF NOT EXISTS "token_storage_ttl_seconds" INTEGER;

View file

@ -328,6 +328,8 @@ model LiteLLM_MCPServerTable {
submitted_at DateTime?
reviewed_at DateTime?
review_notes String?
token_validation Json?
token_storage_ttl_seconds Int?
@@index([approval_status])
}

View file

@ -328,6 +328,8 @@ model LiteLLM_MCPServerTable {
submitted_at DateTime?
reviewed_at DateTime?
review_notes String?
token_validation Json?
token_storage_ttl_seconds Int?
@@index([approval_status])
}

View file

@ -328,6 +328,10 @@ model LiteLLM_MCPServerTable {
submitted_at DateTime?
reviewed_at DateTime?
review_notes String?
// Per-user OAuth token validation rules: key-value pairs that must match fields
// in the OAuth token response. Tokens that don't match are rejected with HTTP 403.
token_validation Json?
token_storage_ttl_seconds Int?
@@index([approval_status])
}