mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-03 09:53:45 +00:00
Removed the MCPAuthorization class relying on bearer token
This commit is contained in:
parent
376f0fcd23
commit
9dbeeaca97
7 changed files with 24 additions and 216 deletions
|
|
@ -7656,41 +7656,6 @@ components:
|
|||
title: ResponseGuardrailSpec
|
||||
description: >-
|
||||
Specification for a guardrail to apply during response generation.
|
||||
MCPAuthorization:
|
||||
type: object
|
||||
properties:
|
||||
type:
|
||||
type: string
|
||||
enum:
|
||||
- bearer
|
||||
- basic
|
||||
- api_key
|
||||
description: >-
|
||||
Authorization type ("bearer", "basic", or "api_key")
|
||||
token:
|
||||
type: string
|
||||
description: Bearer token for bearer authorization
|
||||
username:
|
||||
type: string
|
||||
description: Username for basic authorization
|
||||
password:
|
||||
type: string
|
||||
description: Password for basic authorization
|
||||
api_key:
|
||||
type: string
|
||||
description: API key for api_key authorization
|
||||
header_name:
|
||||
type: string
|
||||
default: X-API-Key
|
||||
description: >-
|
||||
Custom header name for API key (default: "X-API-Key")
|
||||
additionalProperties: false
|
||||
required:
|
||||
- type
|
||||
- header_name
|
||||
title: MCPAuthorization
|
||||
description: >-
|
||||
Authorization configuration for MCP servers.
|
||||
OpenAIResponseInputTool:
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/OpenAIResponseInputToolWebSearch'
|
||||
|
|
@ -7731,9 +7696,9 @@ components:
|
|||
description: >-
|
||||
(Optional) HTTP headers to include when connecting to the server
|
||||
authorization:
|
||||
$ref: '#/components/schemas/MCPAuthorization'
|
||||
type: string
|
||||
description: >-
|
||||
(Optional) Authorization configuration for the MCP server
|
||||
(Optional) Bearer token authorization string (format: "Bearer <token>")
|
||||
require_approval:
|
||||
oneOf:
|
||||
- type: string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue