mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
feat(mcp): add LiteLLM_MCPToolsetTable and mcp_toolsets to ObjectPermissionTable
This commit is contained in:
parent
d8e4fc4dd0
commit
ed47c9464b
3 changed files with 39 additions and 0 deletions
|
|
@ -273,6 +273,7 @@ model LiteLLM_ObjectPermissionTable {
|
|||
agent_access_groups String[] @default([])
|
||||
models String[] @default([])
|
||||
blocked_tools String[] @default([]) // Tool names blocked for any key/team/user with this permission
|
||||
mcp_toolsets String[] @default([]) // Toolset IDs granted to this key/team/user
|
||||
teams LiteLLM_TeamTable[]
|
||||
projects LiteLLM_ProjectTable[]
|
||||
verification_tokens LiteLLM_VerificationToken[]
|
||||
|
|
@ -327,6 +328,18 @@ model LiteLLM_MCPServerTable {
|
|||
review_notes String?
|
||||
}
|
||||
|
||||
// Named collection of {server_id, tool_name} pairs that can be granted to keys/teams
|
||||
model LiteLLM_MCPToolsetTable {
|
||||
toolset_id String @id @default(uuid())
|
||||
toolset_name String @unique
|
||||
description String?
|
||||
tools Json @default("[]") // [{server_id: string, tool_name: string}]
|
||||
created_at DateTime @default(now())
|
||||
created_by String?
|
||||
updated_at DateTime @updatedAt
|
||||
updated_by String?
|
||||
}
|
||||
|
||||
// Per-user BYOK credentials for MCP servers
|
||||
model LiteLLM_MCPUserCredentials {
|
||||
id String @id @default(uuid())
|
||||
|
|
|
|||
|
|
@ -273,6 +273,7 @@ model LiteLLM_ObjectPermissionTable {
|
|||
agent_access_groups String[] @default([])
|
||||
models String[] @default([])
|
||||
blocked_tools String[] @default([]) // Tool names blocked for any key/team/user with this permission
|
||||
mcp_toolsets String[] @default([]) // Toolset IDs granted to this key/team/user
|
||||
teams LiteLLM_TeamTable[]
|
||||
projects LiteLLM_ProjectTable[]
|
||||
verification_tokens LiteLLM_VerificationToken[]
|
||||
|
|
@ -331,6 +332,18 @@ model LiteLLM_MCPServerTable {
|
|||
@@index([approval_status])
|
||||
}
|
||||
|
||||
// Named collection of {server_id, tool_name} pairs that can be granted to keys/teams
|
||||
model LiteLLM_MCPToolsetTable {
|
||||
toolset_id String @id @default(uuid())
|
||||
toolset_name String @unique
|
||||
description String?
|
||||
tools Json @default("[]") // [{server_id: string, tool_name: string}]
|
||||
created_at DateTime @default(now())
|
||||
created_by String?
|
||||
updated_at DateTime @updatedAt
|
||||
updated_by String?
|
||||
}
|
||||
|
||||
// Per-user BYOK credentials for MCP servers
|
||||
model LiteLLM_MCPUserCredentials {
|
||||
id String @id @default(uuid())
|
||||
|
|
|
|||
|
|
@ -273,6 +273,7 @@ model LiteLLM_ObjectPermissionTable {
|
|||
agent_access_groups String[] @default([])
|
||||
models String[] @default([])
|
||||
blocked_tools String[] @default([]) // Tool names blocked for any key/team/user with this permission
|
||||
mcp_toolsets String[] @default([]) // Toolset IDs granted to this key/team/user
|
||||
teams LiteLLM_TeamTable[]
|
||||
projects LiteLLM_ProjectTable[]
|
||||
verification_tokens LiteLLM_VerificationToken[]
|
||||
|
|
@ -322,6 +323,18 @@ model LiteLLM_MCPServerTable {
|
|||
byok_api_key_help_url String?
|
||||
}
|
||||
|
||||
// Named collection of {server_id, tool_name} pairs that can be granted to keys/teams
|
||||
model LiteLLM_MCPToolsetTable {
|
||||
toolset_id String @id @default(uuid())
|
||||
toolset_name String @unique
|
||||
description String?
|
||||
tools Json @default("[]") // [{server_id: string, tool_name: string}]
|
||||
created_at DateTime @default(now())
|
||||
created_by String?
|
||||
updated_at DateTime @updatedAt
|
||||
updated_by String?
|
||||
}
|
||||
|
||||
// Per-user BYOK credentials for MCP servers
|
||||
model LiteLLM_MCPUserCredentials {
|
||||
id String @id @default(uuid())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue