@node2flow/n8n-management-mcp 1.0.5
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/LICENSE +21 -0
- package/README.md +187 -0
- package/dist/index.d.ts +56 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +196 -0
- package/dist/index.js.map +1 -0
- package/dist/n8n-client.d.ts +45 -0
- package/dist/n8n-client.d.ts.map +1 -0
- package/dist/n8n-client.js +172 -0
- package/dist/n8n-client.js.map +1 -0
- package/dist/server.d.ts +19 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +133 -0
- package/dist/server.js.map +1 -0
- package/dist/tools.d.ts +385 -0
- package/dist/tools.d.ts.map +1 -0
- package/dist/tools.js +316 -0
- package/dist/tools.js.map +1 -0
- package/dist/types.d.ts +66 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +5 -0
- package/dist/types.js.map +1 -0
- package/dist/worker.d.ts +11 -0
- package/dist/worker.d.ts.map +1 -0
- package/dist/worker.js +75 -0
- package/dist/worker.js.map +1 -0
- package/package.json +49 -0
package/dist/tools.d.ts
ADDED
|
@@ -0,0 +1,385 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP Tool Definitions (31 tools total)
|
|
3
|
+
* n8n workflow, execution, credential, tag, variable, and user management
|
|
4
|
+
*/
|
|
5
|
+
export declare const TOOLS: ({
|
|
6
|
+
name: string;
|
|
7
|
+
description: string;
|
|
8
|
+
inputSchema: {
|
|
9
|
+
type: string;
|
|
10
|
+
properties: {
|
|
11
|
+
id?: undefined;
|
|
12
|
+
name?: undefined;
|
|
13
|
+
nodes?: undefined;
|
|
14
|
+
connections?: undefined;
|
|
15
|
+
active?: undefined;
|
|
16
|
+
data?: undefined;
|
|
17
|
+
tags?: undefined;
|
|
18
|
+
workflowId?: undefined;
|
|
19
|
+
type?: undefined;
|
|
20
|
+
credentialType?: undefined;
|
|
21
|
+
identifier?: undefined;
|
|
22
|
+
role?: undefined;
|
|
23
|
+
};
|
|
24
|
+
required?: undefined;
|
|
25
|
+
};
|
|
26
|
+
} | {
|
|
27
|
+
name: string;
|
|
28
|
+
description: string;
|
|
29
|
+
inputSchema: {
|
|
30
|
+
type: string;
|
|
31
|
+
properties: {
|
|
32
|
+
id: {
|
|
33
|
+
type: string;
|
|
34
|
+
description: string;
|
|
35
|
+
};
|
|
36
|
+
name?: undefined;
|
|
37
|
+
nodes?: undefined;
|
|
38
|
+
connections?: undefined;
|
|
39
|
+
active?: undefined;
|
|
40
|
+
data?: undefined;
|
|
41
|
+
tags?: undefined;
|
|
42
|
+
workflowId?: undefined;
|
|
43
|
+
type?: undefined;
|
|
44
|
+
credentialType?: undefined;
|
|
45
|
+
identifier?: undefined;
|
|
46
|
+
role?: undefined;
|
|
47
|
+
};
|
|
48
|
+
required: string[];
|
|
49
|
+
};
|
|
50
|
+
} | {
|
|
51
|
+
name: string;
|
|
52
|
+
description: string;
|
|
53
|
+
inputSchema: {
|
|
54
|
+
type: string;
|
|
55
|
+
properties: {
|
|
56
|
+
name: {
|
|
57
|
+
type: string;
|
|
58
|
+
description: string;
|
|
59
|
+
};
|
|
60
|
+
nodes: {
|
|
61
|
+
type: string;
|
|
62
|
+
description: string;
|
|
63
|
+
};
|
|
64
|
+
connections: {
|
|
65
|
+
type: string;
|
|
66
|
+
description: string;
|
|
67
|
+
};
|
|
68
|
+
active: {
|
|
69
|
+
type: string;
|
|
70
|
+
description: string;
|
|
71
|
+
};
|
|
72
|
+
id?: undefined;
|
|
73
|
+
data?: undefined;
|
|
74
|
+
tags?: undefined;
|
|
75
|
+
workflowId?: undefined;
|
|
76
|
+
type?: undefined;
|
|
77
|
+
credentialType?: undefined;
|
|
78
|
+
identifier?: undefined;
|
|
79
|
+
role?: undefined;
|
|
80
|
+
};
|
|
81
|
+
required: string[];
|
|
82
|
+
};
|
|
83
|
+
} | {
|
|
84
|
+
name: string;
|
|
85
|
+
description: string;
|
|
86
|
+
inputSchema: {
|
|
87
|
+
type: string;
|
|
88
|
+
properties: {
|
|
89
|
+
id: {
|
|
90
|
+
type: string;
|
|
91
|
+
description: string;
|
|
92
|
+
};
|
|
93
|
+
name: {
|
|
94
|
+
type: string;
|
|
95
|
+
description: string;
|
|
96
|
+
};
|
|
97
|
+
nodes: {
|
|
98
|
+
type: string;
|
|
99
|
+
description: string;
|
|
100
|
+
};
|
|
101
|
+
connections: {
|
|
102
|
+
type: string;
|
|
103
|
+
description: string;
|
|
104
|
+
};
|
|
105
|
+
active?: undefined;
|
|
106
|
+
data?: undefined;
|
|
107
|
+
tags?: undefined;
|
|
108
|
+
workflowId?: undefined;
|
|
109
|
+
type?: undefined;
|
|
110
|
+
credentialType?: undefined;
|
|
111
|
+
identifier?: undefined;
|
|
112
|
+
role?: undefined;
|
|
113
|
+
};
|
|
114
|
+
required: string[];
|
|
115
|
+
};
|
|
116
|
+
} | {
|
|
117
|
+
name: string;
|
|
118
|
+
description: string;
|
|
119
|
+
inputSchema: {
|
|
120
|
+
type: string;
|
|
121
|
+
properties: {
|
|
122
|
+
id: {
|
|
123
|
+
type: string;
|
|
124
|
+
description: string;
|
|
125
|
+
};
|
|
126
|
+
data: {
|
|
127
|
+
type: string;
|
|
128
|
+
description: string;
|
|
129
|
+
};
|
|
130
|
+
name?: undefined;
|
|
131
|
+
nodes?: undefined;
|
|
132
|
+
connections?: undefined;
|
|
133
|
+
active?: undefined;
|
|
134
|
+
tags?: undefined;
|
|
135
|
+
workflowId?: undefined;
|
|
136
|
+
type?: undefined;
|
|
137
|
+
credentialType?: undefined;
|
|
138
|
+
identifier?: undefined;
|
|
139
|
+
role?: undefined;
|
|
140
|
+
};
|
|
141
|
+
required: string[];
|
|
142
|
+
};
|
|
143
|
+
} | {
|
|
144
|
+
name: string;
|
|
145
|
+
description: string;
|
|
146
|
+
inputSchema: {
|
|
147
|
+
type: string;
|
|
148
|
+
properties: {
|
|
149
|
+
id: {
|
|
150
|
+
type: string;
|
|
151
|
+
description: string;
|
|
152
|
+
};
|
|
153
|
+
tags: {
|
|
154
|
+
type: string;
|
|
155
|
+
items: {
|
|
156
|
+
type: string;
|
|
157
|
+
};
|
|
158
|
+
description: string;
|
|
159
|
+
};
|
|
160
|
+
name?: undefined;
|
|
161
|
+
nodes?: undefined;
|
|
162
|
+
connections?: undefined;
|
|
163
|
+
active?: undefined;
|
|
164
|
+
data?: undefined;
|
|
165
|
+
workflowId?: undefined;
|
|
166
|
+
type?: undefined;
|
|
167
|
+
credentialType?: undefined;
|
|
168
|
+
identifier?: undefined;
|
|
169
|
+
role?: undefined;
|
|
170
|
+
};
|
|
171
|
+
required: string[];
|
|
172
|
+
};
|
|
173
|
+
} | {
|
|
174
|
+
name: string;
|
|
175
|
+
description: string;
|
|
176
|
+
inputSchema: {
|
|
177
|
+
type: string;
|
|
178
|
+
properties: {
|
|
179
|
+
workflowId: {
|
|
180
|
+
type: string;
|
|
181
|
+
description: string;
|
|
182
|
+
};
|
|
183
|
+
id?: undefined;
|
|
184
|
+
name?: undefined;
|
|
185
|
+
nodes?: undefined;
|
|
186
|
+
connections?: undefined;
|
|
187
|
+
active?: undefined;
|
|
188
|
+
data?: undefined;
|
|
189
|
+
tags?: undefined;
|
|
190
|
+
type?: undefined;
|
|
191
|
+
credentialType?: undefined;
|
|
192
|
+
identifier?: undefined;
|
|
193
|
+
role?: undefined;
|
|
194
|
+
};
|
|
195
|
+
required?: undefined;
|
|
196
|
+
};
|
|
197
|
+
} | {
|
|
198
|
+
name: string;
|
|
199
|
+
description: string;
|
|
200
|
+
inputSchema: {
|
|
201
|
+
type: string;
|
|
202
|
+
properties: {
|
|
203
|
+
name: {
|
|
204
|
+
type: string;
|
|
205
|
+
description: string;
|
|
206
|
+
};
|
|
207
|
+
type: {
|
|
208
|
+
type: string;
|
|
209
|
+
description: string;
|
|
210
|
+
};
|
|
211
|
+
data: {
|
|
212
|
+
type: string;
|
|
213
|
+
description: string;
|
|
214
|
+
};
|
|
215
|
+
id?: undefined;
|
|
216
|
+
nodes?: undefined;
|
|
217
|
+
connections?: undefined;
|
|
218
|
+
active?: undefined;
|
|
219
|
+
tags?: undefined;
|
|
220
|
+
workflowId?: undefined;
|
|
221
|
+
credentialType?: undefined;
|
|
222
|
+
identifier?: undefined;
|
|
223
|
+
role?: undefined;
|
|
224
|
+
};
|
|
225
|
+
required: string[];
|
|
226
|
+
};
|
|
227
|
+
} | {
|
|
228
|
+
name: string;
|
|
229
|
+
description: string;
|
|
230
|
+
inputSchema: {
|
|
231
|
+
type: string;
|
|
232
|
+
properties: {
|
|
233
|
+
id: {
|
|
234
|
+
type: string;
|
|
235
|
+
description: string;
|
|
236
|
+
};
|
|
237
|
+
name: {
|
|
238
|
+
type: string;
|
|
239
|
+
description: string;
|
|
240
|
+
};
|
|
241
|
+
data: {
|
|
242
|
+
type: string;
|
|
243
|
+
description: string;
|
|
244
|
+
};
|
|
245
|
+
nodes?: undefined;
|
|
246
|
+
connections?: undefined;
|
|
247
|
+
active?: undefined;
|
|
248
|
+
tags?: undefined;
|
|
249
|
+
workflowId?: undefined;
|
|
250
|
+
type?: undefined;
|
|
251
|
+
credentialType?: undefined;
|
|
252
|
+
identifier?: undefined;
|
|
253
|
+
role?: undefined;
|
|
254
|
+
};
|
|
255
|
+
required: string[];
|
|
256
|
+
};
|
|
257
|
+
} | {
|
|
258
|
+
name: string;
|
|
259
|
+
description: string;
|
|
260
|
+
inputSchema: {
|
|
261
|
+
type: string;
|
|
262
|
+
properties: {
|
|
263
|
+
credentialType: {
|
|
264
|
+
type: string;
|
|
265
|
+
description: string;
|
|
266
|
+
};
|
|
267
|
+
id?: undefined;
|
|
268
|
+
name?: undefined;
|
|
269
|
+
nodes?: undefined;
|
|
270
|
+
connections?: undefined;
|
|
271
|
+
active?: undefined;
|
|
272
|
+
data?: undefined;
|
|
273
|
+
tags?: undefined;
|
|
274
|
+
workflowId?: undefined;
|
|
275
|
+
type?: undefined;
|
|
276
|
+
identifier?: undefined;
|
|
277
|
+
role?: undefined;
|
|
278
|
+
};
|
|
279
|
+
required: string[];
|
|
280
|
+
};
|
|
281
|
+
} | {
|
|
282
|
+
name: string;
|
|
283
|
+
description: string;
|
|
284
|
+
inputSchema: {
|
|
285
|
+
type: string;
|
|
286
|
+
properties: {
|
|
287
|
+
name: {
|
|
288
|
+
type: string;
|
|
289
|
+
description: string;
|
|
290
|
+
};
|
|
291
|
+
id?: undefined;
|
|
292
|
+
nodes?: undefined;
|
|
293
|
+
connections?: undefined;
|
|
294
|
+
active?: undefined;
|
|
295
|
+
data?: undefined;
|
|
296
|
+
tags?: undefined;
|
|
297
|
+
workflowId?: undefined;
|
|
298
|
+
type?: undefined;
|
|
299
|
+
credentialType?: undefined;
|
|
300
|
+
identifier?: undefined;
|
|
301
|
+
role?: undefined;
|
|
302
|
+
};
|
|
303
|
+
required: string[];
|
|
304
|
+
};
|
|
305
|
+
} | {
|
|
306
|
+
name: string;
|
|
307
|
+
description: string;
|
|
308
|
+
inputSchema: {
|
|
309
|
+
type: string;
|
|
310
|
+
properties: {
|
|
311
|
+
id: {
|
|
312
|
+
type: string;
|
|
313
|
+
description: string;
|
|
314
|
+
};
|
|
315
|
+
name: {
|
|
316
|
+
type: string;
|
|
317
|
+
description: string;
|
|
318
|
+
};
|
|
319
|
+
nodes?: undefined;
|
|
320
|
+
connections?: undefined;
|
|
321
|
+
active?: undefined;
|
|
322
|
+
data?: undefined;
|
|
323
|
+
tags?: undefined;
|
|
324
|
+
workflowId?: undefined;
|
|
325
|
+
type?: undefined;
|
|
326
|
+
credentialType?: undefined;
|
|
327
|
+
identifier?: undefined;
|
|
328
|
+
role?: undefined;
|
|
329
|
+
};
|
|
330
|
+
required: string[];
|
|
331
|
+
};
|
|
332
|
+
} | {
|
|
333
|
+
name: string;
|
|
334
|
+
description: string;
|
|
335
|
+
inputSchema: {
|
|
336
|
+
type: string;
|
|
337
|
+
properties: {
|
|
338
|
+
identifier: {
|
|
339
|
+
type: string;
|
|
340
|
+
description: string;
|
|
341
|
+
};
|
|
342
|
+
id?: undefined;
|
|
343
|
+
name?: undefined;
|
|
344
|
+
nodes?: undefined;
|
|
345
|
+
connections?: undefined;
|
|
346
|
+
active?: undefined;
|
|
347
|
+
data?: undefined;
|
|
348
|
+
tags?: undefined;
|
|
349
|
+
workflowId?: undefined;
|
|
350
|
+
type?: undefined;
|
|
351
|
+
credentialType?: undefined;
|
|
352
|
+
role?: undefined;
|
|
353
|
+
};
|
|
354
|
+
required: string[];
|
|
355
|
+
};
|
|
356
|
+
} | {
|
|
357
|
+
name: string;
|
|
358
|
+
description: string;
|
|
359
|
+
inputSchema: {
|
|
360
|
+
type: string;
|
|
361
|
+
properties: {
|
|
362
|
+
id: {
|
|
363
|
+
type: string;
|
|
364
|
+
description: string;
|
|
365
|
+
};
|
|
366
|
+
role: {
|
|
367
|
+
type: string;
|
|
368
|
+
enum: string[];
|
|
369
|
+
description: string;
|
|
370
|
+
};
|
|
371
|
+
name?: undefined;
|
|
372
|
+
nodes?: undefined;
|
|
373
|
+
connections?: undefined;
|
|
374
|
+
active?: undefined;
|
|
375
|
+
data?: undefined;
|
|
376
|
+
tags?: undefined;
|
|
377
|
+
workflowId?: undefined;
|
|
378
|
+
type?: undefined;
|
|
379
|
+
credentialType?: undefined;
|
|
380
|
+
identifier?: undefined;
|
|
381
|
+
};
|
|
382
|
+
required: string[];
|
|
383
|
+
};
|
|
384
|
+
})[];
|
|
385
|
+
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../src/tools.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA0TjB,CAAC"}
|
package/dist/tools.js
ADDED
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP Tool Definitions (31 tools total)
|
|
3
|
+
* n8n workflow, execution, credential, tag, variable, and user management
|
|
4
|
+
*/
|
|
5
|
+
export const TOOLS = [
|
|
6
|
+
// ========== Workflow Tools (10) ==========
|
|
7
|
+
{
|
|
8
|
+
name: 'n8n_list_workflows',
|
|
9
|
+
description: 'Retrieve all workflows with their status, tags, and metadata. Returns workflow ID, name, active status, creation date, and tags. Use this to browse available automations or find a specific workflow by name.',
|
|
10
|
+
inputSchema: {
|
|
11
|
+
type: 'object',
|
|
12
|
+
properties: {},
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'n8n_get_workflow',
|
|
17
|
+
description: 'Get complete workflow definition including all nodes, connections, and settings. Returns full workflow JSON with node configurations and data flow. Use this to inspect workflow logic before modifying or executing.',
|
|
18
|
+
inputSchema: {
|
|
19
|
+
type: 'object',
|
|
20
|
+
properties: {
|
|
21
|
+
id: { type: 'string', description: 'Workflow ID from list_workflows' },
|
|
22
|
+
},
|
|
23
|
+
required: ['id'],
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'n8n_create_workflow',
|
|
28
|
+
description: 'Create a new automation workflow with nodes and connections. Provide workflow name, node array, and connection object. Optionally activate immediately. Returns new workflow with assigned ID.',
|
|
29
|
+
inputSchema: {
|
|
30
|
+
type: 'object',
|
|
31
|
+
properties: {
|
|
32
|
+
name: { type: 'string', description: 'Descriptive workflow name' },
|
|
33
|
+
nodes: { type: 'array', description: 'Array of node objects with type, parameters, position' },
|
|
34
|
+
connections: { type: 'object', description: 'Connection map linking node outputs to inputs' },
|
|
35
|
+
active: { type: 'boolean', description: 'Start workflow immediately (default: false)' },
|
|
36
|
+
},
|
|
37
|
+
required: ['name', 'nodes', 'connections'],
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'n8n_update_workflow',
|
|
42
|
+
description: 'Modify existing workflow structure or settings. Update workflow name, add/remove nodes, or change connections. Workflow must be deactivated first for structure changes. Returns updated workflow.',
|
|
43
|
+
inputSchema: {
|
|
44
|
+
type: 'object',
|
|
45
|
+
properties: {
|
|
46
|
+
id: { type: 'string', description: 'Workflow ID to modify' },
|
|
47
|
+
name: { type: 'string', description: 'New workflow name (optional)' },
|
|
48
|
+
nodes: { type: 'array', description: 'Updated node array (optional)' },
|
|
49
|
+
connections: { type: 'object', description: 'Updated connection map (optional)' },
|
|
50
|
+
},
|
|
51
|
+
required: ['id'],
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: 'n8n_delete_workflow',
|
|
56
|
+
description: 'Permanently delete a workflow and all associated execution history. This action cannot be undone. Workflow must be deactivated first. Use with caution.',
|
|
57
|
+
inputSchema: {
|
|
58
|
+
type: 'object',
|
|
59
|
+
properties: {
|
|
60
|
+
id: { type: 'string', description: 'Workflow ID to permanently delete' },
|
|
61
|
+
},
|
|
62
|
+
required: ['id'],
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: 'n8n_activate_workflow',
|
|
67
|
+
description: 'Start a workflow to listen for triggers (webhooks, schedules, etc). Activating enables automatic execution when trigger conditions are met. Workflow must have valid trigger nodes.',
|
|
68
|
+
inputSchema: {
|
|
69
|
+
type: 'object',
|
|
70
|
+
properties: {
|
|
71
|
+
id: { type: 'string', description: 'Workflow ID to activate' },
|
|
72
|
+
},
|
|
73
|
+
required: ['id'],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
name: 'n8n_deactivate_workflow',
|
|
78
|
+
description: 'Stop a workflow from listening to triggers. Deactivating prevents automatic execution but preserves workflow configuration. Use before making structure changes.',
|
|
79
|
+
inputSchema: {
|
|
80
|
+
type: 'object',
|
|
81
|
+
properties: {
|
|
82
|
+
id: { type: 'string', description: 'Workflow ID to deactivate' },
|
|
83
|
+
},
|
|
84
|
+
required: ['id'],
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
name: 'n8n_execute_workflow',
|
|
89
|
+
description: 'Manually trigger workflow execution with optional input data. Useful for testing or API-driven workflows without webhooks. Returns execution ID to track progress. Does not require workflow to be active.',
|
|
90
|
+
inputSchema: {
|
|
91
|
+
type: 'object',
|
|
92
|
+
properties: {
|
|
93
|
+
id: { type: 'string', description: 'Workflow ID to execute' },
|
|
94
|
+
data: { type: 'object', description: 'Input data passed to workflow start node (optional)' },
|
|
95
|
+
},
|
|
96
|
+
required: ['id'],
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: 'n8n_get_workflow_tags',
|
|
101
|
+
description: 'Retrieve tags assigned to a workflow for categorization. Returns array of tag names. Use this to understand workflow organization before bulk operations.',
|
|
102
|
+
inputSchema: {
|
|
103
|
+
type: 'object',
|
|
104
|
+
properties: {
|
|
105
|
+
id: { type: 'string', description: 'Workflow ID' },
|
|
106
|
+
},
|
|
107
|
+
required: ['id'],
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: 'n8n_update_workflow_tags',
|
|
112
|
+
description: 'Assign tags to a workflow for organization and filtering. Replaces existing tags completely. Use tags like "production", "testing", or team names. Create missing tags automatically.',
|
|
113
|
+
inputSchema: {
|
|
114
|
+
type: 'object',
|
|
115
|
+
properties: {
|
|
116
|
+
id: { type: 'string', description: 'Workflow ID' },
|
|
117
|
+
tags: { type: 'array', items: { type: 'string' }, description: 'Complete array of tag names (replaces existing)' },
|
|
118
|
+
},
|
|
119
|
+
required: ['id', 'tags'],
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
// ========== Execution Tools (4) ==========
|
|
123
|
+
{
|
|
124
|
+
name: 'n8n_list_executions',
|
|
125
|
+
description: 'Retrieve execution history with status, timestamps, and workflow info. Filter by workflow ID or get all executions. Returns execution ID, status (success/error/running), start time, and workflow name. Use this to monitor automation performance or debug failures.',
|
|
126
|
+
inputSchema: {
|
|
127
|
+
type: 'object',
|
|
128
|
+
properties: {
|
|
129
|
+
workflowId: { type: 'string', description: 'Filter executions for specific workflow (optional, omit for all)' },
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: 'n8n_get_execution',
|
|
135
|
+
description: 'Get detailed execution data including node outputs, error messages, and timing. Returns full execution log with data passed between nodes. Essential for debugging failed workflows or understanding data flow.',
|
|
136
|
+
inputSchema: {
|
|
137
|
+
type: 'object',
|
|
138
|
+
properties: {
|
|
139
|
+
id: { type: 'string', description: 'Execution ID from list_executions' },
|
|
140
|
+
},
|
|
141
|
+
required: ['id'],
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
name: 'n8n_delete_execution',
|
|
146
|
+
description: 'Remove execution record from history to save storage or clean up test runs. Permanently deletes execution data. Use after debugging or to maintain clean execution logs.',
|
|
147
|
+
inputSchema: {
|
|
148
|
+
type: 'object',
|
|
149
|
+
properties: {
|
|
150
|
+
id: { type: 'string', description: 'Execution ID to permanently remove' },
|
|
151
|
+
},
|
|
152
|
+
required: ['id'],
|
|
153
|
+
},
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
name: 'n8n_retry_execution',
|
|
157
|
+
description: 'Rerun a failed execution with the same input data. Useful for transient errors like network timeouts. Creates new execution while preserving original execution log. Only works with failed executions.',
|
|
158
|
+
inputSchema: {
|
|
159
|
+
type: 'object',
|
|
160
|
+
properties: {
|
|
161
|
+
id: { type: 'string', description: 'Failed execution ID to retry' },
|
|
162
|
+
},
|
|
163
|
+
required: ['id'],
|
|
164
|
+
},
|
|
165
|
+
},
|
|
166
|
+
// ========== Credential Tools (4) ==========
|
|
167
|
+
{
|
|
168
|
+
name: 'n8n_create_credential',
|
|
169
|
+
description: 'Store new API credentials for services like GitHub, Slack, or databases. Provide credential type, descriptive name, and authentication data. Use get_credential_schema first to see required fields for each type.',
|
|
170
|
+
inputSchema: {
|
|
171
|
+
type: 'object',
|
|
172
|
+
properties: {
|
|
173
|
+
name: { type: 'string', description: 'Descriptive name (e.g., "Production GitHub Token")' },
|
|
174
|
+
type: { type: 'string', description: 'Credential type from get_credential_schema (e.g., githubApi, slackApi)' },
|
|
175
|
+
data: { type: 'object', description: 'Authentication data (API keys, OAuth tokens, passwords)' },
|
|
176
|
+
},
|
|
177
|
+
required: ['name', 'type', 'data'],
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: 'n8n_update_credential',
|
|
182
|
+
description: 'Update credential name or authentication data. Use this when rotating API keys or changing OAuth tokens. Workflows using this credential will use updated auth immediately.',
|
|
183
|
+
inputSchema: {
|
|
184
|
+
type: 'object',
|
|
185
|
+
properties: {
|
|
186
|
+
id: { type: 'string', description: 'Credential ID to update' },
|
|
187
|
+
name: { type: 'string', description: 'New name (optional)' },
|
|
188
|
+
data: { type: 'object', description: 'Updated authentication data (optional)' },
|
|
189
|
+
},
|
|
190
|
+
required: ['id'],
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
name: 'n8n_delete_credential',
|
|
195
|
+
description: 'Remove stored credential. Cannot delete credentials currently used in active workflows. Deactivate dependent workflows first. Use with caution as this may break workflows.',
|
|
196
|
+
inputSchema: {
|
|
197
|
+
type: 'object',
|
|
198
|
+
properties: {
|
|
199
|
+
id: { type: 'string', description: 'Credential ID to permanently delete' },
|
|
200
|
+
},
|
|
201
|
+
required: ['id'],
|
|
202
|
+
},
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: 'n8n_get_credential_schema',
|
|
206
|
+
description: 'Get required fields and format for a credential type before creating it. Returns field names, types, and whether fields are required. Use this to understand what authentication data is needed.',
|
|
207
|
+
inputSchema: {
|
|
208
|
+
type: 'object',
|
|
209
|
+
properties: {
|
|
210
|
+
credentialType: {
|
|
211
|
+
type: 'string',
|
|
212
|
+
description: 'Credential type (e.g., githubApi, googleDriveOAuth2Api, httpBasicAuth)',
|
|
213
|
+
},
|
|
214
|
+
},
|
|
215
|
+
required: ['credentialType'],
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
// ========== Tag Tools (5) ==========
|
|
219
|
+
{
|
|
220
|
+
name: 'n8n_list_tags',
|
|
221
|
+
description: 'Retrieve all available tags for workflow organization. Returns tag ID and name. Use this before assigning tags to workflows or to see your tagging structure.',
|
|
222
|
+
inputSchema: {
|
|
223
|
+
type: 'object',
|
|
224
|
+
properties: {},
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
name: 'n8n_get_tag',
|
|
229
|
+
description: 'Get tag details including ID and name. Rarely needed - use list_tags for most cases. Useful for validating tag existence before bulk operations.',
|
|
230
|
+
inputSchema: {
|
|
231
|
+
type: 'object',
|
|
232
|
+
properties: {
|
|
233
|
+
id: { type: 'string', description: 'Tag ID from list_tags' },
|
|
234
|
+
},
|
|
235
|
+
required: ['id'],
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
name: 'n8n_create_tag',
|
|
240
|
+
description: 'Create new tag for workflow categorization. Use meaningful names like "production", "staging", "team-marketing", or "urgent". Tags help filter and organize workflows.',
|
|
241
|
+
inputSchema: {
|
|
242
|
+
type: 'object',
|
|
243
|
+
properties: {
|
|
244
|
+
name: { type: 'string', description: 'Tag name (case-sensitive, spaces allowed)' },
|
|
245
|
+
},
|
|
246
|
+
required: ['name'],
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
name: 'n8n_update_tag',
|
|
251
|
+
description: 'Rename an existing tag. All workflows using this tag will automatically reflect the new name. Use this to standardize tag naming across workflows.',
|
|
252
|
+
inputSchema: {
|
|
253
|
+
type: 'object',
|
|
254
|
+
properties: {
|
|
255
|
+
id: { type: 'string', description: 'Tag ID to rename' },
|
|
256
|
+
name: { type: 'string', description: 'New tag name' },
|
|
257
|
+
},
|
|
258
|
+
required: ['id', 'name'],
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
name: 'n8n_delete_tag',
|
|
263
|
+
description: 'Remove tag from system. Automatically removes this tag from all workflows using it. Tag removal does not affect workflows themselves, only the tag association.',
|
|
264
|
+
inputSchema: {
|
|
265
|
+
type: 'object',
|
|
266
|
+
properties: {
|
|
267
|
+
id: { type: 'string', description: 'Tag ID to permanently delete' },
|
|
268
|
+
},
|
|
269
|
+
required: ['id'],
|
|
270
|
+
},
|
|
271
|
+
},
|
|
272
|
+
// ========== User Tools (4) - Requires owner permissions ==========
|
|
273
|
+
{
|
|
274
|
+
name: 'n8n_list_users',
|
|
275
|
+
description: 'Retrieve all n8n users with their roles and status. Only available to instance owner. Returns user ID, email, role (owner/admin/member), and disabled status. Use this for user management and auditing.',
|
|
276
|
+
inputSchema: {
|
|
277
|
+
type: 'object',
|
|
278
|
+
properties: {},
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
name: 'n8n_get_user',
|
|
283
|
+
description: 'Get detailed user information by ID or email. Only available to instance owner. Returns user profile including role and account status. Use this to verify user details before role changes.',
|
|
284
|
+
inputSchema: {
|
|
285
|
+
type: 'object',
|
|
286
|
+
properties: {
|
|
287
|
+
identifier: { type: 'string', description: 'User ID or email address' },
|
|
288
|
+
},
|
|
289
|
+
required: ['identifier'],
|
|
290
|
+
},
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
name: 'n8n_delete_user',
|
|
294
|
+
description: 'Remove user from n8n instance. Only available to instance owner. Cannot delete the owner account. Deleted users lose access immediately. Workflows created by this user remain intact.',
|
|
295
|
+
inputSchema: {
|
|
296
|
+
type: 'object',
|
|
297
|
+
properties: {
|
|
298
|
+
id: { type: 'string', description: 'User ID to permanently delete (not email)' },
|
|
299
|
+
},
|
|
300
|
+
required: ['id'],
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
name: 'n8n_update_user_role',
|
|
305
|
+
description: 'Change user permission level. Only available to instance owner. Admin can manage workflows and credentials. Member has view-only or limited edit access. Cannot change owner role.',
|
|
306
|
+
inputSchema: {
|
|
307
|
+
type: 'object',
|
|
308
|
+
properties: {
|
|
309
|
+
id: { type: 'string', description: 'User ID to modify' },
|
|
310
|
+
role: { type: 'string', enum: ['admin', 'member'], description: 'New permission level' },
|
|
311
|
+
},
|
|
312
|
+
required: ['id', 'role'],
|
|
313
|
+
},
|
|
314
|
+
},
|
|
315
|
+
];
|
|
316
|
+
//# sourceMappingURL=tools.js.map
|