mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 18:00:36 +00:00
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:
parent
e8cb52683d
commit
ac9442eb92
1 changed files with 1 additions and 3 deletions
|
|
@ -81,9 +81,7 @@ def test_mcp_invocation(llama_stack_client, text_model_id, mcp_server):
|
||||||
"server_label": test_toolgroup_id,
|
"server_label": test_toolgroup_id,
|
||||||
"require_approval": "never",
|
"require_approval": "never",
|
||||||
"allowed_tools": [tool.name for tool in tools_list],
|
"allowed_tools": [tool.name for tool in tools_list],
|
||||||
"headers": {
|
"authorization": AUTH_TOKEN,
|
||||||
"Authorization": f"Bearer {AUTH_TOKEN}",
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
agent = Agent(
|
agent = Agent(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue