litellm-proxy-extras 0.2.6__py3-none-any.whl → 0.2.12__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of litellm-proxy-extras might be problematic. Click here for more details.

@@ -15,3 +15,13 @@ CREATE TABLE "LiteLLM_MCPServerTable" (
15
15
  CONSTRAINT "LiteLLM_MCPServerTable_pkey" PRIMARY KEY ("server_id")
16
16
  );
17
17
 
18
+ -- Migration for existing tables: rename alias to server_name if upgrading
19
+ DO $$
20
+ BEGIN
21
+ IF EXISTS (SELECT 1 FROM information_schema.columns WHERE table_name = 'LiteLLM_MCPServerTable' AND column_name = 'alias') THEN
22
+ ALTER TABLE "LiteLLM_MCPServerTable" RENAME COLUMN "alias" TO "server_name";
23
+ END IF;
24
+ END $$;
25
+ -- Migration for existing tables: add alias column if upgrading
26
+ ALTER TABLE "LiteLLM_MCPServerTable" ADD COLUMN IF NOT EXISTS "alias" TEXT;
27
+
@@ -0,0 +1,3 @@
1
+ -- AlterTable
2
+ ALTER TABLE "LiteLLM_MCPServerTable" ADD COLUMN "mcp_info" JSONB DEFAULT '{}';
3
+
@@ -0,0 +1,42 @@
1
+ -- DropIndex
2
+ DROP INDEX "LiteLLM_DailyTagSpend_tag_date_api_key_model_custom_llm_pro_key";
3
+
4
+ -- DropIndex
5
+ DROP INDEX "LiteLLM_DailyTeamSpend_team_id_date_api_key_model_custom_ll_key";
6
+
7
+ -- DropIndex
8
+ DROP INDEX "LiteLLM_DailyUserSpend_user_id_date_api_key_model_custom_ll_key";
9
+
10
+ -- AlterTable
11
+ ALTER TABLE "LiteLLM_DailyTagSpend" ADD COLUMN "mcp_namespaced_tool_name" TEXT,
12
+ ALTER COLUMN "model" DROP NOT NULL;
13
+
14
+ -- AlterTable
15
+ ALTER TABLE "LiteLLM_DailyTeamSpend" ADD COLUMN "mcp_namespaced_tool_name" TEXT,
16
+ ALTER COLUMN "model" DROP NOT NULL;
17
+
18
+ -- AlterTable
19
+ ALTER TABLE "LiteLLM_DailyUserSpend" ADD COLUMN "mcp_namespaced_tool_name" TEXT,
20
+ ALTER COLUMN "model" DROP NOT NULL;
21
+
22
+ -- AlterTable
23
+ ALTER TABLE "LiteLLM_SpendLogs" ADD COLUMN "mcp_namespaced_tool_name" TEXT;
24
+
25
+ -- CreateIndex
26
+ CREATE INDEX "LiteLLM_DailyTagSpend_mcp_namespaced_tool_name_idx" ON "LiteLLM_DailyTagSpend"("mcp_namespaced_tool_name");
27
+
28
+ -- CreateIndex
29
+ CREATE UNIQUE INDEX "LiteLLM_DailyTagSpend_tag_date_api_key_model_custom_llm_pro_key" ON "LiteLLM_DailyTagSpend"("tag", "date", "api_key", "model", "custom_llm_provider", "mcp_namespaced_tool_name");
30
+
31
+ -- CreateIndex
32
+ CREATE INDEX "LiteLLM_DailyTeamSpend_mcp_namespaced_tool_name_idx" ON "LiteLLM_DailyTeamSpend"("mcp_namespaced_tool_name");
33
+
34
+ -- CreateIndex
35
+ CREATE UNIQUE INDEX "LiteLLM_DailyTeamSpend_team_id_date_api_key_model_custom_ll_key" ON "LiteLLM_DailyTeamSpend"("team_id", "date", "api_key", "model", "custom_llm_provider", "mcp_namespaced_tool_name");
36
+
37
+ -- CreateIndex
38
+ CREATE INDEX "LiteLLM_DailyUserSpend_mcp_namespaced_tool_name_idx" ON "LiteLLM_DailyUserSpend"("mcp_namespaced_tool_name");
39
+
40
+ -- CreateIndex
41
+ CREATE UNIQUE INDEX "LiteLLM_DailyUserSpend_user_id_date_api_key_model_custom_ll_key" ON "LiteLLM_DailyUserSpend"("user_id", "date", "api_key", "model", "custom_llm_provider", "mcp_namespaced_tool_name");
42
+
@@ -0,0 +1,10 @@
1
+ -- AlterTable
2
+ ALTER TABLE "LiteLLM_MCPServerTable" ADD COLUMN "args" TEXT[] DEFAULT ARRAY[]::TEXT[],
3
+ ADD COLUMN "command" TEXT,
4
+ ADD COLUMN "env" JSONB DEFAULT '{}',
5
+ ADD COLUMN "mcp_access_groups" TEXT[],
6
+ ALTER COLUMN "url" DROP NOT NULL;
7
+
8
+ -- AlterTable
9
+ ALTER TABLE "LiteLLM_ObjectPermissionTable" ADD COLUMN "mcp_access_groups" TEXT[] DEFAULT ARRAY[]::TEXT[];
10
+
@@ -0,0 +1,3 @@
1
+ -- AlterTable
2
+ ALTER TABLE "LiteLLM_ManagedVectorStoresTable" ADD COLUMN "litellm_params" JSONB;
3
+
@@ -155,6 +155,7 @@ model LiteLLM_UserTable {
155
155
  model LiteLLM_ObjectPermissionTable {
156
156
  object_permission_id String @id @default(uuid())
157
157
  mcp_servers String[] @default([])
158
+ mcp_access_groups String[] @default([])
158
159
  vector_stores String[] @default([])
159
160
  teams LiteLLM_TeamTable[]
160
161
  verification_tokens LiteLLM_VerificationToken[]
@@ -165,9 +166,10 @@ model LiteLLM_ObjectPermissionTable {
165
166
  // Holds the MCP server configuration
166
167
  model LiteLLM_MCPServerTable {
167
168
  server_id String @id @default(uuid())
169
+ server_name String?
168
170
  alias String?
169
171
  description String?
170
- url String
172
+ url String?
171
173
  transport String @default("sse")
172
174
  spec_version String @default("2025-03-26")
173
175
  auth_type String?
@@ -175,6 +177,12 @@ model LiteLLM_MCPServerTable {
175
177
  created_by String?
176
178
  updated_at DateTime? @default(now()) @updatedAt @map("updated_at")
177
179
  updated_by String?
180
+ mcp_info Json? @default("{}")
181
+ mcp_access_groups String[]
182
+ // Stdio-specific fields
183
+ command String?
184
+ args String[] @default([])
185
+ env Json? @default("{}")
178
186
  }
179
187
 
180
188
  // Generate Tokens for Proxy
@@ -261,6 +269,7 @@ model LiteLLM_SpendLogs {
261
269
  response Json? @default("{}")
262
270
  session_id String?
263
271
  status String?
272
+ mcp_namespaced_tool_name String?
264
273
  proxy_server_request Json? @default("{}")
265
274
  @@index([startTime])
266
275
  @@index([end_user])
@@ -359,9 +368,10 @@ model LiteLLM_DailyUserSpend {
359
368
  user_id String?
360
369
  date String
361
370
  api_key String
362
- model String
371
+ model String?
363
372
  model_group String?
364
- custom_llm_provider String?
373
+ custom_llm_provider String?
374
+ mcp_namespaced_tool_name String?
365
375
  prompt_tokens BigInt @default(0)
366
376
  completion_tokens BigInt @default(0)
367
377
  cache_read_input_tokens BigInt @default(0)
@@ -373,11 +383,12 @@ model LiteLLM_DailyUserSpend {
373
383
  created_at DateTime @default(now())
374
384
  updated_at DateTime @updatedAt
375
385
 
376
- @@unique([user_id, date, api_key, model, custom_llm_provider])
386
+ @@unique([user_id, date, api_key, model, custom_llm_provider, mcp_namespaced_tool_name])
377
387
  @@index([date])
378
388
  @@index([user_id])
379
389
  @@index([api_key])
380
390
  @@index([model])
391
+ @@index([mcp_namespaced_tool_name])
381
392
  }
382
393
 
383
394
  // Track daily team spend metrics per model and key
@@ -386,9 +397,10 @@ model LiteLLM_DailyTeamSpend {
386
397
  team_id String?
387
398
  date String
388
399
  api_key String
389
- model String
400
+ model String?
390
401
  model_group String?
391
- custom_llm_provider String?
402
+ custom_llm_provider String?
403
+ mcp_namespaced_tool_name String?
392
404
  prompt_tokens BigInt @default(0)
393
405
  completion_tokens BigInt @default(0)
394
406
  cache_read_input_tokens BigInt @default(0)
@@ -400,11 +412,12 @@ model LiteLLM_DailyTeamSpend {
400
412
  created_at DateTime @default(now())
401
413
  updated_at DateTime @updatedAt
402
414
 
403
- @@unique([team_id, date, api_key, model, custom_llm_provider])
415
+ @@unique([team_id, date, api_key, model, custom_llm_provider, mcp_namespaced_tool_name])
404
416
  @@index([date])
405
417
  @@index([team_id])
406
418
  @@index([api_key])
407
419
  @@index([model])
420
+ @@index([mcp_namespaced_tool_name])
408
421
  }
409
422
 
410
423
  // Track daily team spend metrics per model and key
@@ -413,9 +426,10 @@ model LiteLLM_DailyTagSpend {
413
426
  tag String?
414
427
  date String
415
428
  api_key String
416
- model String
429
+ model String?
417
430
  model_group String?
418
- custom_llm_provider String?
431
+ custom_llm_provider String?
432
+ mcp_namespaced_tool_name String?
419
433
  prompt_tokens BigInt @default(0)
420
434
  completion_tokens BigInt @default(0)
421
435
  cache_read_input_tokens BigInt @default(0)
@@ -427,11 +441,12 @@ model LiteLLM_DailyTagSpend {
427
441
  created_at DateTime @default(now())
428
442
  updated_at DateTime @updatedAt
429
443
 
430
- @@unique([tag, date, api_key, model, custom_llm_provider])
444
+ @@unique([tag, date, api_key, model, custom_llm_provider, mcp_namespaced_tool_name])
431
445
  @@index([date])
432
446
  @@index([tag])
433
447
  @@index([api_key])
434
448
  @@index([model])
449
+ @@index([mcp_namespaced_tool_name])
435
450
  }
436
451
 
437
452
 
@@ -488,6 +503,7 @@ model LiteLLM_ManagedVectorStoresTable {
488
503
  created_at DateTime @default(now())
489
504
  updated_at DateTime @updatedAt
490
505
  litellm_credential_name String?
506
+ litellm_params Json?
491
507
  }
492
508
 
493
509
  // Guardrails table for storing guardrail configurations
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: litellm-proxy-extras
3
- Version: 0.2.6
3
+ Version: 0.2.12
4
4
  Summary: Additional files for the LiteLLM Proxy. Reduces the size of the main litellm package.
5
5
  Author: BerriAI
6
6
  Requires-Python: >=3.8, !=2.7.*, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, !=3.5.*, !=3.6.*, !=3.7.*
@@ -14,7 +14,7 @@ litellm_proxy_extras/migrations/20250416151339_drop_tag_uniqueness_requirement/m
14
14
  litellm_proxy_extras/migrations/20250416185146_add_allowed_routes_litellm_verification_token/migration.sql,sha256=XGyDLGakqBt30xuGS-RT5tWhk_Ki7teenxpvKDkIo2E,119
15
15
  litellm_proxy_extras/migrations/20250425182129_add_session_id/migration.sql,sha256=dSjU5QavHMM60siy6f_69DZpFCA4lUfWDL0AUEPEt2g,139
16
16
  litellm_proxy_extras/migrations/20250430193429_add_managed_vector_stores/migration.sql,sha256=SmXedKWYWwYAZjg-usw-905nXxyU9SOws9teFATezUA,479
17
- litellm_proxy_extras/migrations/20250507161526_add_mcp_table_to_db/migration.sql,sha256=C_0iU6F-XUST0BekRSrFGMW69_pwBLSS7Pu5HvGNJ7c,511
17
+ litellm_proxy_extras/migrations/20250507161526_add_mcp_table_to_db/migration.sql,sha256=rD2PimftvFKFE1KLtCLKUzT-HJZUUNGquAEoDBJljK8,976
18
18
  litellm_proxy_extras/migrations/20250507184818_add_mcp_key_team_permission_mgmt/migration.sql,sha256=G2NONS9XAMDdkH-0tpaPimK4ezs94hkwteRK1m7oA1Y,1672
19
19
  litellm_proxy_extras/migrations/20250508072103_add_status_to_spendlogs/migration.sql,sha256=V4mIhoi3n8sUzV8_YY9AA_wkgvk65m5ZOAU3_DtoUo8,77
20
20
  litellm_proxy_extras/migrations/20250509141545_use_big_int_for_daily_spend_tables/migration.sql,sha256=UPaAXsryGvVZT_SnOf-1yHu5bKPTVr2gP3zY64FKR7o,1331
@@ -27,10 +27,14 @@ litellm_proxy_extras/migrations/20250603210143_cascade_budget_changes/migration.
27
27
  litellm_proxy_extras/migrations/20250618225828_add_health_check_table/migration.sql,sha256=FpLvgnxHKp3Jb-USx-EWOGeVCXDpSznGBloqlWAm9bg,980
28
28
  litellm_proxy_extras/migrations/20250625145206_cascade_budget_and_loosen_managed_file_json/migration.sql,sha256=AjRZvl6dlMp9YRosTy0Iaa6ZqMXAydFY7FlzOp-T09I,429
29
29
  litellm_proxy_extras/migrations/20250625213625_add_status_to_managed_object_table/migration.sql,sha256=XcFDSGnTIOue1laLzJL062Mv6mI2bu05KCOgrzvWQK8,86
30
+ litellm_proxy_extras/migrations/20250707212517_add_mcp_info_column_mcp_servers/migration.sql,sha256=2r7drloJuEDy-x9_fsQXB613YJ7gg6yIsL5MhFEv-Nk,98
31
+ litellm_proxy_extras/migrations/20250707230009_add_mcp_namespaced_tool_name/migration.sql,sha256=L973Q5PV5pFcpuZzyOzo6aFNK02EZK-KAHfcyjtPAIU,1854
32
+ litellm_proxy_extras/migrations/20250711220620_add_stdio_mcp/migration.sql,sha256=t3telBGnxzo8kXQYnyR69vgxcPYf9ysoWt1ySRHnJgE,381
33
+ litellm_proxy_extras/migrations/20250718125714_add_litellm_params_to_vector_stores/migration.sql,sha256=yZfez4-HKbZeRQs4E6QhrMA7wuyrBQrYzTrW9S1HwcY,101
30
34
  litellm_proxy_extras/migrations/migration_lock.toml,sha256=HbF6jQUaoTYRBzZ1LF4fi37ZK26o6AMRL7viSXBHwhA,24
31
- litellm_proxy_extras/schema.prisma,sha256=PUFBg4_oAbMA1P65N7KlPYi13REbeIKru9WOr-blQkU,20109
35
+ litellm_proxy_extras/schema.prisma,sha256=r5ucVhoOdFdEbR-ePJGmn_gbKzSpVNfr7NP0KZkPcQ0,20741
32
36
  litellm_proxy_extras/utils.py,sha256=QImDkrfX_NGCp0tJ4T9IZpmXyzVZqey4jnVVEO0Hcrs,15050
33
- litellm_proxy_extras-0.2.6.dist-info/LICENSE,sha256=sXDWv46INd01fgEWgdsCj01R4vsOqJIFj1bgH7ObgnM,1419
34
- litellm_proxy_extras-0.2.6.dist-info/METADATA,sha256=zbAEVjCvMjiH-5dhMuJfAMY_EgKtKk7GAudPqnjkCKs,1266
35
- litellm_proxy_extras-0.2.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
36
- litellm_proxy_extras-0.2.6.dist-info/RECORD,,
37
+ litellm_proxy_extras-0.2.12.dist-info/LICENSE,sha256=sXDWv46INd01fgEWgdsCj01R4vsOqJIFj1bgH7ObgnM,1419
38
+ litellm_proxy_extras-0.2.12.dist-info/METADATA,sha256=1DiJdGnxr8dH2rLG62Sa1SrgYhQk6WbMKuBFTDOamjM,1267
39
+ litellm_proxy_extras-0.2.12.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
40
+ litellm_proxy_extras-0.2.12.dist-info/RECORD,,