diff --git a/README.md b/README.md index c378944..29b10e7 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,17 @@ A Model Context Protocol (MCP) server that provides AI assistants with comprehensive access to n8n node documentation, properties, and operations. Deploy in minutes to give Claude and other AI assistants deep knowledge about n8n's 525+ workflow automation nodes. +## 🚨 Important: Sharing Guidelines + +This project is MIT licensed and free for everyone to use. However: + +- **āœ… DO**: Share this repository freely with proper attribution +- **āœ… DO**: Include a direct link to https://github.com/czlonkowski/n8n-mcp in your first post/video +- **āŒ DON'T**: Gate this free tool behind engagement requirements (likes, follows, comments) +- **āŒ DON'T**: Use this project for engagement farming on social media + +This tool was created to benefit everyone in the n8n community without friction. Please respect the MIT license spirit by keeping it accessible to all. + ## Overview n8n-MCP serves as a bridge between n8n's workflow automation platform and AI models, enabling them to understand and work with n8n nodes effectively. It provides structured access to: diff --git a/scripts/test-database-adapter.js b/scripts/test-database-adapter.js deleted file mode 100755 index 1d50c68..0000000 --- a/scripts/test-database-adapter.js +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env node - -const { createDatabaseAdapter } = require('../dist/database/database-adapter'); -const path = require('path'); - -async function testDatabaseAdapter() { - console.log('Testing database adapter initialization...\n'); - - const dbPath = path.join(__dirname, '../data/nodes.db'); - console.log('Database path:', dbPath); - - try { - console.log('Creating database adapter...'); - const adapter = await createDatabaseAdapter(dbPath); - - console.log('\nāœ… Database adapter created successfully!'); - - // Test a simple query - console.log('\nTesting database query...'); - const stmt = adapter.prepare('SELECT COUNT(*) as count FROM nodes'); - const result = stmt.get(); - console.log(`āœ… Database contains ${result.count} nodes`); - - // Check FTS5 support - console.log('\nChecking FTS5 support...'); - const hasFTS5 = adapter.checkFTS5Support(); - console.log(`FTS5 support: ${hasFTS5 ? 'āœ… Available' : 'āŒ Not available'}`); - - adapter.close(); - console.log('\nāœ… All tests passed!'); - } catch (error) { - console.error('\nāŒ Error:', error.message); - console.error('Stack:', error.stack); - process.exit(1); - } -} - -testDatabaseAdapter(); \ No newline at end of file diff --git a/scripts/test-sqljs-fallback.js b/scripts/test-sqljs-fallback.js deleted file mode 100755 index e884235..0000000 --- a/scripts/test-sqljs-fallback.js +++ /dev/null @@ -1,43 +0,0 @@ -#!/usr/bin/env node - -// Force sql.js usage by temporarily hiding better-sqlite3 -const Module = require('module'); -const originalRequire = Module.prototype.require; - -Module.prototype.require = function(id) { - if (id === 'better-sqlite3') { - throw new Error('Simulating better-sqlite3 not available (NODE_MODULE_VERSION mismatch)'); - } - return originalRequire.apply(this, arguments); -}; - -const { createDatabaseAdapter } = require('../dist/database/database-adapter'); -const path = require('path'); - -async function testSqlJsFallback() { - console.log('Testing sql.js fallback...\n'); - - const dbPath = path.join(__dirname, '../data/nodes.db'); - - try { - console.log('Creating database adapter (better-sqlite3 disabled)...'); - const adapter = await createDatabaseAdapter(dbPath); - - console.log('\nāœ… Database adapter created successfully with sql.js!'); - - // Test a simple query - console.log('\nTesting database query...'); - const stmt = adapter.prepare('SELECT COUNT(*) as count FROM nodes'); - const result = stmt.get(); - console.log(`āœ… Database contains ${result.count} nodes`); - - adapter.close(); - console.log('\nāœ… sql.js fallback works correctly!'); - } catch (error) { - console.error('\nāŒ Error:', error.message); - console.error('Stack:', error.stack); - process.exit(1); - } -} - -testSqlJsFallback(); \ No newline at end of file diff --git a/scripts/test-wasm-resolution.js b/scripts/test-wasm-resolution.js deleted file mode 100755 index 96a61ae..0000000 --- a/scripts/test-wasm-resolution.js +++ /dev/null @@ -1,52 +0,0 @@ -#!/usr/bin/env node - -const path = require('path'); -const fs = require('fs'); - -console.log('Testing WASM file resolution...\n'); - -// Show current environment -console.log('Current directory:', process.cwd()); -console.log('Script directory:', __dirname); -console.log('Node version:', process.version); -console.log(''); - -// Test different path resolutions -const testPaths = [ - // Local development path - path.join(__dirname, '../node_modules/sql.js/dist/sql-wasm.wasm'), - // When installed as npm package - path.join(__dirname, '../../sql.js/dist/sql-wasm.wasm'), - // Alternative npm package path - path.join(process.cwd(), 'node_modules/sql.js/dist/sql-wasm.wasm'), -]; - -console.log('Checking potential WASM file locations:'); -testPaths.forEach((testPath, index) => { - const exists = fs.existsSync(testPath); - console.log(`${index + 1}. ${testPath}`); - console.log(` Exists: ${exists ? 'āœ…' : 'āŒ'}`); -}); - -// Try require.resolve -console.log('\nTrying require.resolve:'); -try { - const wasmPath = require.resolve('sql.js/dist/sql-wasm.wasm'); - console.log('āœ… Found via require.resolve:', wasmPath); - console.log(' Exists:', fs.existsSync(wasmPath) ? 'āœ…' : 'āŒ'); -} catch (e) { - console.log('āŒ Failed to resolve via require.resolve:', e.message); -} - -// Try to find sql.js package location -console.log('\nTrying to find sql.js package:'); -try { - const sqlJsPath = require.resolve('sql.js'); - console.log('āœ… Found sql.js at:', sqlJsPath); - const sqlJsDir = path.dirname(sqlJsPath); - const wasmFromSqlJs = path.join(sqlJsDir, '../dist/sql-wasm.wasm'); - console.log(' Derived WASM path:', wasmFromSqlJs); - console.log(' Exists:', fs.existsSync(wasmFromSqlJs) ? 'āœ…' : 'āŒ'); -} catch (e) { - console.log('āŒ Failed to find sql.js package:', e.message); -} \ No newline at end of file diff --git a/test-claude-desktop-config.json b/test-claude-desktop-config.json deleted file mode 100644 index 515a42b..0000000 --- a/test-claude-desktop-config.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "mcpServers": { - "n8n-mcp-local": { - "command": "node", - "args": ["/Users/romualdczlonkowski/Pliki/n8n-mcp/n8n-mcp/dist/mcp/index.js"], - "env": { - "MCP_MODE": "stdio", - "LOG_LEVEL": "error", - "DISABLE_CONSOLE_OUTPUT": "true" - } - } - } -} \ No newline at end of file