@camunda/connectors-element-templates 1.0.12 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,363 @@
1
1
  [
2
+ {
3
+ "$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
4
+ "name": "MCP Client (early access)",
5
+ "id": "io.camunda.connectors.agenticai.mcp.client.v0",
6
+ "description": "MCP (Model Context Protocol) client using MCP connections configured on the connector runtime.",
7
+ "metadata": {
8
+ "keywords": []
9
+ },
10
+ "version": 1,
11
+ "category": {
12
+ "id": "connectors",
13
+ "name": "Connectors"
14
+ },
15
+ "appliesTo": ["bpmn:Task"],
16
+ "elementType": {
17
+ "value": "bpmn:ServiceTask"
18
+ },
19
+ "engines": {
20
+ "camunda": "^8.9"
21
+ },
22
+ "groups": [
23
+ {
24
+ "id": "client",
25
+ "label": "MCP Client"
26
+ },
27
+ {
28
+ "id": "connectorMode",
29
+ "label": "Connector mode",
30
+ "tooltip": "Select how this connector is used. When the connector is used as an AI agent tool, select the AI Agent tool mode."
31
+ },
32
+ {
33
+ "id": "operation",
34
+ "label": "Operation"
35
+ },
36
+ {
37
+ "id": "tools",
38
+ "label": "Tools",
39
+ "openByDefault": false
40
+ },
41
+ {
42
+ "id": "connector",
43
+ "label": "Connector"
44
+ },
45
+ {
46
+ "id": "output",
47
+ "label": "Output mapping"
48
+ },
49
+ {
50
+ "id": "error",
51
+ "label": "Error handling"
52
+ },
53
+ {
54
+ "id": "retries",
55
+ "label": "Retries"
56
+ }
57
+ ],
58
+ "properties": [
59
+ {
60
+ "value": "io.camunda.agenticai:mcpclient:1",
61
+ "binding": {
62
+ "property": "type",
63
+ "type": "zeebe:taskDefinition"
64
+ },
65
+ "type": "Hidden"
66
+ },
67
+ {
68
+ "value": "mcpClient",
69
+ "binding": {
70
+ "name": "io.camunda.agenticai.gateway.type",
71
+ "type": "zeebe:property"
72
+ },
73
+ "condition": {
74
+ "property": "data.connectorMode.type",
75
+ "equals": "aiAgentTool",
76
+ "type": "simple"
77
+ },
78
+ "type": "Hidden"
79
+ },
80
+ {
81
+ "id": "data.client.clientId",
82
+ "label": "Client ID",
83
+ "description": "The MCP client ID. This needs to be configured on your connector runtime.",
84
+ "optional": false,
85
+ "constraints": {
86
+ "notEmpty": true
87
+ },
88
+ "feel": "optional",
89
+ "group": "client",
90
+ "binding": {
91
+ "name": "data.client.clientId",
92
+ "type": "zeebe:input"
93
+ },
94
+ "type": "String"
95
+ },
96
+ {
97
+ "id": "data.connectorMode.type",
98
+ "label": "Connector mode",
99
+ "description": "Select how this connector is used.",
100
+ "value": "aiAgentTool",
101
+ "group": "connectorMode",
102
+ "binding": {
103
+ "name": "data.connectorMode.type",
104
+ "type": "zeebe:input"
105
+ },
106
+ "type": "Dropdown",
107
+ "choices": [
108
+ {
109
+ "name": "Standalone",
110
+ "value": "standalone"
111
+ },
112
+ {
113
+ "name": "AI Agent tool",
114
+ "value": "aiAgentTool"
115
+ }
116
+ ]
117
+ },
118
+ {
119
+ "id": "data.connectorMode.operation.type",
120
+ "label": "Operation",
121
+ "description": "The type of operation to perform.",
122
+ "value": "tools/list",
123
+ "group": "operation",
124
+ "binding": {
125
+ "name": "data.connectorMode.operation.type",
126
+ "type": "zeebe:input"
127
+ },
128
+ "condition": {
129
+ "property": "data.connectorMode.type",
130
+ "equals": "standalone",
131
+ "type": "simple"
132
+ },
133
+ "type": "Dropdown",
134
+ "choices": [
135
+ {
136
+ "name": "Call Tool",
137
+ "value": "tools/call"
138
+ },
139
+ {
140
+ "name": "List Tools",
141
+ "value": "tools/list"
142
+ }
143
+ ]
144
+ },
145
+ {
146
+ "id": "data.connectorMode.operation.toolName",
147
+ "label": "Tool name",
148
+ "description": "The name of the tool to call.",
149
+ "optional": false,
150
+ "constraints": {
151
+ "notEmpty": true
152
+ },
153
+ "feel": "optional",
154
+ "group": "operation",
155
+ "binding": {
156
+ "name": "data.connectorMode.operation.toolName",
157
+ "type": "zeebe:input"
158
+ },
159
+ "condition": {
160
+ "allMatch": [
161
+ {
162
+ "property": "data.connectorMode.operation.type",
163
+ "equals": "tools/call",
164
+ "type": "simple"
165
+ },
166
+ {
167
+ "property": "data.connectorMode.type",
168
+ "equals": "standalone",
169
+ "type": "simple"
170
+ }
171
+ ]
172
+ },
173
+ "type": "String"
174
+ },
175
+ {
176
+ "id": "data.connectorMode.operation.toolArguments",
177
+ "label": "Tool arguments",
178
+ "description": "The arguments to pass to the tool.",
179
+ "optional": true,
180
+ "feel": "required",
181
+ "group": "operation",
182
+ "binding": {
183
+ "name": "data.connectorMode.operation.toolArguments",
184
+ "type": "zeebe:input"
185
+ },
186
+ "condition": {
187
+ "allMatch": [
188
+ {
189
+ "property": "data.connectorMode.operation.type",
190
+ "equals": "tools/call",
191
+ "type": "simple"
192
+ },
193
+ {
194
+ "property": "data.connectorMode.type",
195
+ "equals": "standalone",
196
+ "type": "simple"
197
+ }
198
+ ]
199
+ },
200
+ "type": "String"
201
+ },
202
+ {
203
+ "id": "data.connectorMode.toolOperation.method",
204
+ "label": "Method",
205
+ "description": "The MCP method to be called, e.g. <code>tools/list</code>.",
206
+ "optional": false,
207
+ "value": "=toolCall.method",
208
+ "constraints": {
209
+ "notEmpty": true
210
+ },
211
+ "feel": "optional",
212
+ "group": "operation",
213
+ "binding": {
214
+ "name": "data.connectorMode.toolOperation.method",
215
+ "type": "zeebe:input"
216
+ },
217
+ "condition": {
218
+ "property": "data.connectorMode.type",
219
+ "equals": "aiAgentTool",
220
+ "type": "simple"
221
+ },
222
+ "tooltip": "The method to be called on the MCP server. See the <a href=\"https://modelcontextprotocol.io/specification/2024-11-05/server\">MCP specification</a> for a list of available methods.<br><br>Currently supported:<br><code>tools/list</code>, <code>tools/call</code>",
223
+ "type": "String"
224
+ },
225
+ {
226
+ "id": "data.connectorMode.toolOperation.params",
227
+ "label": "Parameters",
228
+ "description": "The parameters to be passed to the MCP method.",
229
+ "optional": true,
230
+ "value": "=toolCall.params",
231
+ "feel": "required",
232
+ "group": "operation",
233
+ "binding": {
234
+ "name": "data.connectorMode.toolOperation.params",
235
+ "type": "zeebe:input"
236
+ },
237
+ "condition": {
238
+ "property": "data.connectorMode.type",
239
+ "equals": "aiAgentTool",
240
+ "type": "simple"
241
+ },
242
+ "tooltip": "The parameter structure depends on the method being called. See the <a href=\"https://modelcontextprotocol.io/specification/2024-11-05/server/tools#calling-tools\">MCP specification</a> for an example of the parameters for the <code>tools/call</code> method.",
243
+ "type": "String"
244
+ },
245
+ {
246
+ "id": "data.tools.included",
247
+ "label": "Included tools",
248
+ "description": "List of tools that can be used by the MCP client. By default, all tools are allowed.",
249
+ "optional": true,
250
+ "feel": "required",
251
+ "group": "tools",
252
+ "binding": {
253
+ "name": "data.tools.included",
254
+ "type": "zeebe:input"
255
+ },
256
+ "type": "Text"
257
+ },
258
+ {
259
+ "id": "data.tools.excluded",
260
+ "label": "Excluded tools",
261
+ "description": "List of tools that are not allowed to be used by the MCP client. Will override any included tools.",
262
+ "optional": true,
263
+ "feel": "required",
264
+ "group": "tools",
265
+ "binding": {
266
+ "name": "data.tools.excluded",
267
+ "type": "zeebe:input"
268
+ },
269
+ "type": "Text"
270
+ },
271
+ {
272
+ "id": "version",
273
+ "label": "Version",
274
+ "description": "Version of the element template",
275
+ "value": "1",
276
+ "group": "connector",
277
+ "binding": {
278
+ "key": "elementTemplateVersion",
279
+ "type": "zeebe:taskHeader"
280
+ },
281
+ "type": "Hidden"
282
+ },
283
+ {
284
+ "id": "id",
285
+ "label": "ID",
286
+ "description": "ID of the element template",
287
+ "value": "io.camunda.connectors.agenticai.mcp.client.v0",
288
+ "group": "connector",
289
+ "binding": {
290
+ "key": "elementTemplateId",
291
+ "type": "zeebe:taskHeader"
292
+ },
293
+ "type": "Hidden"
294
+ },
295
+ {
296
+ "id": "resultVariable",
297
+ "label": "Result variable",
298
+ "description": "Name of variable to store the response in",
299
+ "value": "toolCallResult",
300
+ "group": "output",
301
+ "binding": {
302
+ "key": "resultVariable",
303
+ "type": "zeebe:taskHeader"
304
+ },
305
+ "type": "String"
306
+ },
307
+ {
308
+ "id": "resultExpression",
309
+ "label": "Result expression",
310
+ "description": "Expression to map the response into process variables",
311
+ "feel": "required",
312
+ "group": "output",
313
+ "binding": {
314
+ "key": "resultExpression",
315
+ "type": "zeebe:taskHeader"
316
+ },
317
+ "type": "Text"
318
+ },
319
+ {
320
+ "id": "errorExpression",
321
+ "label": "Error expression",
322
+ "description": "Expression to handle errors. Details in the <a href=\"https://docs.camunda.io/docs/components/connectors/use-connectors/\" target=\"_blank\">documentation</a>.",
323
+ "feel": "required",
324
+ "group": "error",
325
+ "binding": {
326
+ "key": "errorExpression",
327
+ "type": "zeebe:taskHeader"
328
+ },
329
+ "type": "Text"
330
+ },
331
+ {
332
+ "id": "retryCount",
333
+ "label": "Retries",
334
+ "description": "Number of retries",
335
+ "value": "3",
336
+ "feel": "optional",
337
+ "group": "retries",
338
+ "binding": {
339
+ "property": "retries",
340
+ "type": "zeebe:taskDefinition"
341
+ },
342
+ "type": "String"
343
+ },
344
+ {
345
+ "id": "retryBackoff",
346
+ "label": "Retry backoff",
347
+ "description": "ISO-8601 duration to wait between retries",
348
+ "value": "PT0S",
349
+ "group": "retries",
350
+ "binding": {
351
+ "key": "retryBackoff",
352
+ "type": "zeebe:taskHeader"
353
+ },
354
+ "type": "String"
355
+ }
356
+ ],
357
+ "icon": {
358
+ "contents": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiBmaWxsPSJub25lIiB2aWV3Qm94PSIwIDAgMjAwIDIwMCI+CiAgICA8cGF0aCBkPSJNMjUgOTcuODUyOEw5Mi44ODIzIDI5Ljk3MDZDMTAyLjI1NSAyMC41OTggMTE3LjQ1MSAyMC41OTggMTI2LjgyMyAyOS45NzA2VjI5Ljk3MDZDMTM2LjE5NiAzOS4zNDMxIDEzNi4xOTYgNTQuNTM5MSAxMjYuODIzIDYzLjkxMTdMNzUuNTU4MSAxMTUuMTc3IiBzdHJva2U9ImJsYWNrIiBzdHJva2Utd2lkdGg9IjEyIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz4KICAgIDxwYXRoIGQ9Ik03Ni4yNjUzIDExNC40N0wxMjYuODIzIDYzLjkxMTdDMTM2LjE5NiA1NC41MzkxIDE1MS4zOTIgNTQuNTM5MSAxNjAuNzY1IDYzLjkxMTdMMTYxLjExOCA2NC4yNjUyQzE3MC40OTEgNzMuNjM3OCAxNzAuNDkxIDg4LjgzMzggMTYxLjExOCA5OC4yMDYzTDk5LjcyNDggMTU5LjZDOTYuNjAwNiAxNjIuNzI0IDk2LjYwMDYgMTY3Ljc4OSA5OS43MjQ4IDE3MC45MTNMMTEyLjMzMSAxODMuNTIiIHN0cm9rZT0iYmxhY2siIHN0cm9rZS13aWR0aD0iMTIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgogICAgPHBhdGggZD0iTTEwOS44NTMgNDYuOTQxMUw1OS42NDgyIDk3LjE0NTdDNTAuMjc1NyAxMDYuNTE4IDUwLjI3NTcgMTIxLjcxNCA1OS42NDgyIDEzMS4wODdWMTMxLjA4N0M2OS4wMjA4IDE0MC40NTkgODQuMjE2OCAxNDAuNDU5IDkzLjU4OTQgMTMxLjA4N0wxNDMuNzk0IDgwLjg4MjIiIHN0cm9rZT0iYmxhY2siIHN0cm9rZS13aWR0aD0iMTIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPgo8L3N2Zz4K"
359
+ }
360
+ },
2
361
  {
3
362
  "$schema": "https://unpkg.com/@camunda/zeebe-element-templates-json-schema/resources/schema.json",
4
363
  "name": "MCP Client (early access)",
@@ -240,7 +599,7 @@
240
599
  "metadata": {
241
600
  "keywords": []
242
601
  },
243
- "version": 1,
602
+ "version": 2,
244
603
  "category": {
245
604
  "id": "connectors",
246
605
  "name": "Connectors"
@@ -365,13 +724,17 @@
365
724
  },
366
725
  "type": "Dropdown",
367
726
  "choices": [
727
+ {
728
+ "name": "Call Tool",
729
+ "value": "tools/call"
730
+ },
368
731
  {
369
732
  "name": "List Tools",
370
733
  "value": "tools/list"
371
734
  },
372
735
  {
373
- "name": "Call Tool",
374
- "value": "tools/call"
736
+ "name": "List Resources",
737
+ "value": "resources/list"
375
738
  }
376
739
  ]
377
740
  },
@@ -505,7 +868,7 @@
505
868
  "id": "version",
506
869
  "label": "Version",
507
870
  "description": "Version of the element template",
508
- "value": "1",
871
+ "value": "2",
509
872
  "group": "connector",
510
873
  "binding": {
511
874
  "key": "elementTemplateVersion",