Files
n8n-mcp/tests/test-debug-enhanced.js
czlonkowski 3d7fdeba02 feat: Complete overhaul to enhanced documentation-only MCP server
- Removed all workflow execution capabilities per user requirements
- Implemented enhanced documentation extraction with operations and API mappings
- Fixed credential code extraction for all nodes
- Fixed package info extraction (name and version)
- Enhanced operations parser to handle n8n markdown format
- Fixed documentation search to prioritize app nodes over trigger nodes
- Comprehensive test coverage for Slack node extraction
- All node information now includes:
  - Complete operations list (42 for Slack)
  - API method mappings with documentation URLs
  - Source code and credential definitions
  - Package metadata
  - Related resources and templates

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
2025-06-08 11:07:51 +00:00

38 lines
1.2 KiB
JavaScript

#!/usr/bin/env node
const { EnhancedDocumentationFetcher } = require('../dist/utils/enhanced-documentation-fetcher');
async function debugTest() {
console.log('=== Debug Enhanced Documentation ===\n');
const fetcher = new EnhancedDocumentationFetcher();
try {
await fetcher.ensureDocsRepository();
// Test Slack documentation parsing
console.log('Testing Slack documentation...');
const slackDoc = await fetcher.getEnhancedNodeDocumentation('n8n-nodes-base.slack');
if (slackDoc) {
console.log('\nSlack Documentation:');
console.log('- Operations found:', slackDoc.operations?.length || 0);
// Show raw markdown around operations section
const operationsIndex = slackDoc.markdown.indexOf('## Operations');
if (operationsIndex > -1) {
console.log('\nRaw markdown around Operations section:');
console.log('---');
console.log(slackDoc.markdown.substring(operationsIndex, operationsIndex + 1000));
console.log('---');
}
}
} catch (error) {
console.error('Error:', error);
} finally {
await fetcher.cleanup();
}
}
debugTest().catch(console.error);