fetchsandbox-mcp 0.5.9 → 0.7.0

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,456 @@ 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
+ };
115
+ readonly additionalProperties: false;
116
+ };
117
+ } | {
118
+ readonly name: "list_runs";
119
+ readonly description: string;
120
+ readonly inputSchema: {
121
+ readonly type: "object";
122
+ readonly properties: {
123
+ readonly sandbox_id: {
124
+ readonly type: "string";
125
+ readonly description: "The sandbox_id returned by import_spec.";
126
+ };
127
+ readonly limit: {
128
+ readonly type: "number";
129
+ readonly description: "Max number of runs to return (default 20, server may cap).";
130
+ };
131
+ };
132
+ readonly required: readonly ["sandbox_id"];
133
+ readonly additionalProperties: false;
134
+ };
135
+ } | {
136
+ readonly name: "list_scenarios";
137
+ readonly description: string;
138
+ readonly inputSchema: {
139
+ readonly type: "object";
140
+ readonly properties: {
141
+ readonly sandbox_id: {
142
+ readonly type: "string";
143
+ readonly description: "The sandbox_id returned by quickrun, run_workflow or import_spec.";
144
+ };
145
+ };
146
+ readonly required: readonly ["sandbox_id"];
147
+ readonly additionalProperties: false;
148
+ };
149
+ } | {
150
+ readonly name: "set_scenario";
151
+ readonly description: string;
152
+ readonly inputSchema: {
153
+ readonly type: "object";
154
+ readonly properties: {
155
+ readonly sandbox_id: {
156
+ readonly type: "string";
157
+ readonly description: "The sandbox to arm. From quickrun, run_workflow or import_spec.";
158
+ };
159
+ readonly scenario: {
160
+ readonly type: "string";
161
+ readonly description: string;
162
+ };
163
+ };
164
+ readonly required: readonly ["sandbox_id", "scenario"];
165
+ readonly additionalProperties: false;
166
+ };
167
+ } | {
168
+ readonly name: "run_workflow";
169
+ readonly description: string;
170
+ readonly inputSchema: {
171
+ readonly type: "object";
172
+ readonly properties: {
173
+ readonly sandbox_id: {
174
+ readonly type: "string";
175
+ readonly description: "The sandbox_id returned by import_spec.";
176
+ };
177
+ readonly workflow_name: {
178
+ readonly type: "string";
179
+ readonly description: string;
180
+ };
181
+ readonly scenario: {
182
+ readonly type: "string";
183
+ readonly description: string;
184
+ };
185
+ };
186
+ readonly required: readonly ["sandbox_id", "workflow_name"];
187
+ readonly additionalProperties: false;
188
+ };
189
+ } | {
190
+ readonly name: "run_all_workflows";
191
+ readonly description: string;
192
+ readonly inputSchema: {
193
+ readonly type: "object";
194
+ readonly properties: {
195
+ readonly sandbox_id: {
196
+ readonly type: "string";
197
+ readonly description: "The sandbox_id returned by import_spec.";
198
+ };
199
+ readonly workflow_names: {
200
+ readonly type: "array";
201
+ readonly items: {
202
+ readonly type: "string";
203
+ };
204
+ readonly description: string;
205
+ };
206
+ };
207
+ readonly required: readonly ["sandbox_id"];
208
+ readonly additionalProperties: false;
209
+ };
210
+ } | {
211
+ name: string;
212
+ description: string;
213
+ inputSchema: {
214
+ type: string;
215
+ properties: {
216
+ intent: {
217
+ type: string;
218
+ description: string;
219
+ };
220
+ hints: {
221
+ type: string;
222
+ description: string;
223
+ properties: {
224
+ spec: {
225
+ type: string;
226
+ description: string;
227
+ };
228
+ workflow: {
229
+ type: string;
230
+ description: string;
231
+ };
232
+ scenario: {
233
+ type: string;
234
+ description: string;
235
+ };
236
+ };
237
+ };
238
+ };
239
+ required: string[];
240
+ };
241
+ } | {
242
+ name: string;
243
+ description: string;
244
+ inputSchema: {
245
+ type: string;
246
+ properties: {
247
+ intent: {
248
+ type: string;
249
+ description: string;
250
+ };
251
+ session_id: {
252
+ type: string;
253
+ description: string;
254
+ };
255
+ user_response: {
256
+ type: string;
257
+ description: string;
258
+ };
259
+ context: {
260
+ type: string;
261
+ description: string;
262
+ };
263
+ };
264
+ };
265
+ } | {
266
+ readonly name: "verify_behavior";
267
+ readonly description: string;
268
+ readonly inputSchema: {
269
+ readonly type: "object";
270
+ readonly properties: {
271
+ readonly bug_pattern_id: {
272
+ readonly type: "string";
273
+ readonly description: string;
274
+ };
275
+ readonly prompt: {
276
+ readonly type: "string";
277
+ readonly description: string;
278
+ };
279
+ readonly sandbox_id: {
280
+ readonly type: "string";
281
+ readonly description: string;
282
+ };
283
+ readonly flow_run_id: {
284
+ readonly type: "string";
285
+ readonly description: string;
286
+ };
287
+ };
288
+ readonly required: readonly ["bug_pattern_id"];
289
+ readonly additionalProperties: false;
290
+ };
291
+ } | {
292
+ name: string;
293
+ description: string;
294
+ inputSchema: {
295
+ type: string;
296
+ properties: {
297
+ sandbox_id: {
298
+ type: string;
299
+ description: string;
300
+ };
301
+ flow_run_id: {
302
+ type: string;
303
+ description: string;
304
+ };
305
+ bug_pattern_id: {
306
+ type: string;
307
+ description: string;
308
+ };
309
+ summary: {
310
+ type: string;
311
+ description: string;
312
+ };
313
+ proofs: {
314
+ type: string;
315
+ description: string;
316
+ items: {
317
+ type: string;
318
+ properties: {
319
+ name: {
320
+ type: string;
321
+ };
322
+ request: {
323
+ type: string;
324
+ properties: {
325
+ method: {
326
+ type: string;
327
+ };
328
+ path: {
329
+ type: string;
330
+ };
331
+ body: {};
332
+ };
333
+ };
334
+ before: {
335
+ type: string;
336
+ properties: {
337
+ status: {
338
+ type: string;
339
+ };
340
+ body: {};
341
+ error: {
342
+ type: string;
343
+ };
344
+ };
345
+ };
346
+ after: {
347
+ type: string;
348
+ properties: {
349
+ status: {
350
+ type: string;
351
+ };
352
+ body: {};
353
+ error: {
354
+ type: string;
355
+ };
356
+ };
357
+ };
358
+ };
359
+ required: string[];
360
+ };
361
+ };
362
+ };
363
+ required: string[];
364
+ };
365
+ } | {
366
+ readonly name: "quickrun";
367
+ readonly description: string;
368
+ readonly inputSchema: {
369
+ readonly type: "object";
370
+ readonly properties: {
371
+ readonly spec_slug: {
372
+ readonly type: "string";
373
+ readonly description: "The bundled spec slug from guide (e.g. 'stripe'). Lowercase.";
374
+ };
375
+ readonly workflow_name: {
376
+ readonly type: "string";
377
+ readonly description: "The workflow id from guide (e.g. 'accept_payment').";
378
+ };
379
+ readonly scenario: {
380
+ readonly type: "string";
381
+ readonly description: string;
382
+ };
383
+ };
384
+ readonly required: readonly ["spec_slug", "workflow_name"];
385
+ readonly additionalProperties: false;
386
+ };
387
+ } | {
388
+ readonly name: "find_bugs";
389
+ readonly description: string;
390
+ readonly inputSchema: {
391
+ readonly type: "object";
392
+ readonly properties: {
393
+ readonly path: {
394
+ readonly type: "string";
395
+ readonly description: string;
396
+ };
397
+ readonly spec: {
398
+ readonly type: "string";
399
+ readonly description: string;
400
+ };
401
+ readonly timeout_s: {
402
+ readonly type: "number";
403
+ readonly description: "OPTIONAL. Analysis budget in seconds (default 300, max 600).";
404
+ };
405
+ };
406
+ readonly additionalProperties: false;
407
+ };
408
+ } | {
409
+ readonly name: "fix_bug";
410
+ readonly description: string;
411
+ readonly inputSchema: {
412
+ readonly type: "object";
413
+ readonly properties: {
414
+ readonly bug: {
415
+ readonly type: "string";
416
+ readonly description: string;
417
+ };
418
+ readonly fix_pattern: {
419
+ readonly type: "string";
420
+ readonly description: string;
421
+ };
422
+ readonly path: {
423
+ readonly type: "string";
424
+ readonly description: string;
425
+ };
426
+ readonly spec: {
427
+ readonly type: "string";
428
+ readonly description: "OPTIONAL. Grounding hint for the integration (e.g. 'stripe').";
429
+ };
430
+ readonly timeout_s: {
431
+ readonly type: "number";
432
+ readonly description: "OPTIONAL. Fix budget in seconds (default 300, max 600).";
433
+ };
434
+ };
435
+ readonly required: readonly ["bug"];
436
+ readonly additionalProperties: false;
437
+ };
438
+ } | {
439
+ readonly name: "prove_fix";
440
+ readonly description: string;
441
+ readonly inputSchema: {
442
+ readonly type: "object";
443
+ readonly properties: {
444
+ readonly diff: {
445
+ readonly type: "string";
446
+ readonly description: "The unified diff returned by fix_bug.";
447
+ };
448
+ readonly bug: {
449
+ readonly type: "string";
450
+ readonly description: "The finding being fixed — used to select FetchSandbox's scenario.";
451
+ };
452
+ readonly scenario: {
453
+ readonly type: "string";
454
+ readonly description: "OPTIONAL. Explicit scenario id, if known.";
455
+ };
456
+ readonly sandbox_id: {
457
+ readonly type: "string";
458
+ readonly description: string;
459
+ };
460
+ readonly path: {
461
+ readonly type: "string";
462
+ readonly description: string;
463
+ };
464
+ readonly timeout_s: {
465
+ readonly type: "number";
466
+ readonly description: "OPTIONAL. Budget in seconds (default 300).";
467
+ };
468
+ };
469
+ readonly required: readonly ["diff"];
470
+ readonly additionalProperties: false;
471
+ };
472
+ })[];
473
+ /** What a browser-based app builder is shown. MEASURED, not guessed.
474
+ *
475
+ * Hosted callers were being offered 17 tools of which FOUR CANNOT WORK:
476
+ * find_bugs, fix_bug and prove_fix read the filesystem and throw, and
477
+ * import_spec now redirects. Worse, find_bugs opens "FIRST STEP for any
478
+ * API-integration bug — reach for this the moment a user reports a symptom",
479
+ * so the loudest routing claim in the whole list belonged to a tool a Lovable
480
+ * agent can never call.
481
+ *
482
+ * The rest were near-duplicates competing for the same slot: three ways to run
483
+ * a workflow, four ways to list something. Selection accuracy is measured to
484
+ * peak at 5–8 tools and degrade past 10–15, and closely-related tools are the
485
+ * worst case — which is exactly the shape we had.
486
+ *
487
+ * Nothing here was removed on taste. Across every hosted session ever served,
488
+ * exactly seven tools have been called: quickrun, coach, run_workflow, guide,
489
+ * list_workflows, verify_behavior, submit_proof. Everything dropped below has
490
+ * zero hosted calls, all time.
491
+ *
492
+ * set_scenario and list_scenarios are dropped despite being "the moat": both
493
+ * require a sandbox_id, list_workflows now returns the scenarios anyway, and
494
+ * NEITHER HAS EVER BEEN CALLED BY ANY CLIENT, ONCE, in 5,200+ calls. Arming is
495
+ * reachable through quickrun/run_workflow's `scenario` argument, which is how
496
+ * the 1.72% of runs that do inject a failure got there.
497
+ *
498
+ * STDIO IS UNTOUCHED. Claude Code and Cursor keep all of ALL_TOOLS, byte for
499
+ * byte: they have a filesystem, they compose tools correctly, and they have a
500
+ * human in the loop.
501
+ */
502
+ export declare const HOSTED_TOOL_NAMES: Set<string>;
52
503
  export declare function registerHandlers(server: Server): void;
