@hasna/mcps 0.0.26 → 0.0.27

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
@@ -12808,8 +12808,12 @@ function updateServer(id, updates) {
12808
12808
  const sets = [];
12809
12809
  const values = [];
12810
12810
  if (updates.name !== undefined) {
12811
+ const name = normalizeCandidate(updates.name);
12812
+ if (!name) {
12813
+ throw new Error("Name is required");
12814
+ }
12811
12815
  sets.push("name = ?");
12812
- values.push(updates.name);
12816
+ values.push(name);
12813
12817
  }
12814
12818
  if (updates.description !== undefined) {
12815
12819
  sets.push("description = ?");
@@ -36450,7 +36454,7 @@ var init_provider_profiles = __esm(() => {
36450
36454
  var require_package = __commonJS((exports, module) => {
36451
36455
  module.exports = {
36452
36456
  name: "@hasna/mcps",
36453
- version: "0.0.26",
36457
+ version: "0.0.27",
36454
36458
  description: "Meta-MCP registry & CLI \u2014 discover, manage, and proxy MCP servers",
36455
36459
  type: "module",
36456
36460
  repository: {
@@ -42512,8 +42516,16 @@ Dashboard not found at: ${dashboardDir}`);
42512
42516
  return json({ error: "Invalid JSON body" }, 400, port);
42513
42517
  }
42514
42518
  const fields = {};
42515
- if (body.name !== undefined)
42516
- fields.name = body.name;
42519
+ if (body.name !== undefined) {
42520
+ if (typeof body.name !== "string") {
42521
+ return json({ error: "Invalid 'name' format" }, 400, port);
42522
+ }
42523
+ const name = body.name.trim();
42524
+ if (!name) {
42525
+ return json({ error: "Name is required" }, 400, port);
42526
+ }
42527
+ fields.name = name;
42528
+ }
42517
42529
  if (body.description !== undefined)
42518
42530
  fields.description = body.description;
42519
42531
  if (body.command !== undefined) {
package/bin/mcp.js CHANGED
@@ -30824,8 +30824,12 @@ function updateServer(id, updates) {
30824
30824
  const sets = [];
30825
30825
  const values = [];
30826
30826
  if (updates.name !== undefined) {
30827
+ const name = normalizeCandidate(updates.name);
30828
+ if (!name) {
30829
+ throw new Error("Name is required");
30830
+ }
30827
30831
  sets.push("name = ?");
30828
- values.push(updates.name);
30832
+ values.push(name);
30829
30833
  }
30830
30834
  if (updates.description !== undefined) {
30831
30835
  sets.push("description = ?");
package/dist/index.js CHANGED
@@ -17541,8 +17541,12 @@ function updateServer(id, updates) {
17541
17541
  const sets = [];
17542
17542
  const values = [];
17543
17543
  if (updates.name !== undefined) {
17544
+ const name = normalizeCandidate(updates.name);
17545
+ if (!name) {
17546
+ throw new Error("Name is required");
17547
+ }
17544
17548
  sets.push("name = ?");
17545
- values.push(updates.name);
17549
+ values.push(name);
17546
17550
  }
17547
17551
  if (updates.description !== undefined) {
17548
17552
  sets.push("description = ?");
package/dist/mcp/index.js CHANGED
@@ -30824,8 +30824,12 @@ function updateServer(id, updates) {
30824
30824
  const sets = [];
30825
30825
  const values = [];
30826
30826
  if (updates.name !== undefined) {
30827
+ const name = normalizeCandidate(updates.name);
30828
+ if (!name) {
30829
+ throw new Error("Name is required");
30830
+ }
30827
30831
  sets.push("name = ?");
30828
- values.push(updates.name);
30832
+ values.push(name);
30829
30833
  }
30830
30834
  if (updates.description !== undefined) {
30831
30835
  sets.push("description = ?");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/mcps",
3
- "version": "0.0.26",
3
+ "version": "0.0.27",
4
4
  "description": "Meta-MCP registry & CLI — discover, manage, and proxy MCP servers",
5
5
  "type": "module",
6
6
  "repository": {