From 98022447d093fb5e4bbeb12a8bf1ea27dd876eaa Mon Sep 17 00:00:00 2001 From: panjianxing <3207880464@qq.com> Date: Sat, 24 Oct 2026 20:54:15 +0800 Subject: [PATCH] fix(mcp): annotate virtual request metadata --- litellm/proxy/_experimental/mcp_server/operations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/_experimental/mcp_server/operations.py b/litellm/proxy/_experimental/mcp_server/operations.py index 2f6e5ef55a9..9cbc159a5a0 100644 --- a/litellm/proxy/_experimental/mcp_server/operations.py +++ b/litellm/proxy/_experimental/mcp_server/operations.py @@ -331,7 +331,7 @@ async def _build_virtual_call_logging_obj( headers: Final = dict(raw_headers) if raw_headers else {} call_id: Final = resolve_litellm_call_id(headers.get("x-litellm-call-id")) trace_id: Final = get_chain_id_from_headers(headers) - request_data: dict[str, object] = { + request_data: Final[dict[str, object]] = { # mutable-ok: the proxy metadata helper updates this mapping "model": f"MCP: {name}", "call_type": CallTypes.call_mcp_tool.value, "litellm_call_id": call_id,