fetchsandbox-mcp 0.6.0 → 0.7.1

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/index.d.ts CHANGED
@@ -49,5 +49,533 @@ declare const server: Server<{
49
49
  } | undefined;
50
50
  } | undefined;
51
51
  }>;
52
+ /** Every tool this server implements. ONE registry — the hosted list is
53
+ * derived from it, never written separately.
54
+ *
55
+ * transport_parity.test.mjs exists because "a second file with its own tool
56
+ * list diverges within weeks, and the divergence is INVISIBLE: hosted users
57
+ * silently get a different product, and nothing goes red." That reasoning is
58
+ * still right, and it is why this is a filter over one array rather than two
59
+ * arrays. What the parity test now pins is that the hosted set is a SUBSET
60
+ * whose shared definitions are byte-identical — a visible, tested divergence
61
+ * instead of an accidental one.
62
+ */
63
+ export declare const ALL_TOOLS: ({
64
+ readonly name: "list_specs";
65
+ readonly description: string;
66
+ readonly inputSchema: {
67
+ readonly type: "object";
68
+ readonly properties: {
69
+ readonly filter: {
70
+ readonly type: "string";
71
+ readonly description: string;
72
+ };
73
+ };
74
+ readonly additionalProperties: false;
75
+ };
76
+ } | {
77
+ readonly name: "list_workflows";
78
+ readonly description: string;
79
+ readonly inputSchema: {
80
+ readonly type: "object";
81
+ readonly properties: {
82
+ readonly spec_id: {
83
+ readonly type: "string";
84
+ readonly description: "The spec_id returned by import_spec.";
85
+ };
86
+ readonly spec_slug: {
87
+ readonly type: "string";
88
+ readonly description: string;
89
+ };
90
+ };
91
+ readonly additionalProperties: false;
92
+ };
93
+ } | {
94
+ readonly name: "validate_integration";
95
+ readonly description: string;
96
+ readonly inputSchema: {
97
+ readonly type: "object";
98
+ readonly properties: {
99
+ readonly providers: {
100
+ readonly type: "array";
101
+ readonly items: {
102
+ readonly type: "string";
103
+ };
104
+ readonly description: string;
105
+ };
106
+ readonly app_base_url: {
107
+ readonly type: "string";
108
+ readonly description: string;
109
+ };
110
+ readonly session_id: {
111
+ readonly type: "string";
112
+ readonly description: string;
113
+ };
114
+ readonly arm: {
115
+ readonly type: "string";
116
+ readonly description: "Probe ID from the matrix to arm before running the app. Requires session_id.";
117
+ };
118
+ readonly probe: {
119
+ readonly type: "string";
120
+ readonly description: "Probe ID from the matrix to evaluate after running the app. Requires session_id and run_id.";
121
+ };
122
+ readonly run_id: {
123
+ readonly type: "string";
124
+ readonly description: "Attempt ID returned by arm. Required with probe or cancel; prevents stale calls from consuming a newer attempt.";
125
+ };
126
+ readonly cancel: {
127
+ readonly type: "boolean";
128
+ readonly description: "Abort the attempt or retry failed cleanup. Requires session_id and run_id; cannot combine with arm or probe.";
129
+ };
130
+ readonly suite: {
131
+ readonly type: "string";
132
+ readonly enum: readonly ["receipt_delivery_v1", "receipt_recovery_v1"];
133
+ readonly description: "Configure the declared application receipt suite on this session.";
134
+ };
135
+ readonly receipt_config: {
136
+ readonly type: "object";
137
+ readonly properties: {
138
+ readonly webhook_url: {
139
+ readonly type: "string";
140
+ readonly description: "Exact normal application webhook URL, including path.";
141
+ };
142
+ readonly recipient_a: {
143
+ readonly type: "string";
144
+ readonly description: "Expected test recipient for purchase A, fixed before execution.";
145
+ };
146
+ readonly recipient_b: {
147
+ readonly type: "string";
148
+ readonly description: "Different test recipient for the different-customer case.";
149
+ };
150
+ readonly purchase_marker: {
151
+ readonly type: "object";
152
+ readonly properties: {
153
+ readonly field: {
154
+ readonly type: "string";
155
+ readonly enum: readonly ["html", "text", "subject", "tags"];
156
+ };
157
+ readonly tag_name: {
158
+ readonly type: "string";
159
+ };
160
+ };
161
+ readonly required: readonly ["field"];
162
+ readonly additionalProperties: false;
163
+ readonly description: "Where the normal receipt includes its Paddle transaction ID; same-record recipient/marker matching is required.";
164
+ };
165
+ readonly observation_seconds: {
166
+ readonly type: "number";
167
+ readonly minimum: 0.1;
168
+ readonly maximum: 5;
169
+ readonly description: "Observation window after each checkpoint; default 2 seconds. Verdict covers only measured windows.";
170
+ };
171
+ readonly app_version: {
172
+ readonly type: "string";
173
+ readonly description: "Declared application build identifier; not code attestation.";
174
+ };
175
+ readonly source_lookup_required: {
176
+ readonly type: "boolean";
177
+ readonly description: "Whether the app reads the source provider during its normal webhook handler.";
178
+ };
179
+ readonly purchase_context: {
180
+ readonly type: "object";
181
+ readonly description: "Application routing custom_data, e.g. test workspace ID. Never credentials.";
182
+ };
183
+ };
184
+ readonly required: readonly ["webhook_url", "recipient_a", "recipient_b", "purchase_marker", "app_version", "source_lookup_required"];
185
+ readonly additionalProperties: false;
186
+ };
187
+ readonly execute: {
188
+ readonly type: "boolean";
189
+ readonly description: "Drive the configured app and evaluate the frozen receipt suite. Requires session_id/run_id; configuration acknowledgment alone is not proof.";
190
+ };
191
+ };
192
+ readonly additionalProperties: false;
193
+ };
194
+ } | {
195
+ readonly name: "list_runs";
196
+ readonly description: string;
197
+ readonly inputSchema: {
198
+ readonly type: "object";
199
+ readonly properties: {
200
+ readonly sandbox_id: {
201
+ readonly type: "string";
202
+ readonly description: "The sandbox_id returned by import_spec.";
203
+ };
204
+ readonly limit: {
205
+ readonly type: "number";
206
+ readonly description: "Max number of runs to return (default 20, server may cap).";
207
+ };
208
+ };
209
+ readonly required: readonly ["sandbox_id"];
210
+ readonly additionalProperties: false;
211
+ };
212
+ } | {
213
+ readonly name: "list_scenarios";
214
+ readonly description: string;
215
+ readonly inputSchema: {
216
+ readonly type: "object";
217
+ readonly properties: {
218
+ readonly sandbox_id: {
219
+ readonly type: "string";
220
+ readonly description: "The sandbox_id returned by quickrun, run_workflow or import_spec.";
221
+ };
222
+ };
223
+ readonly required: readonly ["sandbox_id"];
224
+ readonly additionalProperties: false;
225
+ };
226
+ } | {
227
+ readonly name: "set_scenario";
228
+ readonly description: string;
229
+ readonly inputSchema: {
230
+ readonly type: "object";
231
+ readonly properties: {
232
+ readonly sandbox_id: {
233
+ readonly type: "string";
234
+ readonly description: "The sandbox to arm. From quickrun, run_workflow or import_spec.";
235
+ };
236
+ readonly scenario: {
237
+ readonly type: "string";
238
+ readonly description: string;
239
+ };
240
+ };
241
+ readonly required: readonly ["sandbox_id", "scenario"];
242
+ readonly additionalProperties: false;
243
+ };
244
+ } | {
245
+ readonly name: "run_workflow";
246
+ readonly description: string;
247
+ readonly inputSchema: {
248
+ readonly type: "object";
249
+ readonly properties: {
250
+ readonly sandbox_id: {
251
+ readonly type: "string";
252
+ readonly description: "The sandbox_id returned by import_spec.";
253
+ };
254
+ readonly workflow_name: {
255
+ readonly type: "string";
256
+ readonly description: string;
257
+ };
258
+ readonly scenario: {
259
+ readonly type: "string";
260
+ readonly description: string;
261
+ };
262
+ };
263
+ readonly required: readonly ["sandbox_id", "workflow_name"];
264
+ readonly additionalProperties: false;
265
+ };
266
+ } | {
267
+ readonly name: "run_all_workflows";
268
+ readonly description: string;
269
+ readonly inputSchema: {
270
+ readonly type: "object";
271
+ readonly properties: {
272
+ readonly sandbox_id: {
273
+ readonly type: "string";
274
+ readonly description: "The sandbox_id returned by import_spec.";
275
+ };
276
+ readonly workflow_names: {
277
+ readonly type: "array";
278
+ readonly items: {
279
+ readonly type: "string";
280
+ };
281
+ readonly description: string;
282
+ };
283
+ };
284
+ readonly required: readonly ["sandbox_id"];
285
+ readonly additionalProperties: false;
286
+ };
287
+ } | {
288
+ name: string;
289
+ description: string;
290
+ inputSchema: {
291
+ type: string;
292
+ properties: {
293
+ intent: {
294
+ type: string;
295
+ description: string;
296
+ };
297
+ hints: {
298
+ type: string;
299
+ description: string;
300
+ properties: {
301
+ spec: {
302
+ type: string;
303
+ description: string;
304
+ };
305
+ workflow: {
306
+ type: string;
307
+ description: string;
308
+ };
309
+ scenario: {
310
+ type: string;
311
+ description: string;
312
+ };
313
+ };
314
+ };
315
+ };
316
+ required: string[];
317
+ };
318
+ } | {
319
+ name: string;
320
+ description: string;
321
+ inputSchema: {
322
+ type: string;
323
+ properties: {
324
+ intent: {
325
+ type: string;
326
+ description: string;
327
+ };
328
+ session_id: {
329
+ type: string;
330
+ description: string;
331
+ };
332
+ user_response: {
333
+ type: string;
334
+ description: string;
335
+ };
336
+ context: {
337
+ type: string;
338
+ description: string;
339
+ };
340
+ };
341
+ };
342
+ } | {
343
+ readonly name: "verify_behavior";
344
+ readonly description: string;
345
+ readonly inputSchema: {
346
+ readonly type: "object";
347
+ readonly properties: {
348
+ readonly bug_pattern_id: {
349
+ readonly type: "string";
350
+ readonly description: string;
351
+ };
352
+ readonly prompt: {
353
+ readonly type: "string";
354
+ readonly description: string;
355
+ };
356
+ readonly sandbox_id: {
357
+ readonly type: "string";
358
+ readonly description: string;
359
+ };
360
+ readonly flow_run_id: {
361
+ readonly type: "string";
362
+ readonly description: string;
363
+ };
364
+ };
365
+ readonly required: readonly ["bug_pattern_id"];
366
+ readonly additionalProperties: false;
367
+ };
368
+ } | {
369
+ name: string;
370
+ description: string;
371
+ inputSchema: {
372
+ type: string;
373
+ properties: {
374
+ sandbox_id: {
375
+ type: string;
376
+ description: string;
377
+ };
378
+ flow_run_id: {
379
+ type: string;
380
+ description: string;
381
+ };
382
+ bug_pattern_id: {
383
+ type: string;
384
+ description: string;
385
+ };
386
+ summary: {
387
+ type: string;
388
+ description: string;
389
+ };
390
+ proofs: {
391
+ type: string;
392
+ description: string;
393
+ items: {
394
+ type: string;
395
+ properties: {
396
+ name: {
397
+ type: string;
398
+ };
399
+ request: {
400
+ type: string;
401
+ properties: {
402
+ method: {
403
+ type: string;
404
+ };
405
+ path: {
406
+ type: string;
407
+ };
408
+ body: {};
409
+ };
410
+ };
411
+ before: {
412
+ type: string;
413
+ properties: {
414
+ status: {
415
+ type: string;
416
+ };
417
+ body: {};
418
+ error: {
419
+ type: string;
420
+ };
421
+ };
422
+ };
423
+ after: {
424
+ type: string;
425
+ properties: {
426
+ status: {
427
+ type: string;
428
+ };
429
+ body: {};
430
+ error: {
431
+ type: string;
432
+ };
433
+ };
434
+ };
435
+ };
436
+ required: string[];
437
+ };
438
+ };
439
+ };
440
+ required: string[];
441
+ };
442
+ } | {
443
+ readonly name: "quickrun";
444
+ readonly description: string;
445
+ readonly inputSchema: {
446
+ readonly type: "object";
447
+ readonly properties: {
448
+ readonly spec_slug: {
449
+ readonly type: "string";
450
+ readonly description: "The bundled spec slug from guide (e.g. 'stripe'). Lowercase.";
451
+ };
452
+ readonly workflow_name: {
453
+ readonly type: "string";
454
+ readonly description: "The workflow id from guide (e.g. 'accept_payment').";
455
+ };
456
+ readonly scenario: {
457
+ readonly type: "string";
458
+ readonly description: string;
459
+ };
460
+ };
461
+ readonly required: readonly ["spec_slug", "workflow_name"];
462
+ readonly additionalProperties: false;
463
+ };
464
+ } | {
465
+ readonly name: "find_bugs";
466
+ readonly description: string;
467
+ readonly inputSchema: {
468
+ readonly type: "object";
469
+ readonly properties: {
470
+ readonly path: {
471
+ readonly type: "string";
472
+ readonly description: string;
473
+ };
474
+ readonly spec: {
475
+ readonly type: "string";
476
+ readonly description: string;
477
+ };
478
+ readonly timeout_s: {
479
+ readonly type: "number";
480
+ readonly description: "OPTIONAL. Analysis budget in seconds (default 300, max 600).";
481
+ };
482
+ };
483
+ readonly additionalProperties: false;
484
+ };
485
+ } | {
486
+ readonly name: "fix_bug";
487
+ readonly description: string;
488
+ readonly inputSchema: {
489
+ readonly type: "object";
490
+ readonly properties: {
491
+ readonly bug: {
492
+ readonly type: "string";
493
+ readonly description: string;
494
+ };
495
+ readonly fix_pattern: {
496
+ readonly type: "string";
497
+ readonly description: string;
498
+ };
499
+ readonly path: {
500
+ readonly type: "string";
501
+ readonly description: string;
502
+ };
503
+ readonly spec: {
504
+ readonly type: "string";
505
+ readonly description: "OPTIONAL. Grounding hint for the integration (e.g. 'stripe').";
506
+ };
507
+ readonly timeout_s: {
508
+ readonly type: "number";
509
+ readonly description: "OPTIONAL. Fix budget in seconds (default 300, max 600).";
510
+ };
511
+ };
512
+ readonly required: readonly ["bug"];
513
+ readonly additionalProperties: false;
514
+ };
515
+ } | {
516
+ readonly name: "prove_fix";
517
+ readonly description: string;
518
+ readonly inputSchema: {
519
+ readonly type: "object";
520
+ readonly properties: {
521
+ readonly diff: {
522
+ readonly type: "string";
523
+ readonly description: "The unified diff returned by fix_bug.";
524
+ };
525
+ readonly bug: {
526
+ readonly type: "string";
527
+ readonly description: "The finding being fixed — used to select FetchSandbox's scenario.";
528
+ };
529
+ readonly scenario: {
530
+ readonly type: "string";
531
+ readonly description: "OPTIONAL. Explicit scenario id, if known.";
532
+ };
533
+ readonly sandbox_id: {
534
+ readonly type: "string";
535
+ readonly description: string;
536
+ };
537
+ readonly path: {
538
+ readonly type: "string";
539
+ readonly description: string;
540
+ };
541
+ readonly timeout_s: {
542
+ readonly type: "number";
543
+ readonly description: "OPTIONAL. Budget in seconds (default 300).";
544
+ };
545
+ };
546
+ readonly required: readonly ["diff"];
547
+ readonly additionalProperties: false;
548
+ };
549
+ })[];
550
+ /** What a browser-based app builder is shown. MEASURED, not guessed.
551
+ *
552
+ * Hosted callers were being offered 17 tools of which FOUR CANNOT WORK:
553
+ * find_bugs, fix_bug and prove_fix read the filesystem and throw, and
554
+ * import_spec now redirects. Worse, find_bugs opens "FIRST STEP for any
555
+ * API-integration bug — reach for this the moment a user reports a symptom",
556
+ * so the loudest routing claim in the whole list belonged to a tool a Lovable
557
+ * agent can never call.
558
+ *
559
+ * The rest were near-duplicates competing for the same slot: three ways to run
560
+ * a workflow, four ways to list something. Selection accuracy is measured to
561
+ * peak at 5–8 tools and degrade past 10–15, and closely-related tools are the
562
+ * worst case — which is exactly the shape we had.
563
+ *
564
+ * Nothing here was removed on taste. Across every hosted session ever served,
565
+ * exactly seven tools have been called: quickrun, coach, run_workflow, guide,
566
+ * list_workflows, verify_behavior, submit_proof. Everything dropped below has
567
+ * zero hosted calls, all time.
568
+ *
569
+ * set_scenario and list_scenarios are dropped despite being "the moat": both
570
+ * require a sandbox_id, list_workflows now returns the scenarios anyway, and
571
+ * NEITHER HAS EVER BEEN CALLED BY ANY CLIENT, ONCE, in 5,200+ calls. Arming is
572
+ * reachable through quickrun/run_workflow's `scenario` argument, which is how
573
+ * the 1.72% of runs that do inject a failure got there.
574
+ *
575
+ * STDIO IS UNTOUCHED. Claude Code and Cursor keep all of ALL_TOOLS, byte for
576
+ * byte: they have a filesystem, they compose tools correctly, and they have a
577
+ * human in the loop.
578
+ */
579
+ export declare const HOSTED_TOOL_NAMES: Set<string>;
52
580
  export declare function registerHandlers(server: Server): void;
