@workglow/tasks 0.0.120 → 0.0.122

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.
Files changed (97) hide show
  1. package/dist/browser.js +1041 -255
  2. package/dist/browser.js.map +18 -13
  3. package/dist/bun.js +1061 -258
  4. package/dist/bun.js.map +18 -13
  5. package/dist/common.d.ts +3 -1
  6. package/dist/common.d.ts.map +1 -1
  7. package/dist/node.js +1061 -258
  8. package/dist/node.js.map +18 -13
  9. package/dist/task/ArrayTask.d.ts +1 -10
  10. package/dist/task/ArrayTask.d.ts.map +1 -1
  11. package/dist/task/DateFormatTask.d.ts.map +1 -1
  12. package/dist/task/DebugLogTask.d.ts +3 -1
  13. package/dist/task/DebugLogTask.d.ts.map +1 -1
  14. package/dist/task/DelayTask.d.ts +3 -1
  15. package/dist/task/DelayTask.d.ts.map +1 -1
  16. package/dist/task/FetchUrlTask.d.ts +23 -1
  17. package/dist/task/FetchUrlTask.d.ts.map +1 -1
  18. package/dist/task/FileLoaderTask.d.ts +10 -7
  19. package/dist/task/FileLoaderTask.d.ts.map +1 -1
  20. package/dist/task/FileLoaderTask.server.d.ts +10 -7
  21. package/dist/task/FileLoaderTask.server.d.ts.map +1 -1
  22. package/dist/task/InputTask.d.ts +0 -1
  23. package/dist/task/InputTask.d.ts.map +1 -1
  24. package/dist/task/JavaScriptTask.d.ts +13 -10
  25. package/dist/task/JavaScriptTask.d.ts.map +1 -1
  26. package/dist/task/JsonPathTask.d.ts.map +1 -1
  27. package/dist/task/JsonTask.d.ts +3 -1
  28. package/dist/task/JsonTask.d.ts.map +1 -1
  29. package/dist/task/LambdaTask.d.ts +2 -2
  30. package/dist/task/LambdaTask.d.ts.map +1 -1
  31. package/dist/task/MergeTask.d.ts +3 -1
  32. package/dist/task/MergeTask.d.ts.map +1 -1
  33. package/dist/task/OutputTask.d.ts +0 -1
  34. package/dist/task/OutputTask.d.ts.map +1 -1
  35. package/dist/task/RegexTask.d.ts.map +1 -1
  36. package/dist/task/SplitTask.d.ts +3 -1
  37. package/dist/task/SplitTask.d.ts.map +1 -1
  38. package/dist/task/TemplateTask.d.ts.map +1 -1
  39. package/dist/task/adaptive.d.ts.map +1 -1
  40. package/dist/task/mcp/McpListTask.d.ts +245 -560
  41. package/dist/task/mcp/McpListTask.d.ts.map +1 -1
  42. package/dist/task/mcp/McpPromptGetTask.d.ts +84 -494
  43. package/dist/task/mcp/McpPromptGetTask.d.ts.map +1 -1
  44. package/dist/task/mcp/McpResourceReadTask.d.ts +20 -495
  45. package/dist/task/mcp/McpResourceReadTask.d.ts.map +1 -1
  46. package/dist/task/mcp/McpSearchTask.d.ts +111 -0
  47. package/dist/task/mcp/McpSearchTask.d.ts.map +1 -0
  48. package/dist/task/mcp/McpToolCallTask.d.ts +5 -498
  49. package/dist/task/mcp/McpToolCallTask.d.ts.map +1 -1
  50. package/dist/task/scalar/ScalarAbsTask.d.ts.map +1 -1
  51. package/dist/task/scalar/ScalarAddTask.d.ts.map +1 -1
  52. package/dist/task/scalar/ScalarCeilTask.d.ts.map +1 -1
  53. package/dist/task/scalar/ScalarDivideTask.d.ts.map +1 -1
  54. package/dist/task/scalar/ScalarFloorTask.d.ts.map +1 -1
  55. package/dist/task/scalar/ScalarMaxTask.d.ts.map +1 -1
  56. package/dist/task/scalar/ScalarMinTask.d.ts.map +1 -1
  57. package/dist/task/scalar/ScalarMultiplyTask.d.ts.map +1 -1
  58. package/dist/task/scalar/ScalarRoundTask.d.ts.map +1 -1
  59. package/dist/task/scalar/ScalarSubtractTask.d.ts.map +1 -1
  60. package/dist/task/scalar/ScalarSumTask.d.ts.map +1 -1
  61. package/dist/task/scalar/ScalarTruncTask.d.ts.map +1 -1
  62. package/dist/task/scalar/sumPrecise.d.ts.map +1 -1
  63. package/dist/task/string/StringConcatTask.d.ts.map +1 -1
  64. package/dist/task/string/StringIncludesTask.d.ts.map +1 -1
  65. package/dist/task/string/StringJoinTask.d.ts.map +1 -1
  66. package/dist/task/string/StringLengthTask.d.ts.map +1 -1
  67. package/dist/task/string/StringLowerCaseTask.d.ts.map +1 -1
  68. package/dist/task/string/StringReplaceTask.d.ts.map +1 -1
  69. package/dist/task/string/StringSliceTask.d.ts.map +1 -1
  70. package/dist/task/string/StringTemplateTask.d.ts.map +1 -1
  71. package/dist/task/string/StringTrimTask.d.ts.map +1 -1
  72. package/dist/task/string/StringUpperCaseTask.d.ts.map +1 -1
  73. package/dist/task/vector/VectorDistanceTask.d.ts.map +1 -1
  74. package/dist/task/vector/VectorDivideTask.d.ts.map +1 -1
  75. package/dist/task/vector/VectorDotProductTask.d.ts.map +1 -1
  76. package/dist/task/vector/VectorMultiplyTask.d.ts.map +1 -1
  77. package/dist/task/vector/VectorNormalizeTask.d.ts.map +1 -1
  78. package/dist/task/vector/VectorScaleTask.d.ts.map +1 -1
  79. package/dist/task/vector/VectorSubtractTask.d.ts.map +1 -1
  80. package/dist/task/vector/VectorSumTask.d.ts.map +1 -1
  81. package/dist/types.d.ts +4 -0
  82. package/dist/types.d.ts.map +1 -1
  83. package/dist/util/McpAuthProvider.d.ts +70 -0
  84. package/dist/util/McpAuthProvider.d.ts.map +1 -0
  85. package/dist/util/McpAuthTypes.d.ts +218 -0
  86. package/dist/util/McpAuthTypes.d.ts.map +1 -0
  87. package/dist/util/McpClientUtil.browser.d.ts +110 -0
  88. package/dist/util/McpClientUtil.browser.d.ts.map +1 -0
  89. package/dist/util/McpClientUtil.node.d.ts +134 -0
  90. package/dist/util/McpClientUtil.node.d.ts.map +1 -0
  91. package/dist/util/McpTaskDeps.d.ts +29 -0
  92. package/dist/util/McpTaskDeps.d.ts.map +1 -0
  93. package/dist/util/acorn.d.ts +3 -12
  94. package/dist/util/acorn.d.ts.map +1 -1
  95. package/dist/util/interpreter.d.ts +11 -486
  96. package/dist/util/interpreter.d.ts.map +1 -1
  97. package/package.json +21 -16
