n8n-mcp 2.84.4 → 2.85.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/dist/mcp/handlers-n8n-manager.d.ts.map +1 -1
- package/dist/mcp/handlers-n8n-manager.js +8 -0
- package/dist/mcp/handlers-n8n-manager.js.map +1 -1
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +8 -1
- package/dist/mcp/server.js.map +1 -1
- package/dist/mcp/ui/app-configs.d.ts.map +1 -1
- package/dist/mcp/ui/app-configs.js +19 -0
- package/dist/mcp/ui/app-configs.js.map +1 -1
- package/package.json +1 -1
- package/ui-apps/dist/execution-history/index.html +22 -21
- package/ui-apps/dist/health-dashboard/index.html +22 -21
- package/ui-apps/dist/operation-result/index.html +22 -21
- package/ui-apps/dist/validation-summary/index.html +22 -21
- package/ui-apps/dist/workflow-list/index.html +20 -19
package/dist/mcp/server.js
CHANGED
|
@@ -526,6 +526,10 @@ class N8NDocumentationMCPServer {
|
|
|
526
526
|
});
|
|
527
527
|
this.server.setRequestHandler(types_js_1.CallToolRequestSchema, async (request) => {
|
|
528
528
|
const { name, arguments: args } = request.params;
|
|
529
|
+
const isAdditionalTool = this.additionalToolsByName.has(name);
|
|
530
|
+
const resultMeta = !isAdditionalTool && ui_1.UIAppRegistry.getAppForTool(name)?.html
|
|
531
|
+
? { _meta: { 'n8n-mcp/toolName': name } }
|
|
532
|
+
: {};
|
|
529
533
|
logger_1.logger.info('Tool call received', {
|
|
530
534
|
toolName: name,
|
|
531
535
|
...(0, redaction_1.summarizeToolCallArgs)(args),
|
|
@@ -536,6 +540,7 @@ class N8NDocumentationMCPServer {
|
|
|
536
540
|
if (disabledTools.has(name)) {
|
|
537
541
|
logger_1.logger.warn(`Attempted to call disabled tool: ${name}`);
|
|
538
542
|
return {
|
|
543
|
+
...resultMeta,
|
|
539
544
|
content: [{
|
|
540
545
|
type: 'text',
|
|
541
546
|
text: JSON.stringify({
|
|
@@ -602,6 +607,7 @@ class N8NDocumentationMCPServer {
|
|
|
602
607
|
if (requestedOp && disabledOpsForTool.has(String(requestedOp).toLowerCase())) {
|
|
603
608
|
logger_1.logger.warn(`Attempted to call disabled operation: ${name}.${requestedOp}`);
|
|
604
609
|
return {
|
|
610
|
+
...resultMeta,
|
|
605
611
|
content: [{
|
|
606
612
|
type: 'text',
|
|
607
613
|
text: JSON.stringify({
|
|
@@ -617,7 +623,6 @@ class N8NDocumentationMCPServer {
|
|
|
617
623
|
}
|
|
618
624
|
}
|
|
619
625
|
}
|
|
620
|
-
const isAdditionalTool = this.additionalToolsByName.has(name);
|
|
621
626
|
try {
|
|
622
627
|
logger_1.logger.debug(`Executing tool: ${name}`, (0, redaction_1.summarizeToolCallArgs)(processedArgs));
|
|
623
628
|
const startTime = Date.now();
|
|
@@ -656,6 +661,7 @@ class N8NDocumentationMCPServer {
|
|
|
656
661
|
structuredContent = null;
|
|
657
662
|
}
|
|
658
663
|
const mcpResponse = {
|
|
664
|
+
...resultMeta,
|
|
659
665
|
content: [
|
|
660
666
|
{
|
|
661
667
|
type: 'text',
|
|
@@ -711,6 +717,7 @@ class N8NDocumentationMCPServer {
|
|
|
711
717
|
}
|
|
712
718
|
catch { }
|
|
713
719
|
return {
|
|
720
|
+
...resultMeta,
|
|
714
721
|
content: [
|
|
715
722
|
{
|
|
716
723
|
type: 'text',
|