- Updated n8n from 1.100.1 to 1.101.1 - Updated n8n-core from 1.99.0 to 1.100.0 - Updated n8n-workflow from 1.97.0 to 1.98.0 - Updated @n8n/n8n-nodes-langchain from 1.99.0 to 1.100.1 - Rebuilt node database with 528 nodes - All validation tests passing - Bumped version to 2.7.12 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
38 lines
1.1 KiB
JavaScript
38 lines
1.1 KiB
JavaScript
#!/usr/bin/env node
|
|
|
|
import { N8NDocumentationMCPServer } from '../src/mcp/server';
|
|
|
|
async function testSimple() {
|
|
const server = new N8NDocumentationMCPServer();
|
|
await new Promise(resolve => setTimeout(resolve, 1000));
|
|
|
|
// Just test one query
|
|
const result = await server.executeTool('search_nodes', {
|
|
query: 'slak',
|
|
mode: 'FUZZY',
|
|
limit: 5
|
|
});
|
|
|
|
console.log('Query: "slak" (FUZZY mode)');
|
|
console.log(`Results: ${result.results.length}`);
|
|
|
|
if (result.results.length === 0) {
|
|
// Let's check with a lower threshold
|
|
const serverAny = server as any;
|
|
const slackNode = {
|
|
node_type: 'nodes-base.slack',
|
|
display_name: 'Slack',
|
|
description: 'Consume Slack API'
|
|
};
|
|
const score = serverAny.calculateFuzzyScore(slackNode, 'slak');
|
|
console.log(`\nSlack node score for "slak": ${score}`);
|
|
console.log('Current threshold: 400');
|
|
console.log('Should it match?', score >= 400 ? 'YES' : 'NO');
|
|
} else {
|
|
result.results.forEach((r: any, i: number) => {
|
|
console.log(`${i + 1}. ${r.displayName}`);
|
|
});
|
|
}
|
|
}
|
|
|
|
testSimple().catch(console.error); |