n8n-mcp 2.26.1 → 2.26.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mcp/tool-docs/configuration/get-node.d.ts +3 -0
- package/dist/mcp/tool-docs/configuration/get-node.d.ts.map +1 -0
- package/dist/mcp/tool-docs/configuration/get-node.js +92 -0
- package/dist/mcp/tool-docs/configuration/get-node.js.map +1 -0
- package/dist/mcp/tool-docs/configuration/index.d.ts +1 -6
- package/dist/mcp/tool-docs/configuration/index.d.ts.map +1 -1
- package/dist/mcp/tool-docs/configuration/index.js +3 -13
- package/dist/mcp/tool-docs/configuration/index.js.map +1 -1
- package/dist/mcp/tool-docs/discovery/index.d.ts +0 -3
- package/dist/mcp/tool-docs/discovery/index.d.ts.map +1 -1
- package/dist/mcp/tool-docs/discovery/index.js +1 -7
- package/dist/mcp/tool-docs/discovery/index.js.map +1 -1
- package/dist/mcp/tool-docs/discovery/search-nodes.js +1 -1
- package/dist/mcp/tool-docs/discovery/search-nodes.js.map +1 -1
- package/dist/mcp/tool-docs/guides/ai-agents-guide.d.ts.map +1 -1
- package/dist/mcp/tool-docs/guides/ai-agents-guide.js +2 -3
- package/dist/mcp/tool-docs/guides/ai-agents-guide.js.map +1 -1
- package/dist/mcp/tool-docs/index.d.ts.map +1 -1
- package/dist/mcp/tool-docs/index.js +3 -23
- package/dist/mcp/tool-docs/index.js.map +1 -1
- package/dist/mcp/tool-docs/system/tools-documentation.js +1 -1
- package/dist/mcp/tool-docs/system/tools-documentation.js.map +1 -1
- package/dist/mcp/tool-docs/templates/get-template.js +4 -4
- package/dist/mcp/tool-docs/templates/get-template.js.map +1 -1
- package/dist/mcp/tool-docs/templates/index.d.ts +0 -4
- package/dist/mcp/tool-docs/templates/index.d.ts.map +1 -1
- package/dist/mcp/tool-docs/templates/index.js +1 -9
- package/dist/mcp/tool-docs/templates/index.js.map +1 -1
- package/dist/mcp/tool-docs/templates/search-templates.d.ts.map +1 -1
- package/dist/mcp/tool-docs/templates/search-templates.js +102 -48
- package/dist/mcp/tool-docs/templates/search-templates.js.map +1 -1
- package/dist/mcp/tool-docs/validation/index.d.ts +1 -4
- package/dist/mcp/tool-docs/validation/index.d.ts.map +1 -1
- package/dist/mcp/tool-docs/validation/index.js +3 -9
- package/dist/mcp/tool-docs/validation/index.js.map +1 -1
- package/dist/mcp/tool-docs/validation/validate-node.d.ts +3 -0
- package/dist/mcp/tool-docs/validation/validate-node.d.ts.map +1 -0
- package/dist/mcp/tool-docs/validation/validate-node.js +84 -0
- package/dist/mcp/tool-docs/validation/validate-node.js.map +1 -0
- package/dist/mcp/tool-docs/validation/validate-workflow.js +1 -1
- package/dist/mcp/tool-docs/validation/validate-workflow.js.map +1 -1
- package/dist/mcp/tool-docs/workflow_management/index.d.ts +1 -6
- package/dist/mcp/tool-docs/workflow_management/index.d.ts.map +1 -1
- package/dist/mcp/tool-docs/workflow_management/index.js +3 -13
- package/dist/mcp/tool-docs/workflow_management/index.js.map +1 -1
- package/dist/mcp/tool-docs/workflow_management/n8n-autofix-workflow.d.ts.map +1 -1
- package/dist/mcp/tool-docs/workflow_management/n8n-autofix-workflow.js +2 -3
- package/dist/mcp/tool-docs/workflow_management/n8n-autofix-workflow.js.map +1 -1
- package/dist/mcp/tool-docs/workflow_management/n8n-delete-workflow.js +1 -1
- package/dist/mcp/tool-docs/workflow_management/n8n-delete-workflow.js.map +1 -1
- package/dist/mcp/tool-docs/workflow_management/n8n-executions.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-executions.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-executions.js +86 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-executions.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow.d.ts.map +1 -1
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow.js +44 -25
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow.js.map +1 -1
- package/dist/mcp/tool-docs/workflow_management/n8n-list-workflows.js +1 -1
- package/dist/mcp/tool-docs/workflow_management/n8n-list-workflows.js.map +1 -1
- package/dist/mcp/tool-docs/workflow_management/n8n-trigger-webhook-workflow.js +8 -8
- package/dist/mcp/tool-docs/workflow_management/n8n-trigger-webhook-workflow.js.map +1 -1
- package/dist/mcp/tools-documentation.d.ts.map +1 -1
- package/dist/mcp/tools-documentation.js +39 -34
- package/dist/mcp/tools-documentation.js.map +1 -1
- package/dist/mcp/tools-n8n-friendly.d.ts.map +1 -1
- package/dist/mcp/tools-n8n-friendly.js +20 -62
- package/dist/mcp/tools-n8n-friendly.js.map +1 -1
- package/package.json +1 -1
- package/dist/mcp/tool-docs/configuration/get-node-as-tool-info.d.ts +0 -3
- package/dist/mcp/tool-docs/configuration/get-node-as-tool-info.d.ts.map +0 -1
- package/dist/mcp/tool-docs/configuration/get-node-as-tool-info.js +0 -73
- package/dist/mcp/tool-docs/configuration/get-node-as-tool-info.js.map +0 -1
- package/dist/mcp/tool-docs/configuration/get-node-documentation.d.ts +0 -3
- package/dist/mcp/tool-docs/configuration/get-node-documentation.d.ts.map +0 -1
- package/dist/mcp/tool-docs/configuration/get-node-documentation.js +0 -47
- package/dist/mcp/tool-docs/configuration/get-node-documentation.js.map +0 -1
- package/dist/mcp/tool-docs/configuration/get-node-essentials.d.ts +0 -3
- package/dist/mcp/tool-docs/configuration/get-node-essentials.d.ts.map +0 -1
- package/dist/mcp/tool-docs/configuration/get-node-essentials.js +0 -88
- package/dist/mcp/tool-docs/configuration/get-node-essentials.js.map +0 -1
- package/dist/mcp/tool-docs/configuration/get-node-info.d.ts +0 -3
- package/dist/mcp/tool-docs/configuration/get-node-info.d.ts.map +0 -1
- package/dist/mcp/tool-docs/configuration/get-node-info.js +0 -100
- package/dist/mcp/tool-docs/configuration/get-node-info.js.map +0 -1
- package/dist/mcp/tool-docs/configuration/get-property-dependencies.d.ts +0 -3
- package/dist/mcp/tool-docs/configuration/get-property-dependencies.d.ts.map +0 -1
- package/dist/mcp/tool-docs/configuration/get-property-dependencies.js +0 -81
- package/dist/mcp/tool-docs/configuration/get-property-dependencies.js.map +0 -1
- package/dist/mcp/tool-docs/configuration/search-node-properties.d.ts +0 -3
- package/dist/mcp/tool-docs/configuration/search-node-properties.d.ts.map +0 -1
- package/dist/mcp/tool-docs/configuration/search-node-properties.js +0 -99
- package/dist/mcp/tool-docs/configuration/search-node-properties.js.map +0 -1
- package/dist/mcp/tool-docs/discovery/get-database-statistics.d.ts +0 -3
- package/dist/mcp/tool-docs/discovery/get-database-statistics.d.ts.map +0 -1
- package/dist/mcp/tool-docs/discovery/get-database-statistics.js +0 -69
- package/dist/mcp/tool-docs/discovery/get-database-statistics.js.map +0 -1
- package/dist/mcp/tool-docs/discovery/list-ai-tools.d.ts +0 -3
- package/dist/mcp/tool-docs/discovery/list-ai-tools.d.ts.map +0 -1
- package/dist/mcp/tool-docs/discovery/list-ai-tools.js +0 -53
- package/dist/mcp/tool-docs/discovery/list-ai-tools.js.map +0 -1
- package/dist/mcp/tool-docs/discovery/list-nodes.d.ts +0 -3
- package/dist/mcp/tool-docs/discovery/list-nodes.d.ts.map +0 -1
- package/dist/mcp/tool-docs/discovery/list-nodes.js +0 -54
- package/dist/mcp/tool-docs/discovery/list-nodes.js.map +0 -1
- package/dist/mcp/tool-docs/templates/get-templates-for-task.d.ts +0 -3
- package/dist/mcp/tool-docs/templates/get-templates-for-task.d.ts.map +0 -1
- package/dist/mcp/tool-docs/templates/get-templates-for-task.js +0 -76
- package/dist/mcp/tool-docs/templates/get-templates-for-task.js.map +0 -1
- package/dist/mcp/tool-docs/templates/list-node-templates.d.ts +0 -3
- package/dist/mcp/tool-docs/templates/list-node-templates.d.ts.map +0 -1
- package/dist/mcp/tool-docs/templates/list-node-templates.js +0 -80
- package/dist/mcp/tool-docs/templates/list-node-templates.js.map +0 -1
- package/dist/mcp/tool-docs/templates/list-tasks.d.ts +0 -3
- package/dist/mcp/tool-docs/templates/list-tasks.d.ts.map +0 -1
- package/dist/mcp/tool-docs/templates/list-tasks.js +0 -48
- package/dist/mcp/tool-docs/templates/list-tasks.js.map +0 -1
- package/dist/mcp/tool-docs/templates/search-templates-by-metadata.d.ts +0 -3
- package/dist/mcp/tool-docs/templates/search-templates-by-metadata.d.ts.map +0 -1
- package/dist/mcp/tool-docs/templates/search-templates-by-metadata.js +0 -120
- package/dist/mcp/tool-docs/templates/search-templates-by-metadata.js.map +0 -1
- package/dist/mcp/tool-docs/validation/validate-node-minimal.d.ts +0 -3
- package/dist/mcp/tool-docs/validation/validate-node-minimal.d.ts.map +0 -1
- package/dist/mcp/tool-docs/validation/validate-node-minimal.js +0 -49
- package/dist/mcp/tool-docs/validation/validate-node-minimal.js.map +0 -1
- package/dist/mcp/tool-docs/validation/validate-node-operation.d.ts +0 -3
- package/dist/mcp/tool-docs/validation/validate-node-operation.d.ts.map +0 -1
- package/dist/mcp/tool-docs/validation/validate-node-operation.js +0 -100
- package/dist/mcp/tool-docs/validation/validate-node-operation.js.map +0 -1
- package/dist/mcp/tool-docs/validation/validate-workflow-connections.d.ts +0 -3
- package/dist/mcp/tool-docs/validation/validate-workflow-connections.d.ts.map +0 -1
- package/dist/mcp/tool-docs/validation/validate-workflow-connections.js +0 -58
- package/dist/mcp/tool-docs/validation/validate-workflow-connections.js.map +0 -1
- package/dist/mcp/tool-docs/validation/validate-workflow-expressions.d.ts +0 -3
- package/dist/mcp/tool-docs/validation/validate-workflow-expressions.d.ts.map +0 -1
- package/dist/mcp/tool-docs/validation/validate-workflow-expressions.js +0 -58
- package/dist/mcp/tool-docs/validation/validate-workflow-expressions.js.map +0 -1
- package/dist/mcp/tool-docs/workflow_management/n8n-delete-execution.d.ts +0 -3
- package/dist/mcp/tool-docs/workflow_management/n8n-delete-execution.d.ts.map +0 -1
- package/dist/mcp/tool-docs/workflow_management/n8n-delete-execution.js +0 -59
- package/dist/mcp/tool-docs/workflow_management/n8n-delete-execution.js.map +0 -1
- package/dist/mcp/tool-docs/workflow_management/n8n-get-execution.d.ts +0 -3
- package/dist/mcp/tool-docs/workflow_management/n8n-get-execution.d.ts.map +0 -1
- package/dist/mcp/tool-docs/workflow_management/n8n-get-execution.js +0 -270
- package/dist/mcp/tool-docs/workflow_management/n8n-get-execution.js.map +0 -1
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow-details.d.ts +0 -3
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow-details.d.ts.map +0 -1
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow-details.js +0 -51
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow-details.js.map +0 -1
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow-minimal.d.ts +0 -3
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow-minimal.d.ts.map +0 -1
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow-minimal.js +0 -51
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow-minimal.js.map +0 -1
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow-structure.d.ts +0 -3
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow-structure.d.ts.map +0 -1
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow-structure.js +0 -51
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow-structure.js.map +0 -1
- package/dist/mcp/tool-docs/workflow_management/n8n-list-executions.d.ts +0 -3
- package/dist/mcp/tool-docs/workflow_management/n8n-list-executions.d.ts.map +0 -1
- package/dist/mcp/tool-docs/workflow_management/n8n-list-executions.js +0 -86
- package/dist/mcp/tool-docs/workflow_management/n8n-list-executions.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-node-templates.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/templates/list-node-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,oBAAoB,EAAE,iBA2ElC,CAAC"}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.listNodeTemplatesDoc = void 0;
|
|
4
|
-
exports.listNodeTemplatesDoc = {
|
|
5
|
-
name: 'list_node_templates',
|
|
6
|
-
category: 'templates',
|
|
7
|
-
essentials: {
|
|
8
|
-
description: 'Find templates using specific nodes. 399 community workflows. Use FULL types: "n8n-nodes-base.httpRequest".',
|
|
9
|
-
keyParameters: ['nodeTypes', 'limit'],
|
|
10
|
-
example: 'list_node_templates({nodeTypes: ["n8n-nodes-base.slack"]})',
|
|
11
|
-
performance: 'Fast (<100ms) - indexed node search',
|
|
12
|
-
tips: [
|
|
13
|
-
'Must use FULL node type with package prefix: "n8n-nodes-base.slack"',
|
|
14
|
-
'Can search for multiple nodes to find workflows using all of them',
|
|
15
|
-
'Returns templates sorted by popularity (view count)'
|
|
16
|
-
]
|
|
17
|
-
},
|
|
18
|
-
full: {
|
|
19
|
-
description: `Finds workflow templates that use specific n8n nodes. This is the best way to discover how particular nodes are used in real workflows. Search the community library of 399+ templates by specifying which nodes you want to see in action. Templates are sorted by popularity to show the most useful examples first.`,
|
|
20
|
-
parameters: {
|
|
21
|
-
nodeTypes: {
|
|
22
|
-
type: 'array',
|
|
23
|
-
required: true,
|
|
24
|
-
description: 'Array of node types to search for. Must use full type names with package prefix (e.g., ["n8n-nodes-base.httpRequest", "n8n-nodes-base.openAi"])'
|
|
25
|
-
},
|
|
26
|
-
limit: {
|
|
27
|
-
type: 'number',
|
|
28
|
-
required: false,
|
|
29
|
-
description: 'Maximum number of templates to return. Default 10, max 100'
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
returns: `Returns an object containing:
|
|
33
|
-
- templates: Array of matching templates
|
|
34
|
-
- id: Template ID for retrieval
|
|
35
|
-
- name: Template name
|
|
36
|
-
- description: What the workflow does
|
|
37
|
-
- author: Creator details (name, username, verified)
|
|
38
|
-
- nodes: Complete list of nodes used
|
|
39
|
-
- views: View count (popularity metric)
|
|
40
|
-
- created: Creation date
|
|
41
|
-
- url: Link to template on n8n.io
|
|
42
|
-
- totalFound: Total number of matching templates
|
|
43
|
-
- tip: Usage hints if no results`,
|
|
44
|
-
examples: [
|
|
45
|
-
'list_node_templates({nodeTypes: ["n8n-nodes-base.slack"]}) - Find all Slack workflows',
|
|
46
|
-
'list_node_templates({nodeTypes: ["n8n-nodes-base.httpRequest", "n8n-nodes-base.postgres"]}) - Find workflows using both HTTP and Postgres',
|
|
47
|
-
'list_node_templates({nodeTypes: ["@n8n/n8n-nodes-langchain.openAi"], limit: 20}) - Find AI workflows with OpenAI',
|
|
48
|
-
'list_node_templates({nodeTypes: ["n8n-nodes-base.webhook", "n8n-nodes-base.respondToWebhook"]}) - Find webhook examples'
|
|
49
|
-
],
|
|
50
|
-
useCases: [
|
|
51
|
-
'Learn how to use specific nodes through examples',
|
|
52
|
-
'Find workflows combining particular integrations',
|
|
53
|
-
'Discover patterns for node combinations',
|
|
54
|
-
'See real-world usage of complex nodes',
|
|
55
|
-
'Find templates for your exact tech stack'
|
|
56
|
-
],
|
|
57
|
-
performance: `Optimized for node-based searches:
|
|
58
|
-
- Indexed by node type for fast lookups
|
|
59
|
-
- Query time: <50ms for single node
|
|
60
|
-
- Multiple nodes: <100ms (uses AND logic)
|
|
61
|
-
- Returns pre-sorted by popularity
|
|
62
|
-
- No full-text search needed`,
|
|
63
|
-
bestPractices: [
|
|
64
|
-
'Always use full node type with package prefix',
|
|
65
|
-
'Search for core nodes that define the workflow purpose',
|
|
66
|
-
'Start with single node searches, then refine',
|
|
67
|
-
'Check node types with list_nodes if unsure of names',
|
|
68
|
-
'Review multiple templates to learn different approaches'
|
|
69
|
-
],
|
|
70
|
-
pitfalls: [
|
|
71
|
-
'Node types must match exactly - no partial matches',
|
|
72
|
-
'Package prefix required: "slack" won\'t work, use "n8n-nodes-base.slack"',
|
|
73
|
-
'Some nodes have version numbers: "n8n-nodes-base.httpRequestV3"',
|
|
74
|
-
'Templates may use old node versions not in current n8n',
|
|
75
|
-
'AND logic means all specified nodes must be present'
|
|
76
|
-
],
|
|
77
|
-
relatedTools: ['get_template', 'search_templates', 'get_templates_for_task', 'list_nodes']
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
//# sourceMappingURL=list-node-templates.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-node-templates.js","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/templates/list-node-templates.ts"],"names":[],"mappings":";;;AAEa,QAAA,oBAAoB,GAAsB;IACrD,IAAI,EAAE,qBAAqB;IAC3B,QAAQ,EAAE,WAAW;IACrB,UAAU,EAAE;QACV,WAAW,EAAE,6GAA6G;QAC1H,aAAa,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC;QACrC,OAAO,EAAE,4DAA4D;QACrE,WAAW,EAAE,qCAAqC;QAClD,IAAI,EAAE;YACJ,qEAAqE;YACrE,mEAAmE;YACnE,qDAAqD;SACtD;KACF;IACD,IAAI,EAAE;QACJ,WAAW,EAAE,wTAAwT;QACrU,UAAU,EAAE;YACV,SAAS,EAAE;gBACT,IAAI,EAAE,OAAO;gBACb,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,iJAAiJ;aAC/J;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;gBACf,WAAW,EAAE,4DAA4D;aAC1E;SACF;QACD,OAAO,EAAE;;;;;;;;;;;iCAWoB;QAC7B,QAAQ,EAAE;YACR,uFAAuF;YACvF,2IAA2I;YAC3I,kHAAkH;YAClH,yHAAyH;SAC1H;QACD,QAAQ,EAAE;YACR,kDAAkD;YAClD,kDAAkD;YAClD,yCAAyC;YACzC,uCAAuC;YACvC,0CAA0C;SAC3C;QACD,WAAW,EAAE;;;;;6BAKY;QACzB,aAAa,EAAE;YACb,+CAA+C;YAC/C,wDAAwD;YACxD,8CAA8C;YAC9C,qDAAqD;YACrD,yDAAyD;SAC1D;QACD,QAAQ,EAAE;YACR,oDAAoD;YACpD,0EAA0E;YAC1E,iEAAiE;YACjE,wDAAwD;YACxD,qDAAqD;SACtD;QACD,YAAY,EAAE,CAAC,cAAc,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,YAAY,CAAC;KAC3F;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-tasks.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/templates/list-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,YAAY,EAAE,iBA2C1B,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.listTasksDoc = void 0;
|
|
4
|
-
exports.listTasksDoc = {
|
|
5
|
-
name: 'list_tasks',
|
|
6
|
-
category: 'templates',
|
|
7
|
-
essentials: {
|
|
8
|
-
description: 'List task templates by category: HTTP/API, Webhooks, Database, AI, Data Processing, Communication.',
|
|
9
|
-
keyParameters: ['category'],
|
|
10
|
-
example: 'list_tasks({category: "HTTP/API"})',
|
|
11
|
-
performance: 'Instant',
|
|
12
|
-
tips: [
|
|
13
|
-
'Categories: HTTP/API, Webhooks, Database, AI',
|
|
14
|
-
'Shows pre-configured node settings',
|
|
15
|
-
'Use get_node_for_task for details'
|
|
16
|
-
]
|
|
17
|
-
},
|
|
18
|
-
full: {
|
|
19
|
-
description: 'Lists available task templates organized by category. Each task represents a common automation pattern with pre-configured node settings. Categories include HTTP/API, Webhooks, Database, AI, Data Processing, and Communication.',
|
|
20
|
-
parameters: {
|
|
21
|
-
category: { type: 'string', description: 'Filter by category (optional)' }
|
|
22
|
-
},
|
|
23
|
-
returns: 'Array of tasks with name, category, description, nodeType',
|
|
24
|
-
examples: [
|
|
25
|
-
'list_tasks() - Get all task templates',
|
|
26
|
-
'list_tasks({category: "Database"}) - Database-related tasks',
|
|
27
|
-
'list_tasks({category: "AI"}) - AI automation tasks'
|
|
28
|
-
],
|
|
29
|
-
useCases: [
|
|
30
|
-
'Discover common automation patterns',
|
|
31
|
-
'Find pre-configured solutions',
|
|
32
|
-
'Learn node usage patterns',
|
|
33
|
-
'Quick workflow setup'
|
|
34
|
-
],
|
|
35
|
-
performance: 'Instant - Static task list',
|
|
36
|
-
bestPractices: [
|
|
37
|
-
'Browse all categories first',
|
|
38
|
-
'Use get_node_for_task for config',
|
|
39
|
-
'Combine multiple tasks in workflows'
|
|
40
|
-
],
|
|
41
|
-
pitfalls: [
|
|
42
|
-
'Tasks are templates, customize as needed',
|
|
43
|
-
'Not all nodes have task templates'
|
|
44
|
-
],
|
|
45
|
-
relatedTools: ['get_node_for_task', 'search_templates', 'get_templates_for_task']
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
//# sourceMappingURL=list-tasks.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-tasks.js","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/templates/list-tasks.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAsB;IAC7C,IAAI,EAAE,YAAY;IAClB,QAAQ,EAAE,WAAW;IACrB,UAAU,EAAE;QACV,WAAW,EAAE,oGAAoG;QACjH,aAAa,EAAE,CAAC,UAAU,CAAC;QAC3B,OAAO,EAAE,oCAAoC;QAC7C,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE;YACJ,8CAA8C;YAC9C,oCAAoC;YACpC,mCAAmC;SACpC;KACF;IACD,IAAI,EAAE;QACJ,WAAW,EAAE,oOAAoO;QACjP,UAAU,EAAE;YACV,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,+BAA+B,EAAE;SAC3E;QACD,OAAO,EAAE,2DAA2D;QACpE,QAAQ,EAAE;YACR,uCAAuC;YACvC,6DAA6D;YAC7D,oDAAoD;SACrD;QACD,QAAQ,EAAE;YACR,qCAAqC;YACrC,+BAA+B;YAC/B,2BAA2B;YAC3B,sBAAsB;SACvB;QACD,WAAW,EAAE,4BAA4B;QACzC,aAAa,EAAE;YACb,6BAA6B;YAC7B,kCAAkC;YAClC,qCAAqC;SACtC;QACD,QAAQ,EAAE;YACR,0CAA0C;YAC1C,mCAAmC;SACpC;QACD,YAAY,EAAE,CAAC,mBAAmB,EAAE,kBAAkB,EAAE,wBAAwB,CAAC;KAClF;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search-templates-by-metadata.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/templates/search-templates-by-metadata.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,4BAA4B,EAAE,iBAmH1C,CAAC"}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.searchTemplatesByMetadataDoc = void 0;
|
|
4
|
-
exports.searchTemplatesByMetadataDoc = {
|
|
5
|
-
name: 'search_templates_by_metadata',
|
|
6
|
-
category: 'templates',
|
|
7
|
-
essentials: {
|
|
8
|
-
description: 'Search templates using AI-generated metadata filters. Find templates by complexity, setup time, required services, or target audience. Enables smart template discovery beyond simple text search.',
|
|
9
|
-
keyParameters: ['category', 'complexity', 'maxSetupMinutes', 'targetAudience'],
|
|
10
|
-
example: 'search_templates_by_metadata({complexity: "simple", maxSetupMinutes: 30})',
|
|
11
|
-
performance: 'Fast (<100ms) - JSON extraction queries',
|
|
12
|
-
tips: [
|
|
13
|
-
'All filters are optional - combine them for precise results',
|
|
14
|
-
'Use getAvailableCategories() to see valid category values',
|
|
15
|
-
'Complexity levels: simple, medium, complex',
|
|
16
|
-
'Setup time is in minutes (5-480 range)'
|
|
17
|
-
]
|
|
18
|
-
},
|
|
19
|
-
full: {
|
|
20
|
-
description: `Advanced template search using AI-generated metadata. Each template has been analyzed by GPT-4 to extract structured information about its purpose, complexity, setup requirements, and target users. This enables intelligent filtering beyond simple keyword matching, helping you find templates that match your specific needs, skill level, and available time.`,
|
|
21
|
-
parameters: {
|
|
22
|
-
category: {
|
|
23
|
-
type: 'string',
|
|
24
|
-
required: false,
|
|
25
|
-
description: 'Filter by category like "automation", "integration", "data processing", "communication". Use template service getAvailableCategories() for full list.'
|
|
26
|
-
},
|
|
27
|
-
complexity: {
|
|
28
|
-
type: 'string (enum)',
|
|
29
|
-
required: false,
|
|
30
|
-
description: 'Filter by implementation complexity: "simple" (beginner-friendly), "medium" (some experience needed), or "complex" (advanced features)'
|
|
31
|
-
},
|
|
32
|
-
maxSetupMinutes: {
|
|
33
|
-
type: 'number',
|
|
34
|
-
required: false,
|
|
35
|
-
description: 'Maximum acceptable setup time in minutes (5-480). Find templates you can implement within your time budget.'
|
|
36
|
-
},
|
|
37
|
-
minSetupMinutes: {
|
|
38
|
-
type: 'number',
|
|
39
|
-
required: false,
|
|
40
|
-
description: 'Minimum setup time in minutes (5-480). Find more substantial templates that offer comprehensive solutions.'
|
|
41
|
-
},
|
|
42
|
-
requiredService: {
|
|
43
|
-
type: 'string',
|
|
44
|
-
required: false,
|
|
45
|
-
description: 'Filter by required external service like "openai", "slack", "google", "shopify". Ensures you have necessary accounts/APIs.'
|
|
46
|
-
},
|
|
47
|
-
targetAudience: {
|
|
48
|
-
type: 'string',
|
|
49
|
-
required: false,
|
|
50
|
-
description: 'Filter by intended users: "developers", "marketers", "analysts", "operations", "sales". Find templates for your role.'
|
|
51
|
-
},
|
|
52
|
-
limit: {
|
|
53
|
-
type: 'number',
|
|
54
|
-
required: false,
|
|
55
|
-
description: 'Maximum results to return. Default 20, max 100.'
|
|
56
|
-
},
|
|
57
|
-
offset: {
|
|
58
|
-
type: 'number',
|
|
59
|
-
required: false,
|
|
60
|
-
description: 'Pagination offset for results. Default 0.'
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
returns: `Returns an object containing:
|
|
64
|
-
- items: Array of matching templates with full metadata
|
|
65
|
-
- id: Template ID
|
|
66
|
-
- name: Template name
|
|
67
|
-
- description: Purpose and functionality
|
|
68
|
-
- author: Creator details
|
|
69
|
-
- nodes: Array of nodes used
|
|
70
|
-
- views: Popularity count
|
|
71
|
-
- metadata: AI-generated structured data
|
|
72
|
-
- categories: Primary use categories
|
|
73
|
-
- complexity: Difficulty level
|
|
74
|
-
- use_cases: Specific applications
|
|
75
|
-
- estimated_setup_minutes: Time to implement
|
|
76
|
-
- required_services: External dependencies
|
|
77
|
-
- key_features: Main capabilities
|
|
78
|
-
- target_audience: Intended users
|
|
79
|
-
- total: Total matching templates
|
|
80
|
-
- filters: Applied filter criteria
|
|
81
|
-
- filterSummary: Human-readable filter description
|
|
82
|
-
- availableCategories: Suggested categories if no results
|
|
83
|
-
- availableAudiences: Suggested audiences if no results
|
|
84
|
-
- tip: Contextual guidance`,
|
|
85
|
-
examples: [
|
|
86
|
-
'search_templates_by_metadata({complexity: "simple"}) - Find beginner-friendly templates',
|
|
87
|
-
'search_templates_by_metadata({category: "automation", maxSetupMinutes: 30}) - Quick automation templates',
|
|
88
|
-
'search_templates_by_metadata({targetAudience: "marketers"}) - Marketing-focused workflows',
|
|
89
|
-
'search_templates_by_metadata({requiredService: "openai", complexity: "medium"}) - AI templates with moderate complexity',
|
|
90
|
-
'search_templates_by_metadata({minSetupMinutes: 60, category: "integration"}) - Comprehensive integration solutions'
|
|
91
|
-
],
|
|
92
|
-
useCases: [
|
|
93
|
-
'Finding beginner-friendly templates by setting complexity:"simple"',
|
|
94
|
-
'Discovering templates you can implement quickly with maxSetupMinutes:30',
|
|
95
|
-
'Finding role-specific workflows with targetAudience filter',
|
|
96
|
-
'Identifying templates that need specific APIs with requiredService filter',
|
|
97
|
-
'Combining multiple filters for precise template discovery'
|
|
98
|
-
],
|
|
99
|
-
performance: 'Fast (<100ms) - Uses SQLite JSON extraction on pre-generated metadata. 97.5% coverage (2,534/2,598 templates).',
|
|
100
|
-
bestPractices: [
|
|
101
|
-
'Start with broad filters and narrow down based on results',
|
|
102
|
-
'Use getAvailableCategories() to discover valid category values',
|
|
103
|
-
'Combine complexity and setup time for skill-appropriate templates',
|
|
104
|
-
'Check required services before selecting templates to ensure you have necessary accounts'
|
|
105
|
-
],
|
|
106
|
-
pitfalls: [
|
|
107
|
-
'Not all templates have metadata (97.5% coverage)',
|
|
108
|
-
'Setup time estimates assume basic n8n familiarity',
|
|
109
|
-
'Categories/audiences use partial matching - be specific',
|
|
110
|
-
'Metadata is AI-generated and may occasionally be imprecise'
|
|
111
|
-
],
|
|
112
|
-
relatedTools: [
|
|
113
|
-
'list_templates',
|
|
114
|
-
'search_templates',
|
|
115
|
-
'list_node_templates',
|
|
116
|
-
'get_templates_for_task'
|
|
117
|
-
]
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
//# sourceMappingURL=search-templates-by-metadata.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search-templates-by-metadata.js","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/templates/search-templates-by-metadata.ts"],"names":[],"mappings":";;;AAEa,QAAA,4BAA4B,GAAsB;IAC7D,IAAI,EAAE,8BAA8B;IACpC,QAAQ,EAAE,WAAW;IACrB,UAAU,EAAE;QACV,WAAW,EAAE,oMAAoM;QACjN,aAAa,EAAE,CAAC,UAAU,EAAE,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,CAAC;QAC9E,OAAO,EAAE,2EAA2E;QACpF,WAAW,EAAE,yCAAyC;QACtD,IAAI,EAAE;YACJ,6DAA6D;YAC7D,2DAA2D;YAC3D,4CAA4C;YAC5C,wCAAwC;SACzC;KACF;IACD,IAAI,EAAE;QACJ,WAAW,EAAE,sWAAsW;QACnX,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;gBACf,WAAW,EAAE,uJAAuJ;aACrK;YACD,UAAU,EAAE;gBACV,IAAI,EAAE,eAAe;gBACrB,QAAQ,EAAE,KAAK;gBACf,WAAW,EAAE,wIAAwI;aACtJ;YACD,eAAe,EAAE;gBACf,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;gBACf,WAAW,EAAE,6GAA6G;aAC3H;YACD,eAAe,EAAE;gBACf,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;gBACf,WAAW,EAAE,4GAA4G;aAC1H;YACD,eAAe,EAAE;gBACf,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;gBACf,WAAW,EAAE,4HAA4H;aAC1I;YACD,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;gBACf,WAAW,EAAE,uHAAuH;aACrI;YACD,KAAK,EAAE;gBACL,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;gBACf,WAAW,EAAE,iDAAiD;aAC/D;YACD,MAAM,EAAE;gBACN,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,KAAK;gBACf,WAAW,EAAE,2CAA2C;aACzD;SACF;QACD,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;2BAqBc;QACvB,QAAQ,EAAE;YACR,yFAAyF;YACzF,0GAA0G;YAC1G,2FAA2F;YAC3F,yHAAyH;YACzH,oHAAoH;SACrH;QACD,QAAQ,EAAE;YACR,oEAAoE;YACpE,yEAAyE;YACzE,4DAA4D;YAC5D,2EAA2E;YAC3E,2DAA2D;SAC5D;QACD,WAAW,EAAE,gHAAgH;QAC7H,aAAa,EAAE;YACb,2DAA2D;YAC3D,gEAAgE;YAChE,mEAAmE;YACnE,0FAA0F;SAC3F;QACD,QAAQ,EAAE;YACR,kDAAkD;YAClD,mDAAmD;YACnD,yDAAyD;YACzD,4DAA4D;SAC7D;QACD,YAAY,EAAE;YACZ,gBAAgB;YAChB,kBAAkB;YAClB,qBAAqB;YACrB,wBAAwB;SACzB;KACF;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validate-node-minimal.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/validation/validate-node-minimal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,sBAAsB,EAAE,iBA4CpC,CAAC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateNodeMinimalDoc = void 0;
|
|
4
|
-
exports.validateNodeMinimalDoc = {
|
|
5
|
-
name: 'validate_node_minimal',
|
|
6
|
-
category: 'validation',
|
|
7
|
-
essentials: {
|
|
8
|
-
description: 'Fast check for missing required fields only. No warnings/suggestions. Returns: list of missing fields.',
|
|
9
|
-
keyParameters: ['nodeType', 'config'],
|
|
10
|
-
example: 'validate_node_minimal("nodes-base.slack", {resource: "message"})',
|
|
11
|
-
performance: 'Instant',
|
|
12
|
-
tips: [
|
|
13
|
-
'Returns only missing required fields',
|
|
14
|
-
'No warnings or suggestions',
|
|
15
|
-
'Perfect for real-time validation'
|
|
16
|
-
]
|
|
17
|
-
},
|
|
18
|
-
full: {
|
|
19
|
-
description: 'Minimal validation that only checks for missing required fields. Returns array of missing field names without any warnings or suggestions. Ideal for quick validation during node configuration.',
|
|
20
|
-
parameters: {
|
|
21
|
-
nodeType: { type: 'string', required: true, description: 'Node type with prefix (e.g., "nodes-base.slack")' },
|
|
22
|
-
config: { type: 'object', required: true, description: 'Node configuration to validate' }
|
|
23
|
-
},
|
|
24
|
-
returns: 'Array of missing required field names (empty if valid)',
|
|
25
|
-
examples: [
|
|
26
|
-
'validate_node_minimal("nodes-base.slack", {resource: "message", operation: "post"}) - Check Slack config',
|
|
27
|
-
'validate_node_minimal("nodes-base.httpRequest", {method: "GET"}) - Check HTTP config'
|
|
28
|
-
],
|
|
29
|
-
useCases: [
|
|
30
|
-
'Real-time form validation',
|
|
31
|
-
'Quick configuration checks',
|
|
32
|
-
'Pre-deployment validation',
|
|
33
|
-
'Interactive configuration builders'
|
|
34
|
-
],
|
|
35
|
-
performance: 'Instant - Simple field checking without complex validation',
|
|
36
|
-
bestPractices: [
|
|
37
|
-
'Use for quick feedback loops',
|
|
38
|
-
'Follow with validate_node_operation for thorough check',
|
|
39
|
-
'Check return array length for validity'
|
|
40
|
-
],
|
|
41
|
-
pitfalls: [
|
|
42
|
-
'Only checks required fields',
|
|
43
|
-
'No type validation',
|
|
44
|
-
'No operation-specific validation'
|
|
45
|
-
],
|
|
46
|
-
relatedTools: ['validate_node_operation', 'get_node_essentials', 'get_property_dependencies']
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
//# sourceMappingURL=validate-node-minimal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validate-node-minimal.js","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/validation/validate-node-minimal.ts"],"names":[],"mappings":";;;AAEa,QAAA,sBAAsB,GAAsB;IACvD,IAAI,EAAE,uBAAuB;IAC7B,QAAQ,EAAE,YAAY;IACtB,UAAU,EAAE;QACV,WAAW,EAAE,wGAAwG;QACrH,aAAa,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC;QACrC,OAAO,EAAE,kEAAkE;QAC3E,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE;YACJ,sCAAsC;YACtC,4BAA4B;YAC5B,kCAAkC;SACnC;KACF;IACD,IAAI,EAAE;QACJ,WAAW,EAAE,kMAAkM;QAC/M,UAAU,EAAE;YACV,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,kDAAkD,EAAE;YAC7G,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,gCAAgC,EAAE;SAC1F;QACD,OAAO,EAAE,wDAAwD;QACjE,QAAQ,EAAE;YACR,0GAA0G;YAC1G,sFAAsF;SACvF;QACD,QAAQ,EAAE;YACR,2BAA2B;YAC3B,4BAA4B;YAC5B,2BAA2B;YAC3B,oCAAoC;SACrC;QACD,WAAW,EAAE,4DAA4D;QACzE,aAAa,EAAE;YACb,8BAA8B;YAC9B,wDAAwD;YACxD,wCAAwC;SACzC;QACD,QAAQ,EAAE;YACR,6BAA6B;YAC7B,oBAAoB;YACpB,kCAAkC;SACnC;QACD,YAAY,EAAE,CAAC,yBAAyB,EAAE,qBAAqB,EAAE,2BAA2B,CAAC;KAC9F;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validate-node-operation.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/validation/validate-node-operation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,wBAAwB,EAAE,iBA+FtC,CAAC"}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateNodeOperationDoc = void 0;
|
|
4
|
-
exports.validateNodeOperationDoc = {
|
|
5
|
-
name: 'validate_node_operation',
|
|
6
|
-
category: 'validation',
|
|
7
|
-
essentials: {
|
|
8
|
-
description: 'Validates node configuration with operation awareness. Checks required fields, data types, and operation-specific rules. Returns specific errors with automated fix suggestions. Different profiles for different validation needs.',
|
|
9
|
-
keyParameters: ['nodeType', 'config', 'profile'],
|
|
10
|
-
example: 'validate_node_operation({nodeType: "nodes-base.slack", config: {resource: "message", operation: "post", text: "Hi"}})',
|
|
11
|
-
performance: '<100ms',
|
|
12
|
-
tips: [
|
|
13
|
-
'Profile choices: minimal (editing), runtime (execution), ai-friendly (balanced), strict (deployment)',
|
|
14
|
-
'Returns fixes you can apply directly',
|
|
15
|
-
'Operation-aware - knows Slack post needs text',
|
|
16
|
-
'Validates operator structures for IF and Switch nodes with conditions'
|
|
17
|
-
]
|
|
18
|
-
},
|
|
19
|
-
full: {
|
|
20
|
-
description: 'Comprehensive node configuration validation that understands operation context. For example, it knows Slack message posting requires text field, while channel listing doesn\'t. Provides different validation profiles for different stages of workflow development.',
|
|
21
|
-
parameters: {
|
|
22
|
-
nodeType: { type: 'string', required: true, description: 'Full node type with prefix: "nodes-base.slack", "nodes-base.httpRequest"' },
|
|
23
|
-
config: { type: 'object', required: true, description: 'Node configuration. Must include operation fields (resource/operation/action) if the node has multiple operations' },
|
|
24
|
-
profile: { type: 'string', required: false, description: 'Validation profile - controls what\'s checked. Default: "ai-friendly"' }
|
|
25
|
-
},
|
|
26
|
-
returns: `Object containing:
|
|
27
|
-
{
|
|
28
|
-
"isValid": false,
|
|
29
|
-
"errors": [
|
|
30
|
-
{
|
|
31
|
-
"field": "channel",
|
|
32
|
-
"message": "Required field 'channel' is missing",
|
|
33
|
-
"severity": "error",
|
|
34
|
-
"fix": "#general"
|
|
35
|
-
}
|
|
36
|
-
],
|
|
37
|
-
"warnings": [
|
|
38
|
-
{
|
|
39
|
-
"field": "retryOnFail",
|
|
40
|
-
"message": "Consider enabling retry for reliability",
|
|
41
|
-
"severity": "warning",
|
|
42
|
-
"fix": true
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"suggestions": [
|
|
46
|
-
{
|
|
47
|
-
"field": "timeout",
|
|
48
|
-
"message": "Set timeout to prevent hanging",
|
|
49
|
-
"fix": 30000
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
"fixes": {
|
|
53
|
-
"channel": "#general",
|
|
54
|
-
"retryOnFail": true,
|
|
55
|
-
"timeout": 30000
|
|
56
|
-
}
|
|
57
|
-
}`,
|
|
58
|
-
examples: [
|
|
59
|
-
'// Missing required field',
|
|
60
|
-
'validate_node_operation({nodeType: "nodes-base.slack", config: {resource: "message", operation: "post"}})',
|
|
61
|
-
'// Returns: {isValid: false, errors: [{field: "text", message: "Required field missing"}], fixes: {text: "Message text"}}',
|
|
62
|
-
'',
|
|
63
|
-
'// Validate with strict profile for production',
|
|
64
|
-
'validate_node_operation({nodeType: "nodes-base.httpRequest", config: {method: "POST", url: "https://api.example.com"}, profile: "strict"})',
|
|
65
|
-
'',
|
|
66
|
-
'// Apply fixes automatically',
|
|
67
|
-
'const result = validate_node_operation({nodeType: "nodes-base.slack", config: myConfig});',
|
|
68
|
-
'if (!result.isValid) {',
|
|
69
|
-
' myConfig = {...myConfig, ...result.fixes};',
|
|
70
|
-
'}'
|
|
71
|
-
],
|
|
72
|
-
useCases: [
|
|
73
|
-
'Validate configuration before workflow execution',
|
|
74
|
-
'Debug why a node isn\'t working as expected',
|
|
75
|
-
'Generate configuration fixes automatically',
|
|
76
|
-
'Different validation for editing vs production',
|
|
77
|
-
'Check IF/Switch operator structures (binary vs unary operators)',
|
|
78
|
-
'Validate conditions.options metadata for filter-based nodes'
|
|
79
|
-
],
|
|
80
|
-
performance: '<100ms for most nodes, <200ms for complex nodes with many conditions',
|
|
81
|
-
bestPractices: [
|
|
82
|
-
'Use "minimal" profile during user editing for fast feedback',
|
|
83
|
-
'Use "runtime" profile (default) before execution',
|
|
84
|
-
'Use "ai-friendly" when AI configures nodes',
|
|
85
|
-
'Use "strict" profile before production deployment',
|
|
86
|
-
'Always include operation fields (resource/operation) in config',
|
|
87
|
-
'Apply suggested fixes to resolve issues quickly'
|
|
88
|
-
],
|
|
89
|
-
pitfalls: [
|
|
90
|
-
'Must include operation fields for multi-operation nodes',
|
|
91
|
-
'Fixes are suggestions - review before applying',
|
|
92
|
-
'Profile affects what\'s validated - minimal skips many checks',
|
|
93
|
-
'**Binary vs Unary operators**: Binary operators (equals, contains, greaterThan) must NOT have singleValue:true. Unary operators (isEmpty, isNotEmpty, true, false) REQUIRE singleValue:true',
|
|
94
|
-
'**IF and Switch nodes with conditions**: Must have complete conditions.options structure: {version: 2, leftValue: "", caseSensitive: true/false, typeValidation: "strict"}',
|
|
95
|
-
'**Operator type field**: Must be data type (string/number/boolean/dateTime/array/object), NOT operation name (e.g., use type:"string" operation:"equals", not type:"equals")'
|
|
96
|
-
],
|
|
97
|
-
relatedTools: ['validate_node_minimal for quick checks', 'get_node_essentials for valid examples', 'validate_workflow for complete workflow validation']
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
//# sourceMappingURL=validate-node-operation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validate-node-operation.js","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/validation/validate-node-operation.ts"],"names":[],"mappings":";;;AAEa,QAAA,wBAAwB,GAAsB;IACzD,IAAI,EAAE,yBAAyB;IAC/B,QAAQ,EAAE,YAAY;IACtB,UAAU,EAAE;QACV,WAAW,EAAE,qOAAqO;QAClP,aAAa,EAAE,CAAC,UAAU,EAAE,QAAQ,EAAE,SAAS,CAAC;QAChD,OAAO,EAAE,uHAAuH;QAChI,WAAW,EAAE,QAAQ;QACrB,IAAI,EAAE;YACJ,sGAAsG;YACtG,sCAAsC;YACtC,+CAA+C;YAC/C,uEAAuE;SACxE;KACF;IACD,IAAI,EAAE;QACJ,WAAW,EAAE,uQAAuQ;QACpR,UAAU,EAAE;YACV,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,0EAA0E,EAAE;YACrI,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,mHAAmH,EAAE;YAC5K,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,EAAE,uEAAuE,EAAE;SACnI;QACD,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BX;QACE,QAAQ,EAAE;YACR,2BAA2B;YAC3B,2GAA2G;YAC3G,2HAA2H;YAC3H,EAAE;YACF,gDAAgD;YAChD,4IAA4I;YAC5I,EAAE;YACF,8BAA8B;YAC9B,2FAA2F;YAC3F,wBAAwB;YACxB,8CAA8C;YAC9C,GAAG;SACJ;QACD,QAAQ,EAAE;YACR,kDAAkD;YAClD,6CAA6C;YAC7C,4CAA4C;YAC5C,gDAAgD;YAChD,iEAAiE;YACjE,6DAA6D;SAC9D;QACD,WAAW,EAAE,sEAAsE;QACnF,aAAa,EAAE;YACb,6DAA6D;YAC7D,kDAAkD;YAClD,4CAA4C;YAC5C,mDAAmD;YACnD,gEAAgE;YAChE,iDAAiD;SAClD;QACD,QAAQ,EAAE;YACR,yDAAyD;YACzD,gDAAgD;YAChD,+DAA+D;YAC/D,6LAA6L;YAC7L,4KAA4K;YAC5K,8KAA8K;SAC/K;QACD,YAAY,EAAE,CAAC,wCAAwC,EAAE,wCAAwC,EAAE,oDAAoD,CAAC;KACzJ;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validate-workflow-connections.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/validation/validate-workflow-connections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,8BAA8B,EAAE,iBAqD5C,CAAC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateWorkflowConnectionsDoc = void 0;
|
|
4
|
-
exports.validateWorkflowConnectionsDoc = {
|
|
5
|
-
name: 'validate_workflow_connections',
|
|
6
|
-
category: 'validation',
|
|
7
|
-
essentials: {
|
|
8
|
-
description: 'Check workflow connections only: valid nodes, no cycles, proper triggers, AI tool links. Fast structure validation.',
|
|
9
|
-
keyParameters: ['workflow'],
|
|
10
|
-
example: 'validate_workflow_connections({workflow: {nodes: [...], connections: {...}}})',
|
|
11
|
-
performance: 'Fast (<100ms)',
|
|
12
|
-
tips: [
|
|
13
|
-
'Use for quick structure checks when editing connections',
|
|
14
|
-
'Detects orphaned nodes and circular dependencies',
|
|
15
|
-
'Validates AI Agent tool connections to ensure proper node references'
|
|
16
|
-
]
|
|
17
|
-
},
|
|
18
|
-
full: {
|
|
19
|
-
description: 'Validates only the connection structure of a workflow without checking node configurations or expressions. This focused validation checks that all referenced nodes exist, detects circular dependencies, ensures proper trigger node placement, validates AI tool connections, and identifies orphaned or unreachable nodes.',
|
|
20
|
-
parameters: {
|
|
21
|
-
workflow: {
|
|
22
|
-
type: 'object',
|
|
23
|
-
required: true,
|
|
24
|
-
description: 'The workflow JSON with nodes array and connections object.'
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
returns: 'Object with valid (boolean), errors (array), warnings (array), and statistics about connections',
|
|
28
|
-
examples: [
|
|
29
|
-
'validate_workflow_connections({workflow: myWorkflow}) - Check all connections',
|
|
30
|
-
'validate_workflow_connections({workflow: {nodes: [...], connections: {...}}}) - Validate structure only'
|
|
31
|
-
],
|
|
32
|
-
useCases: [
|
|
33
|
-
'Quick validation when modifying workflow connections',
|
|
34
|
-
'Ensure all node references in connections are valid',
|
|
35
|
-
'Detect circular dependencies that would cause infinite loops',
|
|
36
|
-
'Validate AI Agent nodes have proper tool connections',
|
|
37
|
-
'Check workflow has at least one trigger node',
|
|
38
|
-
'Find orphaned nodes not connected to any flow'
|
|
39
|
-
],
|
|
40
|
-
performance: 'Fast (<100ms). Only validates structure, not node content. Scales linearly with connection count.',
|
|
41
|
-
bestPractices: [
|
|
42
|
-
'Run after adding or removing connections',
|
|
43
|
-
'Use before validate_workflow for quick structural checks',
|
|
44
|
-
'Check for warnings about orphaned nodes',
|
|
45
|
-
'Ensure trigger nodes are properly positioned',
|
|
46
|
-
'Validate after using n8n_update_partial_workflow with connection operations'
|
|
47
|
-
],
|
|
48
|
-
pitfalls: [
|
|
49
|
-
'Does not validate node configurations - use validate_workflow for full validation',
|
|
50
|
-
'Cannot detect logical errors in connection flow',
|
|
51
|
-
'Some valid workflows may have intentionally disconnected nodes',
|
|
52
|
-
'Circular dependency detection only catches direct loops',
|
|
53
|
-
'Does not validate connection types match node capabilities'
|
|
54
|
-
],
|
|
55
|
-
relatedTools: ['validate_workflow', 'validate_workflow_expressions', 'n8n_update_partial_workflow']
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
//# sourceMappingURL=validate-workflow-connections.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validate-workflow-connections.js","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/validation/validate-workflow-connections.ts"],"names":[],"mappings":";;;AAEa,QAAA,8BAA8B,GAAsB;IAC/D,IAAI,EAAE,+BAA+B;IACrC,QAAQ,EAAE,YAAY;IACtB,UAAU,EAAE;QACV,WAAW,EAAE,qHAAqH;QAClI,aAAa,EAAE,CAAC,UAAU,CAAC;QAC3B,OAAO,EAAE,+EAA+E;QACxF,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE;YACJ,yDAAyD;YACzD,kDAAkD;YAClD,sEAAsE;SACvE;KACF;IACD,IAAI,EAAE;QACJ,WAAW,EAAE,+TAA+T;QAC5U,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,4DAA4D;aAC1E;SACF;QACD,OAAO,EAAE,iGAAiG;QAC1G,QAAQ,EAAE;YACR,+EAA+E;YAC/E,yGAAyG;SAC1G;QACD,QAAQ,EAAE;YACR,sDAAsD;YACtD,qDAAqD;YACrD,8DAA8D;YAC9D,sDAAsD;YACtD,8CAA8C;YAC9C,+CAA+C;SAChD;QACD,WAAW,EAAE,mGAAmG;QAChH,aAAa,EAAE;YACb,0CAA0C;YAC1C,0DAA0D;YAC1D,yCAAyC;YACzC,8CAA8C;YAC9C,6EAA6E;SAC9E;QACD,QAAQ,EAAE;YACR,mFAAmF;YACnF,iDAAiD;YACjD,gEAAgE;YAChE,yDAAyD;YACzD,4DAA4D;SAC7D;QACD,YAAY,EAAE,CAAC,mBAAmB,EAAE,+BAA+B,EAAE,6BAA6B,CAAC;KACpG;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validate-workflow-expressions.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/validation/validate-workflow-expressions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,8BAA8B,EAAE,iBAqD5C,CAAC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateWorkflowExpressionsDoc = void 0;
|
|
4
|
-
exports.validateWorkflowExpressionsDoc = {
|
|
5
|
-
name: 'validate_workflow_expressions',
|
|
6
|
-
category: 'validation',
|
|
7
|
-
essentials: {
|
|
8
|
-
description: 'Validate n8n expressions: syntax {{}}, variables ($json/$node), references. Returns errors with locations.',
|
|
9
|
-
keyParameters: ['workflow'],
|
|
10
|
-
example: 'validate_workflow_expressions({workflow: {nodes: [...], connections: {...}}})',
|
|
11
|
-
performance: 'Fast (<100ms)',
|
|
12
|
-
tips: [
|
|
13
|
-
'Catches syntax errors in {{}} expressions before runtime',
|
|
14
|
-
'Validates $json, $node, and other n8n variables',
|
|
15
|
-
'Shows exact location of expression errors in node parameters'
|
|
16
|
-
]
|
|
17
|
-
},
|
|
18
|
-
full: {
|
|
19
|
-
description: 'Validates all n8n expressions within a workflow for syntax correctness and reference validity. This tool scans all node parameters for n8n expressions (enclosed in {{}}), checks expression syntax, validates variable references like $json and $node("NodeName"), ensures referenced nodes exist in the workflow, and provides detailed error locations for debugging.',
|
|
20
|
-
parameters: {
|
|
21
|
-
workflow: {
|
|
22
|
-
type: 'object',
|
|
23
|
-
required: true,
|
|
24
|
-
description: 'The workflow JSON to check for expression errors.'
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
returns: 'Object with valid (boolean), errors (array with node ID, parameter path, and error details), and expression count',
|
|
28
|
-
examples: [
|
|
29
|
-
'validate_workflow_expressions({workflow: myWorkflow}) - Check all expressions',
|
|
30
|
-
'validate_workflow_expressions({workflow: {nodes: [...], connections: {...}}}) - Validate expression syntax'
|
|
31
|
-
],
|
|
32
|
-
useCases: [
|
|
33
|
-
'Catch expression syntax errors before workflow execution',
|
|
34
|
-
'Validate node references in $node() expressions exist',
|
|
35
|
-
'Find typos in variable names like $json or $input',
|
|
36
|
-
'Ensure complex expressions are properly formatted',
|
|
37
|
-
'Debug expression errors with exact parameter locations',
|
|
38
|
-
'Validate expressions after workflow modifications'
|
|
39
|
-
],
|
|
40
|
-
performance: 'Fast (<100ms). Scans all string parameters in all nodes. Performance scales with workflow size and expression count.',
|
|
41
|
-
bestPractices: [
|
|
42
|
-
'Run after modifying any expressions in node parameters',
|
|
43
|
-
'Check all $node() references when renaming nodes',
|
|
44
|
-
'Validate expressions before workflow deployment',
|
|
45
|
-
'Pay attention to nested object paths in expressions',
|
|
46
|
-
'Use with validate_workflow for comprehensive validation'
|
|
47
|
-
],
|
|
48
|
-
pitfalls: [
|
|
49
|
-
'Cannot validate expression logic, only syntax',
|
|
50
|
-
'Runtime data availability not checked (e.g., if $json.field exists)',
|
|
51
|
-
'Complex JavaScript in expressions may need runtime testing',
|
|
52
|
-
'Does not validate expression return types',
|
|
53
|
-
'Some valid expressions may use advanced features not fully parsed'
|
|
54
|
-
],
|
|
55
|
-
relatedTools: ['validate_workflow', 'validate_workflow_connections', 'validate_node_operation']
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
//# sourceMappingURL=validate-workflow-expressions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validate-workflow-expressions.js","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/validation/validate-workflow-expressions.ts"],"names":[],"mappings":";;;AAEa,QAAA,8BAA8B,GAAsB;IAC/D,IAAI,EAAE,+BAA+B;IACrC,QAAQ,EAAE,YAAY;IACtB,UAAU,EAAE;QACV,WAAW,EAAE,4GAA4G;QACzH,aAAa,EAAE,CAAC,UAAU,CAAC;QAC3B,OAAO,EAAE,+EAA+E;QACxF,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE;YACJ,0DAA0D;YAC1D,iDAAiD;YACjD,8DAA8D;SAC/D;KACF;IACD,IAAI,EAAE;QACJ,WAAW,EAAE,2WAA2W;QACxX,UAAU,EAAE;YACV,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,mDAAmD;aACjE;SACF;QACD,OAAO,EAAE,mHAAmH;QAC5H,QAAQ,EAAE;YACR,+EAA+E;YAC/E,4GAA4G;SAC7G;QACD,QAAQ,EAAE;YACR,0DAA0D;YAC1D,uDAAuD;YACvD,mDAAmD;YACnD,mDAAmD;YACnD,wDAAwD;YACxD,mDAAmD;SACpD;QACD,WAAW,EAAE,sHAAsH;QACnI,aAAa,EAAE;YACb,wDAAwD;YACxD,kDAAkD;YAClD,iDAAiD;YACjD,qDAAqD;YACrD,yDAAyD;SAC1D;QACD,QAAQ,EAAE;YACR,+CAA+C;YAC/C,qEAAqE;YACrE,4DAA4D;YAC5D,2CAA2C;YAC3C,mEAAmE;SACpE;QACD,YAAY,EAAE,CAAC,mBAAmB,EAAE,+BAA+B,EAAE,yBAAyB,CAAC;KAChG;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"n8n-delete-execution.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/workflow_management/n8n-delete-execution.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,qBAAqB,EAAE,iBAsDnC,CAAC"}
|