litellm-proxy-extras 0.2.8__tar.gz → 0.2.10__tar.gz

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.

Files changed (39) hide show
  1. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/PKG-INFO +1 -1
  2. litellm_proxy_extras-0.2.10/litellm_proxy_extras/migrations/20250707230009_add_mcp_namespaced_tool_name/migration.sql +42 -0
  3. litellm_proxy_extras-0.2.10/litellm_proxy_extras/migrations/20250711220620_add_stdio_mcp/migration.sql +10 -0
  4. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/schema.prisma +23 -10
  5. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/pyproject.toml +2 -2
  6. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/LICENSE +0 -0
  7. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/README.md +0 -0
  8. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/__init__.py +0 -0
  9. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/_logging.py +0 -0
  10. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250326162113_baseline/migration.sql +0 -0
  11. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250326171002_add_daily_user_table/migration.sql +0 -0
  12. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250327180120_add_api_requests_to_daily_user_table/migration.sql +0 -0
  13. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250329084805_new_cron_job_table/migration.sql +0 -0
  14. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250331215456_track_success_and_failed_requests_daily_agg_table/migration.sql +0 -0
  15. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250411215431_add_managed_file_table/migration.sql +0 -0
  16. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250412081753_team_member_permissions/migration.sql +0 -0
  17. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250415151647_add_cache_read_write_tokens_daily_spend_transactions/migration.sql +0 -0
  18. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250415191926_add_daily_team_table/migration.sql +0 -0
  19. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250416115320_add_tag_table_to_db/migration.sql +0 -0
  20. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250416151339_drop_tag_uniqueness_requirement/migration.sql +0 -0
  21. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250416185146_add_allowed_routes_litellm_verification_token/migration.sql +0 -0
  22. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250425182129_add_session_id/migration.sql +0 -0
  23. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250430193429_add_managed_vector_stores/migration.sql +0 -0
  24. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250507161526_add_mcp_table_to_db/migration.sql +0 -0
  25. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250507184818_add_mcp_key_team_permission_mgmt/migration.sql +0 -0
  26. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250508072103_add_status_to_spendlogs/migration.sql +0 -0
  27. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250509141545_use_big_int_for_daily_spend_tables/migration.sql +0 -0
  28. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250510142544_add_session_id_index_spend_logs/migration.sql +0 -0
  29. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250514142245_add_guardrails_table/migration.sql +0 -0
  30. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250522223020_managed_object_table/migration.sql +0 -0
  31. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250526154401_allow_null_entity_id/migration.sql +0 -0
  32. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250528185438_add_vector_stores_to_object_permissions/migration.sql +0 -0
  33. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250603210143_cascade_budget_changes/migration.sql +0 -0
  34. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250618225828_add_health_check_table/migration.sql +0 -0
  35. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250625145206_cascade_budget_and_loosen_managed_file_json/migration.sql +0 -0
  36. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250625213625_add_status_to_managed_object_table/migration.sql +0 -0
  37. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/20250707212517_add_mcp_info_column_mcp_servers/migration.sql +0 -0
  38. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/migrations/migration_lock.toml +0 -0
  39. {litellm_proxy_extras-0.2.8 → litellm_proxy_extras-0.2.10}/litellm_proxy_extras/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: litellm-proxy-extras
