mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-01-30 06:22:04 +00:00
Fixed critical startup crash when server falls back to sql.js adapter due to Node.js version mismatches. Problem: - better-sqlite3 fails to load when Node runtime version differs from build version - Server falls back to sql.js (pure JS, no native dependencies) - Database health check crashed with "no such module: fts5" - Server exits immediately, preventing Claude Desktop connection Solution: - Wrapped FTS5 health check in try-catch block - Logs warning when FTS5 not available - Server continues with fallback search (LIKE queries) - Graceful degradation: works with any Node.js version Impact: - Server now starts successfully with sql.js fallback - Works with Node v20 (Claude Desktop) even when built with Node v22 - Clear warnings about FTS5 unavailability - Users can choose: sql.js (slower, works everywhere) or rebuild better-sqlite3 (faster) Files Changed: - src/mcp/server.ts: Added try-catch around FTS5 health check (lines 299-317) Testing: - ✅ Tested with Node v20.17.0 (Claude Desktop) - ✅ Tested with Node v22.17.0 (build version) - ✅ All 6 startup checkpoints pass - ✅ Database health check passes with warning Fixes: Claude Desktop connection failures with Node.js version mismatches Conceived by Romuald Członkowski - https://www.aiadvisors.pl/en
25 lines
561 B
JSON
25 lines
561 B
JSON
{
|
|
"name": "n8n-mcp-runtime",
|
|
"version": "2.22.10",
|
|
"description": "n8n MCP Server Runtime Dependencies Only",
|
|
"private": true,
|
|
"dependencies": {
|
|
"@modelcontextprotocol/sdk": "^1.13.2",
|
|
"@supabase/supabase-js": "^2.57.4",
|
|
"express": "^5.1.0",
|
|
"express-rate-limit": "^7.1.5",
|
|
"dotenv": "^16.5.0",
|
|
"lru-cache": "^11.2.1",
|
|
"sql.js": "^1.13.0",
|
|
"tslib": "^2.6.2",
|
|
"uuid": "^10.0.0",
|
|
"axios": "^1.7.7"
|
|
},
|
|
"engines": {
|
|
"node": ">=16.0.0"
|
|
},
|
|
"optionalDependencies": {
|
|
"better-sqlite3": "^11.10.0"
|
|
}
|
|
}
|