53
581
  export { server };
package/dist/index.js CHANGED
@@ -20,6 +20,7 @@ import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextpro
20
20
  import { ToolError, getBaseUrl } from "./client.js";
21
21
  import { withSignIn } from "./signin.js";
22
22
  import { detectIde } from "./session.js";
23
+ import { isHosted } from "./request_context.js";
23
24
  import { importSpecTool, runImportSpec } from "./tools/import_spec.js";
24
25
  import { listSpecsTool, runListSpecs } from "./tools/list_specs.js";
25
26
  import { listWorkflowsTool, runListWorkflows } from "./tools/list_workflows.js";
@@ -113,30 +114,90 @@ function annotated(tool) {
113
114
  const a = ANNOTATIONS[tool.name];
114
115
  return a ? { ...tool, annotations: a } : tool;
115
116
  }
117
+ /** Every tool this server implements. ONE registry — the hosted list is
118
+ * derived from it, never written separately.
119
+ *
120
+ * transport_parity.test.mjs exists because "a second file with its own tool
121
+ * list diverges within weeks, and the divergence is INVISIBLE: hosted users
122
+ * silently get a different product, and nothing goes red." That reasoning is
123
+ * still right, and it is why this is a filter over one array rather than two
124
+ * arrays. What the parity test now pins is that the hosted set is a SUBSET
125
+ * whose shared definitions are byte-identical — a visible, tested divergence
126
+ * instead of an accidental one.
127
+ */
128
+ export const ALL_TOOLS = [
129
+ annotated(coachTool), // listed FIRST — the conversational entry point
130
+ annotated(findBugsTool), // investigate: find production bugs in the user's own code
131
+ annotated(fixBugTool), // fix: grounded remediation → git diff proposal
132
+ annotated(proveFixTool), // prove: run FS's scenario buggy vs fixed → honest-green gate
133
+ annotated(guideTool), // the deterministic single-shot router (still useful)
134
+ annotated(quickrunTool), // run a bundled spec by slug — no import_spec/sandbox needed
135
+ annotated(listSpecsTool),
136
+ // import_spec is NOT advertised. (Raj, 2026-09-24.) Self-serve spec import
137
+ // is closed: the catalogue is curated, and a URL alone does not produce a
138
+ // twin. It stayed in the list long enough to break the most realistic first
139
+ // message we have — an agent told "paddle" already existed tried to import
140
+ // paddle anyway, hit the ONE authenticated tool in the set, and ended the
141
+ // session asking the user to go make an account before anything had run.
142
+ //
143
+ // The handler below is deliberately left wired. Clients pinned to an older
144
+ // version still have the tool, and the backend now answers them with a
145
+ // redirect ("already available, call quickrun with spec_slug=…") instead of
146
+ // an auth challenge. Removing the case would turn that into "unknown tool".
147
+ annotated(validateIntegrationTool),
148
+ annotated(listWorkflowsTool),
149
+ annotated(runAllWorkflowsTool),
150
+ annotated(runWorkflowTool),
151
+ annotated(verifyBehaviorTool),
152
+ annotated(submitProofTool), // attach the REAL app's before/after to the receipt
153
+ annotated(listRunsTool),
154
+ // The moat, exposed: discover the failures, then inject one.
155
+ annotated(listScenariosTool),
156
+ annotated(setScenarioTool),
157
+ ];
158
+ /** What a browser-based app builder is shown. MEASURED, not guessed.
159
+ *
160
+ * Hosted callers were being offered 17 tools of which FOUR CANNOT WORK:
161
+ * find_bugs, fix_bug and prove_fix read the filesystem and throw, and
162
+ * import_spec now redirects. Worse, find_bugs opens "FIRST STEP for any
163
+ * API-integration bug — reach for this the moment a user reports a symptom",
164
+ * so the loudest routing claim in the whole list belonged to a tool a Lovable
165
+ * agent can never call.
166
+ *
167
+ * The rest were near-duplicates competing for the same slot: three ways to run
168
+ * a workflow, four ways to list something. Selection accuracy is measured to
169
+ * peak at 5–8 tools and degrade past 10–15, and closely-related tools are the
170
+ * worst case — which is exactly the shape we had.
171
+ *
172
+ * Nothing here was removed on taste. Across every hosted session ever served,
173
+ * exactly seven tools have been called: quickrun, coach, run_workflow, guide,
174
+ * list_workflows, verify_behavior, submit_proof. Everything dropped below has
175
+ * zero hosted calls, all time.
176
+ *
177
+ * set_scenario and list_scenarios are dropped despite being "the moat": both
178
+ * require a sandbox_id, list_workflows now returns the scenarios anyway, and
179
+ * NEITHER HAS EVER BEEN CALLED BY ANY CLIENT, ONCE, in 5,200+ calls. Arming is
180
+ * reachable through quickrun/run_workflow's `scenario` argument, which is how
181
+ * the 1.72% of runs that do inject a failure got there.
182
+ *
183
+ * STDIO IS UNTOUCHED. Claude Code and Cursor keep all of ALL_TOOLS, byte for
184
+ * byte: they have a filesystem, they compose tools correctly, and they have a
185
+ * human in the loop.
186
+ */
187
+ export const HOSTED_TOOL_NAMES = new Set([
188
+ "coach", // the conversational entry point
189
+ "guide", // route a symptom to provider behaviour
190
+ "validate_integration", // prove the USER'S app, not our twin
191
+ "quickrun", // the only runner usable without a sandbox_id
192
+ "run_workflow", // re-run with a scenario armed
193
+ "verify_behavior", // buggy vs fixed reference diff
194
+ "list_workflows", // workflows AND scenarios in one answer
195
+ ]);
116
196
  export function registerHandlers(server) {
117
197
  server.setRequestHandler(ListToolsRequestSchema, async () => ({
118
- tools: [
119
- annotated(coachTool), // listed FIRST — the conversational entry point
120
- annotated(findBugsTool), // investigate: find production bugs in the user's own code
121
- annotated(fixBugTool), // fix: grounded remediation → git diff proposal
122
- annotated(proveFixTool), // prove: run FS's scenario buggy vs fixed → honest-green gate
123
- annotated(guideTool), // the deterministic single-shot router (still useful)
124
- annotated(quickrunTool), // run a bundled spec by slug — no import_spec/sandbox needed
125
- annotated(listSpecsTool),
126
- annotated(importSpecTool),
127
- // Listed right after the router, because it is the answer when the ask is
128
- // "prove MY integration works" rather than "show me what this API does".
129
- annotated(validateIntegrationTool),
130
- annotated(listWorkflowsTool),
131
- annotated(runAllWorkflowsTool),
132
- annotated(runWorkflowTool),
133
- annotated(verifyBehaviorTool),
134
- annotated(submitProofTool), // attach the REAL app's before/after to the receipt
135
- annotated(listRunsTool),
136
- // The moat, exposed: discover the failures, then inject one.
137
- annotated(listScenariosTool),
138
- annotated(setScenarioTool),
139
- ],
198
+ tools: isHosted()
199
+ ? ALL_TOOLS.filter((t) => HOSTED_TOOL_NAMES.has(t.name))
200
+ : ALL_TOOLS,
140
201
  }));
141
202
  server.setRequestHandler(CallToolRequestSchema, async (req) => {
142
203
  const { name, arguments: args } = req.params;
@@ -227,6 +288,14 @@ export function registerHandlers(server) {
227
288
  : undefined,
228
289
  app_base_url: typeof a.app_base_url === "string" ? a.app_base_url : undefined,
229
290
  session_id: typeof a.session_id === "string" ? a.session_id : undefined,
291
+ arm: typeof a.arm === "string" ? a.arm : undefined,
292
+ probe: typeof a.probe === "string" ? a.probe : undefined,
293
+ run_id: typeof a.run_id === "string" ? a.run_id : undefined,
294
+ cancel: typeof a.cancel === "boolean" ? a.cancel : undefined,
295
+ suite: typeof a.suite === "string" ? a.suite : undefined,
296
+ receipt_config: a.receipt_config && typeof a.receipt_config === "object"
297
+ ? a.receipt_config : undefined,
298
+ execute: typeof a.execute === "boolean" ? a.execute : undefined,
230
299
  });
231
300
  break;
232
301
  case listWorkflowsTool.name: