@chkp/documentation-mcp 1.4.0 → 1.4.3

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
@@ -1560,7 +1560,7 @@ var Settings = class _Settings {
1560
1560
  return "STG";
1561
1561
  return void 0;
1562
1562
  }
1563
- constructor({ apiKey = process.env.API_KEY, username = process.env.USERNAME, password = process.env.PASSWORD, s1cUrl = process.env.S1C_URL, managementHost = process.env.MANAGEMENT_HOST, managementPort = process.env.MANAGEMENT_PORT || "443", cloudInfraToken = process.env.CLOUD_INFRA_TOKEN, clientId = process.env.CLIENT_ID, secretKey = process.env.SECRET_KEY, region = process.env.REGION || "EU", devPort = process.env.DEV_PORT || "8006", gatewayUrl } = {}) {
1563
+ constructor({ apiKey = process.env.API_KEY, username = process.env.USERNAME, password = process.env.PASSWORD, s1cUrl = process.env.S1C_URL, managementHost = process.env.MANAGEMENT_HOST, managementPort = process.env.MANAGEMENT_PORT || "443", cloudInfraToken = process.env.CLOUD_INFRA_TOKEN, cloudConnected = process.env.CLOUD_CONNECTED === "true", clientId = process.env.CLIENT_ID, secretKey = process.env.SECRET_KEY, region = process.env.REGION || "EU", devPort = process.env.DEV_PORT || "8006", gatewayUrl } = {}) {
1564
1564
  this.region = "EU";
1565
1565
  this.devPort = "8006";
1566
1566
  this.gatewayUrl = "";
@@ -1587,6 +1587,7 @@ var Settings = class _Settings {
1587
1587
  this.managementHost = managementHost;
1588
1588
  this.managementPort = managementPort;
1589
1589
  this.cloudInfraToken = cloudInfraToken;
1590
+ this.cloudConnected = cloudConnected;
1590
1591
  this.clientId = clientId;
1591
1592
  this.secretKey = secretKey;
1592
1593
  this.region = this.normalizeRegion(region) || "EU";
@@ -1610,7 +1611,7 @@ var Settings = class _Settings {
1610
1611
  * Check if the provided string is a valid region
1611
1612
  */
1612
1613
  isValidRegion(region) {
1613
- return ["EU", "US", "STG", "LOCAL"].includes(region.toUpperCase());
1614
+ return ["EU", "US", "STG", "DEV", "LOCAL"].includes(region.toUpperCase());
1614
1615
  }
1615
1616
  /**
1616
1617
  * Get the base gateway URL for a given region
@@ -1622,6 +1623,7 @@ var Settings = class _Settings {
1622
1623
  case "US":
1623
1624
  return "https://cloudinfra-gw-us.portal.checkpoint.com";
1624
1625
  case "STG":
1626
+ case "DEV":
1625
1627
  case "LOCAL":
1626
1628
  return "https://dev-cloudinfra-gw.kube1.iaas.checkpoint.com";
1627
1629
  default:
@@ -1718,6 +1720,7 @@ var Settings = class _Settings {
1718
1720
  managementHost: args.managementHost,
1719
1721
  managementPort: args.managementPort,
1720
1722
  cloudInfraToken: args.cloudInfraToken,
1723
+ cloudConnected: args.cloudConnected,
1721
1724
  clientId: args.clientId,
1722
1725
  secretKey: args.secretKey,
1723
1726
  region: typeof args.region === "string" ? args.region.trim().toUpperCase() : void 0,
@@ -1743,6 +1746,7 @@ var Settings = class _Settings {
1743
1746
  managementHost: getHeaderValue(headers, "MANAGEMENT-HOST"),
1744
1747
  managementPort: getHeaderValue(headers, "MANAGEMENT-PORT"),
1745
1748
  cloudInfraToken: getHeaderValue(headers, "CLOUD-INFRA-TOKEN"),
1749
+ cloudConnected: getHeaderValue(headers, "CLOUD-CONNECTED"),
1746
1750
  clientId: getHeaderValue(headers, "CLIENT-ID"),
1747
1751
  secretKey: getHeaderValue(headers, "SECRET-KEY"),
1748
1752
  region: getHeaderValue(headers, "REGION"),
@@ -1775,6 +1779,7 @@ var Settings = class _Settings {
1775
1779
  managementHost: extractedValues.managementHost,
1776
1780
  managementPort: extractedValues.managementPort,
1777
1781
  cloudInfraToken: extractedValues.cloudInfraToken,
1782
+ cloudConnected: extractedValues.cloudConnected === "true",
1778
1783
  clientId: extractedValues.clientId,
1779
1784
  secretKey: extractedValues.secretKey,
1780
1785
  region: extractedValues.region?.toUpperCase(),
@@ -1888,7 +1893,8 @@ var DocumentationToolAPIManager = class _DocumentationToolAPIManager {
1888
1893
  if (this.settings.region === "LOCAL") {
1889
1894
  return `http://localhost:${this.settings.devPort || "8006"}`;
1890
1895
  }
1891
- return `${this.settings.getCloudInfraGateway()}/app/console-one`;
1896
+ const appPath = this.settings.region === "DEV" ? "dev-ai-actions" : "ai-actions";
1897
+ return `${this.settings.getCloudInfraGateway()}/app/${appPath}`;
1892
1898
  }
1893
1899
  async callApi(method, uri, data) {
1894
1900
  const token = await this.getToken();
@@ -2053,7 +2059,7 @@ server.tool(
2053
2059
  try {
2054
2060
  const result = await runApi(
2055
2061
  "post",
2056
- "api/v1/doc/ask_docs",
2062
+ "ask_docs",
2057
2063
  { question: text, product },
2058
2064
  extra
2059
2065
  );
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chkp/documentation-mcp",
3
- "version": "1.4.0",
3
+ "version": "1.4.3",
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",
@@ -23,9 +23,13 @@
23
23
  "build:bundle": "node ../../bundle-mcp.js",
24
24
  "build:tsc": "npx tsc && npx shx chmod +x ./dist/index.js && npx shx cp src/server-config.json dist/",
25
25
  "dev": "tsc --watch",
26
- "start": "node dist/index.js"
26
+ "start": "node dist/index.js",
27
+ "prepack": "node ../../scripts/strip-bundled-deps.js",
28
+ "postpack": "node ../../scripts/strip-bundled-deps.js restore"
27
29
  },
28
30
  "dependencies": {
31
+ "@chkp/mcp-utils": "*",
32
+ "@chkp/quantum-infra": "*",
29
33
  "@modelcontextprotocol/sdk": "^1.26.0",
30
34
  "axios": "^1.13.5",
31
35
  "commander": "^13.1.0",
@@ -33,8 +37,6 @@
33
37
  "zod": "^3.22.4"
34
38
  },
35
39
  "devDependencies": {
36
- "@chkp/mcp-utils": "*",
37
- "@chkp/quantum-infra": "*",
38
40
  "@types/node": "^20.0.0",
39
41
  "dotenv": "^17.2.2",
40
42
  "tsx": "^4.20.5",
@@ -33,7 +33,7 @@
33
33
  "required": false,
34
34
  "hidden": true,
35
35
  "type": "string",
36
- "help": "Alternative to --auth-url. Region code for your deployment: EU, US, STG, or LOCAL. Use this if you know your region and prefer not to copy the full authentication URL"
36
+ "help": "Alternative to --auth-url. Region code for your deployment: EU, US, STG, DEV, or LOCAL. Use this if you know your region and prefer not to copy the full authentication URL"
37
37
  }
38
38
  ]
39
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chkp/documentation-mcp",
3
- "version": "1.4.0",
3
+ "version": "1.4.3",
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",
@@ -23,7 +23,9 @@
23
23
  "build:bundle": "node ../../bundle-mcp.js",
24
24
  "build:tsc": "npx tsc && npx shx chmod +x ./dist/index.js && npx shx cp src/server-config.json dist/",
25
25
  "dev": "tsc --watch",
26
- "start": "node dist/index.js"
26
+ "start": "node dist/index.js",
27
+ "prepack": "node ../../scripts/strip-bundled-deps.js",
28
+ "postpack": "node ../../scripts/strip-bundled-deps.js restore"
27
29
  },
28
30
  "dependencies": {
29
31
  "@modelcontextprotocol/sdk": "^1.26.0",
@@ -33,8 +35,6 @@
33
35
  "zod": "^3.24.4"
34
36
  },
35
37
  "devDependencies": {
36
- "@chkp/mcp-utils": "*",
37
- "@chkp/quantum-infra": "*",
38
38
  "@types/node": "^20.0.0",
39
39
  "dotenv": "^17.2.2",
40
40
  "tsx": "^4.20.5",
@@ -0,0 +1,45 @@
1
+ {
2
+ "name": "@chkp/documentation-mcp",
3
+ "version": "1.4.3",
4
+ "description": "Check Point Documentation Tool Service - API integration with Check Point Documentation Tool",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "bin": {
9
+ "documentation-mcp": "./dist/index.js"
10
+ },
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/CheckPointSW/mcp-servers.git",
14
+ "directory": "packages/documentation-tool"
15
+ },
16
+ "license": "MIT",
17
+ "engines": {
18
+ "node": ">=20.0.0"
19
+ },
20
+ "scripts": {
21
+ "clean": "rimraf dist",
22
+ "build": "npm run build:bundle && npx shx chmod +x ./dist/index.js && npx shx cp src/server-config.json dist/",
23
+ "build:bundle": "node ../../bundle-mcp.js",
24
+ "build:tsc": "npx tsc && npx shx chmod +x ./dist/index.js && npx shx cp src/server-config.json dist/",
25
+ "dev": "tsc --watch",
26
+ "start": "node dist/index.js",
27
+ "prepack": "node ../../scripts/strip-bundled-deps.js",
28
+ "postpack": "node ../../scripts/strip-bundled-deps.js restore"
29
+ },
30
+ "dependencies": {
31
+ "@chkp/mcp-utils": "*",
32
+ "@chkp/quantum-infra": "*",
33
+ "@modelcontextprotocol/sdk": "^1.26.0",
34
+ "commander": "^13.1.0",
35
+ "axios": "^1.13.5",
36
+ "node-machine-id": "^1.1.12",
37
+ "zod": "^3.24.4"
38
+ },
39
+ "devDependencies": {
40
+ "@types/node": "^20.0.0",
41
+ "dotenv": "^17.2.2",
42
+ "tsx": "^4.20.5",
43
+ "typescript": "^5.0.4"
44
+ }
45
+ }