Skip to main content
Glama

n8n-MCP

by 88-888
test-package-info.jsβ€’1.08 kB
#!/usr/bin/env node const { NodeSourceExtractor } = require('../dist/utils/node-source-extractor'); async function testPackageInfo() { console.log('πŸ§ͺ Testing Package Info Extraction\n'); const extractor = new NodeSourceExtractor(); const testNodes = [ 'n8n-nodes-base.Slack', 'n8n-nodes-base.HttpRequest', 'n8n-nodes-base.Function' ]; for (const nodeType of testNodes) { console.log(`\nπŸ“¦ Testing ${nodeType}:`); try { const result = await extractor.extractNodeSource(nodeType); console.log(` - Source Code: ${result.sourceCode ? 'βœ…' : '❌'} (${result.sourceCode?.length || 0} bytes)`); console.log(` - Credential Code: ${result.credentialCode ? 'βœ…' : '❌'} (${result.credentialCode?.length || 0} bytes)`); console.log(` - Package Name: ${result.packageInfo?.name || '❌ undefined'}`); console.log(` - Package Version: ${result.packageInfo?.version || '❌ undefined'}`); } catch (error) { console.log(` ❌ Error: ${error.message}`); } } } testPackageInfo().catch(console.error);

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/88-888/n8n-mcp'

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