mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-04-05 17:13:08 +00:00
feat: add n8n_generate_workflow tool for hosted workflow generation
Add new MCP tool that enables AI-powered workflow generation from natural language descriptions. Uses handler delegation pattern — hosting environments inject a GenerateWorkflowHandler via EngineOptions, self-hosted instances receive a hosted-only informational response. Handler flows through N8NMCPEngine → SingleSessionHTTPServer → N8NDocumentationMCPServer with helpers for createWorkflow, validateWorkflow, autofixWorkflow, and getWorkflow. Includes full tool documentation, tests, and corrected tools overview count. Conceived by Romuald Członkowski - https://www.aiadvisors.pl/en Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
5
dist/services/n8n-validation.d.ts
vendored
5
dist/services/n8n-validation.d.ts
vendored
@@ -30,10 +30,10 @@ export declare const workflowNodeSchema: z.ZodObject<{
|
||||
maxTries?: number | undefined;
|
||||
waitBetweenTries?: number | undefined;
|
||||
alwaysOutputData?: boolean | undefined;
|
||||
executeOnce?: boolean | undefined;
|
||||
disabled?: boolean | undefined;
|
||||
notes?: string | undefined;
|
||||
notesInFlow?: boolean | undefined;
|
||||
executeOnce?: boolean | undefined;
|
||||
}, {
|
||||
type: string;
|
||||
id: string;
|
||||
@@ -47,10 +47,10 @@ export declare const workflowNodeSchema: z.ZodObject<{
|
||||
maxTries?: number | undefined;
|
||||
waitBetweenTries?: number | undefined;
|
||||
alwaysOutputData?: boolean | undefined;
|
||||
executeOnce?: boolean | undefined;
|
||||
disabled?: boolean | undefined;
|
||||
notes?: string | undefined;
|
||||
notesInFlow?: boolean | undefined;
|
||||
executeOnce?: boolean | undefined;
|
||||
}>;
|
||||
export declare const workflowConnectionSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
||||
main: z.ZodOptional<z.ZodArray<z.ZodArray<z.ZodObject<{
|
||||
@@ -413,6 +413,7 @@ export declare function cleanWorkflowForCreate(workflow: Partial<Workflow>): Par
|
||||
export declare function cleanWorkflowForUpdate(workflow: Workflow): Partial<Workflow>;
|
||||
export declare function validateWorkflowStructure(workflow: Partial<Workflow>): string[];
|
||||
export declare function hasWebhookTrigger(workflow: Workflow): boolean;
|
||||
export declare function validateConditionNodeStructure(node: WorkflowNode): string[];
|
||||
export declare function validateFilterBasedNodeMetadata(node: WorkflowNode): string[];
|
||||
export declare function validateOperatorStructure(operator: any, path: string): string[];
|
||||
export declare function getWebhookUrl(workflow: Workflow): string | null;
|
||||
|
||||
Reference in New Issue
Block a user