@viberaven/mcp 1.1.5 → 1.1.7
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/LICENSE +21 -0
- package/README.md +2 -0
- package/bin/server.js +25 -1
- package/bin/viberaven-mcp.js +175 -0
- package/package.json +2 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 VibeRaven
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -32,6 +32,8 @@ npx -y viberaven mcp
|
|
|
32
32
|
- `viberaven_strict_gate` -> `npx -y viberaven --agent-mode --strict --json`
|
|
33
33
|
- `viberaven_gate_result` -> `npx -y viberaven --agent-mode --json`
|
|
34
34
|
- `viberaven_context_map` -> `npx -y viberaven --condense`
|
|
35
|
+
- `viberaven_actions` -> `npx -y viberaven actions`
|
|
36
|
+
- `viberaven_verify_action` -> `npx -y viberaven verify --action <id>`
|
|
35
37
|
- `viberaven_heal_plan` -> `npx -y viberaven --heal --plan`
|
|
36
38
|
- `viberaven_heal_prompt` -> `npx -y viberaven --heal --prompt`
|
|
37
39
|
- `viberaven_heal_apply` -> `npx -y viberaven --heal --apply`
|
package/bin/server.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const { spawn } = require('node:child_process');
|
|
3
3
|
let spawnChild = spawn;
|
|
4
4
|
|
|
5
|
-
const SERVER_INFO = { name: 'viberaven-mcp', version: '1.1.
|
|
5
|
+
const SERVER_INFO = { name: 'viberaven-mcp', version: '1.1.7' };
|
|
6
6
|
const CLI_PACKAGE = '@viberaven/cli';
|
|
7
7
|
|
|
8
8
|
const cwdSchema = {
|
|
@@ -80,6 +80,24 @@ const TOOLS = [
|
|
|
80
80
|
description: 'Refresh .viberaven/context-map.json from the last scan.',
|
|
81
81
|
inputSchema: cwdSchema
|
|
82
82
|
},
|
|
83
|
+
{
|
|
84
|
+
name: 'viberaven_actions',
|
|
85
|
+
description: 'Read the current VibeRaven chat-native action surface from .viberaven/actions.json.',
|
|
86
|
+
inputSchema: cwdSchema
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
name: 'viberaven_verify_action',
|
|
90
|
+
description: 'Verify or explain the lifecycle state for a stable VibeRaven action ID.',
|
|
91
|
+
inputSchema: {
|
|
92
|
+
type: 'object',
|
|
93
|
+
properties: {
|
|
94
|
+
cwd: { type: 'string' },
|
|
95
|
+
actionId: { type: 'string' }
|
|
96
|
+
},
|
|
97
|
+
required: ['actionId'],
|
|
98
|
+
additionalProperties: false
|
|
99
|
+
}
|
|
100
|
+
},
|
|
83
101
|
{
|
|
84
102
|
name: 'viberaven_heal_plan',
|
|
85
103
|
description: 'Write a non-destructive VibeRaven heal plan for a target file or gap.',
|
|
@@ -237,6 +255,12 @@ function buildToolArgs(name, args) {
|
|
|
237
255
|
if (name === 'viberaven_context_map') {
|
|
238
256
|
return ['--condense'];
|
|
239
257
|
}
|
|
258
|
+
if (name === 'viberaven_actions') {
|
|
259
|
+
return ['actions'];
|
|
260
|
+
}
|
|
261
|
+
if (name === 'viberaven_verify_action') {
|
|
262
|
+
return ['--verify', '--action', safeStringArg(args.actionId, 'actionId')];
|
|
263
|
+
}
|
|
240
264
|
if (name === 'viberaven_heal_plan') {
|
|
241
265
|
return buildHealArgs(['--heal', '--plan'], args);
|
|
242
266
|
}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
const { spawn } = require('node:child_process');
|
|
3
|
+
const readline = require('node:readline');
|
|
4
|
+
|
|
5
|
+
const serverInfo = {
|
|
6
|
+
name: 'viberaven-mcp',
|
|
7
|
+
version: '0.1.0-beta.0',
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
const tools = [
|
|
11
|
+
{
|
|
12
|
+
name: 'viberaven_scan',
|
|
13
|
+
description: 'Scan an AI-built app for launch-readiness gaps and write .viberaven artifacts.',
|
|
14
|
+
inputSchema: {
|
|
15
|
+
type: 'object',
|
|
16
|
+
properties: {
|
|
17
|
+
cwd: { type: 'string', description: 'Workspace directory to scan. Defaults to the MCP process cwd.' },
|
|
18
|
+
json: { type: 'boolean', description: 'Return CLI JSON output when supported.' },
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: 'viberaven_next',
|
|
24
|
+
description: 'Return the next recommended launch-readiness action from the last scan.',
|
|
25
|
+
inputSchema: {
|
|
26
|
+
type: 'object',
|
|
27
|
+
properties: {
|
|
28
|
+
cwd: { type: 'string', description: 'Workspace directory. Defaults to the MCP process cwd.' },
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
name: 'viberaven_prompt',
|
|
34
|
+
description: 'Return a copy-ready coding-agent prompt for a launch gap.',
|
|
35
|
+
inputSchema: {
|
|
36
|
+
type: 'object',
|
|
37
|
+
properties: {
|
|
38
|
+
cwd: { type: 'string', description: 'Workspace directory. Defaults to the MCP process cwd.' },
|
|
39
|
+
gap: { type: 'string', description: 'Gap id from .viberaven/last-scan.json or viberaven_next.' },
|
|
40
|
+
area: { type: 'string', description: 'Optional production area such as auth, database, payments, deployment.' },
|
|
41
|
+
provider: { type: 'string', description: 'Optional provider such as clerk, supabase, stripe, vercel.' },
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
name: 'viberaven_status',
|
|
47
|
+
description: 'Return VibeRaven account and scan quota status.',
|
|
48
|
+
inputSchema: {
|
|
49
|
+
type: 'object',
|
|
50
|
+
properties: {
|
|
51
|
+
cwd: { type: 'string', description: 'Workspace directory. Defaults to the MCP process cwd.' },
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'viberaven_report',
|
|
57
|
+
description: 'Rebuild .viberaven/report.html from the last scan without consuming scan quota.',
|
|
58
|
+
inputSchema: {
|
|
59
|
+
type: 'object',
|
|
60
|
+
properties: {
|
|
61
|
+
cwd: { type: 'string', description: 'Workspace directory. Defaults to the MCP process cwd.' },
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
];
|
|
66
|
+
|
|
67
|
+
function write(message) {
|
|
68
|
+
process.stdout.write(`${JSON.stringify(message)}\n`);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function runCli(args, cwd) {
|
|
72
|
+
return new Promise((resolve) => {
|
|
73
|
+
const child = spawn('npx', ['-y', '@viberaven/cli@beta', ...args], {
|
|
74
|
+
cwd: cwd || process.cwd(),
|
|
75
|
+
shell: process.platform === 'win32',
|
|
76
|
+
env: process.env,
|
|
77
|
+
});
|
|
78
|
+
let stdout = '';
|
|
79
|
+
let stderr = '';
|
|
80
|
+
child.stdout.on('data', (chunk) => {
|
|
81
|
+
stdout += chunk.toString();
|
|
82
|
+
});
|
|
83
|
+
child.stderr.on('data', (chunk) => {
|
|
84
|
+
stderr += chunk.toString();
|
|
85
|
+
});
|
|
86
|
+
child.on('close', (code) => {
|
|
87
|
+
resolve({ code, stdout, stderr });
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function textResult(text, isError = false) {
|
|
93
|
+
return {
|
|
94
|
+
content: [{ type: 'text', text: text || '(no output)' }],
|
|
95
|
+
isError,
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
async function callTool(name, input = {}) {
|
|
100
|
+
const cwd = typeof input.cwd === 'string' && input.cwd.trim() ? input.cwd : undefined;
|
|
101
|
+
if (name === 'viberaven_scan') {
|
|
102
|
+
const args = ['scan'];
|
|
103
|
+
if (input.json) args.push('--json');
|
|
104
|
+
const result = await runCli(args, cwd);
|
|
105
|
+
return textResult(`${result.stdout}${result.stderr ? `\n${result.stderr}` : ''}`.trim(), result.code !== 0);
|
|
106
|
+
}
|
|
107
|
+
if (name === 'viberaven_next') {
|
|
108
|
+
const result = await runCli(['next', '--json'], cwd);
|
|
109
|
+
return textResult(`${result.stdout}${result.stderr ? `\n${result.stderr}` : ''}`.trim(), result.code !== 0);
|
|
110
|
+
}
|
|
111
|
+
if (name === 'viberaven_prompt') {
|
|
112
|
+
const args = ['prompt', '--no-copy'];
|
|
113
|
+
if (input.gap) args.push('--gap', String(input.gap));
|
|
114
|
+
if (input.area) args.push('--area', String(input.area));
|
|
115
|
+
if (input.provider) args.push('--provider', String(input.provider));
|
|
116
|
+
const result = await runCli(args, cwd);
|
|
117
|
+
return textResult(`${result.stdout}${result.stderr ? `\n${result.stderr}` : ''}`.trim(), result.code !== 0);
|
|
118
|
+
}
|
|
119
|
+
if (name === 'viberaven_status') {
|
|
120
|
+
const result = await runCli(['status', '--json'], cwd);
|
|
121
|
+
return textResult(`${result.stdout}${result.stderr ? `\n${result.stderr}` : ''}`.trim(), result.code !== 0);
|
|
122
|
+
}
|
|
123
|
+
if (name === 'viberaven_report') {
|
|
124
|
+
const result = await runCli(['report'], cwd);
|
|
125
|
+
return textResult(`${result.stdout}${result.stderr ? `\n${result.stderr}` : ''}`.trim(), result.code !== 0);
|
|
126
|
+
}
|
|
127
|
+
return textResult(`Unknown VibeRaven MCP tool: ${name}`, true);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
const rl = readline.createInterface({ input: process.stdin });
|
|
131
|
+
|
|
132
|
+
rl.on('line', async (line) => {
|
|
133
|
+
if (!line.trim()) return;
|
|
134
|
+
let request;
|
|
135
|
+
try {
|
|
136
|
+
request = JSON.parse(line);
|
|
137
|
+
} catch {
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
if (request.method === 'initialize') {
|
|
142
|
+
write({
|
|
143
|
+
jsonrpc: '2.0',
|
|
144
|
+
id: request.id,
|
|
145
|
+
result: {
|
|
146
|
+
protocolVersion: '2024-11-05',
|
|
147
|
+
capabilities: { tools: {} },
|
|
148
|
+
serverInfo,
|
|
149
|
+
},
|
|
150
|
+
});
|
|
151
|
+
return;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
if (request.method === 'notifications/initialized') {
|
|
155
|
+
return;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
if (request.method === 'tools/list') {
|
|
159
|
+
write({ jsonrpc: '2.0', id: request.id, result: { tools } });
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
if (request.method === 'tools/call') {
|
|
164
|
+
const params = request.params || {};
|
|
165
|
+
const result = await callTool(params.name, params.arguments || {});
|
|
166
|
+
write({ jsonrpc: '2.0', id: request.id, result });
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
write({
|
|
171
|
+
jsonrpc: '2.0',
|
|
172
|
+
id: request.id,
|
|
173
|
+
error: { code: -32601, message: `Method not found: ${request.method}` },
|
|
174
|
+
});
|
|
175
|
+
});
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viberaven/mcp",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.7",
|
|
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
|
-
"license": "
|
|
5
|
+
"license": "MIT",
|
|
6
6
|
"author": "VibeRaven",
|
|
7
7
|
"mcpName": "io.github.ohad6k/viberaven",
|
|
8
8
|
"homepage": "https://viberaven.dev/mcp.md",
|