@viberaven/mcp 1.11.0 → 1.12.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/README.md +1 -1
- package/dist/lib/attribution.js +1 -1
- package/dist/lib/cli-runner.js +20 -8
- package/dist/server.js +27 -15
- package/dist/tools/index.js +26 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
VibeRaven gives AI-built apps production context and checks across Supabase, Vercel, Stripe and the other providers they use, read from the repo, locally, before launch and after a change.
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
npx -y @viberaven/mcp@1.
|
|
8
|
+
npx -y @viberaven/mcp@1.12.1
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
Configure this as a **stdio server** in your MCP client. Node 20+ for repository checks; Node 24+ with JSPI and an installed matching CLI with `@viberaven/sessions` for `race`.
|
package/dist/lib/attribution.js
CHANGED
|
@@ -27,7 +27,7 @@ module.exports = __toCommonJS(attribution_exports);
|
|
|
27
27
|
var ATTRIBUTION_HEADERS = {
|
|
28
28
|
"HTTP-Referer": "https://github.com/ohad6k/VibeRaven",
|
|
29
29
|
"X-OpenRouter-Title": "VibeRaven",
|
|
30
|
-
"X-Viberaven-Client": "mcp/1.
|
|
30
|
+
"X-Viberaven-Client": "mcp/1.12.1"
|
|
31
31
|
};
|
|
32
32
|
// Annotate the CommonJS export names for ESM import in node:
|
|
33
33
|
0 && (module.exports = {
|
package/dist/lib/cli-runner.js
CHANGED
|
@@ -448,7 +448,7 @@ function runWorkReportProcess(entry, args, cwd3, spawnFn2) {
|
|
|
448
448
|
} catch {
|
|
449
449
|
return Promise.resolve(workReportFailure());
|
|
450
450
|
}
|
|
451
|
-
return new Promise((
|
|
451
|
+
return new Promise((resolve3) => {
|
|
452
452
|
let settled = false, stdoutBytes = 0, stderrBytes = 0;
|
|
453
453
|
const chunks = [];
|
|
454
454
|
let child;
|
|
@@ -456,7 +456,7 @@ function runWorkReportProcess(entry, args, cwd3, spawnFn2) {
|
|
|
456
456
|
if (!settled) {
|
|
457
457
|
settled = true;
|
|
458
458
|
clearTimeout(timer);
|
|
459
|
-
|
|
459
|
+
resolve3(result);
|
|
460
460
|
}
|
|
461
461
|
};
|
|
462
462
|
const fail = () => {
|
|
@@ -554,7 +554,7 @@ function mcpVersion() {
|
|
|
554
554
|
} catch {
|
|
555
555
|
}
|
|
556
556
|
}
|
|
557
|
-
found ??= true ? "1.
|
|
557
|
+
found ??= true ? "1.12.1" : void 0;
|
|
558
558
|
if (!found || !PLAIN_VERSION.test(found)) {
|
|
559
559
|
throw new Error(`Could not read a valid ${MCP_PACKAGE} version (got ${JSON.stringify(found)}), so the matching ${CLI_PACKAGE} cannot be pinned.`);
|
|
560
560
|
}
|
|
@@ -624,8 +624,20 @@ function buildToolArgs(name, args) {
|
|
|
624
624
|
if (args.replay !== void 0 && (!Number.isSafeInteger(args.replay) || Number(args.replay) < 0)) throw new Error("replay must be a nonnegative integer");
|
|
625
625
|
const cliArgs = ["race", "--json"];
|
|
626
626
|
if (args.example) cliArgs.push("--example");
|
|
627
|
-
|
|
628
|
-
if (args.from !== void 0)
|
|
627
|
+
let spec = args.spec === void 0 ? void 0 : safeStringArg(args.spec, "spec");
|
|
628
|
+
if (args.from !== void 0) {
|
|
629
|
+
const from = safeStringArg(args.from, "from");
|
|
630
|
+
const cwd3 = resolveCwd(args.cwd);
|
|
631
|
+
const example = (0, import_node_path2.resolve)(cwd3, ".viberaven", "race-example");
|
|
632
|
+
if ((0, import_node_path2.resolve)(cwd3, from) === (0, import_node_path2.join)(example, ".viberaven", "race", "report.json")) {
|
|
633
|
+
cliArgs.push(example, "--from", (0, import_node_path2.resolve)(cwd3, from));
|
|
634
|
+
if (spec) spec = (0, import_node_path2.resolve)(cwd3, spec);
|
|
635
|
+
} else {
|
|
636
|
+
cliArgs.push("--from", from);
|
|
637
|
+
}
|
|
638
|
+
cliArgs.push("--replay", String(args.replay));
|
|
639
|
+
}
|
|
640
|
+
if (spec) cliArgs.push("--spec", spec);
|
|
629
641
|
return cliArgs;
|
|
630
642
|
}
|
|
631
643
|
case "viberaven_check_readiness":
|
|
@@ -700,7 +712,7 @@ function runVibeRavenDetailed(args, cwd3) {
|
|
|
700
712
|
} catch (error) {
|
|
701
713
|
return Promise.resolve(transportFailure(error));
|
|
702
714
|
}
|
|
703
|
-
return new Promise((
|
|
715
|
+
return new Promise((resolve3) => {
|
|
704
716
|
let child;
|
|
705
717
|
try {
|
|
706
718
|
child = spawnFn(built.command, built.args, {
|
|
@@ -711,7 +723,7 @@ function runVibeRavenDetailed(args, cwd3) {
|
|
|
711
723
|
stdio: ["ignore", "pipe", "pipe"]
|
|
712
724
|
});
|
|
713
725
|
} catch (error) {
|
|
714
|
-
|
|
726
|
+
resolve3(transportFailure(error));
|
|
715
727
|
return;
|
|
716
728
|
}
|
|
717
729
|
let stdout = "";
|
|
@@ -725,7 +737,7 @@ function runVibeRavenDetailed(args, cwd3) {
|
|
|
725
737
|
if (settled) return;
|
|
726
738
|
settled = true;
|
|
727
739
|
if (timer) clearTimeout(timer);
|
|
728
|
-
|
|
740
|
+
resolve3(result);
|
|
729
741
|
};
|
|
730
742
|
const stopRls = (reason) => {
|
|
731
743
|
finish(transportFailure(new Error(reason)));
|
package/dist/server.js
CHANGED
|
@@ -2149,12 +2149,12 @@ function createOpenCommand(target, platform = process.platform) {
|
|
|
2149
2149
|
}
|
|
2150
2150
|
async function openWithSystemDefault(target) {
|
|
2151
2151
|
const { command, args, shell } = createOpenCommand(target);
|
|
2152
|
-
await new Promise((
|
|
2152
|
+
await new Promise((resolve4, reject) => {
|
|
2153
2153
|
const child = (0, import_node_child_process2.spawn)(command, args, { stdio: "ignore", shell });
|
|
2154
2154
|
child.on("error", reject);
|
|
2155
2155
|
child.on("exit", (code) => {
|
|
2156
2156
|
if (code === 0) {
|
|
2157
|
-
|
|
2157
|
+
resolve4();
|
|
2158
2158
|
} else {
|
|
2159
2159
|
reject(new Error(`Could not open browser (exit ${code ?? "unknown"}). Open manually: ${target}`));
|
|
2160
2160
|
}
|
|
@@ -2192,7 +2192,7 @@ async function boundedJson2(response2) {
|
|
|
2192
2192
|
}
|
|
2193
2193
|
|
|
2194
2194
|
// ../cli/src/version.ts
|
|
2195
|
-
var VERSION = "1.
|
|
2195
|
+
var VERSION = "1.12.1";
|
|
2196
2196
|
|
|
2197
2197
|
// ../cli/src/commands/account.ts
|
|
2198
2198
|
var loginNext = `npx -y viberaven@${VERSION} login --json`;
|
|
@@ -2219,7 +2219,7 @@ function defaults() {
|
|
|
2219
2219
|
configDir: defaultConfigDir(),
|
|
2220
2220
|
fetch,
|
|
2221
2221
|
now: Date.now,
|
|
2222
|
-
sleep: (ms) => new Promise((
|
|
2222
|
+
sleep: (ms) => new Promise((resolve4) => setTimeout(resolve4, ms)),
|
|
2223
2223
|
openUrl: openUrlInBrowser,
|
|
2224
2224
|
progress: (value) => console.error(JSON.stringify(value))
|
|
2225
2225
|
};
|
|
@@ -2380,8 +2380,8 @@ function createAccountToolHandler(depsFactory = defaults) {
|
|
|
2380
2380
|
if (args.userRequestedSignIn !== true) return response({ state: "requires_user_request", message: "Ask the person whether they want to sign in. Local checks remain free without an account." });
|
|
2381
2381
|
if (pending && !pending.finished) return response(pending.view ?? await pending.initial);
|
|
2382
2382
|
let resolveInitial;
|
|
2383
|
-
const initial = new Promise((
|
|
2384
|
-
resolveInitial =
|
|
2383
|
+
const initial = new Promise((resolve4) => {
|
|
2384
|
+
resolveInitial = resolve4;
|
|
2385
2385
|
});
|
|
2386
2386
|
const flow = { initial, view: void 0, finished: false };
|
|
2387
2387
|
pending = flow;
|
|
@@ -2431,7 +2431,7 @@ function runWorkReportProcess(entry, args, cwd3, spawnFn2) {
|
|
|
2431
2431
|
} catch {
|
|
2432
2432
|
return Promise.resolve(workReportFailure());
|
|
2433
2433
|
}
|
|
2434
|
-
return new Promise((
|
|
2434
|
+
return new Promise((resolve4) => {
|
|
2435
2435
|
let settled = false, stdoutBytes = 0, stderrBytes = 0;
|
|
2436
2436
|
const chunks = [];
|
|
2437
2437
|
let child;
|
|
@@ -2439,7 +2439,7 @@ function runWorkReportProcess(entry, args, cwd3, spawnFn2) {
|
|
|
2439
2439
|
if (!settled) {
|
|
2440
2440
|
settled = true;
|
|
2441
2441
|
clearTimeout(timer);
|
|
2442
|
-
|
|
2442
|
+
resolve4(result);
|
|
2443
2443
|
}
|
|
2444
2444
|
};
|
|
2445
2445
|
const fail = () => {
|
|
@@ -2537,7 +2537,7 @@ function mcpVersion() {
|
|
|
2537
2537
|
} catch {
|
|
2538
2538
|
}
|
|
2539
2539
|
}
|
|
2540
|
-
found ??= true ? "1.
|
|
2540
|
+
found ??= true ? "1.12.1" : void 0;
|
|
2541
2541
|
if (!found || !PLAIN_VERSION.test(found)) {
|
|
2542
2542
|
throw new Error(`Could not read a valid ${MCP_PACKAGE} version (got ${JSON.stringify(found)}), so the matching ${CLI_PACKAGE} cannot be pinned.`);
|
|
2543
2543
|
}
|
|
@@ -2601,8 +2601,20 @@ function buildToolArgs(name, args) {
|
|
|
2601
2601
|
if (args.replay !== void 0 && (!Number.isSafeInteger(args.replay) || Number(args.replay) < 0)) throw new Error("replay must be a nonnegative integer");
|
|
2602
2602
|
const cliArgs = ["race", "--json"];
|
|
2603
2603
|
if (args.example) cliArgs.push("--example");
|
|
2604
|
-
|
|
2605
|
-
if (args.from !== void 0)
|
|
2604
|
+
let spec = args.spec === void 0 ? void 0 : safeStringArg(args.spec, "spec");
|
|
2605
|
+
if (args.from !== void 0) {
|
|
2606
|
+
const from = safeStringArg(args.from, "from");
|
|
2607
|
+
const cwd3 = resolveCwd(args.cwd);
|
|
2608
|
+
const example = (0, import_node_path3.resolve)(cwd3, ".viberaven", "race-example");
|
|
2609
|
+
if ((0, import_node_path3.resolve)(cwd3, from) === (0, import_node_path3.join)(example, ".viberaven", "race", "report.json")) {
|
|
2610
|
+
cliArgs.push(example, "--from", (0, import_node_path3.resolve)(cwd3, from));
|
|
2611
|
+
if (spec) spec = (0, import_node_path3.resolve)(cwd3, spec);
|
|
2612
|
+
} else {
|
|
2613
|
+
cliArgs.push("--from", from);
|
|
2614
|
+
}
|
|
2615
|
+
cliArgs.push("--replay", String(args.replay));
|
|
2616
|
+
}
|
|
2617
|
+
if (spec) cliArgs.push("--spec", spec);
|
|
2606
2618
|
return cliArgs;
|
|
2607
2619
|
}
|
|
2608
2620
|
case "viberaven_check_readiness":
|
|
@@ -2674,7 +2686,7 @@ function runVibeRavenDetailed(args, cwd3) {
|
|
|
2674
2686
|
} catch (error) {
|
|
2675
2687
|
return Promise.resolve(transportFailure(error));
|
|
2676
2688
|
}
|
|
2677
|
-
return new Promise((
|
|
2689
|
+
return new Promise((resolve4) => {
|
|
2678
2690
|
let child;
|
|
2679
2691
|
try {
|
|
2680
2692
|
child = spawnFn(built.command, built.args, {
|
|
@@ -2685,7 +2697,7 @@ function runVibeRavenDetailed(args, cwd3) {
|
|
|
2685
2697
|
stdio: ["ignore", "pipe", "pipe"]
|
|
2686
2698
|
});
|
|
2687
2699
|
} catch (error) {
|
|
2688
|
-
|
|
2700
|
+
resolve4(transportFailure(error));
|
|
2689
2701
|
return;
|
|
2690
2702
|
}
|
|
2691
2703
|
let stdout = "";
|
|
@@ -2699,7 +2711,7 @@ function runVibeRavenDetailed(args, cwd3) {
|
|
|
2699
2711
|
if (settled) return;
|
|
2700
2712
|
settled = true;
|
|
2701
2713
|
if (timer) clearTimeout(timer);
|
|
2702
|
-
|
|
2714
|
+
resolve4(result);
|
|
2703
2715
|
};
|
|
2704
2716
|
const stopRls = (reason) => {
|
|
2705
2717
|
finish(transportFailure(new Error(reason)));
|
|
@@ -2821,7 +2833,7 @@ async function handleRequest(method, params) {
|
|
|
2821
2833
|
}
|
|
2822
2834
|
|
|
2823
2835
|
// src/server.ts
|
|
2824
|
-
var SERVER_INFO = { name: "viberaven-mcp", version: "1.
|
|
2836
|
+
var SERVER_INFO = { name: "viberaven-mcp", version: "1.12.1", icons: [{ src: "https://viberaven.dev/favicon-512.png", mimeType: "image/png", sizes: ["512x512"] }] };
|
|
2825
2837
|
var INSTRUCTIONS = [
|
|
2826
2838
|
"VibeRaven reads a repository and lists launch gaps for AI-built apps that deploy on Vercel and use Supabase.",
|
|
2827
2839
|
"VibeRaven provides production context and checks across the app\u2019s providers. For two users at once, use viberaven_race: local real PostgreSQL 18.6 sessions, bounded statement orders and exact replay, without Docker. Start with example:true; then check, race, fix and replay in the repository.",
|
package/dist/tools/index.js
CHANGED
|
@@ -2152,12 +2152,12 @@ function createOpenCommand(target, platform = process.platform) {
|
|
|
2152
2152
|
}
|
|
2153
2153
|
async function openWithSystemDefault(target) {
|
|
2154
2154
|
const { command, args, shell } = createOpenCommand(target);
|
|
2155
|
-
await new Promise((
|
|
2155
|
+
await new Promise((resolve4, reject) => {
|
|
2156
2156
|
const child = (0, import_node_child_process2.spawn)(command, args, { stdio: "ignore", shell });
|
|
2157
2157
|
child.on("error", reject);
|
|
2158
2158
|
child.on("exit", (code) => {
|
|
2159
2159
|
if (code === 0) {
|
|
2160
|
-
|
|
2160
|
+
resolve4();
|
|
2161
2161
|
} else {
|
|
2162
2162
|
reject(new Error(`Could not open browser (exit ${code ?? "unknown"}). Open manually: ${target}`));
|
|
2163
2163
|
}
|
|
@@ -2195,7 +2195,7 @@ async function boundedJson2(response2) {
|
|
|
2195
2195
|
}
|
|
2196
2196
|
|
|
2197
2197
|
// ../cli/src/version.ts
|
|
2198
|
-
var VERSION = "1.
|
|
2198
|
+
var VERSION = "1.12.1";
|
|
2199
2199
|
|
|
2200
2200
|
// ../cli/src/commands/account.ts
|
|
2201
2201
|
var loginNext = `npx -y viberaven@${VERSION} login --json`;
|
|
@@ -2222,7 +2222,7 @@ function defaults() {
|
|
|
2222
2222
|
configDir: defaultConfigDir(),
|
|
2223
2223
|
fetch,
|
|
2224
2224
|
now: Date.now,
|
|
2225
|
-
sleep: (ms) => new Promise((
|
|
2225
|
+
sleep: (ms) => new Promise((resolve4) => setTimeout(resolve4, ms)),
|
|
2226
2226
|
openUrl: openUrlInBrowser,
|
|
2227
2227
|
progress: (value) => console.error(JSON.stringify(value))
|
|
2228
2228
|
};
|
|
@@ -2383,8 +2383,8 @@ function createAccountToolHandler(depsFactory = defaults) {
|
|
|
2383
2383
|
if (args.userRequestedSignIn !== true) return response({ state: "requires_user_request", message: "Ask the person whether they want to sign in. Local checks remain free without an account." });
|
|
2384
2384
|
if (pending && !pending.finished) return response(pending.view ?? await pending.initial);
|
|
2385
2385
|
let resolveInitial;
|
|
2386
|
-
const initial = new Promise((
|
|
2387
|
-
resolveInitial =
|
|
2386
|
+
const initial = new Promise((resolve4) => {
|
|
2387
|
+
resolveInitial = resolve4;
|
|
2388
2388
|
});
|
|
2389
2389
|
const flow = { initial, view: void 0, finished: false };
|
|
2390
2390
|
pending = flow;
|
|
@@ -2434,7 +2434,7 @@ function runWorkReportProcess(entry, args, cwd3, spawnFn2) {
|
|
|
2434
2434
|
} catch {
|
|
2435
2435
|
return Promise.resolve(workReportFailure());
|
|
2436
2436
|
}
|
|
2437
|
-
return new Promise((
|
|
2437
|
+
return new Promise((resolve4) => {
|
|
2438
2438
|
let settled = false, stdoutBytes = 0, stderrBytes = 0;
|
|
2439
2439
|
const chunks = [];
|
|
2440
2440
|
let child;
|
|
@@ -2442,7 +2442,7 @@ function runWorkReportProcess(entry, args, cwd3, spawnFn2) {
|
|
|
2442
2442
|
if (!settled) {
|
|
2443
2443
|
settled = true;
|
|
2444
2444
|
clearTimeout(timer);
|
|
2445
|
-
|
|
2445
|
+
resolve4(result);
|
|
2446
2446
|
}
|
|
2447
2447
|
};
|
|
2448
2448
|
const fail = () => {
|
|
@@ -2540,7 +2540,7 @@ function mcpVersion() {
|
|
|
2540
2540
|
} catch {
|
|
2541
2541
|
}
|
|
2542
2542
|
}
|
|
2543
|
-
found ??= true ? "1.
|
|
2543
|
+
found ??= true ? "1.12.1" : void 0;
|
|
2544
2544
|
if (!found || !PLAIN_VERSION.test(found)) {
|
|
2545
2545
|
throw new Error(`Could not read a valid ${MCP_PACKAGE} version (got ${JSON.stringify(found)}), so the matching ${CLI_PACKAGE} cannot be pinned.`);
|
|
2546
2546
|
}
|
|
@@ -2610,8 +2610,20 @@ function buildToolArgs(name, args) {
|
|
|
2610
2610
|
if (args.replay !== void 0 && (!Number.isSafeInteger(args.replay) || Number(args.replay) < 0)) throw new Error("replay must be a nonnegative integer");
|
|
2611
2611
|
const cliArgs = ["race", "--json"];
|
|
2612
2612
|
if (args.example) cliArgs.push("--example");
|
|
2613
|
-
|
|
2614
|
-
if (args.from !== void 0)
|
|
2613
|
+
let spec = args.spec === void 0 ? void 0 : safeStringArg(args.spec, "spec");
|
|
2614
|
+
if (args.from !== void 0) {
|
|
2615
|
+
const from = safeStringArg(args.from, "from");
|
|
2616
|
+
const cwd3 = resolveCwd(args.cwd);
|
|
2617
|
+
const example = (0, import_node_path3.resolve)(cwd3, ".viberaven", "race-example");
|
|
2618
|
+
if ((0, import_node_path3.resolve)(cwd3, from) === (0, import_node_path3.join)(example, ".viberaven", "race", "report.json")) {
|
|
2619
|
+
cliArgs.push(example, "--from", (0, import_node_path3.resolve)(cwd3, from));
|
|
2620
|
+
if (spec) spec = (0, import_node_path3.resolve)(cwd3, spec);
|
|
2621
|
+
} else {
|
|
2622
|
+
cliArgs.push("--from", from);
|
|
2623
|
+
}
|
|
2624
|
+
cliArgs.push("--replay", String(args.replay));
|
|
2625
|
+
}
|
|
2626
|
+
if (spec) cliArgs.push("--spec", spec);
|
|
2615
2627
|
return cliArgs;
|
|
2616
2628
|
}
|
|
2617
2629
|
case "viberaven_check_readiness":
|
|
@@ -2686,7 +2698,7 @@ function runVibeRavenDetailed(args, cwd3) {
|
|
|
2686
2698
|
} catch (error) {
|
|
2687
2699
|
return Promise.resolve(transportFailure(error));
|
|
2688
2700
|
}
|
|
2689
|
-
return new Promise((
|
|
2701
|
+
return new Promise((resolve4) => {
|
|
2690
2702
|
let child;
|
|
2691
2703
|
try {
|
|
2692
2704
|
child = spawnFn(built.command, built.args, {
|
|
@@ -2697,7 +2709,7 @@ function runVibeRavenDetailed(args, cwd3) {
|
|
|
2697
2709
|
stdio: ["ignore", "pipe", "pipe"]
|
|
2698
2710
|
});
|
|
2699
2711
|
} catch (error) {
|
|
2700
|
-
|
|
2712
|
+
resolve4(transportFailure(error));
|
|
2701
2713
|
return;
|
|
2702
2714
|
}
|
|
2703
2715
|
let stdout = "";
|
|
@@ -2711,7 +2723,7 @@ function runVibeRavenDetailed(args, cwd3) {
|
|
|
2711
2723
|
if (settled) return;
|
|
2712
2724
|
settled = true;
|
|
2713
2725
|
if (timer) clearTimeout(timer);
|
|
2714
|
-
|
|
2726
|
+
resolve4(result);
|
|
2715
2727
|
};
|
|
2716
2728
|
const stopRls = (reason) => {
|
|
2717
2729
|
finish(transportFailure(new Error(reason)));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viberaven/mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.1",
|
|
4
4
|
"description": "Production context and checks for AI-built apps via MCP: Supabase repository findings and two-user PostgreSQL race tests with exact replay.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "VibeRaven",
|