fetchsandbox-mcp 0.4.2 → 0.4.4
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/README.md +1 -1
- package/dist/tools/find_bugs.js +14 -9
- package/dist/tools/find_bugs.js.map +1 -1
- package/dist/tools/fix_bug.d.ts +4 -0
- package/dist/tools/fix_bug.js +6 -0
- package/dist/tools/fix_bug.js.map +1 -1
- package/dist/tools/guide.js +12 -18
- package/dist/tools/guide.js.map +1 -1
- package/dist/tools/list_runs.js +7 -2
- package/dist/tools/list_runs.js.map +1 -1
- package/dist/tools/prove_fix.js +15 -7
- package/dist/tools/prove_fix.js.map +1 -1
- package/dist/tools/quickrun.d.ts +4 -0
- package/dist/tools/quickrun.js +21 -0
- package/dist/tools/quickrun.js.map +1 -1
- package/dist/tools/run_workflow.d.ts +4 -0
- package/dist/tools/run_workflow.js +6 -0
- package/dist/tools/run_workflow.js.map +1 -1
- package/dist/tools/verify_behavior.d.ts +4 -0
- package/dist/tools/verify_behavior.js +6 -0
- package/dist/tools/verify_behavior.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# fetchsandbox-mcp
|
|
2
2
|
|
|
3
|
-
<a href="https://www.producthunt.com/products/fetchsandbox?embed=true&utm_source=badge-featured&utm_medium=badge&utm_campaign=badge-fetchsandbox" target="_blank" rel="noopener noreferrer"><img alt="FetchSandbox -
|
|
3
|
+
<a href="https://www.producthunt.com/products/fetchsandbox?embed=true&utm_source=badge-featured&utm_medium=badge&utm_campaign=badge-fetchsandbox-mcp" target="_blank" rel="noopener noreferrer"><img alt="FetchSandbox MCP - The MCP that proves your AI's integration fixes work | Product Hunt" width="250" height="54" src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=1223147&theme=light"></a>
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
Turn any OpenAPI spec into a working sandbox your AI agent can use, right from your IDE.
|
package/dist/tools/find_bugs.js
CHANGED
|
@@ -16,15 +16,20 @@ import { startAndPoll } from "./jobs.js";
|
|
|
16
16
|
import { packDirToBase64 } from "./pack.js";
|
|
17
17
|
export const findBugsTool = {
|
|
18
18
|
name: "find_bugs",
|
|
19
|
-
description: "
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
19
|
+
description: "FIRST STEP for any API-integration bug — webhooks, payments, auth, email, " +
|
|
20
|
+
"SMS, subscriptions. Reach for this the moment a user reports a symptom in " +
|
|
21
|
+
"an app that talks to a provider: 'customers charged twice', 'the webhook " +
|
|
22
|
+
"fires but nothing happens', 'their balance is wrong', 'we keep emailing a " +
|
|
23
|
+
"bounced address', 'paused but they still have access'. " +
|
|
24
|
+
"Packages the current project — local, uncommitted, private, no git URL " +
|
|
25
|
+
"needed — and audits it against a corpus of real, harvested API-integration " +
|
|
26
|
+
"failures (idempotency, signature verification, event ordering, pagination, " +
|
|
27
|
+
"rate limits, state drift) that a read of the code alone does not surface. " +
|
|
28
|
+
"THIS IS A FINDING, NOT A PROOF. Every finding is a hypothesis until it is " +
|
|
29
|
+
"measured on the real code. Do NOT stop here, and do NOT write your own " +
|
|
30
|
+
"test to confirm one — call fix_bug for a proposed diff, then prove_fix to " +
|
|
31
|
+
"measure it. The response carries `next_actions` telling you exactly what " +
|
|
32
|
+
"to call next; follow it. Runs for up to a few minutes.",
|
|
28
33
|
inputSchema: {
|
|
29
34
|
type: "object",
|
|
30
35
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find_bugs.js","sourceRoot":"","sources":["../../src/tools/find_bugs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,e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|
|
38
38
|
};
|
|
39
39
|
export declare function runFixBug(input: FixBugInput): Promise<{
|
|
40
|
+
/** Typed next step from the server. Every entry point carries the exit:
|
|
41
|
+
* a finding is a hypothesis until prove_fix measures it. */
|
|
42
|
+
next_actions?: unknown;
|
|
43
|
+
prove_instructions?: string;
|
|
40
44
|
available: boolean;
|
|
41
45
|
diff: string | null;
|
|
42
46
|
summary: string | null;
|
package/dist/tools/fix_bug.js
CHANGED
|
@@ -85,6 +85,12 @@ export async function runFixBug(input) {
|
|
|
85
85
|
return {
|
|
86
86
|
available: true,
|
|
87
87
|
diff: raw.diff ?? null,
|
|
88
|
+
// Forward the server's typed next step. These clients whitelist fields, so
|
|
89
|
+
// a server-side addition is invisible here unless it is named — which is
|
|
90
|
+
// how find_bugs shipped for a month as "the first step of an
|
|
91
|
+
// investigate->fix->prove flow" that returned no step two.
|
|
92
|
+
next_actions: raw.next_actions ?? undefined,
|
|
93
|
+
prove_instructions: raw.prove_instructions ?? undefined,
|
|
88
94
|
summary: raw.summary ?? null,
|
|
89
95
|
engine: raw.engine ?? "fetchsandbox",
|
|
90
96
|
packed_bytes: bytes,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fix_bug.js","sourceRoot":"","sources":["../../src/tools/fix_bug.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAkB5C,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,IAAI,EAAE,SAAS;IACf,WAAW,EACT,0EAA0E;QAC1E,iEAAiE;QACjE,0EAA0E;QAC1E,0EAA0E;QAC1E,0EAA0E;QAC1E,wEAAwE;QACxE,4EAA4E;QAC5E,wCAAwC;IAC1C,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;Y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-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"If confidence < 0.75, ask the user a clarifying question (the " +
|
|
17
|
-
"reasoning field explains why the match was weak). If " +
|
|
18
|
-
"next_question is non-null, ask the user THAT question first " +
|
|
19
|
-
"(it's a domain-aware discovery question from the spec's brain — " +
|
|
20
|
-
"e.g. 'Where are your customers based?' — and its answer picks " +
|
|
21
|
-
"the right test data + scenarios for the run).",
|
|
4
|
+
description: "ROUTE a symptom to the provider behaviour that explains it. Use this when " +
|
|
5
|
+
"the user names a provider or a domain (payments, email, auth, SMS, " +
|
|
6
|
+
"subscriptions) and you need to know what that provider ACTUALLY does — " +
|
|
7
|
+
"not what its docs say, and not what can be inferred from reading the " +
|
|
8
|
+
"integration code. " +
|
|
9
|
+
"Reading the code tells you what your app does with a field. It cannot " +
|
|
10
|
+
"tell you what the field MEANS at the provider — whether a line item is a " +
|
|
11
|
+
"seat count, whether a 200 body carries ok:false, whether an event can " +
|
|
12
|
+
"arrive out of order. That is the class of bug this routes. " +
|
|
13
|
+
"Returns {spec, workflow, scenario, confidence, reasoning} plus " +
|
|
14
|
+
"`next_actions`: a typed list of what to call next, with arguments " +
|
|
15
|
+
"pre-filled. Follow it rather than improvising the next step.",
|
|
22
16
|
inputSchema: {
|
|
23
17
|
type: "object",
|
|
24
18
|
properties: {
|
package/dist/tools/guide.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guide.js","sourceRoot":"","sources":["../../src/tools/guide.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAgDxC,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,OAAO;IACb,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"guide.js","sourceRoot":"","sources":["../../src/tools/guide.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAgDxC,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,IAAI,EAAE,OAAO;IACb,WAAW,EACT,4EAA4E;QAC5E,qEAAqE;QACrE,yEAAyE;QACzE,uEAAuE;QACvE,oBAAoB;QACpB,wEAAwE;QACxE,2EAA2E;QAC3E,wEAAwE;QACxE,6DAA6D;QAC7D,iEAAiE;QACjE,oEAAoE;QACpE,8DAA8D;IAChE,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,2DAA2D;oBAC3D,6DAA6D;oBAC7D,6DAA6D;aAChE;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,gEAAgE;oBAChE,mCAAmC;gBACrC,UAAU,EAAE;oBACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,6BAA6B,EAAE;oBACpE,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,+BAA+B,EAAE;oBAC1E,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,yCAAyC,EAAE;iBACrF;aACF;SACF;QACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;KACrB;CACF,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,QAAQ,CAAC,KAAiB;IAC9C,OAAO,QAAQ,CAAgB,gBAAgB,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC"}
|
package/dist/tools/list_runs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getJson, ToolError } from "../client.js";
|
|
1
|
+
import { getJson, ToolError, getBaseUrl } from "../client.js";
|
|
2
2
|
export const listRunsTool = {
|
|
3
3
|
name: "list_runs",
|
|
4
4
|
description: "List recent workflow runs (and ad-hoc traffic) for a sandbox, newest " +
|
|
@@ -31,7 +31,12 @@ export async function runListRuns(input) {
|
|
|
31
31
|
const path = `/api/sandboxes/${encodeURIComponent(input.sandbox_id)}/flows?limit=${limit}`;
|
|
32
32
|
const raw = await getJson(path);
|
|
33
33
|
const flows = Array.isArray(raw.flows) ? raw.flows : [];
|
|
34
|
-
|
|
34
|
+
// The backend composes receipt URLs from FETCHSANDBOX_PUBLIC_URL (app/config.py
|
|
35
|
+
// ::receipt_base_url), so a self-hosted or staging deployment gets links that
|
|
36
|
+
// resolve. This tool built its own URL and hardcoded prod, which meant the one
|
|
37
|
+
// place we hand a user a "here is the proof" link pointed at a 404 for every
|
|
38
|
+
// non-prod deployment. Derive it from the configured base instead.
|
|
39
|
+
const shareBase = `${getBaseUrl()}/runs/${encodeURIComponent(input.sandbox_id)}`;
|
|
35
40
|
const runs = flows.map((f) => ({
|
|
36
41
|
flow_run_id: f.flow_run_id,
|
|
37
42
|
workflow_name: f.workflow?.name || f.workflow?.id || "(ad-hoc)",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list_runs.js","sourceRoot":"","sources":["../../src/tools/list_runs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"list_runs.js","sourceRoot":"","sources":["../../src/tools/list_runs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAsC9D,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,WAAW;IACjB,WAAW,EACT,uEAAuE;QACvE,kEAAkE;QAClE,oEAAoE;QACpE,oEAAoE;QACpE,qEAAqE;QACrE,sEAAsE;QACtE,qDAAqD;IACvD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,UAAU,EAAE;gBACV,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,yCAAyC;aACvD;YACD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E;QAC9B,gBAAgB,EAAE,CAAC,CAAC,gBAAgB,IAAI,EAAE;QAC1C,aAAa,EAAE,CAAC,CAAC,YAAY,EAAE,OAAO,IAAI,CAAC;QAC3C,aAAa,EAAE,CAAC,CAAC,YAAY,EAAE,OAAO,IAAI,CAAC;QAC3C,SAAS,EAAE,GAAG,SAAS,IAAI,kBAAkB,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE;KAC/D,CAAC,CAAC,CAAC;IACJ,OAAO;QACL,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,KAAK,EAAE,GAAG,CAAC,WAAW,IAAI,IAAI,CAAC,MAAM;QACrC,IAAI;KACL,CAAC;AACJ,CAAC"}
|
package/dist/tools/prove_fix.js
CHANGED
|
@@ -16,13 +16,21 @@ import { startAndPoll } from "./jobs.js";
|
|
|
16
16
|
import { packDirToBase64 } from "./pack.js";
|
|
17
17
|
export const proveFixTool = {
|
|
18
18
|
name: "prove_fix",
|
|
19
|
-
description: "
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
19
|
+
description: "THE PROOF STEP. The only way to establish that a fix actually works, and " +
|
|
20
|
+
"the only thing that produces a shareable receipt. " +
|
|
21
|
+
"Ship the STILL-BUGGY project plus your proposed diff: FetchSandbox applies " +
|
|
22
|
+
"the diff to a copy and runs the SAME failure probe against the buggy and " +
|
|
23
|
+
"the fixed tree, against real provider behaviour. Green ONLY on a measured " +
|
|
24
|
+
"flip — the bug demonstrably present before, demonstrably gone after. " +
|
|
25
|
+
"CALL THIS BEFORE YOU WRITE THE FIX TO DISK. prove_fix needs the broken " +
|
|
26
|
+
"tree to reproduce against; applying the diff first makes a measured proof " +
|
|
27
|
+
"impossible. " +
|
|
28
|
+
"DO NOT SUBSTITUTE YOUR OWN TEST. A harness you write runs only the FIXED " +
|
|
29
|
+
"code, so it can show a fix passing while proving nothing about whether the " +
|
|
30
|
+
"bug was ever reproduced or is genuinely gone — and an agent-authored check " +
|
|
31
|
+
"must never be reported to a user as 'proven' or 'verified'. If you have " +
|
|
32
|
+
"already written one, still call this: your test and this proof answer " +
|
|
33
|
+
"different questions.",
|
|
26
34
|
inputSchema: {
|
|
27
35
|
type: "object",
|
|
28
36
|
properties: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prove_fix.js","sourceRoot":"","sources":["../../src/tools/prove_fix.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAU5C,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,WAAW;IACjB,WAAW,EACT,
|
|
1
|
+
{"version":3,"file":"prove_fix.js","sourceRoot":"","sources":["../../src/tools/prove_fix.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAU5C,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,WAAW;IACjB,WAAW,EACT,2EAA2E;QAC3E,oDAAoD;QACpD,6EAA6E;QAC7E,2EAA2E;QAC3E,4EAA4E;QAC5E,uEAAuE;QACvE,yEAAyE;QACzE,4EAA4E;QAC5E,cAAc;QACd,2EAA2E;QAC3E,6EAA6E;QAC7E,6EAA6E;QAC7E,0EAA0E;QAC1E,wEAAwE;QACxE,sBAAsB;IACxB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,uCAAuC,EAAE;YAC9E,GAA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CAAC;IAC/D,IAAI,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE;QAAE,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;IAEnF,MAAM,GAAG,GAAG,MAAM,YAAY,CAAC,oBAAoB,EAAE,IAAI,EAAE;QACzD,sEAAsE;QACtE,2EAA2E;QAC3E,KAAK,EAAE,CAAC,SAAS,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,IAAI;KACpC,CAAC,CAAC;IACH,IAAI,GAAG,CAAC,MAAM,KAAK,OAAO,EAAE,CAAC;QAC3B,MAAM,IAAI,SAAS,CAAC,8BAA8B,GAAG,CAAC,KAAK,IAAI,eAAe,EAAE,CAAC,CAAC;IACpF,CAAC;IACD,OAAO;QACL,aAAa,EAAE,GAAG,CAAC,aAAa,KAAK,IAAI;QACzC,KAAK,EAAE,GAAG,CAAC,KAA2B;QACtC,UAAU,EAAE,GAAG,CAAC,UAAiC;QACjD,QAAQ,EAAE,GAAG,CAAC,QAA+B;QAC7C,MAAM,EAAE,GAAG,CAAC,MAA4B;QACxC,QAAQ,EAAE,GAAG,CAAC,QAAQ;QACtB,WAAW,EAAE,GAAG,CAAC,WAAiC;QAClD,MAAM,EAAG,GAAG,CAAC,MAAiB,IAAI,cAAc;KACjD,CAAC;AACJ,CAAC"}
|
package/dist/tools/quickrun.d.ts
CHANGED
|
@@ -21,6 +21,10 @@ interface RunVerdict {
|
|
|
21
21
|
reason?: string;
|
|
22
22
|
}
|
|
23
23
|
export interface NormalizedQuickrunResult {
|
|
24
|
+
/** Typed next step from the server. Every entry point carries the exit:
|
|
25
|
+
* a finding is a hypothesis until prove_fix measures it. */
|
|
26
|
+
next_actions?: unknown;
|
|
27
|
+
prove_instructions?: string;
|
|
24
28
|
spec_slug: string;
|
|
25
29
|
workflow_name: string;
|
|
26
30
|
status: "pass" | "fail";
|
package/dist/tools/quickrun.js
CHANGED
|
@@ -45,8 +45,29 @@ export async function runQuickrun(input) {
|
|
|
45
45
|
body.scenario = input.scenario.trim();
|
|
46
46
|
const raw = await postJson(path, body);
|
|
47
47
|
const steps = raw.steps ?? [];
|
|
48
|
+
// Forward any field this client does not know about. The named fields below
|
|
49
|
+
// are normalized (renames, derived counts); everything else travels as-is so
|
|
50
|
+
// a newer backend can surface information to the agent without waiting for a
|
|
51
|
+
// client release. `steps` is dropped deliberately — it is large, and the
|
|
52
|
+
// step detail belongs in the receipt, not in every tool response.
|
|
53
|
+
const known = new Set([
|
|
54
|
+
"flow_name", "flow_description", "flow_run_id", "sandbox_id", "passed",
|
|
55
|
+
"total_duration_ms", "steps", "timeline_url", "share_url", "verdict",
|
|
56
|
+
]);
|
|
57
|
+
const passthrough = {};
|
|
58
|
+
for (const [k, v] of Object.entries(raw)) {
|
|
59
|
+
if (!known.has(k) && v !== undefined && v !== null)
|
|
60
|
+
passthrough[k] = v;
|
|
61
|
+
}
|
|
48
62
|
return {
|
|
63
|
+
...passthrough,
|
|
49
64
|
spec_slug: input.spec_slug,
|
|
65
|
+
// Forward the server's typed next step. These clients whitelist fields, so
|
|
66
|
+
// a server-side addition is invisible here unless it is named — which is
|
|
67
|
+
// how find_bugs shipped for a month as "the first step of an
|
|
68
|
+
// investigate->fix->prove flow" that returned no step two.
|
|
69
|
+
next_actions: raw.next_actions ?? undefined,
|
|
70
|
+
prove_instructions: raw.prove_instructions ?? undefined,
|
|
50
71
|
workflow_name: raw.flow_name ?? input.workflow_name,
|
|
51
72
|
status: raw.passed ? "pass" : "fail",
|
|
52
73
|
steps_passed: steps.filter((s) => s.status === "passed").length,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"quickrun.js","sourceRoot":"","sources":["../../src/tools/quickrun.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"quickrun.js","sourceRoot":"","sources":["../../src/tools/qu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AAM;QAC/D,WAAW,EAAE,KAAK,CAAC,MAAM;QACzB,iBAAiB,EAAE,GAAG,CAAC,iBAAiB,IAAI,CAAC;QAC7C,UAAU,EAAE,GAAG,CAAC,UAAU;QAC1B,WAAW,EAAE,GAAG,CAAC,WAAW;QAC5B,sFAAsF;QACtF,SAAS,EAAE,GAAG,CAAC,SAAS,IAAI,GAAG,CAAC,YAAY;QAC5C,OAAO,EAAE,GAAG,CAAC,OAAO;KACrB,CAAC;AACJ,CAAC"}
|
|
@@ -12,6 +12,10 @@ interface BackendStepResult {
|
|
|
12
12
|
data?: unknown;
|
|
13
13
|
}
|
|
14
14
|
export interface NormalizedRunResult {
|
|
15
|
+
/** Typed next step from the server. Every entry point carries the exit:
|
|
16
|
+
* a finding is a hypothesis until prove_fix measures it. */
|
|
17
|
+
next_actions?: unknown;
|
|
18
|
+
prove_instructions?: string;
|
|
15
19
|
workflow_name: string;
|
|
16
20
|
description: string;
|
|
17
21
|
status: "pass" | "fail";
|
|
@@ -56,6 +56,12 @@ export async function runRunWorkflow(input) {
|
|
|
56
56
|
const passedSteps = steps.filter((s) => s.status === "passed").length;
|
|
57
57
|
return {
|
|
58
58
|
workflow_name: raw.flow_name ?? input.workflow_name,
|
|
59
|
+
// Forward the server's typed next step. These clients whitelist fields, so
|
|
60
|
+
// a server-side addition is invisible here unless it is named — which is
|
|
61
|
+
// how find_bugs shipped for a month as "the first step of an
|
|
62
|
+
// investigate->fix->prove flow" that returned no step two.
|
|
63
|
+
next_actions: raw.next_actions ?? undefined,
|
|
64
|
+
prove_instructions: raw.prove_instructions ?? undefined,
|
|
59
65
|
description: raw.flow_description ?? "",
|
|
60
66
|
status: raw.passed ? "pass" : "fail",
|
|
61
67
|
total_duration_ms: raw.total_duration_ms ?? 0,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run_workflow.js","sourceRoot":"","sources":["../../src/tools/run_workflow.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,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22,6 +22,10 @@ export interface VerifyBehaviorInput {
|
|
|
22
22
|
flow_run_id?: string;
|
|
23
23
|
}
|
|
24
24
|
export interface NormalizedVerifyResult {
|
|
25
|
+
/** Typed next step from the server. Every entry point carries the exit:
|
|
26
|
+
* a finding is a hypothesis until prove_fix measures it. */
|
|
27
|
+
next_actions?: unknown;
|
|
28
|
+
prove_instructions?: string;
|
|
25
29
|
pattern_id?: string;
|
|
26
30
|
mode?: string;
|
|
27
31
|
confirmed: boolean;
|
|
@@ -71,6 +71,12 @@ export async function runVerifyBehavior(input) {
|
|
|
71
71
|
});
|
|
72
72
|
return {
|
|
73
73
|
pattern_id: raw.pattern_id,
|
|
74
|
+
// Forward the server's typed next step. These clients whitelist fields, so
|
|
75
|
+
// a server-side addition is invisible here unless it is named — which is
|
|
76
|
+
// how find_bugs shipped for a month as "the first step of an
|
|
77
|
+
// investigate->fix->prove flow" that returned no step two.
|
|
78
|
+
next_actions: raw.next_actions ?? undefined,
|
|
79
|
+
prove_instructions: raw.prove_instructions ?? undefined,
|
|
74
80
|
mode: raw.mode,
|
|
75
81
|
// Full response bodies live on the receipt; the tool returns the verdict-
|
|
76
82
|
// level diff so the agent's transcript stays small.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify_behavior.js","sourceRoot":"","sources":["../../src/tools/verify_behavior.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"verify_behavior.js","sourceRoot":"","sources":["../../src/tools/verify_behavior.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAyEvD,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,IAAI,EAAE,iBAAiB;IACvB,WAAW,EACT,0EAA0E;QAC1E,yEAAyE;QACzE,0EAA0E;QAC1E,yEAAyE;QACzE,wEAAwE;QACxE,uEAAuE;QACvE,kE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@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fetchsandbox-mcp",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"mcpName": "io.github.fetchsandbox/mcp",
|
|
5
5
|
"description": "Turn any OpenAPI spec into a working sandbox your AI agent can use. MCP server for Claude Code, Cursor, and any other MCP-compatible LLM IDE.",
|
|
6
6
|
"license": "MIT",
|