mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
Merge 6f3cf9aec9 into e52f05566d
This commit is contained in:
commit
b8a87b69ec
2 changed files with 3 additions and 1 deletions
|
|
@ -496,7 +496,7 @@ class LiteLLMRoutes(enum.Enum):
|
|||
mcp_inference_routes = [
|
||||
"/mcp",
|
||||
"/mcp/",
|
||||
"/mcp/{subpath}",
|
||||
"/mcp/{subpath:path}",
|
||||
"/mcp/tools",
|
||||
"/mcp/tools/list",
|
||||
"/mcp/tools/call",
|
||||
|
|
|
|||
|
|
@ -466,6 +466,8 @@ def test_virtual_key_llm_api_routes_rejects_mcp_multi_segment_admin_subpaths(
|
|||
("/mcp", "POST"),
|
||||
("/mcp/", "POST"),
|
||||
("/mcp/my-server", "POST"), # matches the /mcp/{subpath} pattern
|
||||
("/mcp/my-server/", "POST"), # same server, trailing slash
|
||||
("/mcp/my-server/mcp", "POST"), # streamable-http transport sub-path
|
||||
("/mcp/tools", "GET"),
|
||||
("/mcp/tools/list", "POST"),
|
||||
("/mcp/tools/call", "POST"),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue