n8n-mcp 2.94.2 → 2.95.0
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/README.md +3 -3
- package/data/nodes.db +2 -2
- package/dist/constants/agent-model-providers.d.ts.map +1 -1
- package/dist/constants/agent-model-providers.js +1 -0
- package/dist/constants/agent-model-providers.js.map +1 -1
- package/dist/database/node-repository.d.ts +1 -0
- package/dist/database/node-repository.d.ts.map +1 -1
- package/dist/database/node-repository.js +12 -3
- package/dist/database/node-repository.js.map +1 -1
- package/dist/mcp/handlers-n8n-manager.d.ts.map +1 -1
- package/dist/mcp/handlers-n8n-manager.js +2 -0
- package/dist/mcp/handlers-n8n-manager.js.map +1 -1
- package/dist/mcp/server.d.ts +2 -0
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +60 -1
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/tool-docs/validation/validate-workflow.d.ts.map +1 -1
- package/dist/mcp/tool-docs/validation/validate-workflow.js +2 -1
- package/dist/mcp/tool-docs/validation/validate-workflow.js.map +1 -1
- package/dist/parsers/node-parser.d.ts +3 -0
- package/dist/parsers/node-parser.d.ts.map +1 -1
- package/dist/parsers/node-parser.js +15 -2
- package/dist/parsers/node-parser.js.map +1 -1
- package/dist/services/deprecated-nodes.d.ts +10 -0
- package/dist/services/deprecated-nodes.d.ts.map +1 -0
- package/dist/services/deprecated-nodes.js +31 -0
- package/dist/services/deprecated-nodes.js.map +1 -0
- package/dist/services/workflow-validator.d.ts +1 -0
- package/dist/services/workflow-validator.d.ts.map +1 -1
- package/dist/services/workflow-validator.js +15 -1
- package/dist/services/workflow-validator.js.map +1 -1
- package/dist/telemetry/mutation-tracker.d.ts.map +1 -1
- package/dist/telemetry/mutation-tracker.js +1 -1
- package/dist/telemetry/mutation-tracker.js.map +1 -1
- package/dist/telemetry/workflow-sanitizer.d.ts +8 -0
- package/dist/telemetry/workflow-sanitizer.d.ts.map +1 -1
- package/dist/telemetry/workflow-sanitizer.js +132 -1
- package/dist/telemetry/workflow-sanitizer.js.map +1 -1
- package/package.json +1 -1
package/dist/mcp/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/mcp/server.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/mcp/server.ts"],"names":[],"mappings":"AAgEA,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D,OAAO,KAAK,EAAE,cAAc,EAAyB,MAAM,2BAA2B,CAAC;AAEvF,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAiJnE,UAAU,gBAAgB;IACxB,eAAe,CAAC,EAAE,cAAc,EAAE,CAAC;IAKnC,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,qBAAa,yBAAyB;IACpC,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,EAAE,CAAgC;IAC1C,OAAO,CAAC,UAAU,CAA+B;IACjD,OAAO,CAAC,sBAAsB,CAAuC;IACrE,OAAO,CAAC,eAAe,CAAgC;IACvD,OAAO,CAAC,WAAW,CAAgB;IACnC,OAAO,CAAC,KAAK,CAAqB;IAClC,OAAO,CAAC,UAAU,CAAa;IAC/B,OAAO,CAAC,sBAAsB,CAAC,CAAkB;IACjD,OAAO,CAAC,qBAAqB,CAAS;IACtC,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,CAAC,qBAAqB,CAAsB;IACnD,OAAO,CAAC,WAAW,CAAiC;IACpD,OAAO,CAAC,kBAAkB,CAA4B;IACtD,OAAO,CAAC,2BAA2B,CAAyC;IAC5E,OAAO,CAAC,4BAA4B,CAAiC;IACrE,OAAO,CAAC,iBAAiB,CAAkB;IAC3C,OAAO,CAAC,aAAa,CAAoC;IACzD,OAAO,CAAC,UAAU,CAAkB;IACpC,OAAO,CAAC,qBAAqB,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aAAa;IA2C3B,OAAO,CAAC,0BAA0B;IAgClC,OAAO,CAAC,4BAA4B;YAKtB,oBAAoB;IAsDlC,OAAO,CAAC,gBAAgB;YAiBV,SAAS;IAiDvB,OAAO,CAAC,oBAAoB;YAQd,kBAAkB;YAmFlB,uBAAuB;IAsDrC,OAAO,CAAC,qBAAqB;IA8C7B,OAAO,CAAC,uBAAuB;IA6D/B,OAAO,CAAC,qBAAqB;IAc7B,OAAO,CAAC,oBAAoB;IAU5B,OAAO,CAAC,wBAAwB;YAkClB,mBAAmB;YAqEnB,qBAAqB;IAY7B,OAAO,CAAC,SAAS,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC;YAS9B,aAAa;YAcb,iBAAiB;YAoBjB,WAAW;YAwBX,eAAe;IAqB7B,OAAO,CAAC,qBAAqB,CASb;IAEhB,OAAO,CAAC,mBAAmB;YAsDb,mBAAmB;YAwBnB,yBAAyB;IAmEvC,OAAO,CAAC,kBAAkB;YAiBZ,gBAAgB;IA+HxB,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC;IA6CpB,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;CAgFhC"}
|
package/dist/mcp/server.js
CHANGED
|
@@ -75,6 +75,7 @@ const tools_documentation_1 = require("./tools-documentation");
|
|
|
75
75
|
const version_1 = require("../utils/version");
|
|
76
76
|
const node_utils_1 = require("../utils/node-utils");
|
|
77
77
|
const node_type_normalizer_1 = require("../utils/node-type-normalizer");
|
|
78
|
+
const deprecated_nodes_1 = require("../services/deprecated-nodes");
|
|
78
79
|
const typeversion_1 = require("../utils/typeversion");
|
|
79
80
|
const validation_schemas_1 = require("../utils/validation-schemas");
|
|
80
81
|
const protocol_version_1 = require("../utils/protocol-version");
|
|
@@ -1566,8 +1567,9 @@ class N8NDocumentationMCPServer {
|
|
|
1566
1567
|
};
|
|
1567
1568
|
});
|
|
1568
1569
|
}
|
|
1570
|
+
const { deprecatedVersions: _deprecatedVersions, ...nodeFields } = node;
|
|
1569
1571
|
const result = {
|
|
1570
|
-
...
|
|
1572
|
+
...nodeFields,
|
|
1571
1573
|
workflowNodeType: (0, node_utils_1.getWorkflowNodeType)(node.package ?? 'n8n-nodes-base', node.nodeType),
|
|
1572
1574
|
aiToolCapabilities,
|
|
1573
1575
|
outputs
|
|
@@ -1576,6 +1578,10 @@ class N8NDocumentationMCPServer {
|
|
|
1576
1578
|
if (toolVariantInfo) {
|
|
1577
1579
|
result.toolVariantInfo = toolVariantInfo;
|
|
1578
1580
|
}
|
|
1581
|
+
const deprecation = this.buildDeprecationInfo(node);
|
|
1582
|
+
if (deprecation) {
|
|
1583
|
+
result.deprecation = deprecation;
|
|
1584
|
+
}
|
|
1579
1585
|
return result;
|
|
1580
1586
|
}
|
|
1581
1587
|
async searchNodes(query, limit = 20, options) {
|
|
@@ -1702,6 +1708,9 @@ class N8NDocumentationMCPServer {
|
|
|
1702
1708
|
nodeResult.npmDownloads = node.npm_downloads;
|
|
1703
1709
|
}
|
|
1704
1710
|
}
|
|
1711
|
+
if (this.isDeprecatedSearchRow(node)) {
|
|
1712
|
+
nodeResult.deprecated = true;
|
|
1713
|
+
}
|
|
1705
1714
|
if (options?.includeOperations) {
|
|
1706
1715
|
const opsTree = this.buildOperationsTree(node.operations);
|
|
1707
1716
|
if (opsTree) {
|
|
@@ -1795,6 +1804,9 @@ class N8NDocumentationMCPServer {
|
|
|
1795
1804
|
category: node.category,
|
|
1796
1805
|
package: node.package_name
|
|
1797
1806
|
};
|
|
1807
|
+
if (this.isDeprecatedSearchRow(node)) {
|
|
1808
|
+
nodeResult.deprecated = true;
|
|
1809
|
+
}
|
|
1798
1810
|
if (options?.includeOperations) {
|
|
1799
1811
|
const opsTree = this.buildOperationsTree(node.operations);
|
|
1800
1812
|
if (opsTree) {
|
|
@@ -1923,6 +1935,9 @@ class N8NDocumentationMCPServer {
|
|
|
1923
1935
|
nodeResult.npmDownloads = node.npm_downloads;
|
|
1924
1936
|
}
|
|
1925
1937
|
}
|
|
1938
|
+
if (this.isDeprecatedSearchRow(node)) {
|
|
1939
|
+
nodeResult.deprecated = true;
|
|
1940
|
+
}
|
|
1926
1941
|
if (options?.includeOperations) {
|
|
1927
1942
|
const opsTree = this.buildOperationsTree(node.operations);
|
|
1928
1943
|
if (opsTree) {
|
|
@@ -1996,6 +2011,9 @@ class N8NDocumentationMCPServer {
|
|
|
1996
2011
|
nodeResult.npmDownloads = node.npm_downloads;
|
|
1997
2012
|
}
|
|
1998
2013
|
}
|
|
2014
|
+
if (this.isDeprecatedSearchRow(node)) {
|
|
2015
|
+
nodeResult.deprecated = true;
|
|
2016
|
+
}
|
|
1999
2017
|
if (options?.includeOperations) {
|
|
2000
2018
|
const opsTree = this.buildOperationsTree(node.operations);
|
|
2001
2019
|
if (opsTree) {
|
|
@@ -2426,6 +2444,10 @@ Full documentation is being prepared. For now, use get_node_essentials for confi
|
|
|
2426
2444
|
if (toolVariantInfo) {
|
|
2427
2445
|
result.toolVariantInfo = toolVariantInfo;
|
|
2428
2446
|
}
|
|
2447
|
+
const deprecation = this.buildDeprecationInfo(node);
|
|
2448
|
+
if (deprecation) {
|
|
2449
|
+
result.deprecation = deprecation;
|
|
2450
|
+
}
|
|
2429
2451
|
if (includeExamples) {
|
|
2430
2452
|
try {
|
|
2431
2453
|
const examples = this.db.prepare(`
|
|
@@ -2522,6 +2544,10 @@ Full documentation is being prepared. For now, use get_node_essentials for confi
|
|
|
2522
2544
|
if (toolVariantInfo) {
|
|
2523
2545
|
result.toolVariantInfo = toolVariantInfo;
|
|
2524
2546
|
}
|
|
2547
|
+
const deprecation = this.buildDeprecationInfo(node);
|
|
2548
|
+
if (deprecation) {
|
|
2549
|
+
result.deprecation = deprecation;
|
|
2550
|
+
}
|
|
2525
2551
|
return result;
|
|
2526
2552
|
}
|
|
2527
2553
|
case 'standard': {
|
|
@@ -2924,6 +2950,15 @@ Full documentation is being prepared. For now, use get_node_essentials for confi
|
|
|
2924
2950
|
'@version': this.resolveConfigVersion(config['@version'], node.version)
|
|
2925
2951
|
};
|
|
2926
2952
|
const validationResult = enhanced_config_validator_1.EnhancedConfigValidator.validateWithMode(node.nodeType, configWithVersion, properties, mode, profile);
|
|
2953
|
+
if ((0, deprecated_nodes_1.isDeprecatedNodeVersion)(node, configWithVersion['@version'])) {
|
|
2954
|
+
validationResult.errors.push({
|
|
2955
|
+
type: 'incompatible',
|
|
2956
|
+
property: 'nodeType',
|
|
2957
|
+
message: (0, deprecated_nodes_1.deprecatedNodeMessage)((0, node_utils_1.getWorkflowNodeType)(node.package, node.nodeType)),
|
|
2958
|
+
fix: (0, deprecated_nodes_1.deprecatedNodeReplacementHint)(node.toolVariantOf ?? node.nodeType)
|
|
2959
|
+
});
|
|
2960
|
+
validationResult.valid = false;
|
|
2961
|
+
}
|
|
2927
2962
|
return {
|
|
2928
2963
|
nodeType: node.nodeType,
|
|
2929
2964
|
workflowNodeType: (0, node_utils_1.getWorkflowNodeType)(node.package, node.nodeType),
|
|
@@ -3066,6 +3101,28 @@ Full documentation is being prepared. For now, use get_node_essentials for confi
|
|
|
3066
3101
|
'Extend AI agent capabilities'
|
|
3067
3102
|
];
|
|
3068
3103
|
}
|
|
3104
|
+
isDeprecatedSearchRow(row) {
|
|
3105
|
+
if (!row.deprecated_versions)
|
|
3106
|
+
return false;
|
|
3107
|
+
let deprecatedVersions;
|
|
3108
|
+
try {
|
|
3109
|
+
deprecatedVersions = JSON.parse(row.deprecated_versions);
|
|
3110
|
+
}
|
|
3111
|
+
catch {
|
|
3112
|
+
return false;
|
|
3113
|
+
}
|
|
3114
|
+
return (0, deprecated_nodes_1.isDeprecatedNodeVersion)({ nodeType: row.node_type, version: row.version, deprecatedVersions }, undefined);
|
|
3115
|
+
}
|
|
3116
|
+
buildDeprecationInfo(node) {
|
|
3117
|
+
const deprecatedVersions = node.deprecatedVersions ?? [];
|
|
3118
|
+
if (deprecatedVersions.length === 0)
|
|
3119
|
+
return undefined;
|
|
3120
|
+
return {
|
|
3121
|
+
deprecatedVersions,
|
|
3122
|
+
message: (0, deprecated_nodes_1.deprecatedNodeMessage)((0, node_utils_1.getWorkflowNodeType)(node.package ?? 'n8n-nodes-base', node.nodeType)),
|
|
3123
|
+
replacement: (0, deprecated_nodes_1.deprecatedNodeReplacementHint)(node.toolVariantOf ?? node.nodeType)
|
|
3124
|
+
};
|
|
3125
|
+
}
|
|
3069
3126
|
buildToolVariantGuidance(node) {
|
|
3070
3127
|
const isToolVariant = !!node.isToolVariant;
|
|
3071
3128
|
const hasToolVariant = !!node.hasToolVariant;
|
|
@@ -3422,11 +3479,13 @@ Full documentation is being prepared. For now, use get_node_essentials for confi
|
|
|
3422
3479
|
errors: result.errors.map(e => ({
|
|
3423
3480
|
node: e.nodeName || 'workflow',
|
|
3424
3481
|
message: e.message,
|
|
3482
|
+
...(e.code ? { code: e.code } : {}),
|
|
3425
3483
|
details: e.details
|
|
3426
3484
|
})),
|
|
3427
3485
|
warnings: result.warnings.map(w => ({
|
|
3428
3486
|
node: w.nodeName || 'workflow',
|
|
3429
3487
|
message: w.message,
|
|
3488
|
+
...(w.code ? { code: w.code } : {}),
|
|
3430
3489
|
details: w.details
|
|
3431
3490
|
}))
|
|
3432
3491
|
};
|