Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

docs(mcp): mcp_server_resource docstring matches the origin-only redaction

Tinc46c9d465260
diff --git a/litellm/types/utils.py b/litellm/types/utils.py
index 6b99cfa3314..c093c213e50 100644
--- a/litellm/types/utils.py
+++ b/litellm/types/utils.py
@@ -2533,9 +2533,10 @@ class StandardLoggingMCPToolCall(TypedDict, total=False):
mcp_server_resource: Optional[str]
"""
- The upstream MCP server resource identifier (scheme + host + path) the tool call was
- forwarded to. Redacted for logging: userinfo, query string, and fragment are stripped so an
- upstream URL carrying an embedded token or secret query parameter never reaches log metadata.
+ The origin (scheme + host + port) of the upstream MCP server the tool call was forwarded
+ to. Redacted for logging: userinfo, the path, the query string, and the fragment are all
+ stripped, because hosted MCP servers routinely embed the credential in the URL path and
+ this value is readable by callers via request logs.
Records which upstream received a relayed request; never a credential.
"""