Skip to main content
Glama

n8n MCP Server

by jacob-dietle
run-tests.js1.21 kB
/** * Test Runner Script * * This script provides a more reliable way to run Jest tests with proper * ESM support and error handling. */ import { spawn } from 'child_process'; import { fileURLToPath } from 'url'; import { dirname, resolve } from 'path'; // Get the directory of the current module const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); // Set NODE_OPTIONS to ensure proper ESM support process.env.NODE_OPTIONS = '--experimental-vm-modules'; console.log('🧪 Running tests for n8n MCP Server...'); // Get command line arguments to pass to Jest const args = process.argv.slice(2); const jestArgs = ['--config', './jest.config.cjs', ...args]; // Spawn Jest process const jestProcess = spawn('node_modules/.bin/jest', jestArgs, { stdio: 'inherit', cwd: __dirname, env: { ...process.env, NODE_ENV: 'test' } }); // Handle process events jestProcess.on('error', (error) => { console.error('Error running tests:', error); process.exit(1); }); jestProcess.on('close', (code) => { if (code !== 0) { console.error(`Test process exited with code ${code}`); process.exit(code); } console.log('✅ Tests completed successfully'); });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jacob-dietle/n8n-mcp-sse'

If you have feedback or need assistance with the MCP directory API, please join our Discord server