Skip to content

Commit 617f5a9

Browse files
committed
Adding MCP call specification
Signed-off-by: amin-nikanjam <[email protected]>
1 parent 7fd11ea commit 617f5a9

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

schema/workflow.yaml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,41 @@ $defs:
473473
description: The parameters object to send with the A2A method.
474474
required: [ method ]
475475
unevaluatedProperties: false
476+
- title: CallMCP
477+
description: Defines the MCP call to perform.
478+
type: object
479+
unevaluatedProperties: false
480+
required: [ call, with ]
481+
allOf:
482+
- $ref: '#/$defs/taskBase'
483+
- properties:
484+
call:
485+
type: string
486+
const: mcp
487+
with:
488+
type: object
489+
title: MCPArguments
490+
description: The MCP call arguments.
491+
properties:
492+
server:
493+
title: MCPServer
494+
description: The MCP server endpoint to send the request to.
495+
$ref: '#/$defs/endpoint'
496+
method:
497+
type: string
498+
title: WithMCPMethod
499+
description: The MCP method to send.
500+
enum: [ 'initialize, 'notifications/initialized', 'prompts/list', 'prompts/get', 'notifications/prompts/list_changed', 'resources/list', 'resources/read', 'resources/templates/list', 'notifications/resources/list_changed', 'tools/list', 'tools/call', 'notifications/tools/list_changed', 'logging/setLevel', 'notifications/message' ]
501+
parameters:
502+
oneOf:
503+
- type: object
504+
minProperties: 1
505+
additionalProperties: true
506+
- type: string
507+
title: WithMCPParameters
508+
description: The parameters object to send with the MCP method.
509+
required: [ method, server ]
510+
unevaluatedProperties: false
476511
- title: CallFunction
477512
description: Defines the function call to perform.
478513
type: object
@@ -1823,4 +1858,4 @@ $defs:
18231858
export:
18241859
$ref: '#/$defs/export'
18251860
title: SubscriptionIteratorExport
1826-
description: An object, if any, used to customize the content of the workflow context.
1861+
description: An object, if any, used to customize the content of the workflow context.

0 commit comments

Comments
 (0)