mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-21 00:21:49 +00:00
refactor(proxy): type is_mcp_discovery_request body as Mapping
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
464c9b69a3
commit
e131f02db7
1 changed files with 1 additions and 1 deletions
|
|
@ -857,7 +857,7 @@ MCP_ZERO_SPEND_JSONRPC_METHODS: Final = frozenset({"initialize", "notifications/
|
|||
MCP_TOOL_CALL_ROUTES: Final = frozenset({"/mcp/tools/call", "/mcp-rest/tools/call"})
|
||||
|
||||
|
||||
def is_mcp_discovery_request(route: str, request_body: dict) -> bool:
|
||||
def is_mcp_discovery_request(route: str, request_body: Mapping[str, object]) -> bool:
|
||||
if route in MCP_DISCOVERY_ROUTES:
|
||||
return True
|
||||
if route in MCP_TOOL_CALL_ROUTES or not (route == "/mcp" or route.startswith("/mcp/")):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue