mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-02-06 05:23:08 +00:00
fix: integrate webhook autofixer with MCP server and improve template sanitization
- Register n8n_autofix_workflow handler in MCP server - Export n8nAutofixWorkflowDoc in tool documentation indices - Use normalizeNodeType utility in workflow validator for consistent type handling - Add defensive null checks in template sanitizer to prevent runtime errors - Update workflow validator test to handle new error message formats These changes complete the webhook autofixer integration, ensuring the tool is properly exposed through the MCP server and documentation system. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -516,6 +516,7 @@ export class N8NDocumentationMCPServer {
|
||||
case 'n8n_update_full_workflow':
|
||||
case 'n8n_delete_workflow':
|
||||
case 'n8n_validate_workflow':
|
||||
case 'n8n_autofix_workflow':
|
||||
case 'n8n_get_execution':
|
||||
case 'n8n_delete_execution':
|
||||
validationResult = ToolValidation.validateWorkflowId(args);
|
||||
@@ -828,6 +829,11 @@ export class N8NDocumentationMCPServer {
|
||||
await this.ensureInitialized();
|
||||
if (!this.repository) throw new Error('Repository not initialized');
|
||||
return n8nHandlers.handleValidateWorkflow(args, this.repository, this.instanceContext);
|
||||
case 'n8n_autofix_workflow':
|
||||
this.validateToolParams(name, args, ['id']);
|
||||
await this.ensureInitialized();
|
||||
if (!this.repository) throw new Error('Repository not initialized');
|
||||
return n8nHandlers.handleAutofixWorkflow(args, this.repository, this.instanceContext);
|
||||
case 'n8n_trigger_webhook_workflow':
|
||||
this.validateToolParams(name, args, ['webhookUrl']);
|
||||
return n8nHandlers.handleTriggerWebhookWorkflow(args, this.instanceContext);
|
||||
|
||||
Reference in New Issue
Block a user