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>
55 lines
1.3 KiB
TypeScript
55 lines
1.3 KiB
TypeScript
export * from './node-types';
|
|
export * from './type-structures';
|
|
export * from './instance-context';
|
|
export * from './session-state';
|
|
export * from './generate-workflow';
|
|
export interface MCPServerConfig {
|
|
port: number;
|
|
host: string;
|
|
authToken?: string;
|
|
}
|
|
export interface ToolAnnotations {
|
|
title?: string;
|
|
readOnlyHint?: boolean;
|
|
destructiveHint?: boolean;
|
|
idempotentHint?: boolean;
|
|
openWorldHint?: boolean;
|
|
}
|
|
export interface ToolDefinition {
|
|
name: string;
|
|
description: string;
|
|
inputSchema: {
|
|
type: string;
|
|
properties: Record<string, any>;
|
|
required?: string[];
|
|
additionalProperties?: boolean | Record<string, any>;
|
|
};
|
|
outputSchema?: {
|
|
type: string;
|
|
properties: Record<string, any>;
|
|
required?: string[];
|
|
additionalProperties?: boolean | Record<string, any>;
|
|
};
|
|
annotations?: ToolAnnotations;
|
|
_meta?: {
|
|
ui?: {
|
|
resourceUri?: string;
|
|
};
|
|
};
|
|
}
|
|
export interface ResourceDefinition {
|
|
uri: string;
|
|
name: string;
|
|
description?: string;
|
|
mimeType?: string;
|
|
}
|
|
export interface PromptDefinition {
|
|
name: string;
|
|
description?: string;
|
|
arguments?: Array<{
|
|
name: string;
|
|
description?: string;
|
|
required?: boolean;
|
|
}>;
|
|
}
|
|
//# sourceMappingURL=index.d.ts.map
|