@ansvar/eu-regulations-mcp 0.2.0 → 0.2.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/README.md CHANGED
@@ -318,6 +318,40 @@ We build AI-accelerated threat modeling tools for automotive and financial servi
318
318
 
319
319
  ---
320
320
 
321
+ ## Troubleshooting
322
+
323
+ ### Database Not Found Error
324
+
325
+ If you see `Failed to open database at .../data/regulations.db`:
326
+
327
+ The database is built automatically during installation via the `postinstall` script. If it's missing:
328
+
329
+ ```bash
330
+ # Rebuild the database
331
+ npm run build:db
332
+
333
+ # Or if installed globally/via npx, reinstall
334
+ npm install -g @ansvar/eu-regulations-mcp --force
335
+ ```
336
+
337
+ The database contains all 37 regulations (12MB). It's gitignored in the source repo but built during:
338
+ - `npm install` (postinstall hook)
339
+ - `npm publish` (prepublishOnly hook)
340
+
341
+ ### MCP Server Not Starting
342
+
343
+ Check that you're using Node.js 18 or higher:
344
+
345
+ ```bash
346
+ node --version # Should be v18.0.0 or higher
347
+ ```
348
+
349
+ ### Slow First Query
350
+
351
+ The first query after startup may be slow (~1-2s) as SQLite loads the database into memory. Subsequent queries are fast (<50ms).
352
+
353
+ ---
354
+
321
355
  ## License
322
356
 
323
357
  Apache License 2.0. See [LICENSE](./LICENSE) for details.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ansvar/eu-regulations-mcp",
3
- "version": "0.2.0",
3
+ "version": "0.2.3",
4
4
  "description": "The first open-source MCP server for European cybersecurity regulations. Query DORA, NIS2, GDPR, EU AI Act, and more directly from Claude.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -20,7 +20,8 @@
20
20
  "check-updates": "tsx scripts/check-updates.ts",
21
21
  "sync-versions": "tsx scripts/check-updates.ts --sync",
22
22
  "lint": "eslint src --ext .ts",
23
- "postinstall": "test -f dist/index.js || npm run build"
23
+ "prepublishOnly": "npm run build && npm run build:db",
24
+ "postinstall": "(test -f dist/index.js || npm run build) && (test -f data/regulations.db || npm run build:db)"
24
25
  },
25
26
  "keywords": [
26
27
  "mcp",