@workglow/tasks 0.0.95 → 0.0.97
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.
- package/dist/browser.js +798 -78
- package/dist/browser.js.map +9 -5
- package/dist/bun.js +798 -78
- package/dist/bun.js.map +9 -5
- package/dist/common.d.ts +10 -1
- package/dist/common.d.ts.map +1 -1
- package/dist/node.js +798 -78
- package/dist/node.js.map +9 -5
- package/dist/task/mcp/McpListTask.d.ts +658 -0
- package/dist/task/mcp/McpListTask.d.ts.map +1 -0
- package/dist/task/mcp/McpPromptGetTask.d.ts +679 -0
- package/dist/task/mcp/McpPromptGetTask.d.ts.map +1 -0
- package/dist/task/mcp/McpResourceReadTask.d.ts +221 -0
- package/dist/task/mcp/McpResourceReadTask.d.ts.map +1 -0
- package/dist/task/mcp/McpToolCallTask.d.ts +653 -0
- package/dist/task/mcp/McpToolCallTask.d.ts.map +1 -0
- package/package.json +9 -9
|
@@ -0,0 +1,653 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2025 Steven Roussey <sroussey@gmail.com>
|
|
4
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
5
|
+
*/
|
|
6
|
+
import { CreateWorkflow, IExecuteContext, Task, TaskConfig } from "@workglow/task-graph";
|
|
7
|
+
import { FromSchema } from "@workglow/util";
|
|
8
|
+
declare const inputSchema: {
|
|
9
|
+
readonly type: "object";
|
|
10
|
+
readonly properties: {
|
|
11
|
+
readonly tool_name: {
|
|
12
|
+
readonly type: "string";
|
|
13
|
+
readonly title: "Tool Name";
|
|
14
|
+
readonly description: "The name of the tool to call";
|
|
15
|
+
};
|
|
16
|
+
readonly tool_arguments: {
|
|
17
|
+
readonly type: "object";
|
|
18
|
+
readonly additionalProperties: true;
|
|
19
|
+
readonly title: "Tool Arguments";
|
|
20
|
+
readonly description: "Arguments to pass to the tool";
|
|
21
|
+
};
|
|
22
|
+
readonly transport: {
|
|
23
|
+
readonly type: "string";
|
|
24
|
+
readonly enum: readonly ["stdio", "sse", "streamable-http"];
|
|
25
|
+
readonly title: "Transport";
|
|
26
|
+
readonly description: "The transport type to use for connecting to the MCP server";
|
|
27
|
+
};
|
|
28
|
+
readonly server_url: {
|
|
29
|
+
readonly type: "string";
|
|
30
|
+
readonly format: "uri";
|
|
31
|
+
readonly title: "Server URL";
|
|
32
|
+
readonly description: "The URL of the MCP server (for sse and streamable-http transports)";
|
|
33
|
+
};
|
|
34
|
+
readonly command: {
|
|
35
|
+
readonly type: "string";
|
|
36
|
+
readonly title: "Command";
|
|
37
|
+
readonly description: "The command to run (for stdio transport)";
|
|
38
|
+
};
|
|
39
|
+
readonly args: {
|
|
40
|
+
readonly type: "array";
|
|
41
|
+
readonly items: {
|
|
42
|
+
readonly type: "string";
|
|
43
|
+
};
|
|
44
|
+
readonly title: "Arguments";
|
|
45
|
+
readonly description: "Command arguments (for stdio transport)";
|
|
46
|
+
};
|
|
47
|
+
readonly env: {
|
|
48
|
+
readonly type: "object";
|
|
49
|
+
readonly additionalProperties: {
|
|
50
|
+
readonly type: "string";
|
|
51
|
+
};
|
|
52
|
+
readonly title: "Environment";
|
|
53
|
+
readonly description: "Environment variables (for stdio transport)";
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
readonly required: readonly ["transport", "tool_name"];
|
|
57
|
+
readonly additionalProperties: false;
|
|
58
|
+
};
|
|
59
|
+
declare const outputSchema: {
|
|
60
|
+
readonly type: "object";
|
|
61
|
+
readonly properties: {
|
|
62
|
+
readonly content: {
|
|
63
|
+
readonly type: "array";
|
|
64
|
+
readonly items: {
|
|
65
|
+
readonly anyOf: readonly [{
|
|
66
|
+
readonly type: "object";
|
|
67
|
+
readonly properties: {
|
|
68
|
+
readonly type: {
|
|
69
|
+
readonly type: "string";
|
|
70
|
+
readonly const: "text";
|
|
71
|
+
};
|
|
72
|
+
readonly text: {
|
|
73
|
+
readonly type: "string";
|
|
74
|
+
};
|
|
75
|
+
readonly annotations: {
|
|
76
|
+
readonly type: "object";
|
|
77
|
+
readonly properties: {
|
|
78
|
+
readonly audience: {
|
|
79
|
+
readonly type: "array";
|
|
80
|
+
readonly items: {
|
|
81
|
+
readonly type: "string";
|
|
82
|
+
readonly enum: readonly ["user", "assistant"];
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
readonly priority: {
|
|
86
|
+
readonly type: "number";
|
|
87
|
+
};
|
|
88
|
+
readonly lastModified: {
|
|
89
|
+
readonly type: "string";
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
readonly additionalProperties: false;
|
|
93
|
+
};
|
|
94
|
+
readonly _meta: {
|
|
95
|
+
readonly type: "object";
|
|
96
|
+
readonly additionalProperties: true;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
readonly required: readonly ["type", "text"];
|
|
100
|
+
readonly additionalProperties: false;
|
|
101
|
+
}, {
|
|
102
|
+
readonly type: "object";
|
|
103
|
+
readonly properties: {
|
|
104
|
+
readonly type: {
|
|
105
|
+
readonly type: "string";
|
|
106
|
+
readonly const: "image";
|
|
107
|
+
};
|
|
108
|
+
readonly data: {
|
|
109
|
+
readonly type: "string";
|
|
110
|
+
};
|
|
111
|
+
readonly mimeType: {
|
|
112
|
+
readonly type: "string";
|
|
113
|
+
};
|
|
114
|
+
readonly annotations: {
|
|
115
|
+
readonly type: "object";
|
|
116
|
+
readonly properties: {
|
|
117
|
+
readonly audience: {
|
|
118
|
+
readonly type: "array";
|
|
119
|
+
readonly items: {
|
|
120
|
+
readonly type: "string";
|
|
121
|
+
readonly enum: readonly ["user", "assistant"];
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
readonly priority: {
|
|
125
|
+
readonly type: "number";
|
|
126
|
+
};
|
|
127
|
+
readonly lastModified: {
|
|
128
|
+
readonly type: "string";
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
readonly additionalProperties: false;
|
|
132
|
+
};
|
|
133
|
+
readonly _meta: {
|
|
134
|
+
readonly type: "object";
|
|
135
|
+
readonly additionalProperties: true;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
readonly required: readonly ["type", "data", "mimeType"];
|
|
139
|
+
readonly additionalProperties: false;
|
|
140
|
+
}, {
|
|
141
|
+
readonly type: "object";
|
|
142
|
+
readonly properties: {
|
|
143
|
+
readonly type: {
|
|
144
|
+
readonly type: "string";
|
|
145
|
+
readonly const: "audio";
|
|
146
|
+
};
|
|
147
|
+
readonly data: {
|
|
148
|
+
readonly type: "string";
|
|
149
|
+
};
|
|
150
|
+
readonly mimeType: {
|
|
151
|
+
readonly type: "string";
|
|
152
|
+
};
|
|
153
|
+
readonly annotations: {
|
|
154
|
+
readonly type: "object";
|
|
155
|
+
readonly properties: {
|
|
156
|
+
readonly audience: {
|
|
157
|
+
readonly type: "array";
|
|
158
|
+
readonly items: {
|
|
159
|
+
readonly type: "string";
|
|
160
|
+
readonly enum: readonly ["user", "assistant"];
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
readonly priority: {
|
|
164
|
+
readonly type: "number";
|
|
165
|
+
};
|
|
166
|
+
readonly lastModified: {
|
|
167
|
+
readonly type: "string";
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
readonly additionalProperties: false;
|
|
171
|
+
};
|
|
172
|
+
readonly _meta: {
|
|
173
|
+
readonly type: "object";
|
|
174
|
+
readonly additionalProperties: true;
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
readonly required: readonly ["type", "data", "mimeType"];
|
|
178
|
+
readonly additionalProperties: false;
|
|
179
|
+
}, {
|
|
180
|
+
readonly type: "object";
|
|
181
|
+
readonly properties: {
|
|
182
|
+
readonly type: {
|
|
183
|
+
readonly type: "string";
|
|
184
|
+
readonly const: "resource";
|
|
185
|
+
};
|
|
186
|
+
readonly resource: {
|
|
187
|
+
readonly type: "object";
|
|
188
|
+
readonly properties: {
|
|
189
|
+
readonly uri: {
|
|
190
|
+
readonly type: "string";
|
|
191
|
+
};
|
|
192
|
+
readonly text: {
|
|
193
|
+
readonly type: "string";
|
|
194
|
+
};
|
|
195
|
+
readonly blob: {
|
|
196
|
+
readonly type: "string";
|
|
197
|
+
};
|
|
198
|
+
readonly mimeType: {
|
|
199
|
+
readonly type: "string";
|
|
200
|
+
};
|
|
201
|
+
readonly _meta: {
|
|
202
|
+
readonly type: "object";
|
|
203
|
+
readonly additionalProperties: true;
|
|
204
|
+
};
|
|
205
|
+
};
|
|
206
|
+
readonly required: readonly ["uri"];
|
|
207
|
+
readonly additionalProperties: false;
|
|
208
|
+
};
|
|
209
|
+
readonly annotations: {
|
|
210
|
+
readonly type: "object";
|
|
211
|
+
readonly properties: {
|
|
212
|
+
readonly audience: {
|
|
213
|
+
readonly type: "array";
|
|
214
|
+
readonly items: {
|
|
215
|
+
readonly type: "string";
|
|
216
|
+
readonly enum: readonly ["user", "assistant"];
|
|
217
|
+
};
|
|
218
|
+
};
|
|
219
|
+
readonly priority: {
|
|
220
|
+
readonly type: "number";
|
|
221
|
+
};
|
|
222
|
+
readonly lastModified: {
|
|
223
|
+
readonly type: "string";
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
readonly additionalProperties: false;
|
|
227
|
+
};
|
|
228
|
+
readonly _meta: {
|
|
229
|
+
readonly type: "object";
|
|
230
|
+
readonly additionalProperties: true;
|
|
231
|
+
};
|
|
232
|
+
};
|
|
233
|
+
readonly required: readonly ["type", "resource"];
|
|
234
|
+
readonly additionalProperties: false;
|
|
235
|
+
}, {
|
|
236
|
+
readonly type: "object";
|
|
237
|
+
readonly properties: {
|
|
238
|
+
readonly type: {
|
|
239
|
+
readonly type: "string";
|
|
240
|
+
readonly const: "resource_link";
|
|
241
|
+
};
|
|
242
|
+
readonly uri: {
|
|
243
|
+
readonly type: "string";
|
|
244
|
+
};
|
|
245
|
+
readonly name: {
|
|
246
|
+
readonly type: "string";
|
|
247
|
+
};
|
|
248
|
+
readonly description: {
|
|
249
|
+
readonly type: "string";
|
|
250
|
+
};
|
|
251
|
+
readonly mimeType: {
|
|
252
|
+
readonly type: "string";
|
|
253
|
+
};
|
|
254
|
+
readonly annotations: {
|
|
255
|
+
readonly type: "object";
|
|
256
|
+
readonly properties: {
|
|
257
|
+
readonly audience: {
|
|
258
|
+
readonly type: "array";
|
|
259
|
+
readonly items: {
|
|
260
|
+
readonly type: "string";
|
|
261
|
+
readonly enum: readonly ["user", "assistant"];
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
readonly priority: {
|
|
265
|
+
readonly type: "number";
|
|
266
|
+
};
|
|
267
|
+
readonly lastModified: {
|
|
268
|
+
readonly type: "string";
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
readonly additionalProperties: false;
|
|
272
|
+
};
|
|
273
|
+
readonly icons: {
|
|
274
|
+
readonly type: "array";
|
|
275
|
+
readonly items: {
|
|
276
|
+
readonly type: "object";
|
|
277
|
+
readonly properties: {
|
|
278
|
+
readonly src: {
|
|
279
|
+
readonly type: "string";
|
|
280
|
+
};
|
|
281
|
+
readonly mimeType: {
|
|
282
|
+
readonly type: "string";
|
|
283
|
+
};
|
|
284
|
+
readonly sizes: {
|
|
285
|
+
readonly type: "array";
|
|
286
|
+
readonly items: {
|
|
287
|
+
readonly type: "string";
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
readonly theme: {
|
|
291
|
+
readonly type: "string";
|
|
292
|
+
readonly enum: readonly ["light", "dark"];
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
readonly additionalProperties: false;
|
|
296
|
+
};
|
|
297
|
+
};
|
|
298
|
+
readonly title: {
|
|
299
|
+
readonly type: "string";
|
|
300
|
+
};
|
|
301
|
+
readonly _meta: {
|
|
302
|
+
readonly type: "object";
|
|
303
|
+
readonly additionalProperties: true;
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
readonly required: readonly ["type", "uri", "name"];
|
|
307
|
+
readonly additionalProperties: false;
|
|
308
|
+
}];
|
|
309
|
+
};
|
|
310
|
+
readonly title: "Content";
|
|
311
|
+
readonly description: "The content returned by the tool";
|
|
312
|
+
};
|
|
313
|
+
readonly isError: {
|
|
314
|
+
readonly type: "boolean";
|
|
315
|
+
readonly title: "Is Error";
|
|
316
|
+
readonly description: "Whether the tool call resulted in an error";
|
|
317
|
+
};
|
|
318
|
+
};
|
|
319
|
+
readonly required: readonly ["content", "isError"];
|
|
320
|
+
readonly additionalProperties: false;
|
|
321
|
+
};
|
|
322
|
+
export type McpToolCallTaskInput = FromSchema<typeof inputSchema>;
|
|
323
|
+
export type McpToolCallTaskOutput = FromSchema<typeof outputSchema>;
|
|
324
|
+
export declare class McpToolCallTask extends Task<McpToolCallTaskInput, McpToolCallTaskOutput, TaskConfig> {
|
|
325
|
+
static type: string;
|
|
326
|
+
static category: string;
|
|
327
|
+
static title: string;
|
|
328
|
+
static description: string;
|
|
329
|
+
static readonly cacheable = false;
|
|
330
|
+
static inputSchema(): {
|
|
331
|
+
readonly type: "object";
|
|
332
|
+
readonly properties: {
|
|
333
|
+
readonly tool_name: {
|
|
334
|
+
readonly type: "string";
|
|
335
|
+
readonly title: "Tool Name";
|
|
336
|
+
readonly description: "The name of the tool to call";
|
|
337
|
+
};
|
|
338
|
+
readonly tool_arguments: {
|
|
339
|
+
readonly type: "object";
|
|
340
|
+
readonly additionalProperties: true;
|
|
341
|
+
readonly title: "Tool Arguments";
|
|
342
|
+
readonly description: "Arguments to pass to the tool";
|
|
343
|
+
};
|
|
344
|
+
readonly transport: {
|
|
345
|
+
readonly type: "string";
|
|
346
|
+
readonly enum: readonly ["stdio", "sse", "streamable-http"];
|
|
347
|
+
readonly title: "Transport";
|
|
348
|
+
readonly description: "The transport type to use for connecting to the MCP server";
|
|
349
|
+
};
|
|
350
|
+
readonly server_url: {
|
|
351
|
+
readonly type: "string";
|
|
352
|
+
readonly format: "uri";
|
|
353
|
+
readonly title: "Server URL";
|
|
354
|
+
readonly description: "The URL of the MCP server (for sse and streamable-http transports)";
|
|
355
|
+
};
|
|
356
|
+
readonly command: {
|
|
357
|
+
readonly type: "string";
|
|
358
|
+
readonly title: "Command";
|
|
359
|
+
readonly description: "The command to run (for stdio transport)";
|
|
360
|
+
};
|
|
361
|
+
readonly args: {
|
|
362
|
+
readonly type: "array";
|
|
363
|
+
readonly items: {
|
|
364
|
+
readonly type: "string";
|
|
365
|
+
};
|
|
366
|
+
readonly title: "Arguments";
|
|
367
|
+
readonly description: "Command arguments (for stdio transport)";
|
|
368
|
+
};
|
|
369
|
+
readonly env: {
|
|
370
|
+
readonly type: "object";
|
|
371
|
+
readonly additionalProperties: {
|
|
372
|
+
readonly type: "string";
|
|
373
|
+
};
|
|
374
|
+
readonly title: "Environment";
|
|
375
|
+
readonly description: "Environment variables (for stdio transport)";
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
readonly required: readonly ["transport", "tool_name"];
|
|
379
|
+
readonly additionalProperties: false;
|
|
380
|
+
};
|
|
381
|
+
static outputSchema(): {
|
|
382
|
+
readonly type: "object";
|
|
383
|
+
readonly properties: {
|
|
384
|
+
readonly content: {
|
|
385
|
+
readonly type: "array";
|
|
386
|
+
readonly items: {
|
|
387
|
+
readonly anyOf: readonly [{
|
|
388
|
+
readonly type: "object";
|
|
389
|
+
readonly properties: {
|
|
390
|
+
readonly type: {
|
|
391
|
+
readonly type: "string";
|
|
392
|
+
readonly const: "text";
|
|
393
|
+
};
|
|
394
|
+
readonly text: {
|
|
395
|
+
readonly type: "string";
|
|
396
|
+
};
|
|
397
|
+
readonly annotations: {
|
|
398
|
+
readonly type: "object";
|
|
399
|
+
readonly properties: {
|
|
400
|
+
readonly audience: {
|
|
401
|
+
readonly type: "array";
|
|
402
|
+
readonly items: {
|
|
403
|
+
readonly type: "string";
|
|
404
|
+
readonly enum: readonly ["user", "assistant"];
|
|
405
|
+
};
|
|
406
|
+
};
|
|
407
|
+
readonly priority: {
|
|
408
|
+
readonly type: "number";
|
|
409
|
+
};
|
|
410
|
+
readonly lastModified: {
|
|
411
|
+
readonly type: "string";
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
readonly additionalProperties: false;
|
|
415
|
+
};
|
|
416
|
+
readonly _meta: {
|
|
417
|
+
readonly type: "object";
|
|
418
|
+
readonly additionalProperties: true;
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
readonly required: readonly ["type", "text"];
|
|
422
|
+
readonly additionalProperties: false;
|
|
423
|
+
}, {
|
|
424
|
+
readonly type: "object";
|
|
425
|
+
readonly properties: {
|
|
426
|
+
readonly type: {
|
|
427
|
+
readonly type: "string";
|
|
428
|
+
readonly const: "image";
|
|
429
|
+
};
|
|
430
|
+
readonly data: {
|
|
431
|
+
readonly type: "string";
|
|
432
|
+
};
|
|
433
|
+
readonly mimeType: {
|
|
434
|
+
readonly type: "string";
|
|
435
|
+
};
|
|
436
|
+
readonly annotations: {
|
|
437
|
+
readonly type: "object";
|
|
438
|
+
readonly properties: {
|
|
439
|
+
readonly audience: {
|
|
440
|
+
readonly type: "array";
|
|
441
|
+
readonly items: {
|
|
442
|
+
readonly type: "string";
|
|
443
|
+
readonly enum: readonly ["user", "assistant"];
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
readonly priority: {
|
|
447
|
+
readonly type: "number";
|
|
448
|
+
};
|
|
449
|
+
readonly lastModified: {
|
|
450
|
+
readonly type: "string";
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
readonly additionalProperties: false;
|
|
454
|
+
};
|
|
455
|
+
readonly _meta: {
|
|
456
|
+
readonly type: "object";
|
|
457
|
+
readonly additionalProperties: true;
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
readonly required: readonly ["type", "data", "mimeType"];
|
|
461
|
+
readonly additionalProperties: false;
|
|
462
|
+
}, {
|
|
463
|
+
readonly type: "object";
|
|
464
|
+
readonly properties: {
|
|
465
|
+
readonly type: {
|
|
466
|
+
readonly type: "string";
|
|
467
|
+
readonly const: "audio";
|
|
468
|
+
};
|
|
469
|
+
readonly data: {
|
|
470
|
+
readonly type: "string";
|
|
471
|
+
};
|
|
472
|
+
readonly mimeType: {
|
|
473
|
+
readonly type: "string";
|
|
474
|
+
};
|
|
475
|
+
readonly annotations: {
|
|
476
|
+
readonly type: "object";
|
|
477
|
+
readonly properties: {
|
|
478
|
+
readonly audience: {
|
|
479
|
+
readonly type: "array";
|
|
480
|
+
readonly items: {
|
|
481
|
+
readonly type: "string";
|
|
482
|
+
readonly enum: readonly ["user", "assistant"];
|
|
483
|
+
};
|
|
484
|
+
};
|
|
485
|
+
readonly priority: {
|
|
486
|
+
readonly type: "number";
|
|
487
|
+
};
|
|
488
|
+
readonly lastModified: {
|
|
489
|
+
readonly type: "string";
|
|
490
|
+
};
|
|
491
|
+
};
|
|
492
|
+
readonly additionalProperties: false;
|
|
493
|
+
};
|
|
494
|
+
readonly _meta: {
|
|
495
|
+
readonly type: "object";
|
|
496
|
+
readonly additionalProperties: true;
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
readonly required: readonly ["type", "data", "mimeType"];
|
|
500
|
+
readonly additionalProperties: false;
|
|
501
|
+
}, {
|
|
502
|
+
readonly type: "object";
|
|
503
|
+
readonly properties: {
|
|
504
|
+
readonly type: {
|
|
505
|
+
readonly type: "string";
|
|
506
|
+
readonly const: "resource";
|
|
507
|
+
};
|
|
508
|
+
readonly resource: {
|
|
509
|
+
readonly type: "object";
|
|
510
|
+
readonly properties: {
|
|
511
|
+
readonly uri: {
|
|
512
|
+
readonly type: "string";
|
|
513
|
+
};
|
|
514
|
+
readonly text: {
|
|
515
|
+
readonly type: "string";
|
|
516
|
+
};
|
|
517
|
+
readonly blob: {
|
|
518
|
+
readonly type: "string";
|
|
519
|
+
};
|
|
520
|
+
readonly mimeType: {
|
|
521
|
+
readonly type: "string";
|
|
522
|
+
};
|
|
523
|
+
readonly _meta: {
|
|
524
|
+
readonly type: "object";
|
|
525
|
+
readonly additionalProperties: true;
|
|
526
|
+
};
|
|
527
|
+
};
|
|
528
|
+
readonly required: readonly ["uri"];
|
|
529
|
+
readonly additionalProperties: false;
|
|
530
|
+
};
|
|
531
|
+
readonly annotations: {
|
|
532
|
+
readonly type: "object";
|
|
533
|
+
readonly properties: {
|
|
534
|
+
readonly audience: {
|
|
535
|
+
readonly type: "array";
|
|
536
|
+
readonly items: {
|
|
537
|
+
readonly type: "string";
|
|
538
|
+
readonly enum: readonly ["user", "assistant"];
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
readonly priority: {
|
|
542
|
+
readonly type: "number";
|
|
543
|
+
};
|
|
544
|
+
readonly lastModified: {
|
|
545
|
+
readonly type: "string";
|
|
546
|
+
};
|
|
547
|
+
};
|
|
548
|
+
readonly additionalProperties: false;
|
|
549
|
+
};
|
|
550
|
+
readonly _meta: {
|
|
551
|
+
readonly type: "object";
|
|
552
|
+
readonly additionalProperties: true;
|
|
553
|
+
};
|
|
554
|
+
};
|
|
555
|
+
readonly required: readonly ["type", "resource"];
|
|
556
|
+
readonly additionalProperties: false;
|
|
557
|
+
}, {
|
|
558
|
+
readonly type: "object";
|
|
559
|
+
readonly properties: {
|
|
560
|
+
readonly type: {
|
|
561
|
+
readonly type: "string";
|
|
562
|
+
readonly const: "resource_link";
|
|
563
|
+
};
|
|
564
|
+
readonly uri: {
|
|
565
|
+
readonly type: "string";
|
|
566
|
+
};
|
|
567
|
+
readonly name: {
|
|
568
|
+
readonly type: "string";
|
|
569
|
+
};
|
|
570
|
+
readonly description: {
|
|
571
|
+
readonly type: "string";
|
|
572
|
+
};
|
|
573
|
+
readonly mimeType: {
|
|
574
|
+
readonly type: "string";
|
|
575
|
+
};
|
|
576
|
+
readonly annotations: {
|
|
577
|
+
readonly type: "object";
|
|
578
|
+
readonly properties: {
|
|
579
|
+
readonly audience: {
|
|
580
|
+
readonly type: "array";
|
|
581
|
+
readonly items: {
|
|
582
|
+
readonly type: "string";
|
|
583
|
+
readonly enum: readonly ["user", "assistant"];
|
|
584
|
+
};
|
|
585
|
+
};
|
|
586
|
+
readonly priority: {
|
|
587
|
+
readonly type: "number";
|
|
588
|
+
};
|
|
589
|
+
readonly lastModified: {
|
|
590
|
+
readonly type: "string";
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
readonly additionalProperties: false;
|
|
594
|
+
};
|
|
595
|
+
readonly icons: {
|
|
596
|
+
readonly type: "array";
|
|
597
|
+
readonly items: {
|
|
598
|
+
readonly type: "object";
|
|
599
|
+
readonly properties: {
|
|
600
|
+
readonly src: {
|
|
601
|
+
readonly type: "string";
|
|
602
|
+
};
|
|
603
|
+
readonly mimeType: {
|
|
604
|
+
readonly type: "string";
|
|
605
|
+
};
|
|
606
|
+
readonly sizes: {
|
|
607
|
+
readonly type: "array";
|
|
608
|
+
readonly items: {
|
|
609
|
+
readonly type: "string";
|
|
610
|
+
};
|
|
611
|
+
};
|
|
612
|
+
readonly theme: {
|
|
613
|
+
readonly type: "string";
|
|
614
|
+
readonly enum: readonly ["light", "dark"];
|
|
615
|
+
};
|
|
616
|
+
};
|
|
617
|
+
readonly additionalProperties: false;
|
|
618
|
+
};
|
|
619
|
+
};
|
|
620
|
+
readonly title: {
|
|
621
|
+
readonly type: "string";
|
|
622
|
+
};
|
|
623
|
+
readonly _meta: {
|
|
624
|
+
readonly type: "object";
|
|
625
|
+
readonly additionalProperties: true;
|
|
626
|
+
};
|
|
627
|
+
};
|
|
628
|
+
readonly required: readonly ["type", "uri", "name"];
|
|
629
|
+
readonly additionalProperties: false;
|
|
630
|
+
}];
|
|
631
|
+
};
|
|
632
|
+
readonly title: "Content";
|
|
633
|
+
readonly description: "The content returned by the tool";
|
|
634
|
+
};
|
|
635
|
+
readonly isError: {
|
|
636
|
+
readonly type: "boolean";
|
|
637
|
+
readonly title: "Is Error";
|
|
638
|
+
readonly description: "Whether the tool call resulted in an error";
|
|
639
|
+
};
|
|
640
|
+
};
|
|
641
|
+
readonly required: readonly ["content", "isError"];
|
|
642
|
+
readonly additionalProperties: false;
|
|
643
|
+
};
|
|
644
|
+
execute(input: McpToolCallTaskInput, context: IExecuteContext): Promise<McpToolCallTaskOutput>;
|
|
645
|
+
}
|
|
646
|
+
export declare const mcpToolCall: (input: McpToolCallTaskInput, config?: TaskConfig) => Promise<McpToolCallTaskOutput>;
|
|
647
|
+
declare module "@workglow/task-graph" {
|
|
648
|
+
interface Workflow {
|
|
649
|
+
mcpToolCall: CreateWorkflow<McpToolCallTaskInput, McpToolCallTaskOutput, TaskConfig>;
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
export {};
|
|
653
|
+
//# sourceMappingURL=McpToolCallTask.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"McpToolCallTask.d.ts","sourceRoot":"","sources":["../../../src/task/mcp/McpToolCallTask.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,IAAI,EAAE,UAAU,EAAY,MAAM,sBAAsB,CAAC;AACnG,OAAO,EAEL,UAAU,EAIX,MAAM,gBAAgB,CAAC;AAExB,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBkB,CAAC;AAyGpC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBiB,CAAC;AAEpC,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC;AAClE,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;AAEpE,qBAAa,eAAgB,SAAQ,IAAI,CAAC,oBAAoB,EAAE,qBAAqB,EAAE,UAAU,CAAC;IAChG,OAAc,IAAI,SAAqB;IACvC,OAAc,QAAQ,SAAS;IAC/B,OAAc,KAAK,SAAmB;IACtC,OAAc,WAAW,SAA0D;IACnF,MAAM,CAAC,QAAQ,CAAC,SAAS,SAAS;WAEpB,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAIX,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIpB,OAAO,CACX,KAAK,EAAE,oBAAoB,EAC3B,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,qBAAqB,CAAC;CAqBlC;AAED,eAAO,MAAM,WAAW,GACtB,OAAO,oBAAoB,EAC3B,SAAQ,UAAe,KACtB,OAAO,CAAC,qBAAqB,CAE/B,CAAC;AAEF,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,QAAQ;QAChB,WAAW,EAAE,cAAc,CAAC,oBAAoB,EAAE,qBAAqB,EAAE,UAAU,CAAC,CAAC;KACtF;CACF"}
|