Skip to content

Commit 66c191f

Browse files
feat(mcp): add credential-scoped agent tools
1 parent 6ae71ae commit 66c191f

49 files changed

Lines changed: 1912 additions & 210 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/docs/openapi-v2-workflows.json

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6215,6 +6215,9 @@
62156215
},
62166216
{
62176217
"$ref": "#/components/schemas/AgentMcpTool"
6218+
},
6219+
{
6220+
"$ref": "#/components/schemas/AgentMcpServerAdvanced"
62186221
}
62196222
],
62206223
"title": "Agent tool",
@@ -6227,7 +6230,7 @@
62276230
"type": "string",
62286231
"minLength": 1,
62296232
"maxLength": 255,
6230-
"pattern": "^(?!(?:custom-tool|mcp)$).+$",
6233+
"pattern": "^(?!(?:custom-tool|mcp|mcp-server-advanced)$).+$",
62316234
"description": "Catalog block id, such as `cloudwatch` or `slack`. Use the block id, never an underlying tool id."
62326235
},
62336236
"operation": {
@@ -6439,6 +6442,50 @@
64396442
}
64406443
]
64416444
},
6445+
"AgentMcpServerAdvanced": {
6446+
"type": "object",
6447+
"properties": {
6448+
"type": {
6449+
"type": "string",
6450+
"const": "mcp-server-advanced",
6451+
"description": "Server-wide MCP binding discriminator."
6452+
},
6453+
"params": {
6454+
"type": "object",
6455+
"properties": {
6456+
"serverId": {
6457+
"type": "string",
6458+
"minLength": 1,
6459+
"maxLength": 128,
6460+
"description": "Workspace MCP server ID or explicit credential-group managed MCP connection ID."
6461+
}
6462+
},
6463+
"required": ["serverId"],
6464+
"additionalProperties": false,
6465+
"description": "Server identity for discovering and invoking every available MCP tool."
6466+
},
6467+
"usageControl": {
6468+
"type": "string",
6469+
"enum": ["auto", "force", "none"],
6470+
"description": "When the Agent may call the tool: `auto` lets the model decide, `force` requires a call, and `none` disables it. Omitted means `auto`."
6471+
}
6472+
},
6473+
"required": ["type", "params"],
6474+
"additionalProperties": {
6475+
"description": "Forward-compatible MCP server metadata preserved by the workflow editor."
6476+
},
6477+
"title": "Agent MCP server (advanced)",
6478+
"description": "All tools available to the executing subject from one MCP server.",
6479+
"examples": [
6480+
{
6481+
"type": "mcp-server-advanced",
6482+
"params": {
6483+
"serverId": "mcp_01J9X2ABCDEF"
6484+
},
6485+
"usageControl": "auto"
6486+
}
6487+
]
6488+
},
64426489
"ApplyWorkflowOperationsRequest": {
64436490
"type": "object",
64446491
"properties": {

0 commit comments

Comments
 (0)