3
- Version: 0.2.8
3
+ Version: 0.2.10
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.*
@@ -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
+
@@ -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[]
@@ -167,7 +168,7 @@ model LiteLLM_MCPServerTable {
167
168
  server_id String @id @default(uuid())
168
169
  alias String?
169
170
  description String?
170
- url String
171
+ url String?
171
172
  transport String @default("sse")
172
173
  spec_version String @default("2025-03-26")
173
174
  auth_type String?
@@ -176,6 +177,11 @@ model LiteLLM_MCPServerTable {
176
177
  updated_at DateTime? @default(now()) @updatedAt @map("updated_at")
177
178
  updated_by String?
178
179
  mcp_info Json? @default("{}")
180
+ mcp_access_groups String[]
181
+ // Stdio-specific fields
182
+ command String?
183
+ args String[] @default([])
184
+ env Json? @default("{}")
179
185
  }
180
186
 
181
187
  // Generate Tokens for Proxy
@@ -262,6 +268,7 @@ model LiteLLM_SpendLogs {
262
268
  response Json? @default("{}")
263
269
  session_id String?
264
270
  status String?
271
+ mcp_namespaced_tool_name String?
265
272
  proxy_server_request Json? @default("{}")
266
273
  @@index([startTime])
267
274
  @@index([end_user])
@@ -360,9 +367,10 @@ model LiteLLM_DailyUserSpend {
360
367
  user_id String?
361
368
  date String
362
369
  api_key String
363
- model String
370
+ model String?
364
371
  model_group String?
365
- custom_llm_provider String?
372
+ custom_llm_provider String?
373
+ mcp_namespaced_tool_name String?
366
374
  prompt_tokens BigInt @default(0)
367
375
  completion_tokens BigInt @default(0)
368
376
  cache_read_input_tokens BigInt @default(0)
@@ -374,11 +382,12 @@ model LiteLLM_DailyUserSpend {
374
382
  created_at DateTime @default(now())
375
383
  updated_at DateTime @updatedAt
376
384
 
377
- @@unique([user_id, date, api_key, model, custom_llm_provider])
385
+ @@unique([user_id, date, api_key, model, custom_llm_provider, mcp_namespaced_tool_name])
378
386
  @@index([date])
379
387
  @@index([user_id])
380
388
  @@index([api_key])
381
389
  @@index([model])
390
+ @@index([mcp_namespaced_tool_name])
382
391
  }
383
392
 
384
393
  // Track daily team spend metrics per model and key
@@ -387,9 +396,10 @@ model LiteLLM_DailyTeamSpend {
387
396
  team_id String?
388
397
  date String
389
398
  api_key String
390
- model String
399
+ model String?
391
400
  model_group String?
392
- custom_llm_provider String?
401
+ custom_llm_provider String?
402
+ mcp_namespaced_tool_name String?
393
403
  prompt_tokens BigInt @default(0)
394
404
  completion_tokens BigInt @default(0)
395
405
  cache_read_input_tokens BigInt @default(0)
@@ -401,11 +411,12 @@ model LiteLLM_DailyTeamSpend {
401
411
  created_at DateTime @default(now())
402
412
  updated_at DateTime @updatedAt
403
413
 
404
- @@unique([team_id, date, api_key, model, custom_llm_provider])
414
+ @@unique([team_id, date, api_key, model, custom_llm_provider, mcp_namespaced_tool_name])
405
415
  @@index([date])
406
416
  @@index([team_id])
407
417
  @@index([api_key])
408
418
  @@index([model])
419
+ @@index([mcp_namespaced_tool_name])
409
420
  }
410
421
 
411
422
  // Track daily team spend metrics per model and key
@@ -414,9 +425,10 @@ model LiteLLM_DailyTagSpend {
414
425
  tag String?
415
426
  date String
416
427
  api_key String
417
- model String
428
+ model String?
418
429
  model_group String?
419
- custom_llm_provider String?
430
+ custom_llm_provider String?
431
+ mcp_namespaced_tool_name String?
420
432
  prompt_tokens BigInt @default(0)
421
433
  completion_tokens BigInt @default(0)
422
434
  cache_read_input_tokens BigInt @default(0)
@@ -428,11 +440,12 @@ model LiteLLM_DailyTagSpend {
428
440
  created_at DateTime @default(now())
429
441
  updated_at DateTime @updatedAt
430
442
 
431
- @@unique([tag, date, api_key, model, custom_llm_provider])
443
+ @@unique([tag, date, api_key, model, custom_llm_provider, mcp_namespaced_tool_name])
432
444
  @@index([date])
433
445
  @@index([tag])
434
446
  @@index([api_key])
435
447
  @@index([model])
448
+ @@index([mcp_namespaced_tool_name])
436
449
  }
437
450
 
438
451
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "litellm-proxy-extras"
3
- version = "0.2.8"
3
+ version = "0.2.10"
4
4
  description = "Additional files for the LiteLLM Proxy. Reduces the size of the main litellm package."
5
5
  authors = ["BerriAI"]
6
6
  readme = "README.md"
@@ -22,7 +22,7 @@ requires = ["poetry-core"]
22
22
  build-backend = "poetry.core.masonry.api"
23
23
 
24
24
  [tool.commitizen]
25
- version = "0.2.8"
25
+ version = "0.2.10"
26
26
  version_files = [
27
27
  "pyproject.toml:version",
28
28
  "../requirements.txt:litellm-proxy-extras==",