mirror of
https://github.com/czlonkowski/n8n-mcp.git
synced 2026-04-05 09:03:07 +00:00
feat: add multi-step flow to n8n_generate_workflow tool (v2.44.0)
Enable AI agents to act as quality gates for workflow generation: proposals → review → deploy. New parameters: deploy_id, confirm_deploy. New types: GenerateWorkflowProposal, status field on result. 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:
20
dist/mcp/tools-n8n-manager.js
vendored
20
dist/mcp/tools-n8n-manager.js
vendored
@@ -638,9 +638,10 @@ exports.n8nManagementTools = [
|
||||
{
|
||||
name: 'n8n_generate_workflow',
|
||||
description: 'Generate an n8n workflow from a natural language description using AI. ' +
|
||||
'Describe what the workflow should do (trigger type, services, logic) and this tool ' +
|
||||
'will create and deploy a ready-to-use workflow to your n8n instance. ' +
|
||||
'Set skip_cache=true to force fresh generation instead of using pre-built templates.',
|
||||
'Call with just a description to get workflow proposals. ' +
|
||||
'Then call again with deploy_id to deploy a chosen proposal, ' +
|
||||
'or set skip_cache=true to generate a fresh workflow. ' +
|
||||
'Use confirm_deploy=true to deploy a previously generated workflow.',
|
||||
inputSchema: {
|
||||
type: 'object',
|
||||
properties: {
|
||||
@@ -651,8 +652,17 @@ exports.n8nManagementTools = [
|
||||
},
|
||||
skip_cache: {
|
||||
type: 'boolean',
|
||||
description: 'Set to true to bypass the workflow cache and force fresh AI generation. ' +
|
||||
'Default: false (uses cached workflows when a good match exists).'
|
||||
description: 'Set to true to skip proposals and generate a fresh workflow from scratch. ' +
|
||||
'Returns a preview — call again with confirm_deploy=true to deploy it.'
|
||||
},
|
||||
deploy_id: {
|
||||
type: 'string',
|
||||
description: 'ID of a proposal to deploy. Get proposal IDs from a previous call ' +
|
||||
'that returned status "proposals".'
|
||||
},
|
||||
confirm_deploy: {
|
||||
type: 'boolean',
|
||||
description: 'Set to true to deploy the workflow from the last generation preview.'
|
||||
}
|
||||
},
|
||||
required: ['description'],
|
||||
|
||||
Reference in New Issue
Block a user