@@ -5,209 +5,10 @@
5
5
  */
6
6
  import { CreateWorkflow, IExecuteContext, Task, TaskConfig } from "@workglow/task-graph";
7
7
  import { DataPortSchema, FromSchema } from "@workglow/util";
8
- declare const inputSchema: {
9
- readonly type: "object";
10
- readonly properties: {
11
- readonly list_type: {
12
- readonly type: "string";
13
- readonly enum: readonly ["tools", "resources", "prompts"];
14
- readonly title: "List Type";
15
- readonly description: "The type of items to list from the MCP server";
16
- };
17
- readonly auth_type: {
18
- readonly type: "string";
19
- readonly enum: readonly ["none", "bearer", "client_credentials", "private_key_jwt", "static_private_key_jwt", "authorization_code"];
20
- readonly title: "Auth Type";
21
- readonly description: "Authentication method for connecting to the MCP server";
22
- readonly default: "none";
23
- };
24
- readonly auth_token: {
25
- readonly type: "string";
26
- readonly format: "credential";
27
- readonly title: "Bearer Token";
28
- readonly description: "Static bearer token or API key (for bearer auth)";
29
- };
30
- readonly auth_client_id: {
31
- readonly type: "string";
32
- readonly title: "Client ID";
33
- readonly description: "OAuth client ID (for OAuth auth types)";
34
- };
35
- readonly auth_client_secret: {
36
- readonly type: "string";
37
- readonly format: "credential";
38
- readonly title: "Client Secret";
39
- readonly description: "OAuth client secret (for client_credentials auth)";
40
- };
41
- readonly auth_private_key: {
42
- readonly type: "string";
43
- readonly format: "credential";
44
- readonly title: "Private Key";
45
- readonly description: "PEM or JWK private key (for private_key_jwt auth)";
46
- };
47
- readonly auth_algorithm: {
48
- readonly type: "string";
49
- readonly title: "Algorithm";
50
- readonly description: "JWT signing algorithm, e.g. RS256, ES256 (for private_key_jwt auth)";
51
- };
52
- readonly auth_jwt_bearer_assertion: {
53
- readonly type: "string";
54
- readonly format: "credential";
55
- readonly title: "JWT Assertion";
56
- readonly description: "Pre-built JWT assertion (for static_private_key_jwt auth)";
57
- };
58
- readonly auth_redirect_url: {
59
- readonly type: "string";
60
- readonly format: "uri";
61
- readonly title: "Redirect URL";
62
- readonly description: "OAuth redirect URL (for authorization_code auth)";
63
- };
64
- readonly auth_scope: {
65
- readonly type: "string";
66
- readonly title: "Scope";
67
- readonly description: "OAuth scope (space-separated)";
68
- };
69
- readonly auth_client_name: {
70
- readonly type: "string";
71
- readonly title: "Client Name";
72
- readonly description: "Optional OAuth client display name";
73
- };
74
- readonly auth_jwt_lifetime_seconds: {
75
- readonly type: "number";
76
- readonly title: "JWT Lifetime";
77
- readonly description: "JWT lifetime in seconds (default: 300)";
78
- readonly minimum: 1;
79
- };
80
- readonly transport: {
81
- readonly type: "string";
82
- readonly enum: readonly ["stdio", "sse", "streamable-http"];
83
- readonly title: "Transport";
84
- readonly description: "The transport type to use for connecting to the MCP server";
85
- };
86
- readonly server_url: {
87
- readonly type: "string";
88
- readonly format: "string:uri";
89
- readonly title: "Server URL";
90
- readonly description: "The URL of the MCP server (for sse and streamable-http transports)";
91
- };
92
- readonly command: {
93
- readonly type: "string";
94
- readonly title: "Command";
95
- readonly description: "The command to run (for stdio transport)";
96
- };
97
- readonly args: {
98
- readonly type: "array";
99
- readonly items: {
100
- readonly type: "string";
101
- };
102
- readonly title: "Arguments";
103
- readonly description: "Command arguments (for stdio transport)";
104
- };
105
- readonly env: {
106
- readonly type: "object";
107
- readonly additionalProperties: {
108
- readonly type: "string";
109
- };
110
- readonly title: "Environment";
111
- readonly description: "Environment variables (for stdio transport)";
112
- };
113
- };
114
- readonly required: readonly ["transport", "list_type"];
115
- readonly allOf: readonly [{
116
- readonly if: {
117
- readonly properties: {
118
- readonly auth_type: {
119
- readonly const: "bearer";
120
- };
121
- };
122
- readonly required: readonly ["auth_type"];
123
- };
124
- readonly then: {
125
- readonly required: readonly ["auth_token"];
126
- readonly properties: {
127
- readonly auth_token: true;
128
- };
129
- };
130
- }, {
131
- readonly if: {
132
- readonly properties: {
133
- readonly auth_type: {
134
- readonly const: "client_credentials";
135
- };
136
- };
137
- readonly required: readonly ["auth_type"];
138
- };
139
- readonly then: {
140
- readonly required: readonly ["auth_client_id", "auth_client_secret"];
141
- readonly properties: {
142
- readonly auth_client_id: true;
143
- readonly auth_client_secret: true;
144
- readonly auth_client_name: true;
145
- readonly auth_scope: true;
146
- };
147
- };
148
- }, {
149
- readonly if: {
150
- readonly properties: {
151
- readonly auth_type: {
152
- readonly const: "private_key_jwt";
153
- };
154
- };
155
- readonly required: readonly ["auth_type"];
156
- };
157
- readonly then: {
158
- readonly required: readonly ["auth_client_id", "auth_private_key", "auth_algorithm"];
159
- readonly properties: {
160
- readonly auth_client_id: true;
161
- readonly auth_private_key: true;
162
- readonly auth_algorithm: true;
163
- readonly auth_client_name: true;
164
- readonly auth_jwt_lifetime_seconds: true;
165
- readonly auth_scope: true;
166
- };
167
- };
168
- }, {
169
- readonly if: {
170
- readonly properties: {
171
- readonly auth_type: {
172
- readonly const: "static_private_key_jwt";
173
- };
174
- };
175
- readonly required: readonly ["auth_type"];
176
- };
177
- readonly then: {
178
- readonly required: readonly ["auth_client_id", "auth_jwt_bearer_assertion"];
179
- readonly properties: {
180
- readonly auth_client_id: true;
181
- readonly auth_jwt_bearer_assertion: true;
182
- readonly auth_client_name: true;
183
- readonly auth_scope: true;
184
- };
185
- };
186
- }, {
187
- readonly if: {
188
- readonly properties: {
189
- readonly auth_type: {
190
- readonly const: "authorization_code";
191
- };
192
- };
193
- readonly required: readonly ["auth_type"];
194
- };
195
- readonly then: {
196
- readonly required: readonly ["auth_client_id", "auth_redirect_url"];
197
- readonly properties: {
198
- readonly auth_client_id: true;
199
- readonly auth_client_secret: true;
200
- readonly auth_redirect_url: true;
201
- readonly auth_scope: true;
202
- };
203
- };
204
- }];
205
- readonly additionalProperties: false;
206
- };
207
8
  declare const outputSchemaAll: {
208
9
  readonly type: "object";
209
10
  readonly properties: {
210
- readonly prompts: {
11
+ readonly tools: {
211
12
  readonly type: "array";
212
13
  readonly items: {
213
14
  readonly type: "object";
@@ -218,24 +19,74 @@ declare const outputSchemaAll: {
218
19
  readonly description: {
219
20
  readonly type: "string";
220
21
  };
221
- readonly arguments: {
222
- readonly type: "array";
223
- readonly items: {
224
- readonly type: "object";
22
+ readonly inputSchema: {
23
+ readonly type: "object";
24
+ readonly properties: {
25
+ readonly type: {
26
+ readonly type: "string";
27
+ };
225
28
  readonly properties: {
226
- readonly name: {
29
+ readonly type: "object";
30
+ readonly additionalProperties: true;
31
+ };
32
+ readonly required: {
33
+ readonly type: "array";
34
+ readonly items: {
227
35
  readonly type: "string";
228
36
  };
229
- readonly description: {
37
+ };
38
+ };
39
+ readonly additionalProperties: true;
40
+ };
41
+ readonly outputSchema: {
42
+ readonly type: "object";
43
+ readonly properties: {
44
+ readonly type: {
45
+ readonly type: "string";
46
+ };
47
+ readonly properties: {
48
+ readonly type: "object";
49
+ readonly additionalProperties: true;
50
+ };
51
+ readonly required: {
52
+ readonly type: "array";
53
+ readonly items: {
230
54
  readonly type: "string";
231
55
  };
232
- readonly required: {
233
- readonly type: "boolean";
234
- };
235
56
  };
236
- readonly required: readonly ["name"];
237
- readonly additionalProperties: false;
238
57
  };
58
+ readonly additionalProperties: true;
59
+ };
60
+ readonly annotations: {
61
+ readonly type: "object";
62
+ readonly properties: {
63
+ readonly title: {
64
+ readonly type: "string";
65
+ };
66
+ readonly readOnlyHint: {
67
+ readonly type: "boolean";
68
+ };
69
+ readonly destructiveHint: {
70
+ readonly type: "boolean";
71
+ };
72
+ readonly idempotentHint: {
73
+ readonly type: "boolean";
74
+ };
75
+ readonly openWorldHint: {
76
+ readonly type: "boolean";
77
+ };
78
+ };
79
+ readonly additionalProperties: false;
80
+ };
81
+ readonly execution: {
82
+ readonly type: "object";
83
+ readonly properties: {
84
+ readonly taskSupport: {
85
+ readonly type: "string";
86
+ readonly enum: readonly ["optional", "required", "forbidden"];
87
+ };
88
+ };
89
+ readonly additionalProperties: false;
239
90
  };
240
91
  readonly _meta: {
241
92
  readonly type: "object";
@@ -270,11 +121,11 @@ declare const outputSchemaAll: {
270
121
  readonly type: "string";
271
122
  };
272
123
  };
273
- readonly required: readonly ["name"];
124
+ readonly required: readonly ["name", "inputSchema"];
274
125
  readonly additionalProperties: false;
275
126
  };
276
- readonly title: "Prompts";
277
- readonly description: "The prompts available on the MCP server";
127
+ readonly title: "Tools";
128
+ readonly description: "The tools available on the MCP server";
278
129
  };
279
130
  readonly resources: {
280
131
  readonly type: "array";
@@ -351,7 +202,7 @@ declare const outputSchemaAll: {
351
202
  readonly title: "Resources";
352
203
  readonly description: "The resources available on the MCP server";
353
204
  };
354
- readonly tools: {
205
+ readonly prompts: {
355
206
  readonly type: "array";
356
207
  readonly items: {
357
208
  readonly type: "object";
@@ -362,74 +213,24 @@ declare const outputSchemaAll: {
362
213
  readonly description: {
363
214
  readonly type: "string";
364
215
  };
365
- readonly inputSchema: {
366
- readonly type: "object";
367
- readonly properties: {
368
- readonly type: {
369
- readonly type: "string";
370
- };
216
+ readonly arguments: {
217
+ readonly type: "array";
218
+ readonly items: {
219
+ readonly type: "object";
371
220
  readonly properties: {
372
- readonly type: "object";
373
- readonly additionalProperties: true;
374
- };
375
- readonly required: {
376
- readonly type: "array";
377
- readonly items: {
221
+ readonly name: {
378
222
  readonly type: "string";
379
223
  };
380
- };
381
- };
382
- readonly additionalProperties: true;
383
- };
384
- readonly outputSchema: {
385
- readonly type: "object";
386
- readonly properties: {
387
- readonly type: {
388
- readonly type: "string";
389
- };
390
- readonly properties: {
391
- readonly type: "object";
392
- readonly additionalProperties: true;
393
- };
394
- readonly required: {
395
- readonly type: "array";
396
- readonly items: {
224
+ readonly description: {
397
225
  readonly type: "string";
398
226
  };
227
+ readonly required: {
228
+ readonly type: "boolean";
229
+ };
399
230
  };
231
+ readonly required: readonly ["name"];
232
+ readonly additionalProperties: false;
400
233
  };
401
- readonly additionalProperties: true;
402
- };
403
- readonly annotations: {
404
- readonly type: "object";
405
- readonly properties: {
406
- readonly title: {
407
- readonly type: "string";
408
- };
409
- readonly readOnlyHint: {
410
- readonly type: "boolean";
411
- };
412
- readonly destructiveHint: {
413
- readonly type: "boolean";
414
- };
415
- readonly idempotentHint: {
416
- readonly type: "boolean";
417
- };
418
- readonly openWorldHint: {
419
- readonly type: "boolean";
420
- };
421
- };
422
- readonly additionalProperties: false;
423
- };
424
- readonly execution: {
425
- readonly type: "object";
426
- readonly properties: {
427
- readonly taskSupport: {
428
- readonly type: "string";
429
- readonly enum: readonly ["optional", "required", "forbidden"];
430
- };
431
- };
432
- readonly additionalProperties: false;
433
234
  };
434
235
  readonly _meta: {
435
236
  readonly type: "object";
@@ -464,17 +265,18 @@ declare const outputSchemaAll: {
464
265
  readonly type: "string";
465
266
  };
466
267
  };
467
- readonly required: readonly ["name", "inputSchema"];
268
+ readonly required: readonly ["name"];
468
269
  readonly additionalProperties: false;
469
270
  };
470
- readonly title: "Tools";
471
- readonly description: "The tools available on the MCP server";
271
+ readonly title: "Prompts";
272
+ readonly description: "The prompts available on the MCP server";
472
273
  };
473
274
  };
474
275
  readonly additionalProperties: false;
475
276
  };
476
- export type McpListTaskInput = FromSchema<typeof inputSchema>;
477
277
  export type McpListTaskOutput = FromSchema<typeof outputSchemaAll>;
278
+ /** MCP list input (transport fields depend on platform; see static inputSchema()). */
279
+ export type McpListTaskInput = Record<string, unknown>;
478
280
  export declare class McpListTask extends Task<McpListTaskInput, McpListTaskOutput, TaskConfig> {
479
281
  static type: string;
480
282
  static category: string;
@@ -482,209 +284,11 @@ export declare class McpListTask extends Task<McpListTaskInput, McpListTaskOutpu
482
284
  static description: string;
483
285
  static readonly cacheable = false;
484
286
  static hasDynamicSchemas: boolean;
485
- static inputSchema(): {
486
- readonly type: "object";
487
- readonly properties: {
488
- readonly list_type: {
489
- readonly type: "string";
490
- readonly enum: readonly ["tools", "resources", "prompts"];
491
- readonly title: "List Type";
492
- readonly description: "The type of items to list from the MCP server";
493
- };
494
- readonly auth_type: {
495
- readonly type: "string";
496
- readonly enum: readonly ["none", "bearer", "client_credentials", "private_key_jwt", "static_private_key_jwt", "authorization_code"];
497
- readonly title: "Auth Type";
498
- readonly description: "Authentication method for connecting to the MCP server";
499
- readonly default: "none";
500
- };
501
- readonly auth_token: {
502
- readonly type: "string";
503
- readonly format: "credential";
504
- readonly title: "Bearer Token";
505
- readonly description: "Static bearer token or API key (for bearer auth)";
506
- };
507
- readonly auth_client_id: {
508
- readonly type: "string";
509
- readonly title: "Client ID";
510
- readonly description: "OAuth client ID (for OAuth auth types)";
511
- };
512
- readonly auth_client_secret: {
513
- readonly type: "string";
514
- readonly format: "credential";
515
- readonly title: "Client Secret";
516
- readonly description: "OAuth client secret (for client_credentials auth)";
517
- };
518
- readonly auth_private_key: {
519
- readonly type: "string";
520
- readonly format: "credential";
521
- readonly title: "Private Key";
522
- readonly description: "PEM or JWK private key (for private_key_jwt auth)";
523
- };
524
- readonly auth_algorithm: {
525
- readonly type: "string";
526
- readonly title: "Algorithm";
527
- readonly description: "JWT signing algorithm, e.g. RS256, ES256 (for private_key_jwt auth)";
528
- };
529
- readonly auth_jwt_bearer_assertion: {
530
- readonly type: "string";
531
- readonly format: "credential";
532
- readonly title: "JWT Assertion";
533
- readonly description: "Pre-built JWT assertion (for static_private_key_jwt auth)";
534
- };
535
- readonly auth_redirect_url: {
536
- readonly type: "string";
537
- readonly format: "uri";
538
- readonly title: "Redirect URL";
539
- readonly description: "OAuth redirect URL (for authorization_code auth)";
540
- };
541
- readonly auth_scope: {
542
- readonly type: "string";
543
- readonly title: "Scope";
544
- readonly description: "OAuth scope (space-separated)";
545
- };
546
- readonly auth_client_name: {
547
- readonly type: "string";
548
- readonly title: "Client Name";
549
- readonly description: "Optional OAuth client display name";
550
- };
551
- readonly auth_jwt_lifetime_seconds: {
552
- readonly type: "number";
553
- readonly title: "JWT Lifetime";
554
- readonly description: "JWT lifetime in seconds (default: 300)";
555
- readonly minimum: 1;
556
- };
557
- readonly transport: {
558
- readonly type: "string";
559
- readonly enum: readonly ["stdio", "sse", "streamable-http"];
560
- readonly title: "Transport";
561
- readonly description: "The transport type to use for connecting to the MCP server";
562
- };
563
- readonly server_url: {
564
- readonly type: "string";
565
- readonly format: "string:uri";
566
- readonly title: "Server URL";
567
- readonly description: "The URL of the MCP server (for sse and streamable-http transports)";
568
- };
569
- readonly command: {
570
- readonly type: "string";
571
- readonly title: "Command";
572
- readonly description: "The command to run (for stdio transport)";
573
- };
574
- readonly args: {
575
- readonly type: "array";
576
- readonly items: {
577
- readonly type: "string";
578
- };
579
- readonly title: "Arguments";
580
- readonly description: "Command arguments (for stdio transport)";
581
- };
582
- readonly env: {
583
- readonly type: "object";
584
- readonly additionalProperties: {
585
- readonly type: "string";
586
- };
587
- readonly title: "Environment";
588
- readonly description: "Environment variables (for stdio transport)";
589
- };
590
- };
591
- readonly required: readonly ["transport", "list_type"];
592
- readonly allOf: readonly [{
593
- readonly if: {
594
- readonly properties: {
595
- readonly auth_type: {
596
- readonly const: "bearer";
597
- };
598
- };
599
- readonly required: readonly ["auth_type"];
600
- };
601
- readonly then: {
602
- readonly required: readonly ["auth_token"];
603
- readonly properties: {
604
- readonly auth_token: true;
605
- };
606
- };
607
- }, {
608
- readonly if: {
609
- readonly properties: {
610
- readonly auth_type: {
611
- readonly const: "client_credentials";
612
- };
613
- };
614
- readonly required: readonly ["auth_type"];
615
- };
616
- readonly then: {
617
- readonly required: readonly ["auth_client_id", "auth_client_secret"];
618
- readonly properties: {
619
- readonly auth_client_id: true;
620
- readonly auth_client_secret: true;
621
- readonly auth_client_name: true;
622
- readonly auth_scope: true;
623
- };
624
- };
625
- }, {
626
- readonly if: {
627
- readonly properties: {
628
- readonly auth_type: {
629
- readonly const: "private_key_jwt";
630
- };
631
- };
632
- readonly required: readonly ["auth_type"];
633
- };
634
- readonly then: {
635
- readonly required: readonly ["auth_client_id", "auth_private_key", "auth_algorithm"];
636
- readonly properties: {
637
- readonly auth_client_id: true;
638
- readonly auth_private_key: true;
639
- readonly auth_algorithm: true;
640
- readonly auth_client_name: true;
641
- readonly auth_jwt_lifetime_seconds: true;
642
- readonly auth_scope: true;
643
- };
644
- };
645
- }, {
646
- readonly if: {
647
- readonly properties: {
648
- readonly auth_type: {
649
- readonly const: "static_private_key_jwt";
650
- };
651
- };
652
- readonly required: readonly ["auth_type"];
653
- };
654
- readonly then: {
655
- readonly required: readonly ["auth_client_id", "auth_jwt_bearer_assertion"];
656
- readonly properties: {
657
- readonly auth_client_id: true;
658
- readonly auth_jwt_bearer_assertion: true;
659
- readonly auth_client_name: true;
660
- readonly auth_scope: true;
661
- };
662
- };
663
- }, {
664
- readonly if: {
665
- readonly properties: {
666
- readonly auth_type: {
667
- readonly const: "authorization_code";
668
- };
669
- };
670
- readonly required: readonly ["auth_type"];
671
- };
672
- readonly then: {
673
- readonly required: readonly ["auth_client_id", "auth_redirect_url"];
674
- readonly properties: {
675
- readonly auth_client_id: true;
676
- readonly auth_client_secret: true;
677
- readonly auth_redirect_url: true;
678
- readonly auth_scope: true;
679
- };
680
- };
681
- }];
682
- readonly additionalProperties: false;
683
- };
287
+ static inputSchema(): DataPortSchema;
684
288
  static outputSchema(): {
685
289
  readonly type: "object";
686
290
  readonly properties: {
687
- readonly prompts: {
291
+ readonly tools: {
688
292
  readonly type: "array";
689
293
  readonly items: {
690
294
  readonly type: "object";
@@ -695,24 +299,74 @@ export declare class McpListTask extends Task<McpListTaskInput, McpListTaskOutpu
695
299
  readonly description: {
696
300
  readonly type: "string";
697
301
  };
698
- readonly arguments: {
699
- readonly type: "array";
700
- readonly items: {
701
- readonly type: "object";
302
+ readonly inputSchema: {
303
+ readonly type: "object";
304
+ readonly properties: {
305
+ readonly type: {
306
+ readonly type: "string";
307
+ };
702
308
  readonly properties: {
703
- readonly name: {
309
+ readonly type: "object";
310
+ readonly additionalProperties: true;
311
+ };
312
+ readonly required: {
313
+ readonly type: "array";
314
+ readonly items: {
704
315
  readonly type: "string";
705
316
  };
706
- readonly description: {
317
+ };
318
+ };
319
+ readonly additionalProperties: true;
320
+ };
321
+ readonly outputSchema: {
322
+ readonly type: "object";
323
+ readonly properties: {
324
+ readonly type: {
325
+ readonly type: "string";
326
+ };
327
+ readonly properties: {
328
+ readonly type: "object";
329
+ readonly additionalProperties: true;
330
+ };
331
+ readonly required: {
332
+ readonly type: "array";
333
+ readonly items: {
707
334
  readonly type: "string";
708
335
  };
709
- readonly required: {
710
- readonly type: "boolean";
711
- };
712
336
  };
713
- readonly required: readonly ["name"];
714
- readonly additionalProperties: false;
715
337
  };
338
+ readonly additionalProperties: true;
339
+ };
340
+ readonly annotations: {
341
+ readonly type: "object";
342
+ readonly properties: {
343
+ readonly title: {
344
+ readonly type: "string";
345
+ };
346
+ readonly readOnlyHint: {
347
+ readonly type: "boolean";
348
+ };
349
+ readonly destructiveHint: {
350
+ readonly type: "boolean";
351
+ };
352
+ readonly idempotentHint: {
353
+ readonly type: "boolean";
354
+ };
355
+ readonly openWorldHint: {
356
+ readonly type: "boolean";
357
+ };
358
+ };
359
+ readonly additionalProperties: false;
360
+ };
361
+ readonly execution: {
362
+ readonly type: "object";
363
+ readonly properties: {
364
+ readonly taskSupport: {
365
+ readonly type: "string";
366
+ readonly enum: readonly ["optional", "required", "forbidden"];
367
+ };
368
+ };
369
+ readonly additionalProperties: false;
716
370
  };
717
371
  readonly _meta: {
718
372
  readonly type: "object";
@@ -747,11 +401,11 @@ export declare class McpListTask extends Task<McpListTaskInput, McpListTaskOutpu
747
401
  readonly type: "string";
748
402
  };
749
403
  };
750
- readonly required: readonly ["name"];
404
+ readonly required: readonly ["name", "inputSchema"];
751
405
  readonly additionalProperties: false;
752
406
  };
753
- readonly title: "Prompts";
754
- readonly description: "The prompts available on the MCP server";
407
+ readonly title: "Tools";
408
+ readonly description: "The tools available on the MCP server";
755
409
  };
756
410
  readonly resources: {
757
411
  readonly type: "array";
@@ -828,7 +482,7 @@ export declare class McpListTask extends Task<McpListTaskInput, McpListTaskOutpu
828
482
  readonly title: "Resources";
829
483
  readonly description: "The resources available on the MCP server";
830
484
  };
831
- readonly tools: {
485
+ readonly prompts: {
832
486
  readonly type: "array";
833
487
  readonly items: {
834
488
  readonly type: "object";
@@ -839,74 +493,24 @@ export declare class McpListTask extends Task<McpListTaskInput, McpListTaskOutpu
839
493
  readonly description: {
840
494
  readonly type: "string";
841
495
  };
842
- readonly inputSchema: {
843
- readonly type: "object";
844
- readonly properties: {
845
- readonly type: {
846
- readonly type: "string";
847
- };
496
+ readonly arguments: {
497
+ readonly type: "array";
498
+ readonly items: {
499
+ readonly type: "object";
848
500
  readonly properties: {
849
- readonly type: "object";
850
- readonly additionalProperties: true;
851
- };
852
- readonly required: {
853
- readonly type: "array";
854
- readonly items: {
501
+ readonly name: {
855
502
  readonly type: "string";
856
503
  };
857
- };
858
- };
859
- readonly additionalProperties: true;
860
- };
861
- readonly outputSchema: {
862
- readonly type: "object";
863
- readonly properties: {
864
- readonly type: {
865
- readonly type: "string";
866
- };
867
- readonly properties: {
868
- readonly type: "object";
869
- readonly additionalProperties: true;
870
- };
871
- readonly required: {
872
- readonly type: "array";
873
- readonly items: {
504
+ readonly description: {
874
505
  readonly type: "string";
875
506
  };
507
+ readonly required: {
508
+ readonly type: "boolean";
509
+ };
876
510
  };
511
+ readonly required: readonly ["name"];
512
+ readonly additionalProperties: false;
877
513
  };
878
- readonly additionalProperties: true;
879
- };
880
- readonly annotations: {
881
- readonly type: "object";
882
- readonly properties: {
883
- readonly title: {
884
- readonly type: "string";
885
- };
886
- readonly readOnlyHint: {
887
- readonly type: "boolean";
888
- };
889
- readonly destructiveHint: {
890
- readonly type: "boolean";
891
- };
892
- readonly idempotentHint: {
893
- readonly type: "boolean";
894
- };
895
- readonly openWorldHint: {
896
- readonly type: "boolean";
897
- };
898
- };
899
- readonly additionalProperties: false;
900
- };
901
- readonly execution: {
902
- readonly type: "object";
903
- readonly properties: {
904
- readonly taskSupport: {
905
- readonly type: "string";
906
- readonly enum: readonly ["optional", "required", "forbidden"];
907
- };
908
- };
909
- readonly additionalProperties: false;
910
514
  };
911
515
  readonly _meta: {
912
516
  readonly type: "object";
@@ -941,11 +545,11 @@ export declare class McpListTask extends Task<McpListTaskInput, McpListTaskOutpu
941
545
  readonly type: "string";
942
546
  };
943
547
  };
944
- readonly required: readonly ["name", "inputSchema"];
548
+ readonly required: readonly ["name"];
945
549
  readonly additionalProperties: false;
946
550
  };
947
- readonly title: "Tools";
948
- readonly description: "The tools available on the MCP server";
551
+ readonly title: "Prompts";
552
+ readonly description: "The prompts available on the MCP server";
949
553
  };
950
554
  };
951
555
  readonly additionalProperties: false;
@@ -954,7 +558,88 @@ export declare class McpListTask extends Task<McpListTaskInput, McpListTaskOutpu
954
558
  setInput(input: Record<string, unknown>): void;
955
559
  execute(input: McpListTaskInput, context: IExecuteContext): Promise<McpListTaskOutput>;
956
560
  }
957
- export declare const mcpList: (input: McpListTaskInput, config?: TaskConfig) => Promise<McpListTaskOutput>;
561
+ export declare const mcpList: (input: McpListTaskInput, config?: TaskConfig) => Promise<{
562
+ prompts?: {
563
+ _meta?: {
564
+ [x: string]: unknown;
565
+ } | undefined;
566
+ arguments?: {
567
+ description?: string | undefined;
568
+ name: string;
569
+ required?: boolean | undefined;
570
+ }[] | undefined;
571
+ description?: string | undefined;
572
+ icons?: {
573
+ mimeType?: string | undefined;
574
+ sizes?: string[] | undefined;
575
+ src?: string | undefined;
576
+ theme?: "dark" | "light" | undefined;
577
+ }[] | undefined;
578
+ name: string;
579
+ title?: string | undefined;
580
+ }[] | undefined;
581
+ resources?: {
582
+ _meta?: {
583
+ [x: string]: unknown;
584
+ } | undefined;
585
+ annotations?: {
586
+ audience?: ("assistant" | "user")[] | undefined;
587
+ lastModified?: string | undefined;
588
+ priority?: number | undefined;
589
+ } | undefined;
590
+ description?: string | undefined;
591
+ icons?: {
592
+ mimeType?: string | undefined;
593
+ sizes?: string[] | undefined;
594
+ src?: string | undefined;
595
+ theme?: "dark" | "light" | undefined;
596
+ }[] | undefined;
597
+ mimeType?: string | undefined;
598
+ name: string;
599
+ title?: string | undefined;
600
+ uri: string;
601
+ }[] | undefined;
602
+ tools?: {
603
+ _meta?: {
604
+ [x: string]: unknown;
605
+ } | undefined;
606
+ annotations?: {
607
+ destructiveHint?: boolean | undefined;
608
+ idempotentHint?: boolean | undefined;
609
+ openWorldHint?: boolean | undefined;
610
+ readOnlyHint?: boolean | undefined;
611
+ title?: string | undefined;
612
+ } | undefined;
613
+ description?: string | undefined;
614
+ execution?: {
615
+ taskSupport?: "forbidden" | "optional" | "required" | undefined;
616
+ } | undefined;
617
+ icons?: {
618
+ mimeType?: string | undefined;
619
+ sizes?: string[] | undefined;
620
+ src?: string | undefined;
621
+ theme?: "dark" | "light" | undefined;
622
+ }[] | undefined;
623
+ inputSchema: {
624
+ [x: string]: unknown;
625
+ properties?: {
626
+ [x: string]: unknown;
627
+ } | undefined;
628
+ required?: string[] | undefined;
629
+ type?: string | undefined;
630
+ };
631
+ name: string;
632
+ outputSchema?: {
633
+ [x: string]: unknown;
634
+ properties?: {
635
+ [x: string]: unknown;
636
+ } | undefined;
637
+ required?: string[] | undefined;
638
+ type?: string | undefined;
639
+ } | undefined;
640
+ title?: string | undefined;
641
+ }[] | undefined;
642
+ }>;
958
643
  declare module "@workglow/task-graph" {
959
644
  interface Workflow {
960
645
  mcpList: CreateWorkflow<McpListTaskInput, McpListTaskOutput, TaskConfig>;