@teamnetwork-nz/sonicwall-api-mcp-server 0.8.0 → 0.9.0

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.
@@ -0,0 +1,53 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/strict-tools.ts
22
+ var strict_tools_exports = {};
23
+ __export(strict_tools_exports, {
24
+ enforceStrictToolInputs: () => enforceStrictToolInputs
25
+ });
26
+ module.exports = __toCommonJS(strict_tools_exports);
27
+ var import_zod = require("zod");
28
+ function isSchema(value) {
29
+ return typeof value === "object" && value !== null && "_def" in value;
30
+ }
31
+ function isRawShape(value) {
32
+ if (typeof value !== "object" || value === null || isSchema(value)) return false;
33
+ const values = Object.values(value);
34
+ return values.length === 0 || values.some(isSchema);
35
+ }
36
+ function strictSchema(schema) {
37
+ if (schema === void 0) return import_zod.z.object({}).strict();
38
+ if (isRawShape(schema)) return import_zod.z.object(schema).strict();
39
+ if (isSchema(schema) && typeof schema.strict === "function") return schema.strict();
40
+ return schema;
41
+ }
42
+ function enforceStrictToolInputs(server) {
43
+ const mutable = server;
44
+ const createRegisteredTool = mutable._createRegisteredTool.bind(server);
45
+ mutable._createRegisteredTool = (...args) => {
46
+ args[3] = strictSchema(args[3]);
47
+ return createRegisteredTool(...args);
48
+ };
49
+ }
50
+ // Annotate the CommonJS export names for ESM import in node:
51
+ 0 && (module.exports = {
52
+ enforceStrictToolInputs
53
+ });
@@ -0,0 +1,39 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/write-gate.ts
22
+ var write_gate_exports = {};
23
+ __export(write_gate_exports, {
24
+ readWriteEnabled: () => readWriteEnabled
25
+ });
26
+ module.exports = __toCommonJS(write_gate_exports);
27
+ function readWriteEnabled(canonicalName, legacy, env = process.env) {
28
+ const canonical = env[canonicalName];
29
+ if (canonical !== void 0) return canonical.toLowerCase() === "true";
30
+ if (!legacy || env[legacy.name] === void 0) return false;
31
+ process.stderr.write(`[deprecated] ${legacy.name} is deprecated; use ${canonicalName}=true to enable writes.
32
+ `);
33
+ const value = env[legacy.name].toLowerCase();
34
+ return legacy.readonlySemantics ? value === "false" : value === "true";
35
+ }
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {
38
+ readWriteEnabled
39
+ });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@teamnetwork-nz/sonicwall-api-mcp-server",
3
- "version": "0.8.0",
4
- "description": "MCP server for SonicWall NSA appliance configuration — objects, rules, NAT, routing, and GeoIP lookup",
3
+ "version": "0.9.0",
4
+ "description": "MCP server for SonicWall appliance configuration and diagnostics — objects, rules, NAT, routing, reachability, and GeoIP lookup",
5
5
  "keywords": [
6
6
  "mcp",
7
7
  "model-context-protocol",
@@ -41,8 +41,8 @@
41
41
  "node": ">=18"
42
42
  },
43
43
  "dependencies": {
44
- "@modelcontextprotocol/sdk": "^1.10.0",
45
- "zod": "^3.23.0"
44
+ "@modelcontextprotocol/sdk": "^1.29.0",
45
+ "zod": "^3.25.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/node": "^20.0.0",