Files
wehub-resource-sync 409e92d6ae
Build and Push Docker Images / Build Docker Image (push) Has been cancelled
Build and Push Docker Images / Build Railway Docker Image (push) Has been cancelled
Build and Publish n8n Docker Image / test-image (push) Has been cancelled
Dependency Compatibility Check / Fresh Install Dependency Check (push) Has been cancelled
Build and Publish n8n Docker Image / build-and-push (push) Has been cancelled
Build and Publish n8n Docker Image / create-release (push) Has been cancelled
Automated Release / Detect Version Change (push) Has been cancelled
Automated Release / Generate Release Notes (push) Has been cancelled
Automated Release / Create GitHub Release (push) Has been cancelled
Automated Release / Package MCPB Bundle (push) Has been cancelled
Automated Release / Build and Verify (push) Has been cancelled
Automated Release / Publish to NPM (push) Has been cancelled
Automated Release / Build and Push Docker Images (push) Has been cancelled
Automated Release / Update Documentation (push) Has been cancelled
Automated Release / Notify Release Completion (push) Has been cancelled
Secret Scan / secretlint (push) Has been cancelled
Test Suite / test (push) Has been cancelled
Test Suite / cjs-runtime (push) Has been cancelled
Test Suite / publish-results (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:41:06 +08:00

47 lines
1.5 KiB
TypeScript

#\!/usr/bin/env node
import { N8NDocumentationMCPServer } from '../src/mcp/server';
async function testHttpSearch() {
const server = new N8NDocumentationMCPServer();
await new Promise(resolve => setTimeout(resolve, 1000));
console.log('Testing search for "http"...\n');
const result = await server.executeTool('search_nodes', {
query: 'http',
limit: 50 // Get more results to see where HTTP Request is
});
console.log(`Total results: ${result.results.length}\n`);
// Find HTTP Request node in results
const httpRequestIndex = result.results.findIndex((r: any) =>
r.nodeType === 'nodes-base.httpRequest'
);
if (httpRequestIndex === -1) {
console.log('❌ HTTP Request node NOT FOUND in results\!');
} else {
console.log(`✅ HTTP Request found at position ${httpRequestIndex + 1}`);
}
console.log('\nTop 10 results:');
result.results.slice(0, 10).forEach((r: any, i: number) => {
console.log(`${i + 1}. ${r.nodeType} - ${r.displayName}`);
});
// Also check LIKE search directly
console.log('\n\nTesting LIKE search fallback:');
const serverAny = server as any;
const likeResult = await serverAny.searchNodesLIKE('http', 20);
console.log(`LIKE search found ${likeResult.results.length} results`);
console.log('Top 5 LIKE results:');
likeResult.results.slice(0, 5).forEach((r: any, i: number) => {
console.log(`${i + 1}. ${r.nodeType} - ${r.displayName}`);
});
}
testHttpSearch().catch(console.error);