@viberaven/mcp 1.0.7 → 1.1.5
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 +3 -16
- package/bin/server.js +18 -33
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -36,22 +36,9 @@ npx -y viberaven mcp
|
|
|
36
36
|
- `viberaven_heal_prompt` -> `npx -y viberaven --heal --prompt`
|
|
37
37
|
- `viberaven_heal_apply` -> `npx -y viberaven --heal --apply`
|
|
38
38
|
|
|
39
|
-
`viberaven_check_readiness` is the canonical entrypoint. It runs VibeRaven as the Agent Context + Production Gate and writes `.viberaven/agent-tasklist.md`, `.viberaven/gate-result.json`, `.viberaven/context-map.json
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
```bash
|
|
44
|
-
npx -y viberaven --agent-mode
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
MCP clients may pass `launchMode` to `viberaven_check_readiness`:
|
|
48
|
-
|
|
49
|
-
- `manual`: show links and commands only
|
|
50
|
-
- `ask`: default, ask before provider actions
|
|
51
|
-
- `safe`: read-only provider checks and safe repo fixes
|
|
52
|
-
- `full`: approved session mode; production deploy still needs final confirmation
|
|
53
|
-
|
|
54
|
-
After one fix, call `viberaven_verify`. Before deploy or CI pass, call `viberaven_strict_gate` or run:
|
|
39
|
+
`viberaven_check_readiness` is the canonical entrypoint. It runs VibeRaven as the Agent Context + Production Gate and writes `.viberaven/agent-tasklist.md`, `.viberaven/gate-result.json`, and `.viberaven/context-map.json`.
|
|
40
|
+
|
|
41
|
+
After one fix, call `viberaven_verify`. Before deploy or CI pass, call `viberaven_strict_gate` or run:
|
|
55
42
|
|
|
56
43
|
```bash
|
|
57
44
|
npx -y viberaven --strict
|
package/bin/server.js
CHANGED
|
@@ -2,21 +2,16 @@
|
|
|
2
2
|
const { spawn } = require('node:child_process');
|
|
3
3
|
let spawnChild = spawn;
|
|
4
4
|
|
|
5
|
-
const SERVER_INFO = { name: 'viberaven-mcp', version: '1.
|
|
5
|
+
const SERVER_INFO = { name: 'viberaven-mcp', version: '1.1.5' };
|
|
6
6
|
const CLI_PACKAGE = '@viberaven/cli';
|
|
7
7
|
|
|
8
|
-
const cwdSchema = {
|
|
9
|
-
type: 'object',
|
|
10
|
-
properties: {
|
|
11
|
-
cwd: { type: 'string', description: 'Project root. Defaults to the MCP server working directory.' }
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
description: 'Launch Autopilot permission mode. Defaults to ask.'
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
additionalProperties: false
|
|
19
|
-
};
|
|
8
|
+
const cwdSchema = {
|
|
9
|
+
type: 'object',
|
|
10
|
+
properties: {
|
|
11
|
+
cwd: { type: 'string', description: 'Project root. Defaults to the MCP server working directory.' }
|
|
12
|
+
},
|
|
13
|
+
additionalProperties: false
|
|
14
|
+
};
|
|
20
15
|
|
|
21
16
|
const healSchema = {
|
|
22
17
|
type: 'object',
|
|
@@ -30,12 +25,11 @@ const healSchema = {
|
|
|
30
25
|
};
|
|
31
26
|
|
|
32
27
|
const TOOLS = [
|
|
33
|
-
{
|
|
34
|
-
name: 'viberaven_check_readiness',
|
|
35
|
-
description:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
},
|
|
28
|
+
{
|
|
29
|
+
name: 'viberaven_check_readiness',
|
|
30
|
+
description: 'Run the VibeRaven agent-mode production-readiness check and write .viberaven artifacts.',
|
|
31
|
+
inputSchema: cwdSchema
|
|
32
|
+
},
|
|
39
33
|
{
|
|
40
34
|
name: 'viberaven_verify',
|
|
41
35
|
description: 'Rescan and refresh VibeRaven production-readiness artifacts after a fix.',
|
|
@@ -215,10 +209,10 @@ async function callTool(name, args) {
|
|
|
215
209
|
return runVibeRaven(['-y', CLI_PACKAGE, ...buildToolArgs(name, args || {})], args && args.cwd);
|
|
216
210
|
}
|
|
217
211
|
|
|
218
|
-
function buildToolArgs(name, args) {
|
|
219
|
-
if (name === 'viberaven_check_readiness') {
|
|
220
|
-
return ['--agent-mode'
|
|
221
|
-
}
|
|
212
|
+
function buildToolArgs(name, args) {
|
|
213
|
+
if (name === 'viberaven_check_readiness') {
|
|
214
|
+
return ['--agent-mode'];
|
|
215
|
+
}
|
|
222
216
|
if (name === 'viberaven_verify') {
|
|
223
217
|
return ['--verify'];
|
|
224
218
|
}
|
|
@@ -270,16 +264,7 @@ function buildToolArgs(name, args) {
|
|
|
270
264
|
return ['validate-npm-package', '--json', ...names];
|
|
271
265
|
}
|
|
272
266
|
throw new Error(`Unknown VibeRaven tool: ${name}`);
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
function launchModeArgs(args) {
|
|
276
|
-
if (!args.launchMode) return [];
|
|
277
|
-
const allowed = new Set(['manual', 'ask', 'safe', 'full']);
|
|
278
|
-
if (!allowed.has(args.launchMode)) {
|
|
279
|
-
throw new Error('Invalid launchMode');
|
|
280
|
-
}
|
|
281
|
-
return ['--launch-mode', args.launchMode];
|
|
282
|
-
}
|
|
267
|
+
}
|
|
283
268
|
|
|
284
269
|
function buildHealArgs(prefix, args) {
|
|
285
270
|
const cliArgs = [...prefix];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viberaven/mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "MCP server for VibeRaven production-readiness: check_readiness, verify, heal, audit, and strict gate tools for Cursor, Claude Code, and Codex.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "VibeRaven",
|