@chkp/documentation-mcp 1.4.6 → 1.4.10

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/dist/index.js CHANGED
@@ -1,8 +1,13 @@
1
1
  #!/usr/bin/env node
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __esm = (fn, res) => function __init() {
5
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
4
+ var __esm = (fn, res, err) => function __init() {
5
+ if (err) throw err[0];
6
+ try {
7
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
8
+ } catch (e) {
9
+ throw err = [e], e;
10
+ }
6
11
  };
7
12
  var __export = (target, all) => {
8
13
  for (var name in all)
@@ -528,6 +533,70 @@ var SettingsManager = class _SettingsManager {
528
533
  };
529
534
  SettingsManager.globalDebugState = void 0;
530
535
 
536
+ // ../mcp-utils/dist/telemetry.js
537
+ import machineIdPkg from "node-machine-id";
538
+ import { createHash } from "crypto";
539
+ var { machineIdSync } = machineIdPkg;
540
+ var machineId = null;
541
+ var hashedMachineId = null;
542
+ var transportType = "stdio";
543
+ function setTransportType(type) {
544
+ transportType = type;
545
+ }
546
+ function isTelemetryDisabled() {
547
+ return process.env.TELEMETRY_DISABLED === "true" || process.env.TELEMETRY_DISABLED === "1";
548
+ }
549
+ function getTelemetryUrl() {
550
+ return process.env.TELEMETRY_URL || "https://metrics.security.ai.checkpoint.com/api/v1/metrics/collect";
551
+ }
552
+ function hashString(input) {
553
+ return createHash("sha256").update(input).digest("hex");
554
+ }
555
+ function getMachineId() {
556
+ if (!machineId) {
557
+ try {
558
+ machineId = machineIdSync();
559
+ } catch (error) {
560
+ console.warn("Failed to get machine ID for telemetry:", error);
561
+ machineId = "unknown";
562
+ }
563
+ }
564
+ return machineId;
565
+ }
566
+ function getHashedMachineId() {
567
+ if (!hashedMachineId) {
568
+ hashedMachineId = hashString(getMachineId());
569
+ }
570
+ return hashedMachineId;
571
+ }
572
+ function calculateChecksum(mcpName, toolName, machineId2, clientVersion) {
573
+ const data = mcpName + machineId2.slice(0, 16) + toolName + clientVersion;
574
+ return hashString(data);
575
+ }
576
+ async function trackToolCall(mcpName, toolName, clientVersion, extra) {
577
+ if (isTelemetryDisabled()) {
578
+ return;
579
+ }
580
+ try {
581
+ const machineId2 = getHashedMachineId();
582
+ const checksum = calculateChecksum(mcpName, toolName, machineId2, clientVersion);
583
+ fetch(getTelemetryUrl(), {
584
+ method: "POST",
585
+ headers: { "Content-Type": "application/json" },
586
+ body: JSON.stringify({
587
+ mcp_name: mcpName,
588
+ tool_name: toolName,
589
+ machine_id: machineId2,
590
+ client_version: clientVersion,
591
+ transport_type: transportType,
592
+ checksum
593
+ })
594
+ }).catch(() => {
595
+ });
596
+ } catch (error) {
597
+ }
598
+ }
599
+
531
600
  // ../mcp-utils/dist/launcher.js
532
601
  async function launchMCPServer(configPath, serverModule2) {
533
602
  const config = JSON.parse(fs.readFileSync(configPath, "utf8"));
@@ -571,11 +640,13 @@ async function launchMCPServer(configPath, serverModule2) {
571
640
  console.error("[launchMCPServer] Applying tool policy before connecting");
572
641
  serverModule2.server.applyToolPolicy();
573
642
  }
574
- const transportType = (options.transport || process.env.MCP_TRANSPORT_TYPE || "stdio").toLowerCase() === "http" ? "http" : "stdio";
643
+ const transportType2 = (options.transport || process.env.MCP_TRANSPORT_TYPE || "stdio").toLowerCase() === "http" ? "http" : "stdio";
575
644
  const transportPort = options.transportPort ? parseInt(options.transportPort, 10) : process.env.MCP_TRANSPORT_PORT ? parseInt(process.env.MCP_TRANSPORT_PORT, 10) : 3e3;
576
- if (transportType === "http") {
645
+ if (transportType2 === "http") {
646
+ setTransportType("http");
577
647
  await launchHTTPServer(config, serverModule2, transportPort);
578
648
  } else {
649
+ setTransportType("stdio");
579
650
  const transport = new StdioServerTransport();
580
651
  const defaultSessionId = "default";
581
652
  const sessionMetadata = {
@@ -1347,65 +1418,6 @@ function createServerModule(server2, Settings2, pkg2, apiManagerClass, toolPolic
1347
1418
  // ../mcp-utils/dist/index.js
1348
1419
  init_ui_dialog();
1349
1420
 
1350
- // ../mcp-utils/dist/telemetry.js
1351
- import machineIdPkg from "node-machine-id";
1352
- import { createHash } from "crypto";
1353
- var { machineIdSync } = machineIdPkg;
1354
- var machineId = null;
1355
- var hashedMachineId = null;
1356
- function isTelemetryDisabled() {
1357
- return process.env.TELEMETRY_DISABLED === "true" || process.env.TELEMETRY_DISABLED === "1";
1358
- }
1359
- function getTelemetryUrl() {
1360
- return process.env.TELEMETRY_URL || "https://metrics.security.ai.checkpoint.com/api/v1/metrics/collect";
1361
- }
1362
- function hashString(input) {
1363
- return createHash("sha256").update(input).digest("hex");
1364
- }
1365
- function getMachineId() {
1366
- if (!machineId) {
1367
- try {
1368
- machineId = machineIdSync();
1369
- } catch (error) {
1370
- console.warn("Failed to get machine ID for telemetry:", error);
1371
- machineId = "unknown";
1372
- }
1373
- }
1374
- return machineId;
1375
- }
1376
- function getHashedMachineId() {
1377
- if (!hashedMachineId) {
1378
- hashedMachineId = hashString(getMachineId());
1379
- }
1380
- return hashedMachineId;
1381
- }
1382
- function calculateChecksum(mcpName, toolName, machineId2, clientVersion) {
1383
- const data = mcpName + machineId2.slice(0, 16) + toolName + clientVersion;
1384
- return hashString(data);
1385
- }
1386
- async function trackToolCall(mcpName, toolName, clientVersion, extra) {
1387
- if (isTelemetryDisabled()) {
1388
- return;
1389
- }
1390
- try {
1391
- const machineId2 = getHashedMachineId();
1392
- const checksum = calculateChecksum(mcpName, toolName, machineId2, clientVersion);
1393
- fetch(getTelemetryUrl(), {
1394
- method: "POST",
1395
- headers: { "Content-Type": "application/json" },
1396
- body: JSON.stringify({
1397
- mcp_name: mcpName,
1398
- tool_name: toolName,
1399
- machine_id: machineId2,
1400
- client_version: clientVersion,
1401
- checksum
1402
- })
1403
- }).catch(() => {
1404
- });
1405
- } catch (error) {
1406
- }
1407
- }
1408
-
1409
1421
  // ../mcp-utils/dist/mcp-server.js
1410
1422
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
1411
1423
  var CPMcpServer = class extends McpServer {
@@ -2056,7 +2068,7 @@ server.tool(
2056
2068
  - cloudguard: CloudGuard - Comprehensive cloud security and compliance platform
2057
2069
  - cloudguardnetwork: CloudGuard Network - Cloud network security solutions
2058
2070
  - cloudnetworksecurity: CloudGuard Network Security - Advanced cloud network protection
2059
- - appsec: CloudGuard WAF - Web Application Firewall and application security
2071
+ - appsec: Check Point WAF - Web Application Firewall and application security
2060
2072
 
2061
2073
  Endpoint & Device Security:
2062
2074
  - mobile: Harmony Mobile - Mobile device security and threat protection
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chkp/documentation-mcp",
3
- "version": "1.4.6",
3
+ "version": "1.4.10",
4
4
  "description": "Check Point Documentation Tool Service - API integration with Check Point Documentation Tool",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -30,16 +30,16 @@
30
30
  "dependencies": {
31
31
  "@chkp/mcp-utils": "*",
32
32
  "@chkp/quantum-infra": "*",
33
- "@modelcontextprotocol/sdk": "^1.26.0",
34
- "axios": "^1.13.5",
35
- "commander": "^13.1.0",
33
+ "@modelcontextprotocol/sdk": "^1.29.0",
34
+ "axios": "^1.16.0",
35
+ "commander": "^14.0.3",
36
36
  "node-machine-id": "^1.1.12",
37
37
  "zod": "^3.22.4"
38
38
  },
39
39
  "devDependencies": {
40
- "@types/node": "^20.0.0",
40
+ "@types/node": "^26.0.0",
41
41
  "dotenv": "^17.2.2",
42
- "tsx": "^4.20.5",
42
+ "tsx": "^4.22.4",
43
43
  "typescript": "^5.0.4"
44
44
  }
45
45
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chkp/documentation-mcp",
3
- "version": "1.4.6",
3
+ "version": "1.4.10",
4
4
  "description": "Check Point Documentation Tool Service - API integration with Check Point Documentation Tool",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -28,16 +28,16 @@
28
28
  "postpack": "node ../../scripts/strip-bundled-deps.js restore"
29
29
  },
30
30
  "dependencies": {
31
- "@modelcontextprotocol/sdk": "^1.26.0",
32
- "commander": "^13.1.0",
33
- "axios": "^1.13.5",
31
+ "@modelcontextprotocol/sdk": "^1.29.0",
32
+ "commander": "^14.0.3",
33
+ "axios": "^1.16.0",
34
34
  "node-machine-id": "^1.1.12",
35
35
  "zod": "^3.24.4"
36
36
  },
37
37
  "devDependencies": {
38
- "@types/node": "^20.0.0",
38
+ "@types/node": "^26.0.0",
39
39
  "dotenv": "^17.2.2",
40
- "tsx": "^4.20.5",
40
+ "tsx": "^4.22.4",
41
41
  "typescript": "^5.0.4"
42
42
  }
43
43
  }
package/package.json.bak CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chkp/documentation-mcp",
3
- "version": "1.4.6",
3
+ "version": "1.4.10",
4
4
  "description": "Check Point Documentation Tool Service - API integration with Check Point Documentation Tool",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -30,16 +30,16 @@
30
30
  "dependencies": {
31
31
  "@chkp/mcp-utils": "*",
32
32
  "@chkp/quantum-infra": "*",
33
- "@modelcontextprotocol/sdk": "^1.26.0",
34
- "commander": "^13.1.0",
35
- "axios": "^1.13.5",
33
+ "@modelcontextprotocol/sdk": "^1.29.0",
34
+ "commander": "^14.0.3",
35
+ "axios": "^1.16.0",
36
36
  "node-machine-id": "^1.1.12",
37
37
  "zod": "^3.24.4"
38
38
  },
39
39
  "devDependencies": {
40
- "@types/node": "^20.0.0",
40
+ "@types/node": "^26.0.0",
41
41
  "dotenv": "^17.2.2",
42
- "tsx": "^4.20.5",
42
+ "tsx": "^4.22.4",
43
43
  "typescript": "^5.0.4"
44
44
  }
45
45
  }