style(proxy): format MCP static header changes

This commit is contained in:
冯基魁 2026-06-28 03:55:39 +08:00
parent 2a99531932
commit 0a4ad6e8c5
2 changed files with 2 additions and 5 deletions

View file

@ -1347,9 +1347,7 @@ class MCPServerManager:
) -> MCPServer:
_mcp_info: MCPInfo = mcp_server.mcp_info or {}
env_dict = _deserialize_json_dict(getattr(mcp_server, "env", None))
static_headers_dict = _deserialize_json_dict(
getattr(mcp_server, "static_headers", None)
)
static_headers_dict = _deserialize_json_dict(getattr(mcp_server, "static_headers", None))
static_headers_dict = resolve_static_header_env_vars(
static_headers_dict,
allow_env_var_resolution=getattr(mcp_server, "submitted_by", None) is None,

View file

@ -624,8 +624,7 @@ def resolve_static_header_env_vars(
secret_value = litellm.get_secret(value)
if secret_value is None:
verbose_proxy_logger.warning(
"MCP static header '%s' references missing env var '%s'. "
"Leaving the header value unresolved.",
"MCP static header '%s' references missing env var '%s'. Leaving the header value unresolved.",
key,
env_var_name,
)