n8n-mcp
Version:
Integration between n8n workflow automation and Model Context Protocol (MCP)
41 lines • 2.36 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const server_1 = require("../mcp/server");
async function testToolsDocumentation() {
const server = new server_1.N8NDocumentationMCPServer();
console.log('=== Testing tools_documentation tool ===\n');
console.log('1. Testing without parameters (quick reference):');
console.log('----------------------------------------');
const quickRef = await server.executeTool('tools_documentation', {});
console.log(quickRef);
console.log('\n');
console.log('2. Testing overview with essentials:');
console.log('----------------------------------------');
const overviewEssentials = await server.executeTool('tools_documentation', { topic: 'overview' });
console.log(overviewEssentials);
console.log('\n');
console.log('3. Testing overview with full depth:');
console.log('----------------------------------------');
const overviewFull = await server.executeTool('tools_documentation', { topic: 'overview', depth: 'full' });
console.log(overviewFull.substring(0, 500) + '...\n');
console.log('4. Testing search_nodes with essentials:');
console.log('----------------------------------------');
const searchNodesEssentials = await server.executeTool('tools_documentation', { topic: 'search_nodes' });
console.log(searchNodesEssentials);
console.log('\n');
console.log('5. Testing search_nodes with full depth:');
console.log('----------------------------------------');
const searchNodesFull = await server.executeTool('tools_documentation', { topic: 'search_nodes', depth: 'full' });
console.log(searchNodesFull.substring(0, 800) + '...\n');
console.log('6. Testing non-existent tool:');
console.log('----------------------------------------');
const nonExistent = await server.executeTool('tools_documentation', { topic: 'fake_tool' });
console.log(nonExistent);
console.log('\n');
console.log('7. Testing n8n_update_partial_workflow with essentials:');
console.log('----------------------------------------');
const updatePartial = await server.executeTool('tools_documentation', { topic: 'n8n_update_partial_workflow' });
console.log(updatePartial);
}
testToolsDocumentation().catch(console.error);
//# sourceMappingURL=test-tools-documentation.js.map