mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-31 22:44:31 +00:00
add inline mcp provider
This commit is contained in:
parent
ffc6bd4805
commit
2c265d803c
16 changed files with 398 additions and 49 deletions
|
|
@ -6548,6 +6548,83 @@
|
|||
"model_context_protocol"
|
||||
]
|
||||
},
|
||||
"MCPConfig": {
|
||||
"oneOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/MCPInlineConfig"
|
||||
},
|
||||
{
|
||||
"$ref": "#/components/schemas/MCPRemoteConfig"
|
||||
}
|
||||
]
|
||||
},
|
||||
"MCPInlineConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"const": "inline",
|
||||
"default": "inline"
|
||||
},
|
||||
"command": {
|
||||
"type": "string"
|
||||
},
|
||||
"args": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"env": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "null"
|
||||
},
|
||||
{
|
||||
"type": "boolean"
|
||||
},
|
||||
{
|
||||
"type": "number"
|
||||
},
|
||||
{
|
||||
"type": "string"
|
||||
},
|
||||
{
|
||||
"type": "array"
|
||||
},
|
||||
{
|
||||
"type": "object"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"type",
|
||||
"command"
|
||||
]
|
||||
},
|
||||
"MCPRemoteConfig": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"const": "remote",
|
||||
"default": "remote"
|
||||
},
|
||||
"mcp_endpoint": {
|
||||
"$ref": "#/components/schemas/URL"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"type",
|
||||
"mcp_endpoint"
|
||||
]
|
||||
},
|
||||
"ToolGroup": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
@ -6565,8 +6642,8 @@
|
|||
"const": "tool_group",
|
||||
"default": "tool_group"
|
||||
},
|
||||
"mcp_endpoint": {
|
||||
"$ref": "#/components/schemas/URL"
|
||||
"mcp_config": {
|
||||
"$ref": "#/components/schemas/MCPConfig"
|
||||
},
|
||||
"args": {
|
||||
"type": "object",
|
||||
|
|
@ -6916,8 +6993,8 @@
|
|||
"ListRuntimeToolsRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"mcp_endpoint": {
|
||||
"$ref": "#/components/schemas/URL"
|
||||
"mcp_config": {
|
||||
"$ref": "#/components/schemas/MCPConfig"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false
|
||||
|
|
@ -8022,8 +8099,8 @@
|
|||
"provider_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"mcp_endpoint": {
|
||||
"$ref": "#/components/schemas/URL"
|
||||
"mcp_config": {
|
||||
"$ref": "#/components/schemas/MCPConfig"
|
||||
},
|
||||
"args": {
|
||||
"type": "object",
|
||||
|
|
@ -8932,6 +9009,18 @@
|
|||
"name": "LoraFinetuningConfig",
|
||||
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/LoraFinetuningConfig\" />"
|
||||
},
|
||||
{
|
||||
"name": "MCPConfig",
|
||||
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/MCPConfig\" />"
|
||||
},
|
||||
{
|
||||
"name": "MCPInlineConfig",
|
||||
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/MCPInlineConfig\" />"
|
||||
},
|
||||
{
|
||||
"name": "MCPRemoteConfig",
|
||||
"description": "<SchemaDefinition schemaRef=\"#/components/schemas/MCPRemoteConfig\" />"
|
||||
},
|
||||
{
|
||||
"name": "Memory"
|
||||
},
|
||||
|
|
@ -9437,6 +9526,9 @@
|
|||
"LogEventRequest",
|
||||
"LogSeverity",
|
||||
"LoraFinetuningConfig",
|
||||
"MCPConfig",
|
||||
"MCPInlineConfig",
|
||||
"MCPRemoteConfig",
|
||||
"MemoryBankDocument",
|
||||
"MemoryRetrievalStep",
|
||||
"Message",
|
||||
|
|
|
|||
|
|
@ -1125,8 +1125,8 @@ components:
|
|||
ListRuntimeToolsRequest:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
mcp_endpoint:
|
||||
$ref: '#/components/schemas/URL'
|
||||
mcp_config:
|
||||
$ref: '#/components/schemas/MCPConfig'
|
||||
type: object
|
||||
LogEventRequest:
|
||||
additionalProperties: false
|
||||
|
|
@ -1184,6 +1184,50 @@ components:
|
|||
- rank
|
||||
- alpha
|
||||
type: object
|
||||
MCPConfig:
|
||||
oneOf:
|
||||
- $ref: '#/components/schemas/MCPInlineConfig'
|
||||
- $ref: '#/components/schemas/MCPRemoteConfig'
|
||||
MCPInlineConfig:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
args:
|
||||
items:
|
||||
type: string
|
||||
type: array
|
||||
command:
|
||||
type: string
|
||||
env:
|
||||
additionalProperties:
|
||||
oneOf:
|
||||
- type: 'null'
|
||||
- type: boolean
|
||||
- type: number
|
||||
- type: string
|
||||
- type: array
|
||||
- type: object
|
||||
type: object
|
||||
type:
|
||||
const: inline
|
||||
default: inline
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- command
|
||||
type: object
|
||||
MCPRemoteConfig:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
mcp_endpoint:
|
||||
$ref: '#/components/schemas/URL'
|
||||
type:
|
||||
const: remote
|
||||
default: remote
|
||||
type: string
|
||||
required:
|
||||
- type
|
||||
- mcp_endpoint
|
||||
type: object
|
||||
MemoryBankDocument:
|
||||
additionalProperties: false
|
||||
properties:
|
||||
|
|
@ -1897,8 +1941,8 @@ components:
|
|||
- type: array
|
||||
- type: object
|
||||
type: object
|
||||
mcp_endpoint:
|
||||
$ref: '#/components/schemas/URL'
|
||||
mcp_config:
|
||||
$ref: '#/components/schemas/MCPConfig'
|
||||
provider_id:
|
||||
type: string
|
||||
toolgroup_id:
|
||||
|
|
@ -2773,8 +2817,8 @@ components:
|
|||
type: object
|
||||
identifier:
|
||||
type: string
|
||||
mcp_endpoint:
|
||||
$ref: '#/components/schemas/URL'
|
||||
mcp_config:
|
||||
$ref: '#/components/schemas/MCPConfig'
|
||||
provider_id:
|
||||
type: string
|
||||
provider_resource_id:
|
||||
|
|
@ -5615,6 +5659,14 @@ tags:
|
|||
- description: <SchemaDefinition schemaRef="#/components/schemas/LoraFinetuningConfig"
|
||||
/>
|
||||
name: LoraFinetuningConfig
|
||||
- description: <SchemaDefinition schemaRef="#/components/schemas/MCPConfig" />
|
||||
name: MCPConfig
|
||||
- description: <SchemaDefinition schemaRef="#/components/schemas/MCPInlineConfig"
|
||||
/>
|
||||
name: MCPInlineConfig
|
||||
- description: <SchemaDefinition schemaRef="#/components/schemas/MCPRemoteConfig"
|
||||
/>
|
||||
name: MCPRemoteConfig
|
||||
- name: Memory
|
||||
- description: <SchemaDefinition schemaRef="#/components/schemas/MemoryBankDocument"
|
||||
/>
|
||||
|
|
@ -5982,6 +6034,9 @@ x-tagGroups:
|
|||
- LogEventRequest
|
||||
- LogSeverity
|
||||
- LoraFinetuningConfig
|
||||
- MCPConfig
|
||||
- MCPInlineConfig
|
||||
- MCPRemoteConfig
|
||||
- MemoryBankDocument
|
||||
- MemoryRetrievalStep
|
||||
- Message
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue