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]

test(mcp): model delegated hook credentials

Joshua Valluruf33bac8080fc
diff --git a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_hook_extra_headers.py b/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_hook_extra_headers.py
index 67948375403..28faf375ab8 100644
--- a/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_hook_extra_headers.py
+++ b/tests/test_litellm/proxy/_experimental/mcp_server/test_mcp_hook_extra_headers.py
@@ -597,7 +597,11 @@ class TestHookHeaderMergePriority:
"Authorization": "Bearer oauth2-token",
"X-OAuth": "yes",
},
- raw_headers=None,
+ raw_headers={
+ "x-litellm-api-key": "Bearer sk-litellm-key",
+ "authorization": "Bearer oauth2-token",
+ },
+ user_api_key_auth=UserAPIKeyAuth(api_key="sk-litellm-key"),
proxy_logging_obj=None,
hook_extra_headers={
"Authorization": "Bearer hook-jwt",