@chkp/policy-insights-mcp 0.1.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.
- package/CHANGELOG.md +7 -0
- package/README.md +296 -0
- package/dist/index.js +3192 -0
- package/dist/package.json +49 -0
- package/dist/server-config.json +56 -0
- package/package.json +49 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@chkp/policy-insights-mcp",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"bin": {
|
|
5
|
+
"policy-insights-mcp": "dist/index.js"
|
|
6
|
+
},
|
|
7
|
+
"description": "Official MCP server for Check Point Policy Insights",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/CheckPointSW/mcp-servers.git",
|
|
11
|
+
"directory": "packages/policy-insights"
|
|
12
|
+
},
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"type": "module",
|
|
15
|
+
"main": "dist/index.js",
|
|
16
|
+
"types": "dist/index.d.ts",
|
|
17
|
+
"scripts": {
|
|
18
|
+
"clean": "rimraf dist",
|
|
19
|
+
"build": "npm run build:bundle && npx shx chmod +x ./dist/index.js && npx shx cp src/server-config.json dist/",
|
|
20
|
+
"build:bundle": "node ../../bundle-mcp.js",
|
|
21
|
+
"build:tsc": "npx tsc && npx shx chmod +x ./dist/index.js && npx shx cp src/server-config.json dist/",
|
|
22
|
+
"dev": "tsc --watch",
|
|
23
|
+
"start": "node dist/index.js"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
27
|
+
"axios": "^1.13.5",
|
|
28
|
+
"commander": "^13.1.0",
|
|
29
|
+
"node-machine-id": "^1.1.12",
|
|
30
|
+
"zod": "^3.22.4"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@chkp/mcp-utils": "*",
|
|
34
|
+
"@chkp/quantum-infra": "*",
|
|
35
|
+
"@types/node": "^22.15.2",
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
37
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
38
|
+
"eslint": "^8.57.0",
|
|
39
|
+
"eslint-config-prettier": "^9.1.0",
|
|
40
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
41
|
+
"prettier": "^3.6.2",
|
|
42
|
+
"typescript": "^5.8.3"
|
|
43
|
+
},
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=20.0.0"
|
|
46
|
+
},
|
|
47
|
+
"keywords": [],
|
|
48
|
+
"author": ""
|
|
49
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "MCP for Policy Insights",
|
|
3
|
+
"description": "Policy Insights analyzes Access Control policies and network traffic to identify opportunities for optimization. It examines traffic patterns and policy configurations, and suggests modifications to improve your security posture.\\\\n\\\\n## Key Benefits\\\\n- Reduces attack surface by making rules more restrictive and eliminating unnecessary traffic permissions\\\\n- Simplifies access control policies for easier management and auditing. Policy Insights automatically generates intelligent insights to streamline network security. It helps narrow down allowed traffic, remove unused objects and rules, and reduce potential threats, simplifying policy management.",
|
|
4
|
+
"options": [
|
|
5
|
+
{
|
|
6
|
+
"flag": "--s1c-url <s1c url>",
|
|
7
|
+
"description": "S1C URL",
|
|
8
|
+
"env": "S1C_URL",
|
|
9
|
+
"type": "string",
|
|
10
|
+
"help": "Smart-1 Cloud URL. Required for Smart-1 Cloud deployments, leave empty for on-premises. Found in your Smart-1 Cloud portal under your tenant settings. Example: https://cloudinfra-gw-us.portal.checkpoint.com/your-tenant-id/web_api"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"flag": "--api-key <key>",
|
|
14
|
+
"description": "API key",
|
|
15
|
+
"env": "API_KEY",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"help": "API Key for authentication. Required for both on-premises and Smart-1 Cloud. Generate from SmartConsole: Manage & Settings → Blades → Management API → Add API Key"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"flag": "--cloud-infra-token <key>",
|
|
21
|
+
"description": "Cloud Infra token",
|
|
22
|
+
"env": "CLOUD_INFRA_TOKEN",
|
|
23
|
+
"type": "string",
|
|
24
|
+
"hidden": true
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"flag": "--username <username>",
|
|
28
|
+
"description": "Username for on-prem authentication",
|
|
29
|
+
"env": "USERNAME",
|
|
30
|
+
"type": "string",
|
|
31
|
+
"help": "Username for on-premises authentication. Required only when using username/password login instead of an API key. Leave empty for Smart-1 Cloud"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"flag": "--password <password>",
|
|
35
|
+
"description": "Password for on-prem authentication",
|
|
36
|
+
"env": "PASSWORD",
|
|
37
|
+
"type": "string",
|
|
38
|
+
"help": "Password for on-premises authentication. Required only when using username/password login instead of an API key. Leave empty for Smart-1 Cloud"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"flag": "--management-host <host>",
|
|
42
|
+
"description": "Management host (for on-prem)",
|
|
43
|
+
"env": "MANAGEMENT_HOST",
|
|
44
|
+
"type": "string",
|
|
45
|
+
"help": "Hostname or IP address of your on-premises management server. Required only for on-premises deployments, leave empty for Smart-1 Cloud"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"flag": "--management-port <port>",
|
|
49
|
+
"description": "Port for on-prem API",
|
|
50
|
+
"env": "MANAGEMENT_PORT",
|
|
51
|
+
"default": "443",
|
|
52
|
+
"type": "string",
|
|
53
|
+
"help": "API port of your on-premises management server. Default is 443. Leave empty for Smart-1 Cloud"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@chkp/policy-insights-mcp",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"bin": {
|
|
5
|
+
"policy-insights-mcp": "dist/index.js"
|
|
6
|
+
},
|
|
7
|
+
"description": "Official MCP server for Check Point Policy Insights",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/CheckPointSW/mcp-servers.git",
|
|
11
|
+
"directory": "packages/policy-insights"
|
|
12
|
+
},
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"type": "module",
|
|
15
|
+
"main": "dist/index.js",
|
|
16
|
+
"types": "dist/index.d.ts",
|
|
17
|
+
"scripts": {
|
|
18
|
+
"clean": "rimraf dist",
|
|
19
|
+
"build": "npm run build:bundle && npx shx chmod +x ./dist/index.js && npx shx cp src/server-config.json dist/",
|
|
20
|
+
"build:bundle": "node ../../bundle-mcp.js",
|
|
21
|
+
"build:tsc": "npx tsc && npx shx chmod +x ./dist/index.js && npx shx cp src/server-config.json dist/",
|
|
22
|
+
"dev": "tsc --watch",
|
|
23
|
+
"start": "node dist/index.js"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
27
|
+
"commander": "^13.1.0",
|
|
28
|
+
"axios": "^1.13.5",
|
|
29
|
+
"node-machine-id": "^1.1.12",
|
|
30
|
+
"zod": "^3.24.4"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@chkp/mcp-utils": "*",
|
|
34
|
+
"@chkp/quantum-infra": "*",
|
|
35
|
+
"@types/node": "^22.15.2",
|
|
36
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
37
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
38
|
+
"eslint": "^8.57.0",
|
|
39
|
+
"eslint-config-prettier": "^9.1.0",
|
|
40
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
41
|
+
"prettier": "^3.6.2",
|
|
42
|
+
"typescript": "^5.8.3"
|
|
43
|
+
},
|
|
44
|
+
"engines": {
|
|
45
|
+
"node": ">=20.0.0"
|
|
46
|
+
},
|
|
47
|
+
"keywords": [],
|
|
48
|
+
"author": ""
|
|
49
|
+
}
|