@viberaven/mcp 1.0.2 → 1.0.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 CHANGED
@@ -57,3 +57,4 @@ If VibeRaven prints `LOGIN_URL_READY`, open that exact URL for the user, keep th
57
57
  ## Security
58
58
 
59
59
  The MCP package is public integration glue only. It returns CLI stdout/stderr and structured JSON content when available. It does not mutate provider dashboards and does not bypass VibeRaven login, managed API checks, or quota enforcement. Do not claim provider dashboard checks are fixed by repo-code edits.
60
+
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.0.0' };
5
+ const SERVER_INFO = { name: 'viberaven-mcp', version: '1.0.4' };
6
6
  const CLI_PACKAGE = '@viberaven/cli';
7
7
 
8
8
  const cwdSchema = {
@@ -94,6 +94,23 @@ const TOOLS = [
94
94
  name: 'viberaven_heal_apply',
95
95
  description: 'Apply a guarded VibeRaven repo-code heal recipe when supported.',
96
96
  inputSchema: healSchema
97
+ },
98
+ {
99
+ name: 'viberaven_validate_npm_package',
100
+ description:
101
+ 'Check whether an npm package name exists and looks safe before install. Always run viberaven --agent-mode after adding dependencies.',
102
+ inputSchema: {
103
+ type: 'object',
104
+ properties: {
105
+ packageName: { type: 'string', description: 'Single npm package name to validate.' },
106
+ packageNames: {
107
+ type: 'array',
108
+ items: { type: 'string' },
109
+ description: 'Multiple npm package names to validate in one call.'
110
+ }
111
+ },
112
+ additionalProperties: false
113
+ }
97
114
  }
98
115
  ];
99
116
 
@@ -231,6 +248,21 @@ function buildToolArgs(name, args) {
231
248
  if (args.yes === true) cliArgs.push('--yes');
232
249
  return cliArgs;
233
250
  }
251
+ if (name === 'viberaven_validate_npm_package') {
252
+ const names = [];
253
+ if (args.packageName) {
254
+ names.push(safeStringArg(args.packageName, 'packageName'));
255
+ }
256
+ if (Array.isArray(args.packageNames)) {
257
+ for (const entry of args.packageNames) {
258
+ names.push(safeStringArg(entry, 'packageName'));
259
+ }
260
+ }
261
+ if (names.length === 0) {
262
+ throw new Error('packageName or packageNames is required');
263
+ }
264
+ return ['validate-npm-package', '--json', ...names];
265
+ }
234
266
  throw new Error(`Unknown VibeRaven tool: ${name}`);
235
267
  }
236
268
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viberaven/mcp",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Thin MCP wrapper around the VibeRaven CLI for agent launch-readiness workflows.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "VibeRaven",