mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-15 23:31:29 +00:00
refactor(mcp): access has_client_credentials on MCPServer directly
Greptile: getattr default was redundant; property exists on MCPServer and mcp_server is non-None inside the extra_headers forwarding block. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
2ef77b0591
commit
98a4cc0ef6
1 changed files with 1 additions and 3 deletions
|
|
@ -2208,9 +2208,7 @@ if MCP_AVAILABLE:
|
|||
for k, v in raw_headers.items()
|
||||
if isinstance(k, str)
|
||||
}
|
||||
skip_caller_authorization = bool(
|
||||
getattr(mcp_server, "has_client_credentials", False)
|
||||
)
|
||||
skip_caller_authorization = bool(mcp_server.has_client_credentials)
|
||||
for header_name in mcp_server.extra_headers:
|
||||
if not isinstance(header_name, str):
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue