n8n-mcp 2.7.14 → 2.7.17
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/.env.example +10 -0
- package/README.md +49 -3
- package/data/nodes.db +0 -0
- package/dist/http-server-single-session.d.ts.map +1 -1
- package/dist/http-server-single-session.js +87 -3
- package/dist/http-server-single-session.js.map +1 -1
- package/dist/http-server.d.ts.map +1 -1
- package/dist/http-server.js +85 -2
- package/dist/http-server.js.map +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +0 -3
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/tool-docs/configuration/get-node-as-tool-info.d.ts +3 -0
- package/dist/mcp/tool-docs/configuration/get-node-as-tool-info.d.ts.map +1 -0
- package/dist/mcp/tool-docs/configuration/get-node-as-tool-info.js +73 -0
- package/dist/mcp/tool-docs/configuration/get-node-as-tool-info.js.map +1 -0
- package/dist/mcp/tool-docs/configuration/get-node-documentation.d.ts +3 -0
- package/dist/mcp/tool-docs/configuration/get-node-documentation.d.ts.map +1 -0
- package/dist/mcp/tool-docs/configuration/get-node-documentation.js +47 -0
- package/dist/mcp/tool-docs/configuration/get-node-documentation.js.map +1 -0
- package/dist/mcp/tool-docs/configuration/get-node-essentials.d.ts +3 -0
- package/dist/mcp/tool-docs/configuration/get-node-essentials.d.ts.map +1 -0
- package/dist/mcp/tool-docs/configuration/get-node-essentials.js +88 -0
- package/dist/mcp/tool-docs/configuration/get-node-essentials.js.map +1 -0
- package/dist/mcp/tool-docs/configuration/get-node-info.d.ts +3 -0
- package/dist/mcp/tool-docs/configuration/get-node-info.d.ts.map +1 -0
- package/dist/mcp/tool-docs/configuration/get-node-info.js +100 -0
- package/dist/mcp/tool-docs/configuration/get-node-info.js.map +1 -0
- package/dist/mcp/tool-docs/configuration/get-property-dependencies.d.ts +3 -0
- package/dist/mcp/tool-docs/configuration/get-property-dependencies.d.ts.map +1 -0
- package/dist/mcp/tool-docs/configuration/get-property-dependencies.js +81 -0
- package/dist/mcp/tool-docs/configuration/get-property-dependencies.js.map +1 -0
- package/dist/mcp/tool-docs/configuration/index.d.ts +7 -0
- package/dist/mcp/tool-docs/configuration/index.d.ts.map +1 -0
- package/dist/mcp/tool-docs/configuration/index.js +16 -0
- package/dist/mcp/tool-docs/configuration/index.js.map +1 -0
- package/dist/mcp/tool-docs/configuration/search-node-properties.d.ts +3 -0
- package/dist/mcp/tool-docs/configuration/search-node-properties.d.ts.map +1 -0
- package/dist/mcp/tool-docs/configuration/search-node-properties.js +99 -0
- package/dist/mcp/tool-docs/configuration/search-node-properties.js.map +1 -0
- package/dist/mcp/tool-docs/discovery/get-database-statistics.d.ts +3 -0
- package/dist/mcp/tool-docs/discovery/get-database-statistics.d.ts.map +1 -0
- package/dist/mcp/tool-docs/discovery/get-database-statistics.js +69 -0
- package/dist/mcp/tool-docs/discovery/get-database-statistics.js.map +1 -0
- package/dist/mcp/tool-docs/discovery/index.d.ts +5 -0
- package/dist/mcp/tool-docs/discovery/index.d.ts.map +1 -0
- package/dist/mcp/tool-docs/discovery/index.js +12 -0
- package/dist/mcp/tool-docs/discovery/index.js.map +1 -0
- package/dist/mcp/tool-docs/discovery/list-ai-tools.d.ts +3 -0
- package/dist/mcp/tool-docs/discovery/list-ai-tools.d.ts.map +1 -0
- package/dist/mcp/tool-docs/discovery/list-ai-tools.js +49 -0
- package/dist/mcp/tool-docs/discovery/list-ai-tools.js.map +1 -0
- package/dist/mcp/tool-docs/discovery/list-nodes.d.ts +3 -0
- package/dist/mcp/tool-docs/discovery/list-nodes.d.ts.map +1 -0
- package/dist/mcp/tool-docs/discovery/list-nodes.js +54 -0
- package/dist/mcp/tool-docs/discovery/list-nodes.js.map +1 -0
- package/dist/mcp/tool-docs/discovery/search-nodes.d.ts +3 -0
- package/dist/mcp/tool-docs/discovery/search-nodes.d.ts.map +1 -0
- package/dist/mcp/tool-docs/discovery/search-nodes.js +56 -0
- package/dist/mcp/tool-docs/discovery/search-nodes.js.map +1 -0
- package/dist/mcp/tool-docs/index.d.ts +4 -0
- package/dist/mcp/tool-docs/index.d.ts.map +1 -0
- package/dist/mcp/tool-docs/index.js +51 -0
- package/dist/mcp/tool-docs/index.js.map +1 -0
- package/dist/mcp/tool-docs/special/code-node-guide.d.ts +3 -0
- package/dist/mcp/tool-docs/special/code-node-guide.d.ts.map +1 -0
- package/dist/mcp/tool-docs/special/code-node-guide.js +61 -0
- package/dist/mcp/tool-docs/special/code-node-guide.js.map +1 -0
- package/dist/mcp/tool-docs/special/index.d.ts +2 -0
- package/dist/mcp/tool-docs/special/index.d.ts.map +1 -0
- package/dist/mcp/tool-docs/special/index.js +6 -0
- package/dist/mcp/tool-docs/special/index.js.map +1 -0
- package/dist/mcp/tool-docs/system/index.d.ts +5 -0
- package/dist/mcp/tool-docs/system/index.d.ts.map +1 -0
- package/dist/mcp/tool-docs/system/index.js +12 -0
- package/dist/mcp/tool-docs/system/index.js.map +1 -0
- package/dist/mcp/tool-docs/system/n8n-diagnostic.d.ts +3 -0
- package/dist/mcp/tool-docs/system/n8n-diagnostic.d.ts.map +1 -0
- package/dist/mcp/tool-docs/system/n8n-diagnostic.js +81 -0
- package/dist/mcp/tool-docs/system/n8n-diagnostic.js.map +1 -0
- package/dist/mcp/tool-docs/system/n8n-health-check.d.ts +3 -0
- package/dist/mcp/tool-docs/system/n8n-health-check.d.ts.map +1 -0
- package/dist/mcp/tool-docs/system/n8n-health-check.js +77 -0
- package/dist/mcp/tool-docs/system/n8n-health-check.js.map +1 -0
- package/dist/mcp/tool-docs/system/n8n-list-available-tools.d.ts +3 -0
- package/dist/mcp/tool-docs/system/n8n-list-available-tools.d.ts.map +1 -0
- package/dist/mcp/tool-docs/system/n8n-list-available-tools.js +75 -0
- package/dist/mcp/tool-docs/system/n8n-list-available-tools.js.map +1 -0
- package/dist/mcp/tool-docs/system/tools-documentation.d.ts +3 -0
- package/dist/mcp/tool-docs/system/tools-documentation.d.ts.map +1 -0
- package/dist/mcp/tool-docs/system/tools-documentation.js +65 -0
- package/dist/mcp/tool-docs/system/tools-documentation.js.map +1 -0
- package/dist/mcp/tool-docs/templates/get-node-for-task.d.ts +3 -0
- package/dist/mcp/tool-docs/templates/get-node-for-task.d.ts.map +1 -0
- package/dist/mcp/tool-docs/templates/get-node-for-task.js +50 -0
- package/dist/mcp/tool-docs/templates/get-node-for-task.js.map +1 -0
- package/dist/mcp/tool-docs/templates/get-template.d.ts +3 -0
- package/dist/mcp/tool-docs/templates/get-template.d.ts.map +1 -0
- package/dist/mcp/tool-docs/templates/get-template.js +76 -0
- package/dist/mcp/tool-docs/templates/get-template.js.map +1 -0
- package/dist/mcp/tool-docs/templates/get-templates-for-task.d.ts +3 -0
- package/dist/mcp/tool-docs/templates/get-templates-for-task.d.ts.map +1 -0
- package/dist/mcp/tool-docs/templates/get-templates-for-task.js +76 -0
- package/dist/mcp/tool-docs/templates/get-templates-for-task.js.map +1 -0
- package/dist/mcp/tool-docs/templates/index.d.ts +7 -0
- package/dist/mcp/tool-docs/templates/index.d.ts.map +1 -0
- package/dist/mcp/tool-docs/templates/index.js +16 -0
- package/dist/mcp/tool-docs/templates/index.js.map +1 -0
- package/dist/mcp/tool-docs/templates/list-node-templates.d.ts +3 -0
- package/dist/mcp/tool-docs/templates/list-node-templates.d.ts.map +1 -0
- package/dist/mcp/tool-docs/templates/list-node-templates.js +80 -0
- package/dist/mcp/tool-docs/templates/list-node-templates.js.map +1 -0
- package/dist/mcp/tool-docs/templates/list-tasks.d.ts +3 -0
- package/dist/mcp/tool-docs/templates/list-tasks.d.ts.map +1 -0
- package/dist/mcp/tool-docs/templates/list-tasks.js +48 -0
- package/dist/mcp/tool-docs/templates/list-tasks.js.map +1 -0
- package/dist/mcp/tool-docs/templates/search-templates.d.ts +3 -0
- package/dist/mcp/tool-docs/templates/search-templates.d.ts.map +1 -0
- package/dist/mcp/tool-docs/templates/search-templates.js +83 -0
- package/dist/mcp/tool-docs/templates/search-templates.js.map +1 -0
- package/dist/mcp/tool-docs/types.d.ts +30 -0
- package/dist/mcp/tool-docs/types.d.ts.map +1 -0
- package/dist/mcp/tool-docs/types.js +3 -0
- package/dist/mcp/tool-docs/types.js.map +1 -0
- package/dist/mcp/tool-docs/validation/index.d.ts +6 -0
- package/dist/mcp/tool-docs/validation/index.d.ts.map +1 -0
- package/dist/mcp/tool-docs/validation/index.js +14 -0
- package/dist/mcp/tool-docs/validation/index.js.map +1 -0
- package/dist/mcp/tool-docs/validation/validate-node-minimal.d.ts +3 -0
- package/dist/mcp/tool-docs/validation/validate-node-minimal.d.ts.map +1 -0
- package/dist/mcp/tool-docs/validation/validate-node-minimal.js +49 -0
- package/dist/mcp/tool-docs/validation/validate-node-minimal.js.map +1 -0
- package/dist/mcp/tool-docs/validation/validate-node-operation.d.ts +3 -0
- package/dist/mcp/tool-docs/validation/validate-node-operation.d.ts.map +1 -0
- package/dist/mcp/tool-docs/validation/validate-node-operation.js +94 -0
- package/dist/mcp/tool-docs/validation/validate-node-operation.js.map +1 -0
- package/dist/mcp/tool-docs/validation/validate-workflow-connections.d.ts +3 -0
- package/dist/mcp/tool-docs/validation/validate-workflow-connections.d.ts.map +1 -0
- package/dist/mcp/tool-docs/validation/validate-workflow-connections.js +58 -0
- package/dist/mcp/tool-docs/validation/validate-workflow-connections.js.map +1 -0
- package/dist/mcp/tool-docs/validation/validate-workflow-expressions.d.ts +3 -0
- package/dist/mcp/tool-docs/validation/validate-workflow-expressions.d.ts.map +1 -0
- package/dist/mcp/tool-docs/validation/validate-workflow-expressions.js +58 -0
- package/dist/mcp/tool-docs/validation/validate-workflow-expressions.js.map +1 -0
- package/dist/mcp/tool-docs/validation/validate-workflow.d.ts +3 -0
- package/dist/mcp/tool-docs/validation/validate-workflow.d.ts.map +1 -0
- package/dist/mcp/tool-docs/validation/validate-workflow.js +83 -0
- package/dist/mcp/tool-docs/validation/validate-workflow.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/index.d.ts +15 -0
- package/dist/mcp/tool-docs/workflow_management/index.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/index.js +32 -0
- package/dist/mcp/tool-docs/workflow_management/index.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-create-workflow.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-create-workflow.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-create-workflow.js +99 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-create-workflow.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-delete-execution.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-delete-execution.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-delete-execution.js +59 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-delete-execution.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-delete-workflow.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-delete-workflow.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-delete-workflow.js +52 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-delete-workflow.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-get-execution.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-get-execution.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-get-execution.js +64 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-get-execution.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow-details.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow-details.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow-details.js +51 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow-details.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow-minimal.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow-minimal.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow-minimal.js +51 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow-minimal.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow-structure.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow-structure.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow-structure.js +51 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow-structure.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow.js +51 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-get-workflow.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-list-executions.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-list-executions.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-list-executions.js +86 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-list-executions.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-list-workflows.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-list-workflows.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-list-workflows.js +57 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-list-workflows.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-trigger-webhook-workflow.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-trigger-webhook-workflow.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-trigger-webhook-workflow.js +80 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-trigger-webhook-workflow.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-update-full-workflow.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-update-full-workflow.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-update-full-workflow.js +57 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-update-full-workflow.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-update-partial-workflow.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-update-partial-workflow.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-update-partial-workflow.js +82 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-update-partial-workflow.js.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-validate-workflow.d.ts +3 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-validate-workflow.d.ts.map +1 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-validate-workflow.js +73 -0
- package/dist/mcp/tool-docs/workflow_management/n8n-validate-workflow.js.map +1 -0
- package/dist/mcp/tools-documentation-new.d.ts +6 -0
- package/dist/mcp/tools-documentation-new.d.ts.map +1 -0
- package/dist/mcp/tools-documentation-new.js +163 -0
- package/dist/mcp/tools-documentation-new.js.map +1 -0
- package/dist/mcp/tools-documentation.d.ts +1 -29
- package/dist/mcp/tools-documentation.d.ts.map +1 -1
- package/dist/mcp/tools-documentation.js +506 -1235
- package/dist/mcp/tools-documentation.js.map +1 -1
- package/dist/scripts/rebuild.js +2 -1
- package/dist/scripts/rebuild.js.map +1 -1
- package/dist/scripts/test-tools-documentation.d.ts +2 -0
- package/dist/scripts/test-tools-documentation.d.ts.map +1 -0
- package/dist/scripts/test-tools-documentation.js +41 -0
- package/dist/scripts/test-tools-documentation.js.map +1 -0
- package/dist/services/enhanced-config-validator.d.ts +0 -1
- package/dist/services/enhanced-config-validator.d.ts.map +1 -1
- package/dist/services/enhanced-config-validator.js +2 -91
- package/dist/services/enhanced-config-validator.js.map +1 -1
- package/dist/services/n8n-validation.d.ts.map +1 -1
- package/dist/services/n8n-validation.js.map +1 -1
- package/dist/utils/url-detector.d.ts +9 -0
- package/dist/utils/url-detector.d.ts.map +1 -0
- package/dist/utils/url-detector.js +79 -0
- package/dist/utils/url-detector.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-node-guide.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/special/code-node-guide.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,gBAAgB,EAAE,iBAwD9B,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.codeNodeGuideDoc = void 0;
|
|
4
|
+
exports.codeNodeGuideDoc = {
|
|
5
|
+
name: 'code_node_guide',
|
|
6
|
+
category: 'special',
|
|
7
|
+
essentials: {
|
|
8
|
+
description: 'Get comprehensive guide for using Code nodes in n8n - JavaScript/Python execution, data access patterns, and common pitfalls',
|
|
9
|
+
keyParameters: [],
|
|
10
|
+
example: 'code_node_guide()',
|
|
11
|
+
performance: 'Instant (<10ms) - returns static guide',
|
|
12
|
+
tips: [
|
|
13
|
+
'Use $input.all() to access all items from previous nodes, not items[0]',
|
|
14
|
+
'Return data in [{json: {...}}] format, not just plain objects',
|
|
15
|
+
'External libraries (requests, pandas) not available - use built-in functions or JavaScript $helpers'
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
full: {
|
|
19
|
+
description: `Provides a comprehensive guide for using Code nodes in n8n workflows. This special tool returns detailed documentation about:
|
|
20
|
+
|
|
21
|
+
- JavaScript and Python code execution in n8n
|
|
22
|
+
- Correct data access patterns ($input, $json, $node syntax)
|
|
23
|
+
- Available helper functions ($helpers.httpRequest, $jmespath, etc.)
|
|
24
|
+
- Common mistakes and how to avoid them
|
|
25
|
+
- Working with webhook data (critical: data is under .body property)
|
|
26
|
+
- Returning data in the correct format
|
|
27
|
+
- Limitations and security restrictions
|
|
28
|
+
|
|
29
|
+
This guide is essential for AI agents configuring Code nodes, as it covers the most common issues and correct patterns.`,
|
|
30
|
+
parameters: {},
|
|
31
|
+
returns: 'String containing a comprehensive Code node usage guide with examples and best practices',
|
|
32
|
+
examples: [
|
|
33
|
+
'code_node_guide() - Get the complete Code node guide',
|
|
34
|
+
'// Use this before configuring any Code node to understand correct patterns'
|
|
35
|
+
],
|
|
36
|
+
useCases: [
|
|
37
|
+
'Learning how to access data from previous nodes correctly',
|
|
38
|
+
'Understanding webhook data structure (body property nesting)',
|
|
39
|
+
'Configuring JavaScript vs Python Code nodes',
|
|
40
|
+
'Troubleshooting common Code node errors',
|
|
41
|
+
'Understanding available helper functions and limitations'
|
|
42
|
+
],
|
|
43
|
+
performance: 'Returns instantly - guide is pre-generated and cached',
|
|
44
|
+
bestPractices: [
|
|
45
|
+
'Always read this guide before configuring Code nodes',
|
|
46
|
+
'Pay special attention to data access patterns - most errors come from incorrect syntax',
|
|
47
|
+
'Remember webhook data is nested under .body, not at the root level',
|
|
48
|
+
'Use JavaScript for HTTP requests ($helpers.httpRequest) as Python lacks external libraries',
|
|
49
|
+
'Test with sample data to ensure correct output format'
|
|
50
|
+
],
|
|
51
|
+
pitfalls: [
|
|
52
|
+
'Accessing webhook data incorrectly (forgetting .body nesting)',
|
|
53
|
+
'Using items[0] instead of $input.all() for data access',
|
|
54
|
+
'Returning plain objects instead of [{json: {...}}] format',
|
|
55
|
+
'Trying to use external Python libraries (requests, pandas)',
|
|
56
|
+
'Using expression syntax {{...}} inside Code nodes'
|
|
57
|
+
],
|
|
58
|
+
relatedTools: ['get_node_essentials', 'validate_node_operation', 'get_node_for_task']
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=code-node-guide.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"code-node-guide.js","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/special/code-node-guide.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAsB;IACjD,IAAI,EAAE,iBAAiB;IACvB,QAAQ,EAAE,SAAS;IACnB,UAAU,EAAE;QACV,WAAW,EAAE,8HAA8H;QAC3I,aAAa,EAAE,EAAE;QACjB,OAAO,EAAE,mBAAmB;QAC5B,WAAW,EAAE,wCAAwC;QACrD,IAAI,EAAE;YACJ,wEAAwE;YACxE,+DAA+D;YAC/D,qGAAqG;SACtG;KACF;IACD,IAAI,EAAE;QACJ,WAAW,EAAE;;;;;;;;;;wHAUuG;QACpH,UAAU,EAAE,EAAE;QACd,OAAO,EAAE,0FAA0F;QACnG,QAAQ,EAAE;YACR,sDAAsD;YACtD,6EAA6E;SAC9E;QACD,QAAQ,EAAE;YACR,2DAA2D;YAC3D,8DAA8D;YAC9D,6CAA6C;YAC7C,yCAAyC;YACzC,0DAA0D;SAC3D;QACD,WAAW,EAAE,uDAAuD;QACpE,aAAa,EAAE;YACb,sDAAsD;YACtD,wFAAwF;YACxF,oEAAoE;YACpE,4FAA4F;YAC5F,uDAAuD;SACxD;QACD,QAAQ,EAAE;YACR,+DAA+D;YAC/D,wDAAwD;YACxD,2DAA2D;YAC3D,4DAA4D;YAC5D,mDAAmD;SACpD;QACD,YAAY,EAAE,CAAC,qBAAqB,EAAE,yBAAyB,EAAE,mBAAmB,CAAC;KACtF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/special/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.codeNodeGuideDoc = void 0;
|
|
4
|
+
var code_node_guide_1 = require("./code-node-guide");
|
|
5
|
+
Object.defineProperty(exports, "codeNodeGuideDoc", { enumerable: true, get: function () { return code_node_guide_1.codeNodeGuideDoc; } });
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/special/index.ts"],"names":[],"mappings":";;;AAAA,qDAAqD;AAA5C,mHAAA,gBAAgB,OAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { toolsDocumentationDoc } from './tools-documentation';
|
|
2
|
+
export { n8nDiagnosticDoc } from './n8n-diagnostic';
|
|
3
|
+
export { n8nHealthCheckDoc } from './n8n-health-check';
|
|
4
|
+
export { n8nListAvailableToolsDoc } from './n8n-list-available-tools';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/system/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.n8nListAvailableToolsDoc = exports.n8nHealthCheckDoc = exports.n8nDiagnosticDoc = exports.toolsDocumentationDoc = void 0;
|
|
4
|
+
var tools_documentation_1 = require("./tools-documentation");
|
|
5
|
+
Object.defineProperty(exports, "toolsDocumentationDoc", { enumerable: true, get: function () { return tools_documentation_1.toolsDocumentationDoc; } });
|
|
6
|
+
var n8n_diagnostic_1 = require("./n8n-diagnostic");
|
|
7
|
+
Object.defineProperty(exports, "n8nDiagnosticDoc", { enumerable: true, get: function () { return n8n_diagnostic_1.n8nDiagnosticDoc; } });
|
|
8
|
+
var n8n_health_check_1 = require("./n8n-health-check");
|
|
9
|
+
Object.defineProperty(exports, "n8nHealthCheckDoc", { enumerable: true, get: function () { return n8n_health_check_1.n8nHealthCheckDoc; } });
|
|
10
|
+
var n8n_list_available_tools_1 = require("./n8n-list-available-tools");
|
|
11
|
+
Object.defineProperty(exports, "n8nListAvailableToolsDoc", { enumerable: true, get: function () { return n8n_list_available_tools_1.n8nListAvailableToolsDoc; } });
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/system/index.ts"],"names":[],"mappings":";;;AAAA,6DAA8D;AAArD,4HAAA,qBAAqB,OAAA;AAC9B,mDAAoD;AAA3C,kHAAA,gBAAgB,OAAA;AACzB,uDAAuD;AAA9C,qHAAA,iBAAiB,OAAA;AAC1B,uEAAsE;AAA7D,oIAAA,wBAAwB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"n8n-diagnostic.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/system/n8n-diagnostic.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,gBAAgB,EAAE,iBA4E9B,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.n8nDiagnosticDoc = void 0;
|
|
4
|
+
exports.n8nDiagnosticDoc = {
|
|
5
|
+
name: 'n8n_diagnostic',
|
|
6
|
+
category: 'system',
|
|
7
|
+
essentials: {
|
|
8
|
+
description: 'Diagnose n8n API configuration and troubleshoot why n8n management tools might not be working',
|
|
9
|
+
keyParameters: ['verbose'],
|
|
10
|
+
example: 'n8n_diagnostic({verbose: true})',
|
|
11
|
+
performance: 'Instant - checks environment and configuration only',
|
|
12
|
+
tips: [
|
|
13
|
+
'Run first when n8n tools are missing or failing - shows exact configuration issues',
|
|
14
|
+
'Use verbose=true for detailed debugging info including environment variables',
|
|
15
|
+
'If tools are missing, check that N8N_API_URL and N8N_API_KEY are configured'
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
full: {
|
|
19
|
+
description: `Comprehensive diagnostic tool for troubleshooting n8n API configuration and management tool availability.
|
|
20
|
+
|
|
21
|
+
This tool performs a detailed check of:
|
|
22
|
+
- Environment variable configuration (N8N_API_URL, N8N_API_KEY)
|
|
23
|
+
- API connectivity and authentication
|
|
24
|
+
- Tool availability status
|
|
25
|
+
- Common configuration issues
|
|
26
|
+
|
|
27
|
+
The diagnostic is essential when:
|
|
28
|
+
- n8n management tools aren't showing up in the available tools list
|
|
29
|
+
- API calls are failing with authentication or connection errors
|
|
30
|
+
- You need to verify your n8n instance configuration`,
|
|
31
|
+
parameters: {
|
|
32
|
+
verbose: {
|
|
33
|
+
type: 'boolean',
|
|
34
|
+
description: 'Include detailed debug information including full environment variables and API response details',
|
|
35
|
+
required: false,
|
|
36
|
+
default: false
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
returns: `Diagnostic report object containing:
|
|
40
|
+
- status: Overall health status ('ok', 'error', 'not_configured')
|
|
41
|
+
- apiUrl: Detected API URL (or null if not configured)
|
|
42
|
+
- apiKeyStatus: Status of API key ('configured', 'missing', 'invalid')
|
|
43
|
+
- toolsAvailable: Number of n8n management tools available
|
|
44
|
+
- connectivity: API connectivity test results
|
|
45
|
+
- errors: Array of specific error messages
|
|
46
|
+
- suggestions: Array of actionable fix suggestions
|
|
47
|
+
- verbose: Additional debug information (if verbose=true)`,
|
|
48
|
+
examples: [
|
|
49
|
+
'n8n_diagnostic({}) - Quick diagnostic check',
|
|
50
|
+
'n8n_diagnostic({verbose: true}) - Detailed diagnostic with environment info',
|
|
51
|
+
'n8n_diagnostic({verbose: false}) - Standard diagnostic without sensitive data'
|
|
52
|
+
],
|
|
53
|
+
useCases: [
|
|
54
|
+
'Initial setup verification after configuring N8N_API_URL and N8N_API_KEY',
|
|
55
|
+
'Troubleshooting when n8n management tools are not available',
|
|
56
|
+
'Debugging API connection failures or authentication errors',
|
|
57
|
+
'Verifying n8n instance compatibility and feature availability',
|
|
58
|
+
'Pre-deployment checks before using workflow management tools'
|
|
59
|
+
],
|
|
60
|
+
performance: `Instant response time:
|
|
61
|
+
- No database queries
|
|
62
|
+
- Only checks environment and makes one test API call
|
|
63
|
+
- Verbose mode adds minimal overhead
|
|
64
|
+
- Safe to run frequently for monitoring`,
|
|
65
|
+
bestPractices: [
|
|
66
|
+
'Always run diagnostic first when encountering n8n tool issues',
|
|
67
|
+
'Use verbose mode only in secure environments (may expose API URLs)',
|
|
68
|
+
'Check diagnostic before attempting workflow operations',
|
|
69
|
+
'Include diagnostic output when reporting issues',
|
|
70
|
+
'Run after any configuration changes to verify setup'
|
|
71
|
+
],
|
|
72
|
+
pitfalls: [
|
|
73
|
+
'Verbose mode may expose sensitive configuration details - use carefully',
|
|
74
|
+
'Requires proper environment variables to detect n8n configuration',
|
|
75
|
+
'API connectivity test requires network access to n8n instance',
|
|
76
|
+
'Does not test specific workflow operations, only basic connectivity'
|
|
77
|
+
],
|
|
78
|
+
relatedTools: ['n8n_health_check', 'n8n_list_available_tools', 'tools_documentation']
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
//# sourceMappingURL=n8n-diagnostic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"n8n-diagnostic.js","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/system/n8n-diagnostic.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAsB;IACjD,IAAI,EAAE,gBAAgB;IACtB,QAAQ,EAAE,QAAQ;IAClB,UAAU,EAAE;QACV,WAAW,EAAE,+FAA+F;QAC5G,aAAa,EAAE,CAAC,SAAS,CAAC;QAC1B,OAAO,EAAE,iCAAiC;QAC1C,WAAW,EAAE,qDAAqD;QAClE,IAAI,EAAE;YACJ,oFAAoF;YACpF,8EAA8E;YAC9E,6EAA6E;SAC9E;KACF;IACD,IAAI,EAAE;QACJ,WAAW,EAAE;;;;;;;;;;;qDAWoC;QACjD,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,IAAI,EAAE,SAAS;gBACf,WAAW,EAAE,kGAAkG;gBAC/G,QAAQ,EAAE,KAAK;gBACf,OAAO,EAAE,KAAK;aACf;SACF;QACD,OAAO,EAAE;;;;;;;;0DAQ6C;QACtD,QAAQ,EAAE;YACR,6CAA6C;YAC7C,6EAA6E;YAC7E,+EAA+E;SAChF;QACD,QAAQ,EAAE;YACR,0EAA0E;YAC1E,6DAA6D;YAC7D,4DAA4D;YAC5D,+DAA+D;YAC/D,8DAA8D;SAC/D;QACD,WAAW,EAAE;;;;wCAIuB;QACpC,aAAa,EAAE;YACb,+DAA+D;YAC/D,oEAAoE;YACpE,wDAAwD;YACxD,iDAAiD;YACjD,qDAAqD;SACtD;QACD,QAAQ,EAAE;YACR,yEAAyE;YACzE,mEAAmE;YACnE,+DAA+D;YAC/D,qEAAqE;SACtE;QACD,YAAY,EAAE,CAAC,kBAAkB,EAAE,0BAA0B,EAAE,qBAAqB,CAAC;KACtF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"n8n-health-check.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/system/n8n-health-check.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,iBAAiB,EAAE,iBAwE/B,CAAC"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.n8nHealthCheckDoc = void 0;
|
|
4
|
+
exports.n8nHealthCheckDoc = {
|
|
5
|
+
name: 'n8n_health_check',
|
|
6
|
+
category: 'system',
|
|
7
|
+
essentials: {
|
|
8
|
+
description: 'Check n8n instance health, API connectivity, and available features',
|
|
9
|
+
keyParameters: [],
|
|
10
|
+
example: 'n8n_health_check({})',
|
|
11
|
+
performance: 'Fast - single API call to health endpoint',
|
|
12
|
+
tips: [
|
|
13
|
+
'Use before starting workflow operations to ensure n8n is responsive',
|
|
14
|
+
'Check regularly in production environments for monitoring',
|
|
15
|
+
'Returns version info and feature availability for compatibility checks'
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
full: {
|
|
19
|
+
description: `Performs a comprehensive health check of the configured n8n instance through its API.
|
|
20
|
+
|
|
21
|
+
This tool verifies:
|
|
22
|
+
- API endpoint accessibility and response time
|
|
23
|
+
- n8n instance version and build information
|
|
24
|
+
- Authentication status and permissions
|
|
25
|
+
- Available features and enterprise capabilities
|
|
26
|
+
- Database connectivity (as reported by n8n)
|
|
27
|
+
- Queue system status (if configured)
|
|
28
|
+
|
|
29
|
+
Health checks are crucial for:
|
|
30
|
+
- Monitoring n8n instance availability
|
|
31
|
+
- Detecting performance degradation
|
|
32
|
+
- Verifying API compatibility before operations
|
|
33
|
+
- Ensuring authentication is working correctly`,
|
|
34
|
+
parameters: {},
|
|
35
|
+
returns: `Health status object containing:
|
|
36
|
+
- status: Overall health status ('healthy', 'degraded', 'error')
|
|
37
|
+
- version: n8n instance version information
|
|
38
|
+
- instanceId: Unique identifier for the n8n instance
|
|
39
|
+
- features: Object listing available features and their status
|
|
40
|
+
- apiVersion: API version for compatibility checking
|
|
41
|
+
- responseTime: API response time in milliseconds
|
|
42
|
+
- timestamp: Check timestamp
|
|
43
|
+
- details: Additional health metrics from n8n`,
|
|
44
|
+
examples: [
|
|
45
|
+
'n8n_health_check({}) - Standard health check',
|
|
46
|
+
'// Use in monitoring scripts\nconst health = await n8n_health_check({});\nif (health.status !== "healthy") alert("n8n is down!");',
|
|
47
|
+
'// Check before critical operations\nconst health = await n8n_health_check({});\nif (health.responseTime > 1000) console.warn("n8n is slow");'
|
|
48
|
+
],
|
|
49
|
+
useCases: [
|
|
50
|
+
'Pre-flight checks before workflow deployments',
|
|
51
|
+
'Continuous monitoring of n8n instance health',
|
|
52
|
+
'Troubleshooting connectivity or performance issues',
|
|
53
|
+
'Verifying n8n version compatibility with workflows',
|
|
54
|
+
'Detecting feature availability (enterprise features, queue mode, etc.)'
|
|
55
|
+
],
|
|
56
|
+
performance: `Fast response expected:
|
|
57
|
+
- Single HTTP request to /health endpoint
|
|
58
|
+
- Typically responds in <100ms for healthy instances
|
|
59
|
+
- Timeout after 10 seconds indicates severe issues
|
|
60
|
+
- Minimal server load - safe for frequent polling`,
|
|
61
|
+
bestPractices: [
|
|
62
|
+
'Run health checks before batch operations or deployments',
|
|
63
|
+
'Set up automated monitoring with regular health checks',
|
|
64
|
+
'Log response times to detect performance trends',
|
|
65
|
+
'Check version compatibility when deploying workflows',
|
|
66
|
+
'Use health status to implement circuit breaker patterns'
|
|
67
|
+
],
|
|
68
|
+
pitfalls: [
|
|
69
|
+
'Requires N8N_API_URL and N8N_API_KEY to be configured',
|
|
70
|
+
'Network issues may cause false negatives',
|
|
71
|
+
'Does not check individual workflow health',
|
|
72
|
+
'Health endpoint might be cached - not real-time for all metrics'
|
|
73
|
+
],
|
|
74
|
+
relatedTools: ['n8n_diagnostic', 'n8n_list_available_tools', 'n8n_list_workflows']
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=n8n-health-check.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"n8n-health-check.js","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/system/n8n-health-check.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAsB;IAClD,IAAI,EAAE,kBAAkB;IACxB,QAAQ,EAAE,QAAQ;IAClB,UAAU,EAAE;QACV,WAAW,EAAE,qEAAqE;QAClF,aAAa,EAAE,EAAE;QACjB,OAAO,EAAE,sBAAsB;QAC/B,WAAW,EAAE,2CAA2C;QACxD,IAAI,EAAE;YACJ,qEAAqE;YACrE,2DAA2D;YAC3D,wEAAwE;SACzE;KACF;IACD,IAAI,EAAE;QACJ,WAAW,EAAE;;;;;;;;;;;;;;+CAc8B;QAC3C,UAAU,EAAE,EAAE;QACd,OAAO,EAAE;;;;;;;;8CAQiC;QAC1C,QAAQ,EAAE;YACR,8CAA8C;YAC9C,mIAAmI;YACnI,+IAA+I;SAChJ;QACD,QAAQ,EAAE;YACR,+CAA+C;YAC/C,8CAA8C;YAC9C,oDAAoD;YACpD,oDAAoD;YACpD,wEAAwE;SACzE;QACD,WAAW,EAAE;;;;kDAIiC;QAC9C,aAAa,EAAE;YACb,0DAA0D;YAC1D,wDAAwD;YACxD,iDAAiD;YACjD,sDAAsD;YACtD,yDAAyD;SAC1D;QACD,QAAQ,EAAE;YACR,uDAAuD;YACvD,0CAA0C;YAC1C,2CAA2C;YAC3C,iEAAiE;SAClE;QACD,YAAY,EAAE,CAAC,gBAAgB,EAAE,0BAA0B,EAAE,oBAAoB,CAAC;KACnF;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"n8n-list-available-tools.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/system/n8n-list-available-tools.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,wBAAwB,EAAE,iBAsEtC,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.n8nListAvailableToolsDoc = void 0;
|
|
4
|
+
exports.n8nListAvailableToolsDoc = {
|
|
5
|
+
name: 'n8n_list_available_tools',
|
|
6
|
+
category: 'system',
|
|
7
|
+
essentials: {
|
|
8
|
+
description: 'List all available n8n management tools and their capabilities',
|
|
9
|
+
keyParameters: [],
|
|
10
|
+
example: 'n8n_list_available_tools({})',
|
|
11
|
+
performance: 'Instant - returns static tool list',
|
|
12
|
+
tips: [
|
|
13
|
+
'Shows only tools available with current API configuration',
|
|
14
|
+
'If no n8n tools appear, run n8n_diagnostic to troubleshoot',
|
|
15
|
+
'Tool availability depends on N8N_API_URL and N8N_API_KEY being set'
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
full: {
|
|
19
|
+
description: `Lists all available n8n management tools based on current configuration.
|
|
20
|
+
|
|
21
|
+
This tool provides:
|
|
22
|
+
- Complete list of n8n management tools (when API is configured)
|
|
23
|
+
- Tool descriptions and capabilities
|
|
24
|
+
- Categorized tool listing (workflow, execution, system)
|
|
25
|
+
- Dynamic availability based on API configuration
|
|
26
|
+
|
|
27
|
+
The tool list is dynamic:
|
|
28
|
+
- Shows 14+ management tools when N8N_API_URL and N8N_API_KEY are configured
|
|
29
|
+
- Shows only documentation tools when API is not configured
|
|
30
|
+
- Helps discover available functionality
|
|
31
|
+
- Provides quick reference for tool names and purposes`,
|
|
32
|
+
parameters: {},
|
|
33
|
+
returns: `Object containing:
|
|
34
|
+
- tools: Array of available tool objects, each with:
|
|
35
|
+
- name: Tool identifier (e.g., 'n8n_create_workflow')
|
|
36
|
+
- description: Brief description of tool functionality
|
|
37
|
+
- category: Tool category ('workflow', 'execution', 'system')
|
|
38
|
+
- requiresApi: Whether tool needs API configuration
|
|
39
|
+
- categories: Summary count by category
|
|
40
|
+
- totalTools: Total number of available tools
|
|
41
|
+
- apiConfigured: Whether n8n API is configured`,
|
|
42
|
+
examples: [
|
|
43
|
+
'n8n_list_available_tools({}) - List all available tools',
|
|
44
|
+
'// Check for specific tool availability\nconst tools = await n8n_list_available_tools({});\nconst hasWorkflowTools = tools.tools.some(t => t.category === "workflow");',
|
|
45
|
+
'// Discover management capabilities\nconst result = await n8n_list_available_tools({});\nconsole.log(`${result.totalTools} tools available`);'
|
|
46
|
+
],
|
|
47
|
+
useCases: [
|
|
48
|
+
'Discovering available n8n management capabilities',
|
|
49
|
+
'Checking if API configuration is working correctly',
|
|
50
|
+
'Finding the right tool for a specific task',
|
|
51
|
+
'Generating help documentation or command lists',
|
|
52
|
+
'Verifying tool availability before automation scripts'
|
|
53
|
+
],
|
|
54
|
+
performance: `Instant response:
|
|
55
|
+
- No API calls required
|
|
56
|
+
- Returns pre-defined tool list
|
|
57
|
+
- Filtered based on configuration
|
|
58
|
+
- Zero network overhead`,
|
|
59
|
+
bestPractices: [
|
|
60
|
+
'Check tool availability before building automation workflows',
|
|
61
|
+
'Use with n8n_diagnostic if expected tools are missing',
|
|
62
|
+
'Reference tool names exactly as returned by this tool',
|
|
63
|
+
'Group operations by category for better organization',
|
|
64
|
+
'Cache results as tool list only changes with configuration'
|
|
65
|
+
],
|
|
66
|
+
pitfalls: [
|
|
67
|
+
'Tool list is empty if N8N_API_URL and N8N_API_KEY are not set',
|
|
68
|
+
'Does not validate if tools will actually work - just shows availability',
|
|
69
|
+
'Tool names must be used exactly as returned',
|
|
70
|
+
'Does not show tool parameters - use tools_documentation for details'
|
|
71
|
+
],
|
|
72
|
+
relatedTools: ['n8n_diagnostic', 'n8n_health_check', 'tools_documentation']
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=n8n-list-available-tools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"n8n-list-available-tools.js","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/system/n8n-list-available-tools.ts"],"names":[],"mappings":";;;AAEa,QAAA,wBAAwB,GAAsB;IACzD,IAAI,EAAE,0BAA0B;IAChC,QAAQ,EAAE,QAAQ;IAClB,UAAU,EAAE;QACV,WAAW,EAAE,gEAAgE;QAC7E,aAAa,EAAE,EAAE;QACjB,OAAO,EAAE,8BAA8B;QACvC,WAAW,EAAE,oCAAoC;QACjD,IAAI,EAAE;YACJ,2DAA2D;YAC3D,4DAA4D;YAC5D,oEAAoE;SACrE;KACF;IACD,IAAI,EAAE;QACJ,WAAW,EAAE;;;;;;;;;;;;uDAYsC;QACnD,UAAU,EAAE,EAAE;QACd,OAAO,EAAE;;;;;;;;+CAQkC;QAC3C,QAAQ,EAAE;YACR,yDAAyD;YACzD,wKAAwK;YACxK,+IAA+I;SAChJ;QACD,QAAQ,EAAE;YACR,mDAAmD;YACnD,oDAAoD;YACpD,4CAA4C;YAC5C,gDAAgD;YAChD,uDAAuD;SACxD;QACD,WAAW,EAAE;;;;wBAIO;QACpB,aAAa,EAAE;YACb,8DAA8D;YAC9D,uDAAuD;YACvD,uDAAuD;YACvD,sDAAsD;YACtD,4DAA4D;SAC7D;QACD,QAAQ,EAAE;YACR,+DAA+D;YAC/D,yEAAyE;YACzE,6CAA6C;YAC7C,qEAAqE;SACtE;QACD,YAAY,EAAE,CAAC,gBAAgB,EAAE,kBAAkB,EAAE,qBAAqB,CAAC;KAC5E;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools-documentation.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/system/tools-documentation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,qBAAqB,EAAE,iBA4DnC,CAAC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toolsDocumentationDoc = void 0;
|
|
4
|
+
exports.toolsDocumentationDoc = {
|
|
5
|
+
name: 'tools_documentation',
|
|
6
|
+
category: 'system',
|
|
7
|
+
essentials: {
|
|
8
|
+
description: 'The meta-documentation tool. Returns documentation for any MCP tool, including itself. Call without parameters for a comprehensive overview of all available tools. This is your starting point for discovering n8n MCP capabilities.',
|
|
9
|
+
keyParameters: ['topic', 'depth'],
|
|
10
|
+
example: 'tools_documentation({topic: "search_nodes"})',
|
|
11
|
+
performance: 'Instant (static content)',
|
|
12
|
+
tips: [
|
|
13
|
+
'Call without parameters first to see all tools',
|
|
14
|
+
'Can document itself: tools_documentation({topic: "tools_documentation"})',
|
|
15
|
+
'Use depth:"full" for comprehensive details'
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
full: {
|
|
19
|
+
description: 'The self-referential documentation system for all MCP tools. This tool can document any other tool, including itself. It\'s the primary discovery mechanism for understanding what tools are available and how to use them. Returns utilitarian documentation optimized for AI agent consumption.',
|
|
20
|
+
parameters: {
|
|
21
|
+
topic: { type: 'string', description: 'Tool name (e.g., "search_nodes"), special topic ("javascript_code_node_guide", "python_code_node_guide"), or "overview". Leave empty for quick reference.', required: false },
|
|
22
|
+
depth: { type: 'string', description: 'Level of detail: "essentials" (default, concise) or "full" (comprehensive with examples)', required: false }
|
|
23
|
+
},
|
|
24
|
+
returns: 'Markdown-formatted documentation tailored for the requested tool and depth. For essentials: key info, parameters, example, tips. For full: complete details, all examples, use cases, best practices.',
|
|
25
|
+
examples: [
|
|
26
|
+
'// Get started - see all available tools',
|
|
27
|
+
'tools_documentation()',
|
|
28
|
+
'',
|
|
29
|
+
'// Learn about a specific tool',
|
|
30
|
+
'tools_documentation({topic: "search_nodes"})',
|
|
31
|
+
'',
|
|
32
|
+
'// Get comprehensive details',
|
|
33
|
+
'tools_documentation({topic: "validate_workflow", depth: "full"})',
|
|
34
|
+
'',
|
|
35
|
+
'// Self-referential example - document this tool',
|
|
36
|
+
'tools_documentation({topic: "tools_documentation", depth: "full"})',
|
|
37
|
+
'',
|
|
38
|
+
'// Code node guides',
|
|
39
|
+
'tools_documentation({topic: "javascript_code_node_guide"})',
|
|
40
|
+
'tools_documentation({topic: "python_code_node_guide"})'
|
|
41
|
+
],
|
|
42
|
+
useCases: [
|
|
43
|
+
'Initial discovery of available MCP tools',
|
|
44
|
+
'Learning how to use specific tools',
|
|
45
|
+
'Finding required and optional parameters',
|
|
46
|
+
'Getting working examples to copy',
|
|
47
|
+
'Understanding tool performance characteristics',
|
|
48
|
+
'Discovering related tools for workflows'
|
|
49
|
+
],
|
|
50
|
+
performance: 'Instant - all documentation is pre-loaded in memory',
|
|
51
|
+
bestPractices: [
|
|
52
|
+
'Always start with tools_documentation() to see available tools',
|
|
53
|
+
'Use essentials for quick parameter reference during coding',
|
|
54
|
+
'Switch to full depth when debugging or learning new tools',
|
|
55
|
+
'Check Code node guides when working with Code nodes'
|
|
56
|
+
],
|
|
57
|
+
pitfalls: [
|
|
58
|
+
'Tool names must match exactly - use the overview to find correct names',
|
|
59
|
+
'Not all internal functions are documented',
|
|
60
|
+
'Special topics (code guides) require exact names'
|
|
61
|
+
],
|
|
62
|
+
relatedTools: ['n8n_list_available_tools for dynamic tool discovery', 'list_tasks for common configurations', 'get_database_statistics to verify MCP connection']
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=tools-documentation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools-documentation.js","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/system/tools-documentation.ts"],"names":[],"mappings":";;;AAEa,QAAA,qBAAqB,GAAsB;IACtD,IAAI,EAAE,qBAAqB;IAC3B,QAAQ,EAAE,QAAQ;IAClB,UAAU,EAAE;QACV,WAAW,EAAE,uOAAuO;QACpP,aAAa,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;QACjC,OAAO,EAAE,8CAA8C;QACvD,WAAW,EAAE,0BAA0B;QACvC,IAAI,EAAE;YACJ,gDAAgD;YAChD,0EAA0E;YAC1E,4CAA4C;SAC7C;KACF;IACD,IAAI,EAAE;QACJ,WAAW,EAAE,mSAAmS;QAChT,UAAU,EAAE;YACV,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,2JAA2J,EAAE,QAAQ,EAAE,KAAK,EAAE;YACpN,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,0FAA0F,EAAE,QAAQ,EAAE,KAAK,EAAE;SACpJ;QACD,OAAO,EAAE,uMAAuM;QAChN,QAAQ,EAAE;YACR,0CAA0C;YAC1C,uBAAuB;YACvB,EAAE;YACF,gCAAgC;YAChC,8CAA8C;YAC9C,EAAE;YACF,8BAA8B;YAC9B,kEAAkE;YAClE,EAAE;YACF,kDAAkD;YAClD,oEAAoE;YACpE,EAAE;YACF,qBAAqB;YACrB,4DAA4D;YAC5D,wDAAwD;SACzD;QACD,QAAQ,EAAE;YACR,0CAA0C;YAC1C,oCAAoC;YACpC,0CAA0C;YAC1C,kCAAkC;YAClC,gDAAgD;YAChD,yCAAyC;SAC1C;QACD,WAAW,EAAE,qDAAqD;QAClE,aAAa,EAAE;YACb,gEAAgE;YAChE,4DAA4D;YAC5D,2DAA2D;YAC3D,qDAAqD;SACtD;QACD,QAAQ,EAAE;YACR,wEAAwE;YACxE,2CAA2C;YAC3C,kDAAkD;SACnD;QACD,YAAY,EAAE,CAAC,qDAAqD,EAAE,sCAAsC,EAAE,kDAAkD,CAAC;KAClK;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-node-for-task.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/templates/get-node-for-task.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,iBAAiB,EAAE,iBA6C/B,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getNodeForTaskDoc = void 0;
|
|
4
|
+
exports.getNodeForTaskDoc = {
|
|
5
|
+
name: 'get_node_for_task',
|
|
6
|
+
category: 'templates',
|
|
7
|
+
essentials: {
|
|
8
|
+
description: 'Get pre-configured node for tasks: post_json_request, receive_webhook, query_database, send_slack_message, etc. Use list_tasks for all.',
|
|
9
|
+
keyParameters: ['task'],
|
|
10
|
+
example: 'get_node_for_task({task: "post_json_request"})',
|
|
11
|
+
performance: 'Instant',
|
|
12
|
+
tips: [
|
|
13
|
+
'Returns ready-to-use configuration',
|
|
14
|
+
'See list_tasks for available tasks',
|
|
15
|
+
'Includes credentials structure'
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
full: {
|
|
19
|
+
description: 'Returns pre-configured node settings for common automation tasks. Each configuration includes the correct node type, essential parameters, and credential requirements. Perfect for quickly setting up standard automations.',
|
|
20
|
+
parameters: {
|
|
21
|
+
task: { type: 'string', required: true, description: 'Task name from list_tasks (e.g., "post_json_request", "send_email")' }
|
|
22
|
+
},
|
|
23
|
+
returns: 'Complete node configuration with type, displayName, parameters, credentials structure',
|
|
24
|
+
examples: [
|
|
25
|
+
'get_node_for_task({task: "post_json_request"}) - HTTP POST setup',
|
|
26
|
+
'get_node_for_task({task: "receive_webhook"}) - Webhook receiver',
|
|
27
|
+
'get_node_for_task({task: "send_slack_message"}) - Slack config'
|
|
28
|
+
],
|
|
29
|
+
useCases: [
|
|
30
|
+
'Quick node configuration',
|
|
31
|
+
'Learning proper node setup',
|
|
32
|
+
'Standard automation patterns',
|
|
33
|
+
'Credential structure reference'
|
|
34
|
+
],
|
|
35
|
+
performance: 'Instant - Pre-configured templates',
|
|
36
|
+
bestPractices: [
|
|
37
|
+
'Use list_tasks to discover options',
|
|
38
|
+
'Customize returned config as needed',
|
|
39
|
+
'Check credential requirements',
|
|
40
|
+
'Validate with validate_node_operation'
|
|
41
|
+
],
|
|
42
|
+
pitfalls: [
|
|
43
|
+
'Templates may need customization',
|
|
44
|
+
'Credentials must be configured separately',
|
|
45
|
+
'Not all tasks available for all nodes'
|
|
46
|
+
],
|
|
47
|
+
relatedTools: ['list_tasks', 'validate_node_operation', 'get_node_essentials']
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=get-node-for-task.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-node-for-task.js","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/templates/get-node-for-task.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAsB;IAClD,IAAI,EAAE,mBAAmB;IACzB,QAAQ,EAAE,WAAW;IACrB,UAAU,EAAE;QACV,WAAW,EAAE,yIAAyI;QACtJ,aAAa,EAAE,CAAC,MAAM,CAAC;QACvB,OAAO,EAAE,gDAAgD;QACzD,WAAW,EAAE,SAAS;QACtB,IAAI,EAAE;YACJ,oCAAoC;YACpC,oCAAoC;YACpC,gCAAgC;SACjC;KACF;IACD,IAAI,EAAE;QACJ,WAAW,EAAE,8NAA8N;QAC3O,UAAU,EAAE;YACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,qEAAqE,EAAE;SAC7H;QACD,OAAO,EAAE,uFAAuF;QAChG,QAAQ,EAAE;YACR,kEAAkE;YAClE,iEAAiE;YACjE,gEAAgE;SACjE;QACD,QAAQ,EAAE;YACR,0BAA0B;YAC1B,4BAA4B;YAC5B,8BAA8B;YAC9B,gCAAgC;SACjC;QACD,WAAW,EAAE,oCAAoC;QACjD,aAAa,EAAE;YACb,oCAAoC;YACpC,qCAAqC;YACrC,+BAA+B;YAC/B,uCAAuC;SACxC;QACD,QAAQ,EAAE;YACR,kCAAkC;YAClC,2CAA2C;YAC3C,uCAAuC;SACxC;QACD,YAAY,EAAE,CAAC,YAAY,EAAE,yBAAyB,EAAE,qBAAqB,CAAC;KAC/E;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-template.d.ts","sourceRoot":"","sources":["../../../../src/mcp/tool-docs/templates/get-template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,eAAO,MAAM,cAAc,EAAE,iBAuE5B,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getTemplateDoc = void 0;
|
|
4
|
+
exports.getTemplateDoc = {
|
|
5
|
+
name: 'get_template',
|
|
6
|
+
category: 'templates',
|
|
7
|
+
essentials: {
|
|
8
|
+
description: 'Get complete workflow JSON by ID. Ready to import. IDs from list_node_templates or search_templates.',
|
|
9
|
+
keyParameters: ['templateId'],
|
|
10
|
+
example: 'get_template({templateId: 1234})',
|
|
11
|
+
performance: 'Fast (<100ms) - single database lookup',
|
|
12
|
+
tips: [
|
|
13
|
+
'Get template IDs from list_node_templates or search_templates first',
|
|
14
|
+
'Returns complete workflow JSON ready for import into n8n',
|
|
15
|
+
'Includes all nodes, connections, and settings'
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
full: {
|
|
19
|
+
description: `Retrieves the complete workflow JSON for a specific template by its ID. The returned workflow can be directly imported into n8n through the UI or API. This tool fetches pre-built workflows from the community template library containing 399+ curated workflows.`,
|
|
20
|
+
parameters: {
|
|
21
|
+
templateId: {
|
|
22
|
+
type: 'number',
|
|
23
|
+
required: true,
|
|
24
|
+
description: 'The numeric ID of the template to retrieve. Get IDs from list_node_templates or search_templates'
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
returns: `Returns an object containing:
|
|
28
|
+
- template: Complete template information including workflow JSON
|
|
29
|
+
- id: Template ID
|
|
30
|
+
- name: Template name
|
|
31
|
+
- description: What the workflow does
|
|
32
|
+
- author: Creator information (name, username, verified status)
|
|
33
|
+
- nodes: Array of node types used
|
|
34
|
+
- views: Number of times viewed
|
|
35
|
+
- created: Creation date
|
|
36
|
+
- url: Link to template on n8n.io
|
|
37
|
+
- workflow: Complete workflow JSON with structure:
|
|
38
|
+
- nodes: Array of node objects (id, name, type, typeVersion, position, parameters)
|
|
39
|
+
- connections: Object mapping source nodes to targets
|
|
40
|
+
- settings: Workflow configuration (timezone, error handling, etc.)
|
|
41
|
+
- usage: Instructions for using the workflow`,
|
|
42
|
+
examples: [
|
|
43
|
+
'get_template({templateId: 1234}) - Get Slack notification workflow',
|
|
44
|
+
'get_template({templateId: 5678}) - Get data sync workflow',
|
|
45
|
+
'get_template({templateId: 9012}) - Get AI chatbot workflow'
|
|
46
|
+
],
|
|
47
|
+
useCases: [
|
|
48
|
+
'Download workflows for direct import into n8n',
|
|
49
|
+
'Study workflow patterns and best practices',
|
|
50
|
+
'Get complete workflow JSON for customization',
|
|
51
|
+
'Clone popular workflows for your use case',
|
|
52
|
+
'Learn how complex automations are built'
|
|
53
|
+
],
|
|
54
|
+
performance: `Fast performance with single database lookup:
|
|
55
|
+
- Query time: <10ms for template retrieval
|
|
56
|
+
- Workflow JSON parsing: <50ms
|
|
57
|
+
- Total response time: <100ms
|
|
58
|
+
- No network calls (uses local cache)`,
|
|
59
|
+
bestPractices: [
|
|
60
|
+
'Always check if template exists before attempting modifications',
|
|
61
|
+
'Review workflow nodes before importing to ensure compatibility',
|
|
62
|
+
'Save template JSON locally if planning multiple customizations',
|
|
63
|
+
'Check template creation date for most recent patterns',
|
|
64
|
+
'Verify all required credentials are configured before import'
|
|
65
|
+
],
|
|
66
|
+
pitfalls: [
|
|
67
|
+
'Template IDs change when database is refreshed',
|
|
68
|
+
'Some templates may use deprecated node versions',
|
|
69
|
+
'Credentials in templates are placeholders - configure your own',
|
|
70
|
+
'Not all templates work with all n8n versions',
|
|
71
|
+
'Template may reference external services you don\'t have access to'
|
|
72
|
+
],
|
|
73
|
+
relatedTools: ['list_node_templates', 'search_templates', 'get_templates_for_task', 'n8n_create_workflow']
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=get-template.js.map
|