fix: update test_mcp to use authorization parameter instead of headers

Changed tool_defs in test_mcp_invocation to use 'authorization' parameter
instead of passing Authorization via headers dict for security compliance.
This commit is contained in:
Omar Abdelwahab 2025-11-06 11:46:45 -08:00
parent e8cb52683d
commit ac9442eb92

View file

@ -81,9 +81,7 @@ def test_mcp_invocation(llama_stack_client, text_model_id, mcp_server):
"server_label": test_toolgroup_id,
"require_approval": "never",
"allowed_tools": [tool.name for tool in tools_list],
"headers": {
"Authorization": f"Bearer {AUTH_TOKEN}",
},
"authorization": AUTH_TOKEN,
}
]
agent = Agent(