mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 09:53:45 +00:00
fix: MCP authorization parameter implementation (#4052)
# What does this PR do? Adding a user-facing `authorization ` parameter to MCP tool definitions that allows users to explicitly configure credentials per MCP server, addressing GitHub Issue #4034 in a secure manner. ## Test Plan tests/integration/responses/test_mcp_authentication.py --------- Co-authored-by: Omar Abdelwahab <omara@fb.com> Co-authored-by: Ashwin Bharambe <ashwin.bharambe@gmail.com>
This commit is contained in:
parent
dc49ad3f89
commit
eb545034ab
34 changed files with 5205 additions and 62 deletions
15
docs/static/llama-stack-spec.yaml
vendored
15
docs/static/llama-stack-spec.yaml
vendored
|
|
@ -1878,6 +1878,13 @@ paths:
|
|||
required: false
|
||||
schema:
|
||||
$ref: '#/components/schemas/URL'
|
||||
- name: authorization
|
||||
in: query
|
||||
description: >-
|
||||
(Optional) OAuth access token for authenticating with the MCP server.
|
||||
required: false
|
||||
schema:
|
||||
type: string
|
||||
deprecated: false
|
||||
/v1/toolgroups:
|
||||
get:
|
||||
|
|
@ -6182,6 +6189,10 @@ components:
|
|||
- type: object
|
||||
description: >-
|
||||
(Optional) HTTP headers to include when connecting to the server
|
||||
authorization:
|
||||
type: string
|
||||
description: >-
|
||||
(Optional) OAuth access token for authenticating with the MCP server
|
||||
require_approval:
|
||||
oneOf:
|
||||
- type: string
|
||||
|
|
@ -8366,6 +8377,10 @@ components:
|
|||
- type: object
|
||||
description: >-
|
||||
A dictionary of arguments to pass to the tool.
|
||||
authorization:
|
||||
type: string
|
||||
description: >-
|
||||
(Optional) OAuth access token for authenticating with the MCP server.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- tool_name
|
||||
|
|
|
|||
15
docs/static/stainless-llama-stack-spec.yaml
vendored
15
docs/static/stainless-llama-stack-spec.yaml
vendored
|
|
@ -2054,6 +2054,13 @@ paths:
|
|||
required: false
|
||||
schema:
|
||||
$ref: '#/components/schemas/URL'
|
||||
- name: authorization
|
||||
in: query
|
||||
description: >-
|
||||
(Optional) OAuth access token for authenticating with the MCP server.
|
||||
required: false
|
||||
schema:
|
||||
type: string
|
||||
deprecated: false
|
||||
/v1/toolgroups:
|
||||
get:
|
||||
|
|
@ -7123,6 +7130,10 @@ components:
|
|||
- type: object
|
||||
description: >-
|
||||
(Optional) HTTP headers to include when connecting to the server
|
||||
authorization:
|
||||
type: string
|
||||
description: >-
|
||||
(Optional) OAuth access token for authenticating with the MCP server
|
||||
require_approval:
|
||||
oneOf:
|
||||
- type: string
|
||||
|
|
@ -9307,6 +9318,10 @@ components:
|
|||
- type: object
|
||||
description: >-
|
||||
A dictionary of arguments to pass to the tool.
|
||||
authorization:
|
||||
type: string
|
||||
description: >-
|
||||
(Optional) OAuth access token for authenticating with the MCP server.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- tool_name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue