Open
Description
What would you like to be added?
Add a new call task for the Model Context Protocol (MCP), thus enabling agentic calls and AI toolset invocations within workflows. This task should allow workflows to interact with MCP-compliant endpoints, supporting:
- Invocation of AI agents or tools via MCP,
- Input/output handling according to the MCP spec,
- Optional streaming support,
- Error propagation and response normalization.
This will allow seamless integration of agent-based capabilities into declarative workflows.
Proposal(s):
Introduce a new call type, e.g. mcp
, designed to support both MCP transport protocols: STDIO (for local command invocation) and HTTP (SSE) (for networked agent endpoints).
The task definition should adapt its configuration based on the chosen transport:
For STDIO-based invocation:
- A
command
field specifying the executable and arguments to launch the local MCP-compliant process. - An optional
input
payload conforming to the MCP input schema, passed via STDIN. - An optional
directory
andenvironment
to control the execution context.
For HTTP (SSE)-based invocation:
- A
uri
field pointing to the MCP-compliant HTTP endpoint. - Optional
headers
to customize the HTTP request. - Optional
input
payload conforming to the MCP input schema.
The runtime should:
- Detect the transport protocol
- Handle invocation according to the MCP specification
- Normalize the response (including streamed output if applicable)
- Map MCP errors into workflow errors consistently
This proposal ensures that both local and remote AI agent/tool invocations are supported seamlessly within the workflow system.
Alternative(s):
No response
Additional info:
No response
Community Notes
- Please vote by adding a 👍 reaction to the feature to help us prioritize.
- If you are interested to work on this feature, please leave a comment.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Backlog