mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-03-31 22:53:07 +00:00
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>
29 lines
1.0 KiB
TypeScript
29 lines
1.0 KiB
TypeScript
interface ExpressionValidationResult {
|
|
valid: boolean;
|
|
errors: string[];
|
|
warnings: string[];
|
|
usedVariables: Set<string>;
|
|
usedNodes: Set<string>;
|
|
}
|
|
interface ExpressionContext {
|
|
availableNodes: string[];
|
|
currentNodeName?: string;
|
|
isInLoop?: boolean;
|
|
hasInputData?: boolean;
|
|
}
|
|
export declare class ExpressionValidator {
|
|
private static readonly BARE_EXPRESSION_PATTERNS;
|
|
private static readonly EXPRESSION_PATTERN;
|
|
private static readonly VARIABLE_PATTERNS;
|
|
static validateExpression(expression: string, context: ExpressionContext): ExpressionValidationResult;
|
|
private static checkSyntaxErrors;
|
|
private static extractExpressions;
|
|
private static validateSingleExpression;
|
|
private static checkCommonMistakes;
|
|
private static checkNodeReferences;
|
|
static validateNodeExpressions(parameters: any, context: ExpressionContext): ExpressionValidationResult;
|
|
private static checkBareExpression;
|
|
private static validateParametersRecursive;
|
|
}
|
|
export {};
|
|
//# sourceMappingURL=expression-validator.d.ts.map
|