53
504
  export { server };
package/dist/index.js CHANGED
@@ -20,9 +20,11 @@ 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";
27
+ import { validateIntegrationTool, runValidateIntegration } from "./tools/validate_integration.js";
26
28
  import { listRunsTool, runListRuns } from "./tools/list_runs.js";
27
29
  import { listScenariosTool, runListScenarios, setScenarioTool, runSetScenario, } from "./tools/scenarios.js";
28
30
  import { runRunWorkflow, runWorkflowTool } from "./tools/run_workflow.js";
@@ -85,6 +87,8 @@ const ANNOTATIONS = {
85
87
  guide: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
86
88
  list_specs: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
87
89
  list_workflows: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
90
+ // Mints sandboxes and reads state back — a write, like quickrun.
91
+ validate_integration: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true },
88
92
  list_runs: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
89
93
  list_scenarios: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: true },
90
94
  find_bugs: { readOnlyHint: true, destructiveHint: false, idempotentHint: false, openWorldHint: true },
@@ -110,27 +114,90 @@ function annotated(tool) {
110
114
  const a = ANNOTATIONS[tool.name];
111
115
  return a ? { ...tool, annotations: a } : tool;
112
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
+ ]);
113
196
  export function registerHandlers(server) {
114
197
  server.setRequestHandler(ListToolsRequestSchema, async () => ({
115
- tools: [
116
- annotated(coachTool), // listed FIRST — the conversational entry point
117
- annotated(findBugsTool), // investigate: find production bugs in the user's own code
118
- annotated(fixBugTool), // fix: grounded remediation → git diff proposal
119
- annotated(proveFixTool), // prove: run FS's scenario buggy vs fixed → honest-green gate
120
- annotated(guideTool), // the deterministic single-shot router (still useful)
121
- annotated(quickrunTool), // run a bundled spec by slug — no import_spec/sandbox needed
122
- annotated(listSpecsTool),
123
- annotated(importSpecTool),
124
- annotated(listWorkflowsTool),
125
- annotated(runAllWorkflowsTool),
126
- annotated(runWorkflowTool),
127
- annotated(verifyBehaviorTool),
128
- annotated(submitProofTool), // attach the REAL app's before/after to the receipt
129
- annotated(listRunsTool),
130
- // The moat, exposed: discover the failures, then inject one.
131
- annotated(listScenariosTool),
132
- annotated(setScenarioTool),
133
- ],
198
+ tools: isHosted()
199
+ ? ALL_TOOLS.filter((t) => HOSTED_TOOL_NAMES.has(t.name))
200
+ : ALL_TOOLS,
134
201
  }));
135
202
  server.setRequestHandler(CallToolRequestSchema, async (req) => {
136
203
  const { name, arguments: args } = req.params;
@@ -214,6 +281,15 @@ export function registerHandlers(server) {
214
281
  name: typeof a.name === "string" ? a.name : undefined,
215
282
  });
216
283
  break;
284
+ case validateIntegrationTool.name:
285
+ result = await runValidateIntegration({
286
+ providers: Array.isArray(a.providers)
287
+ ? a.providers.filter((x) => typeof x === "string")
288
+ : undefined,
289
+ app_base_url: typeof a.app_base_url === "string" ? a.app_base_url : undefined,
290
+ session_id: typeof a.session_id === "string" ? a.session_id : undefined,
291
+ });
292
+ break;
217
293
  case listWorkflowsTool.name:
218
294
  result = await runListWorkflows({
219
295
  spec_id: typeof a.spec_id === "string" ? a.spec_id : "",
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EACL,qBAAqB,EACrB,sBAAsB,GACvB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,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EXISTS, in the words of an agent that hit the gap:
5
+ *
6
+ * "The catch — this didn't touch your actual app. Your real checkout
7
+ * endpoint, your real /api/webhooks/stripe handler, and your real email
8
+ * send were never called. That's still a mock, just a fancier one — it
9
+ * proves Stripe's API behaves like Stripe says it does, not that your
10
+ * integration wired to it correctly."
11
+ *
12
+ * Measured 2026-09-24. The agent then asked for exactly this capability —
13
+ * "you point your app's Stripe base URL at the sandbox and give FetchSandbox a
14
+ * reachable URL for your webhook endpoint" — and could not reach it, because
15
+ * the endpoint shipped to prod without a tool in front of it.
16
+ *
17
+ * That also explains a number we had been reading as agent behaviour: across
18
+ * 57,275 twin requests since 2026-05-09, 1.72% ran under a non-default
19
+ * scenario. An agent declining to arm a failure on OUR canned workflow is not
20
+ * being lazy — arming one there proves nothing about the caller's code, and it
21
+ * was right about that.
22
+ */
23
+ export interface ValidateIntegrationInput {
24
+ /** Where THEIR app is reachable. The one fact we cannot derive. */
25
+ app_base_url?: string;
26
+ /** Providers the app integrates — ["paddle", "resend"] for a relay. */
27
+ providers?: string[];
28
+ /** Carry this back to continue; it makes re-validation a diff, not a restart. */
29
+ session_id?: string;
30
+ }
31
+ export declare const validateIntegrationTool: {
32
+ readonly name: "validate_integration";
33
+ readonly description: string;
34
+ readonly inputSchema: {
35
+ readonly type: "object";
36
+ readonly properties: {
37
+ readonly providers: {
38
+ readonly type: "array";
39
+ readonly items: {
40
+ readonly type: "string";
41
+ };
42
+ readonly description: string;
43
+ };
44
+ readonly app_base_url: {
45
+ readonly type: "string";
46
+ readonly description: string;
47
+ };
48
+ readonly session_id: {
49
+ readonly type: "string";
50
+ readonly description: string;
51
+ };
52
+ };
53
+ readonly additionalProperties: false;
54
+ };
55
+ };
56
+ export declare function runValidateIntegration(input: ValidateIntegrationInput): Promise<unknown>;
@@ -0,0 +1,50 @@
1
+ import { postJson, ToolError } from "../client.js";
2
+ export const validateIntegrationTool = {
3
+ name: "validate_integration",
4
+ description: "Prove the USER'S OWN code works against a provider, not that our twin " +
5
+ "does. quickrun and run_workflow execute OUR curated workflow against a " +
6
+ "twin — green there says the provider behaves as documented, and says " +
7
+ "nothing about whether their integration wired to it correctly. This " +
8
+ "instead hands back a FRESH twin per provider and asks the user to point " +
9
+ "their app at it, then reads our own request log to report what THEIR code " +
10
+ "actually called. Use it when someone wants their integration verified " +
11
+ "before launch, or when you have just run a happy path and need to say " +
12
+ "what it did and did not prove. Call once with `providers` to start, then " +
13
+ "again with the returned `session_id` after their app has run a flow.",
14
+ inputSchema: {
15
+ type: "object",
16
+ properties: {
17
+ providers: {
18
+ type: "array",
19
+ items: { type: "string" },
20
+ description: "Provider slugs the app integrates, e.g. ['stripe'] or " +
21
+ "['paddle','resend']. Required to start a session.",
22
+ },
23
+ app_base_url: {
24
+ type: "string",
25
+ description: "Where their app is deployed, if known. Recorded so a later step " +
26
+ "can deliver webhooks to it.",
27
+ },
28
+ session_id: {
29
+ type: "string",
30
+ description: "Returned by the first call. Pass it back after their app has run " +
31
+ "a flow to see what it did.",
32
+ },
33
+ },
34
+ additionalProperties: false,
35
+ },
36
+ };
37
+ export async function runValidateIntegration(input) {
38
+ const hasSession = Boolean(input.session_id && input.session_id.trim());
39
+ const hasProviders = Array.isArray(input.providers) && input.providers.length > 0;
40
+ if (!hasSession && !hasProviders) {
41
+ throw new ToolError("Pass `providers` (e.g. ['stripe']) to start a validation session, or " +
42
+ "`session_id` from a previous call to continue one.");
43
+ }
44
+ return postJson("/api/mcp/validate_integration", {
45
+ providers: input.providers ?? [],
46
+ app_base_url: input.app_base_url ?? "",
47
+ session_id: input.session_id ?? null,
48
+ });
49
+ }
50
+ //# sourceMappingURL=validate_integration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate_integration.js","sourceRoot":"","sources":["../../src/tools/validate_integration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAiCnD,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,IAAI,EA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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fetchsandbox-mcp",
3
- "version": "0.5.9",
3
+ "version": "0.7.0",
4
4
  "mcpName": "io.github.fetchsandbox/mcp",
5
5
  "description": "A deterministic verification engine for agents. Fires the edge cases your sandbox never sends, then proves a fix: the same scenario fails on the old code and passes on the new.",
6
6
  "license": "MIT",