iso27001-mcp 0.7.3 → 0.7.8

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/README.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # iso27001-mcp
2
2
 
3
+ [![Socket Badge](https://badge.socket.dev/npm/package/iso27001-mcp/0.7.8)](https://socket.dev/npm/package/iso27001-mcp/overview/0.7.8)
4
+ [![npm version](https://img.shields.io/npm/v/iso27001-mcp.svg)](https://npmjs.com/package/iso27001-mcp)
5
+ [![Live Demo](https://img.shields.io/badge/demo-live-blue)](https://sushegaad.github.io/MCP-server-for-ISO27001/)
6
+
7
+ **[▶ Live Interactive Demo](https://sushegaad.github.io/MCP-server-for-ISO27001/)**
8
+
3
9
  A stateful [Model Context Protocol](https://modelcontextprotocol.io) (MCP) server that gives Claude a complete ISO 27001:2022 Information Security Management System (ISMS). Ask Claude to run gap assessments, manage risks, generate policies, track evidence, and run audits — all backed by an encrypted SQLite database on your own machine.
4
10
 
5
11
  ```
@@ -42,13 +48,15 @@ Get the server connected to Claude Desktop in five minutes.
42
48
  - **Node.js ≥ 20.11.0** — use [nvm](https://github.com/nvm-sh/nvm) or [Volta](https://volta.sh)
43
49
 
44
50
  ```bash
45
- node --version # should print v20.x or higher (not v22 use v20 LTS)
51
+ node --version # must be v20.x LTS do not publish from Node 22/24
46
52
  ```
47
53
 
54
+ > ⚠️ **Always publish from Node 20.** The native `better-sqlite3-multiple-ciphers` module is compiled against a specific Node ABI. Publishing from Node 24 produces a binary that may fail to load for users on Node 20.
55
+
48
56
  - **Build tools** — needed by the encrypted SQLite native module:
49
57
  - **macOS:** `xcode-select --install`
50
58
  - **Ubuntu/Debian:** `sudo apt-get install build-essential python3`
51
- - **Windows:** `npm install --global windows-build-tools` (run as Administrator)
59
+ - **Windows:** Install [Visual Studio Build Tools](https://visualstudio.microsoft.com/downloads/) "Build Tools for Visual Studio" → check "Desktop development with C++"
52
60
 
53
61
  ### Step 1 — Install from npm
54
62
 
@@ -69,18 +77,11 @@ openssl rand -hex 32 # → copy as DB_ENCRYPTION_KEY
69
77
 
70
78
  ### Step 3 — Generate an API key
71
79
 
72
- ```bash
73
- iso27001-mcp keygen --label "Me" --role admin \
74
- HMAC_SECRET=<your_hmac_secret> \
75
- DB_ENCRYPTION_KEY=<your_db_key> \
76
- DB_PATH=$HOME/.iso27001/isms.db
77
- ```
78
-
79
- Or set the env vars in your shell first:
80
+ Set the environment variables first, then run keygen:
80
81
 
81
82
  ```bash
82
- export HMAC_SECRET=your_hmac_secret
83
- export DB_ENCRYPTION_KEY=your_db_encryption_key
83
+ export HMAC_SECRET=<your_hmac_secret>
84
+ export DB_ENCRYPTION_KEY=<your_db_key>
84
85
  export DB_PATH=$HOME/.iso27001/isms.db
85
86
 
86
87
  iso27001-mcp keygen --label "Me" --role admin
@@ -225,7 +226,7 @@ Every tool call is logged in a tamper-evident audit trail. Admins can query it a
225
226
  - **Build tools** for the native SQLite module:
226
227
  - macOS: `xcode-select --install`
227
228
  - Ubuntu/Debian: `sudo apt-get install build-essential python3`
228
- - Windows: `npm install --global windows-build-tools` (run as Administrator)
229
+ - Windows: Install [Visual Studio Build Tools](https://visualstudio.microsoft.com/downloads/) "Build Tools for Visual Studio" → check "Desktop development with C++"
229
230
 
230
231
  ### Step 1 — Install
231
232
 
package/dist/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  #!/usr/bin/env node
2
- #!/usr/bin/env node
3
2
  "use strict";
4
3
  var __create = Object.create;
5
4
  var __defProp = Object.defineProperty;
@@ -24774,7 +24773,7 @@ var require_package = __commonJS({
24774
24773
  "package.json"(exports2, module2) {
24775
24774
  module2.exports = {
24776
24775
  name: "iso27001-mcp",
24777
- version: "0.7.3",
24776
+ version: "0.7.8",
24778
24777
  description: "Stateful ISO 27001:2022 ISMS management for Claude \u2014 gap analysis, risk register, policies, audits, and evidence tracking via the Model Context Protocol",
24779
24778
  license: "MIT",
24780
24779
  repository: {
@@ -24814,10 +24813,10 @@ var require_package = __commonJS({
24814
24813
  ],
24815
24814
  scripts: {
24816
24815
  build: "tsup",
24817
- postbuild: "cp -r src/seed/policy-templates dist/seed/policy-templates",
24816
+ postbuild: "rm -rf dist/seed && mkdir -p dist/seed && cp -r src/seed/policy-templates dist/seed/policy-templates",
24818
24817
  prepack: "npm run build",
24819
24818
  prepublishOnly: "npm run typecheck && npm test && npm run build",
24820
- postinstall: `node -e "require('better-sqlite3-multiple-ciphers')" 2>/dev/null || echo "\\n\u26A0\uFE0F iso27001-mcp: Native SQLite module failed to load. You may need build tools installed.\\n macOS: xcode-select --install\\n Ubuntu/Debian: sudo apt-get install build-essential python3\\n Windows: npm install --global windows-build-tools\\n See: https://github.com/Sushegaad/MCP-Server-for-ISO27001#prerequisites\\n"`,
24819
+ postinstall: `node -e "require('better-sqlite3-multiple-ciphers')" 2>/dev/null || echo "\\n\u26A0\uFE0F iso27001-mcp: Native SQLite module failed to load. You may need build tools installed.\\n macOS: xcode-select --install\\n Ubuntu/Debian: sudo apt-get install build-essential python3\\n Windows: https://visualstudio.microsoft.com/downloads/ \u2192 Build Tools for Visual Studio \u2192 Desktop development with C++\\n See: https://github.com/Sushegaad/MCP-Server-for-ISO27001#prerequisites\\n"`,
24821
24820
  typecheck: "tsc --noEmit",
24822
24821
  lint: "eslint src --ext .ts",
24823
24822
  test: "vitest run --coverage",
@@ -24836,6 +24835,9 @@ var require_package = __commonJS({
24836
24835
  express: "4.22.1",
24837
24836
  "express-rate-limit": "7.5.1"
24838
24837
  },
24838
+ overrides: {
24839
+ "fast-uri": ">=3.1.2"
24840
+ },
24839
24841
  devDependencies: {
24840
24842
  "@types/better-sqlite3": "7.6.13",
24841
24843
  "@types/express": "4.17.25",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iso27001-mcp",
3
- "version": "0.7.3",
3
+ "version": "0.7.8",
4
4
  "description": "Stateful ISO 27001:2022 ISMS management for Claude — gap analysis, risk register, policies, audits, and evidence tracking via the Model Context Protocol",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -40,10 +40,10 @@
40
40
  ],
41
41
  "scripts": {
42
42
  "build": "tsup",
43
- "postbuild": "cp -r src/seed/policy-templates dist/seed/policy-templates",
43
+ "postbuild": "rm -rf dist/seed && mkdir -p dist/seed && cp -r src/seed/policy-templates dist/seed/policy-templates",
44
44
  "prepack": "npm run build",
45
45
  "prepublishOnly": "npm run typecheck && npm test && npm run build",
46
- "postinstall": "node -e \"require('better-sqlite3-multiple-ciphers')\" 2>/dev/null || echo \"\\n⚠️ iso27001-mcp: Native SQLite module failed to load. You may need build tools installed.\\n macOS: xcode-select --install\\n Ubuntu/Debian: sudo apt-get install build-essential python3\\n Windows: npm install --global windows-build-tools\\n See: https://github.com/Sushegaad/MCP-Server-for-ISO27001#prerequisites\\n\"",
46
+ "postinstall": "node -e \"require('better-sqlite3-multiple-ciphers')\" 2>/dev/null || echo \"\\n⚠️ iso27001-mcp: Native SQLite module failed to load. You may need build tools installed.\\n macOS: xcode-select --install\\n Ubuntu/Debian: sudo apt-get install build-essential python3\\n Windows: https://visualstudio.microsoft.com/downloads/ Build Tools for Visual Studio → Desktop development with C++\\n See: https://github.com/Sushegaad/MCP-Server-for-ISO27001#prerequisites\\n\"",
47
47
  "typecheck": "tsc --noEmit",
48
48
  "lint": "eslint src --ext .ts",
49
49
  "test": "vitest run --coverage",
@@ -62,6 +62,9 @@
62
62
  "express": "4.22.1",
63
63
  "express-rate-limit": "7.5.1"
64
64
  },
65
+ "overrides": {
66
+ "fast-uri": ">=3.1.2"
67
+ },
65
68
  "devDependencies": {
66
69
  "@types/better-sqlite3": "7.6.13",
67
70
  "@types/express": "4.17.25",