@chkp/documentation-mcp 1.3.0 → 1.4.2
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/CHANGELOG.md +6 -0
- package/dist/index.js +10 -11
- package/dist/package.json +6 -4
- package/dist/server-config.json +1 -1
- package/package.json +4 -4
- package/package.json.bak +45 -0
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -758,18 +758,11 @@ async function launchHTTPServer(config, serverModule2, port) {
|
|
|
758
758
|
} else if (req.url === "/health" || req.url === "/status") {
|
|
759
759
|
res.writeHead(200, { "Content-Type": "application/json" });
|
|
760
760
|
const sessionCount = serverModule2.sessionManager.getSessionCount();
|
|
761
|
-
const sessions = serverModule2.sessionManager.getAllSessions().map((session) => ({
|
|
762
|
-
id: session.sessionId,
|
|
763
|
-
createdAt: session.createdAt,
|
|
764
|
-
lastActive: session.lastActive
|
|
765
|
-
// Don't include potentially sensitive metadata
|
|
766
|
-
}));
|
|
767
761
|
res.end(JSON.stringify({
|
|
768
762
|
status: "ok",
|
|
769
763
|
server: config.name,
|
|
770
764
|
version: serverModule2.pkg.version,
|
|
771
|
-
activeSessions: sessionCount
|
|
772
|
-
sessions
|
|
765
|
+
activeSessions: sessionCount
|
|
773
766
|
}));
|
|
774
767
|
} else {
|
|
775
768
|
res.writeHead(404, { "Content-Type": "text/plain" });
|
|
@@ -1567,7 +1560,7 @@ var Settings = class _Settings {
|
|
|
1567
1560
|
return "STG";
|
|
1568
1561
|
return void 0;
|
|
1569
1562
|
}
|
|
1570
|
-
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 } = {}) {
|
|
1571
1564
|
this.region = "EU";
|
|
1572
1565
|
this.devPort = "8006";
|
|
1573
1566
|
this.gatewayUrl = "";
|
|
@@ -1594,6 +1587,7 @@ var Settings = class _Settings {
|
|
|
1594
1587
|
this.managementHost = managementHost;
|
|
1595
1588
|
this.managementPort = managementPort;
|
|
1596
1589
|
this.cloudInfraToken = cloudInfraToken;
|
|
1590
|
+
this.cloudConnected = cloudConnected;
|
|
1597
1591
|
this.clientId = clientId;
|
|
1598
1592
|
this.secretKey = secretKey;
|
|
1599
1593
|
this.region = this.normalizeRegion(region) || "EU";
|
|
@@ -1617,7 +1611,7 @@ var Settings = class _Settings {
|
|
|
1617
1611
|
* Check if the provided string is a valid region
|
|
1618
1612
|
*/
|
|
1619
1613
|
isValidRegion(region) {
|
|
1620
|
-
return ["EU", "US", "STG", "LOCAL"].includes(region.toUpperCase());
|
|
1614
|
+
return ["EU", "US", "STG", "DEV", "LOCAL"].includes(region.toUpperCase());
|
|
1621
1615
|
}
|
|
1622
1616
|
/**
|
|
1623
1617
|
* Get the base gateway URL for a given region
|
|
@@ -1629,6 +1623,7 @@ var Settings = class _Settings {
|
|
|
1629
1623
|
case "US":
|
|
1630
1624
|
return "https://cloudinfra-gw-us.portal.checkpoint.com";
|
|
1631
1625
|
case "STG":
|
|
1626
|
+
case "DEV":
|
|
1632
1627
|
case "LOCAL":
|
|
1633
1628
|
return "https://dev-cloudinfra-gw.kube1.iaas.checkpoint.com";
|
|
1634
1629
|
default:
|
|
@@ -1725,6 +1720,7 @@ var Settings = class _Settings {
|
|
|
1725
1720
|
managementHost: args.managementHost,
|
|
1726
1721
|
managementPort: args.managementPort,
|
|
1727
1722
|
cloudInfraToken: args.cloudInfraToken,
|
|
1723
|
+
cloudConnected: args.cloudConnected,
|
|
1728
1724
|
clientId: args.clientId,
|
|
1729
1725
|
secretKey: args.secretKey,
|
|
1730
1726
|
region: typeof args.region === "string" ? args.region.trim().toUpperCase() : void 0,
|
|
@@ -1750,6 +1746,7 @@ var Settings = class _Settings {
|
|
|
1750
1746
|
managementHost: getHeaderValue(headers, "MANAGEMENT-HOST"),
|
|
1751
1747
|
managementPort: getHeaderValue(headers, "MANAGEMENT-PORT"),
|
|
1752
1748
|
cloudInfraToken: getHeaderValue(headers, "CLOUD-INFRA-TOKEN"),
|
|
1749
|
+
cloudConnected: getHeaderValue(headers, "CLOUD-CONNECTED"),
|
|
1753
1750
|
clientId: getHeaderValue(headers, "CLIENT-ID"),
|
|
1754
1751
|
secretKey: getHeaderValue(headers, "SECRET-KEY"),
|
|
1755
1752
|
region: getHeaderValue(headers, "REGION"),
|
|
@@ -1782,6 +1779,7 @@ var Settings = class _Settings {
|
|
|
1782
1779
|
managementHost: extractedValues.managementHost,
|
|
1783
1780
|
managementPort: extractedValues.managementPort,
|
|
1784
1781
|
cloudInfraToken: extractedValues.cloudInfraToken,
|
|
1782
|
+
cloudConnected: extractedValues.cloudConnected === "true",
|
|
1785
1783
|
clientId: extractedValues.clientId,
|
|
1786
1784
|
secretKey: extractedValues.secretKey,
|
|
1787
1785
|
region: extractedValues.region?.toUpperCase(),
|
|
@@ -1895,7 +1893,8 @@ var DocumentationToolAPIManager = class _DocumentationToolAPIManager {
|
|
|
1895
1893
|
if (this.settings.region === "LOCAL") {
|
|
1896
1894
|
return `http://localhost:${this.settings.devPort || "8006"}`;
|
|
1897
1895
|
}
|
|
1898
|
-
|
|
1896
|
+
const appPath = this.settings.region === "DEV" ? "dev-ai-actions" : "ai-actions";
|
|
1897
|
+
return `${this.settings.getCloudInfraGateway()}/app/${appPath}`;
|
|
1899
1898
|
}
|
|
1900
1899
|
async callApi(method, uri, data) {
|
|
1901
1900
|
const token = await this.getToken();
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chkp/documentation-mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.2",
|
|
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",
|
package/dist/server-config.json
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "1.4.2",
|
|
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",
|
package/package.json.bak
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@chkp/documentation-mcp",
|
|
3
|
+
"version": "1.4.2",
|
|
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
|
+
}
|