n8n-nodes-meta-mcp 1.0.31 → 1.0.33
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/icons/mcp.dark.svg +7 -0
- package/dist/icons/mcp.svg +7 -0
- package/dist/nodes/MetaMcpTrigger/FlushingTransport.d.ts +21 -0
- package/dist/nodes/MetaMcpTrigger/FlushingTransport.js +36 -0
- package/dist/nodes/MetaMcpTrigger/FlushingTransport.js.map +1 -0
- package/dist/nodes/MetaMcpTrigger/McpServer.d.ts +41 -0
- package/dist/nodes/MetaMcpTrigger/McpServer.js +206 -0
- package/dist/nodes/MetaMcpTrigger/McpServer.js.map +1 -0
- package/dist/nodes/MetaMcpTrigger/MetaMcpTrigger.node.d.ts +15 -3
- package/dist/nodes/MetaMcpTrigger/MetaMcpTrigger.node.js +169 -89
- package/dist/nodes/MetaMcpTrigger/MetaMcpTrigger.node.js.map +1 -1
- package/dist/package.json +12 -16
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +54 -47
- package/dist/icons/ridderiqD.svg +0 -12
- package/dist/icons/ridderiqL.svg +0 -12
|
@@ -1,36 +1,131 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MetaMcpTrigger = void 0;
|
|
3
|
+
exports.MetaMcpTrigger = exports.getConnectedTools = void 0;
|
|
4
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
5
|
+
const McpServer_1 = require("./McpServer");
|
|
6
|
+
const getConnectedTools = async (ctx, enforceUniqueNames, convertStructuredTool = true, escapeCurlyBrackets = false) => {
|
|
7
|
+
const toolkitConnections = (await ctx.getInputConnectionData(n8n_workflow_1.NodeConnectionTypes.AiTool, 0));
|
|
8
|
+
const parentNodes = 'getParentNodes' in ctx
|
|
9
|
+
? ctx.getParentNodes(ctx.getNode().name, {
|
|
10
|
+
connectionType: n8n_workflow_1.NodeConnectionTypes.AiTool,
|
|
11
|
+
depth: 1,
|
|
12
|
+
})
|
|
13
|
+
: [];
|
|
14
|
+
const connectedTools = (toolkitConnections !== null && toolkitConnections !== void 0 ? toolkitConnections : [])
|
|
15
|
+
.flatMap((toolOrToolkit, index) => {
|
|
16
|
+
var _a, _b;
|
|
17
|
+
const sourceNode = parentNodes[index];
|
|
18
|
+
if ('tools' in toolOrToolkit && Array.isArray(toolOrToolkit.tools)) {
|
|
19
|
+
return toolOrToolkit.tools.map((tool) => {
|
|
20
|
+
var _a, _b;
|
|
21
|
+
(_a = tool.metadata) !== null && _a !== void 0 ? _a : (tool.metadata = {});
|
|
22
|
+
tool.metadata.isFromToolkit = true;
|
|
23
|
+
tool.metadata.sourceNodeName = (_b = sourceNode === null || sourceNode === void 0 ? void 0 : sourceNode.name) !== null && _b !== void 0 ? _b : tool.name;
|
|
24
|
+
return tool;
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
const tool = toolOrToolkit;
|
|
29
|
+
(_a = tool.metadata) !== null && _a !== void 0 ? _a : (tool.metadata = {});
|
|
30
|
+
tool.metadata.isFromToolkit = false;
|
|
31
|
+
tool.metadata.sourceNodeName = (_b = sourceNode === null || sourceNode === void 0 ? void 0 : sourceNode.name) !== null && _b !== void 0 ? _b : tool.name;
|
|
32
|
+
return tool;
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
if (!enforceUniqueNames)
|
|
36
|
+
return connectedTools;
|
|
37
|
+
const seenNames = new Set();
|
|
38
|
+
const finalTools = [];
|
|
39
|
+
for (const tool of connectedTools) {
|
|
40
|
+
if (seenNames.has(tool.name)) {
|
|
41
|
+
throw new n8n_workflow_1.NodeOperationError(ctx.getNode(), `Multiple tools with the same name: '${tool.name}'. Please rename them.`);
|
|
42
|
+
}
|
|
43
|
+
seenNames.add(tool.name);
|
|
44
|
+
if (escapeCurlyBrackets) {
|
|
45
|
+
tool.description = tool.description.replace(/{/g, '{{').replace(/}/g, '}}');
|
|
46
|
+
}
|
|
47
|
+
if (convertStructuredTool && typeof tool.asDynamicTool === 'function') {
|
|
48
|
+
finalTools.push(tool.asDynamicTool());
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
finalTools.push(tool);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return finalTools;
|
|
55
|
+
};
|
|
56
|
+
exports.getConnectedTools = getConnectedTools;
|
|
57
|
+
const MCP_SSE_SETUP_PATH = 'sse';
|
|
58
|
+
const MCP_SSE_MESSAGES_PATH = 'messages';
|
|
4
59
|
class MetaMcpTrigger {
|
|
5
60
|
constructor() {
|
|
6
61
|
this.description = {
|
|
7
62
|
displayName: 'Meta MCP Server Trigger',
|
|
8
63
|
name: 'metaMcpTrigger',
|
|
9
|
-
icon: { light: 'file:../../icons/
|
|
64
|
+
icon: { light: 'file:../../icons/mcp.svg', dark: 'file:../../icons/mcp.dark.svg' },
|
|
10
65
|
group: ['trigger'],
|
|
11
66
|
usableAsTool: undefined,
|
|
12
|
-
version:
|
|
67
|
+
version: 2,
|
|
68
|
+
activationMessage: 'You can now connect your MCP Clients to the URL, using SSE or Streamable HTTP transports.',
|
|
13
69
|
description: 'Exposeert n8n tools als een MCP Server endpoint',
|
|
14
70
|
defaults: {
|
|
15
71
|
name: 'Meta MCP Server Trigger',
|
|
16
72
|
},
|
|
17
|
-
inputs: [
|
|
73
|
+
inputs: [
|
|
74
|
+
{
|
|
75
|
+
type: n8n_workflow_1.NodeConnectionTypes.AiTool,
|
|
76
|
+
displayName: 'Tools',
|
|
77
|
+
}
|
|
78
|
+
],
|
|
18
79
|
outputs: ['main'],
|
|
19
|
-
|
|
80
|
+
triggerPanel: {
|
|
81
|
+
header: 'Listen for MCP events',
|
|
82
|
+
executionsHelp: {
|
|
83
|
+
inactive: "This trigger has two modes: test and production.<br /><br /><b>Use test mode while you build your workflow</b>. Click the 'execute step' button, then make an MCP request to the test URL. The executions will show up in the editor.<br /><br /><b>Use production mode to run your workflow automatically</b>. Publish the workflow, then make requests to the production URL. These executions will show up in the <a data-key='executions'>executions list</a>, but not the editor.",
|
|
84
|
+
active: "This trigger has two modes: test and production.<br /><br /><b>Use test mode while you build your workflow</b>. Click the 'execute step' button, then make an MCP request to the test URL. The executions will show up in the editor.<br /><br /><b>Use production mode to run your workflow automatically</b>. Since your workflow is activated, you can make requests to the production URL. These executions will show up in the <a data-key='executions'>executions list</a>, but not the editor.",
|
|
85
|
+
},
|
|
86
|
+
activationHint: 'Once you’ve finished building your workflow, run it without having to click this button by using the production URL.',
|
|
87
|
+
},
|
|
88
|
+
credentials: [
|
|
20
89
|
{
|
|
21
|
-
name: '
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
90
|
+
name: 'httpBearerAuth',
|
|
91
|
+
required: true,
|
|
92
|
+
displayOptions: {
|
|
93
|
+
show: {
|
|
94
|
+
authentication: ['bearerAuth'],
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: 'httpHeaderAuth',
|
|
100
|
+
required: true,
|
|
101
|
+
displayOptions: {
|
|
102
|
+
show: {
|
|
103
|
+
authentication: ['headerAuth'],
|
|
104
|
+
},
|
|
105
|
+
},
|
|
25
106
|
},
|
|
26
107
|
],
|
|
27
108
|
properties: [
|
|
28
109
|
{
|
|
29
|
-
displayName: '
|
|
30
|
-
name: '
|
|
110
|
+
displayName: 'Authentication',
|
|
111
|
+
name: 'authentication',
|
|
112
|
+
type: 'options',
|
|
113
|
+
options: [
|
|
114
|
+
{ name: 'None', value: 'none' },
|
|
115
|
+
{ name: 'Bearer Auth', value: 'bearerAuth' },
|
|
116
|
+
{ name: 'Header Auth', value: 'headerAuth' },
|
|
117
|
+
],
|
|
118
|
+
default: 'none',
|
|
119
|
+
description: 'The way to authenticate',
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
displayName: 'Path',
|
|
123
|
+
name: 'path',
|
|
31
124
|
type: 'string',
|
|
32
|
-
default: '
|
|
125
|
+
default: '',
|
|
126
|
+
placeholder: 'webhook',
|
|
33
127
|
required: true,
|
|
128
|
+
description: 'The base path for this MCP server',
|
|
34
129
|
},
|
|
35
130
|
{
|
|
36
131
|
displayName: 'Instructions',
|
|
@@ -43,88 +138,73 @@ class MetaMcpTrigger {
|
|
|
43
138
|
description: 'Wat moet het LLM weten over deze specifieke workflow?',
|
|
44
139
|
},
|
|
45
140
|
],
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
jsonrpc: '2.0',
|
|
57
|
-
id,
|
|
58
|
-
result: {
|
|
59
|
-
protocolVersion: '2024-11-05',
|
|
60
|
-
capabilities: {
|
|
61
|
-
tools: {},
|
|
62
|
-
},
|
|
63
|
-
serverInfo: {
|
|
64
|
-
name: this.getNodeParameter('serverName'),
|
|
65
|
-
version: '1.0.0',
|
|
66
|
-
},
|
|
141
|
+
webhooks: [
|
|
142
|
+
{
|
|
143
|
+
name: 'setup',
|
|
144
|
+
httpMethod: 'GET',
|
|
145
|
+
responseMode: 'onReceived',
|
|
146
|
+
isFullPath: true,
|
|
147
|
+
path: `={{$parameter["path"]}}{{parseFloat($nodeVersion)<2 ? '/${MCP_SSE_SETUP_PATH}' : ''}}`,
|
|
148
|
+
nodeType: 'mcp',
|
|
149
|
+
ndvHideMethod: true,
|
|
150
|
+
ndvHideUrl: false,
|
|
67
151
|
},
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
name: this.getNodeParameter('serverName'),
|
|
78
|
-
description: this.getNodeParameter('instructions'),
|
|
79
|
-
inputSchema: {
|
|
80
|
-
type: 'object',
|
|
81
|
-
properties: {
|
|
82
|
-
arguments: {
|
|
83
|
-
type: 'object',
|
|
84
|
-
description: 'De parameters die naar de workflow worden gestuurd',
|
|
85
|
-
},
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
],
|
|
152
|
+
{
|
|
153
|
+
name: 'default',
|
|
154
|
+
httpMethod: 'POST',
|
|
155
|
+
responseMode: 'onReceived',
|
|
156
|
+
isFullPath: true,
|
|
157
|
+
path: `={{$parameter["path"]}}{{parseFloat($nodeVersion)<2 ? '/${MCP_SSE_MESSAGES_PATH}' : ''}}`,
|
|
158
|
+
nodeType: 'mcp',
|
|
159
|
+
ndvHideMethod: true,
|
|
160
|
+
ndvHideUrl: true,
|
|
90
161
|
},
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
headers: req.headers,
|
|
101
|
-
},
|
|
102
|
-
]),
|
|
103
|
-
],
|
|
104
|
-
webhookResponse: {
|
|
105
|
-
jsonrpc: '2.0',
|
|
106
|
-
id,
|
|
107
|
-
result: {
|
|
108
|
-
content: [
|
|
109
|
-
{
|
|
110
|
-
type: 'text',
|
|
111
|
-
text: 'Workflow succesvol aangeroepen via MCP.',
|
|
112
|
-
},
|
|
113
|
-
],
|
|
114
|
-
},
|
|
162
|
+
{
|
|
163
|
+
name: 'default',
|
|
164
|
+
httpMethod: 'DELETE',
|
|
165
|
+
responseMode: 'onReceived',
|
|
166
|
+
isFullPath: true,
|
|
167
|
+
path: '={{$parameter["path"]}}',
|
|
168
|
+
nodeType: 'mcp',
|
|
169
|
+
ndvHideMethod: true,
|
|
170
|
+
ndvHideUrl: true,
|
|
115
171
|
},
|
|
116
|
-
|
|
172
|
+
],
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
async webhook(ctx) {
|
|
176
|
+
const webhookName = ctx.getWebhookName();
|
|
177
|
+
const req = ctx.getRequestObject();
|
|
178
|
+
const resp = ctx.getResponseObject();
|
|
179
|
+
const node = ctx.getNode();
|
|
180
|
+
const serverName = node.typeVersion > 1 ? (0, n8n_workflow_1.nodeNameToToolName)(node) : 'n8n-mcp-server';
|
|
181
|
+
const mcpServerManager = McpServer_1.McpServerManager.instance(ctx.logger);
|
|
182
|
+
if (webhookName === 'setup') {
|
|
183
|
+
const postUrl = node.typeVersion < 2
|
|
184
|
+
? req.path.replace(new RegExp(`/${MCP_SSE_SETUP_PATH}$`), `/${MCP_SSE_MESSAGES_PATH}`)
|
|
185
|
+
: req.path;
|
|
186
|
+
await mcpServerManager.createServerWithSSETransport(serverName, postUrl, resp);
|
|
187
|
+
return { noWebhookResponse: true };
|
|
117
188
|
}
|
|
118
|
-
else {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
189
|
+
else if (webhookName === 'default') {
|
|
190
|
+
if (req.method === 'DELETE') {
|
|
191
|
+
await mcpServerManager.handleDeleteRequest(req, resp);
|
|
192
|
+
}
|
|
193
|
+
else {
|
|
194
|
+
const sessionId = mcpServerManager.getSessionId(req);
|
|
195
|
+
if (sessionId && mcpServerManager.getTransport(sessionId)) {
|
|
196
|
+
const connectedTools = await (0, exports.getConnectedTools)(ctx, true);
|
|
197
|
+
const wasToolCall = await mcpServerManager.handlePostMessage(req, resp, connectedTools);
|
|
198
|
+
if (wasToolCall)
|
|
199
|
+
return { noWebhookResponse: true, workflowData: [[{ json: {} }]] };
|
|
200
|
+
}
|
|
201
|
+
else {
|
|
202
|
+
await mcpServerManager.createServerWithStreamableHTTPTransport(serverName, resp, req);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
return { noWebhookResponse: true };
|
|
124
206
|
}
|
|
125
|
-
return {
|
|
126
|
-
webhookResponse: responseBody,
|
|
127
|
-
};
|
|
207
|
+
return { workflowData: [[{ json: {} }]] };
|
|
128
208
|
}
|
|
129
209
|
}
|
|
130
210
|
exports.MetaMcpTrigger = MetaMcpTrigger;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MetaMcpTrigger.node.js","sourceRoot":"","sources":["../../../nodes/MetaMcpTrigger/MetaMcpTrigger.node.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"MetaMcpTrigger.node.js","sourceRoot":"","sources":["../../../nodes/MetaMcpTrigger/MetaMcpTrigger.node.ts"],"names":[],"mappings":";;;AAAA,+CAUsB;AACtB,2CAA+C;AAkBxC,MAAM,iBAAiB,GAAG,KAAK,EAClC,GAAiE,EACjE,kBAA2B,EAC3B,wBAAiC,IAAI,EACrC,sBAA+B,KAAK,EACrB,EAAE;IAEjB,MAAM,kBAAkB,GAAG,CAAC,MAAM,GAAG,CAAC,sBAAsB,CACxD,kCAAmB,CAAC,MAAM,EAC1B,CAAC,CACJ,CAA6B,CAAC;IAG/B,MAAM,WAAW,GAAG,gBAAgB,IAAI,GAAG;QACvC,CAAC,CAAC,GAAG,CAAC,cAAc,CAAC,GAAG,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE;YACjC,cAAc,EAAE,kCAAmB,CAAC,MAAM;YAC1C,KAAK,EAAE,CAAC;SACX,CAAC;QACN,CAAC,CAAC,EAAE,CAAC;IAET,MAAM,cAAc,GAAG,CAAC,kBAAkB,aAAlB,kBAAkB,cAAlB,kBAAkB,GAAI,EAAE,CAAC;SAC5C,OAAO,CAAC,CAAC,aAAa,EAAE,KAAK,EAAE,EAAE;;QAC9B,MAAM,UAAU,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC;QAGtC,IAAI,OAAO,IAAI,aAAa,IAAI,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;YACjE,OAAO,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;;gBACpC,MAAA,IAAI,CAAC,QAAQ,oCAAb,IAAI,CAAC,QAAQ,GAAK,EAAE,EAAC;gBACrB,IAAI,CAAC,QAAQ,CAAC,aAAa,GAAG,IAAI,CAAC;gBACnC,IAAI,CAAC,QAAQ,CAA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AW,KAAK,SAAS,EAAE,CAAC;YAQtC,IAAI,GAAG,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;gBAC7B,MAAM,gBAAgB,CAAC,mBAAmB,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;YACvD,CAAC;iBAAM,CAAC;gBAEP,MAAM,SAAS,GAAG,gBAAgB,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC;gBAErD,IAAI,SAAS,IAAI,gBAAgB,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,CAAC;oBAC3D,MAAM,cAAc,GAAG,MAAM,IAAA,yBAAiB,EAAC,GAAG,EAAE,IAAI,CAAC,CAAC;oBAC1D,MAAM,WAAW,GAAG,MAAM,gBAAgB,CAAC,iBAAiB,CAAC,GAAG,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;oBACxF,IAAI,WAAW;wBAAE,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC;gBACrF,CAAC;qBAAM,CAAC;oBAGP,MAAM,gBAAgB,CAAC,uCAAuC,CAAC,UAAU,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;gBACvF,CAAC;YACF,CAAC;YAED,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,CAAC;QACpC,CAAC;QAED,OAAO,EAAE,YAAY,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC;IAC3C,CAAC;CACD;AA3KD,wCA2KC"}
|
package/dist/package.json
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "n8n-nodes-meta-mcp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.32",
|
|
4
4
|
"description": "A node for MCP integration in n8n",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "",
|
|
7
|
-
"keywords": [
|
|
8
|
-
|
|
9
|
-
],
|
|
10
|
-
"author": {
|
|
11
|
-
"name": "Soreness",
|
|
12
|
-
"email": "reinoutvg18@gmail.com"
|
|
13
|
-
},
|
|
7
|
+
"keywords": ["n8n-community-node-package"],
|
|
8
|
+
"author": { "name": "Soreness", "email": "reinoutvg18@gmail.com" },
|
|
14
9
|
"repository": {
|
|
15
10
|
"type": "git",
|
|
16
11
|
"url": "https://github.com/Soreness/n8n-nodes-meta-mcp.git"
|
|
@@ -26,24 +21,25 @@
|
|
|
26
21
|
"release": "n8n-node release",
|
|
27
22
|
"prepublishOnly": "n8n-node prerelease"
|
|
28
23
|
},
|
|
29
|
-
"files": [
|
|
30
|
-
"dist"
|
|
31
|
-
],
|
|
24
|
+
"files": ["dist"],
|
|
32
25
|
"n8n": {
|
|
33
26
|
"n8nNodesApiVersion": 1,
|
|
34
27
|
"credentials": [],
|
|
35
|
-
"nodes": [
|
|
36
|
-
|
|
37
|
-
]
|
|
28
|
+
"nodes": ["dist/nodes/MetaMcpTrigger/MetaMcpTrigger.node.js"],
|
|
29
|
+
"strict": false
|
|
38
30
|
},
|
|
39
31
|
"devDependencies": {
|
|
40
32
|
"@n8n/node-cli": "*",
|
|
33
|
+
"@types/express": "^5.0.6",
|
|
41
34
|
"eslint": "9.32.0",
|
|
42
35
|
"prettier": "3.6.2",
|
|
43
36
|
"release-it": "^19.0.6",
|
|
44
37
|
"typescript": "5.9.2"
|
|
45
38
|
},
|
|
46
|
-
"peerDependencies": {
|
|
47
|
-
|
|
39
|
+
"peerDependencies": { "n8n-workflow": "*" },
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@modelcontextprotocol/sdk": "^1.25.3",
|
|
42
|
+
"express": "^5.2.1",
|
|
43
|
+
"zod-to-json-schema": "^3.25.1"
|
|
48
44
|
}
|
|
49
45
|
}
|