@hasna/mcps 0.0.25 → 0.0.26

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/bin/index.js CHANGED
@@ -12816,8 +12816,12 @@ function updateServer(id, updates) {
12816
12816
  values.push(updates.description);
12817
12817
  }
12818
12818
  if (updates.command !== undefined) {
12819
+ const command = normalizeCandidate(updates.command);
12820
+ if (!command) {
12821
+ throw new Error("Command is required");
12822
+ }
12819
12823
  sets.push("command = ?");
12820
- values.push(updates.command);
12824
+ values.push(command);
12821
12825
  }
12822
12826
  if (updates.args !== undefined) {
12823
12827
  sets.push("args = ?");
@@ -36446,7 +36450,7 @@ var init_provider_profiles = __esm(() => {
36446
36450
  var require_package = __commonJS((exports, module) => {
36447
36451
  module.exports = {
36448
36452
  name: "@hasna/mcps",
36449
- version: "0.0.25",
36453
+ version: "0.0.26",
36450
36454
  description: "Meta-MCP registry & CLI \u2014 discover, manage, and proxy MCP servers",
36451
36455
  type: "module",
36452
36456
  repository: {
@@ -42512,8 +42516,16 @@ Dashboard not found at: ${dashboardDir}`);
42512
42516
  fields.name = body.name;
42513
42517
  if (body.description !== undefined)
42514
42518
  fields.description = body.description;
42515
- if (body.command !== undefined)
42516
- fields.command = body.command;
42519
+ if (body.command !== undefined) {
42520
+ if (typeof body.command !== "string") {
42521
+ return json({ error: "Invalid 'command' format" }, 400, port);
42522
+ }
42523
+ const command = body.command.trim();
42524
+ if (!command) {
42525
+ return json({ error: "Command is required" }, 400, port);
42526
+ }
42527
+ fields.command = command;
42528
+ }
42517
42529
  if (body.env !== undefined)
42518
42530
  fields.env = body.env;
42519
42531
  if (body.credential_refs !== undefined || body.credentialRefs !== undefined) {
package/bin/mcp.js CHANGED
@@ -30832,8 +30832,12 @@ function updateServer(id, updates) {
30832
30832
  values.push(updates.description);
30833
30833
  }
30834
30834
  if (updates.command !== undefined) {
30835
+ const command = normalizeCandidate(updates.command);
30836
+ if (!command) {
30837
+ throw new Error("Command is required");
30838
+ }
30835
30839
  sets.push("command = ?");
30836
- values.push(updates.command);
30840
+ values.push(command);
30837
30841
  }
30838
30842
  if (updates.args !== undefined) {
30839
30843
  sets.push("args = ?");
package/dist/index.js CHANGED
@@ -17549,8 +17549,12 @@ function updateServer(id, updates) {
17549
17549
  values.push(updates.description);
17550
17550
  }
17551
17551
  if (updates.command !== undefined) {
17552
+ const command = normalizeCandidate(updates.command);
17553
+ if (!command) {
17554
+ throw new Error("Command is required");
17555
+ }
17552
17556
  sets.push("command = ?");
17553
- values.push(updates.command);
17557
+ values.push(command);
17554
17558
  }
17555
17559
  if (updates.args !== undefined) {
17556
17560
  sets.push("args = ?");
package/dist/mcp/index.js CHANGED
@@ -30832,8 +30832,12 @@ function updateServer(id, updates) {
30832
30832
  values.push(updates.description);
30833
30833
  }
30834
30834
  if (updates.command !== undefined) {
30835
+ const command = normalizeCandidate(updates.command);
30836
+ if (!command) {
30837
+ throw new Error("Command is required");
30838
+ }
30835
30839
  sets.push("command = ?");
30836
- values.push(updates.command);
30840
+ values.push(command);
30837
30841
  }
30838
30842
  if (updates.args !== undefined) {
30839
30843
  sets.push("args = ?");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/mcps",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "description": "Meta-MCP registry & CLI — discover, manage, and proxy MCP servers",
5
5
  "type": "module",
6
6
  "repository": {