Skip to content

Commit 7cd172c

Browse files
czlonkowskiclaude
andauthored
docs: sync skills pack to n8n-skills v1.28.0 (folder management) (czlonkowski#976)
* docs: sync skills pack to n8n-skills v1.28.0 (folder management) The bundled pack predates the 2.68.0 folder feature. Synced from n8n-skills v1.28.0: n8n_manage_folders (six actions, list counts, recursive totals, delete/archive semantics), the moveToFolder diff operation, and parentFolderId on workflow create - including the write-only placement and delete-archives-workflows behaviors. Conceived by Romuald Członkowski - https://www.aiadvisors.pl/en 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * docs: sync Copilot review polish from n8n-skills v1.28.1 Explicit folderId placeholder in the moveToFolder verification example; router delete note clarifies workflows move to the project root and are archived, not removed. Conceived by Romuald Członkowski - https://www.aiadvisors.pl/en 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent 1e3b2df commit 7cd172c

7 files changed

Lines changed: 128 additions & 15 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [2.68.1] - 2026-08-04
11+
12+
### Changed
13+
14+
- **Bundled skills pack synced to n8n-skills v1.28.1.** The pack predates the folder feature that shipped in 2.68.0, so nothing in it mentioned `n8n_manage_folders` or folder placement. The tools-expert skill (category list, quick reference, version requirements, WORKFLOW_GUIDE) now documents all six folder actions with the list counts and recursive totals, the `moveToFolder` operation (21 diff operation types), and `parentFolderId` on workflow create — including the two behaviors an agent must know: a workflow's folder is write-only in n8n's API (verify placement via a folder's `get` counts, never by reading the workflow), and folder `delete` without `transferToFolderId` archives the folder's workflows (`"0"` transfers them to the project root and keeps them active). The always-on router gains the matching one-liner.
15+
1016
## [2.68.0] - 2026-08-04
1117

1218
### Added

data/skills/n8n-mcp-tools-expert/SKILL.md

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: n8n-mcp-tools-expert
3-
description: Expert guide for using n8n-mcp MCP tools effectively. Use when searching for nodes, validating configurations, accessing templates, managing workflows, managing credentials, auditing instance security, or using any n8n-mcp tool. Provides tool selection guidance, parameter formats, and common patterns. IMPORTANT — Always consult this skill before calling any n8n-mcp tool — it prevents common mistakes like wrong nodeType formats, incorrect parameter structures, and inefficient tool usage. If the user mentions n8n, workflows, nodes, or automation and you have n8n MCP tools available, use this skill first.
3+
description: Expert guide for using n8n-mcp MCP tools effectively. Use when searching for nodes, validating configurations, accessing templates, managing workflows, organizing workflows into folders, managing credentials, auditing instance security, or using any n8n-mcp tool. Provides tool selection guidance, parameter formats, and common patterns. IMPORTANT — Always consult this skill before calling any n8n-mcp tool — it prevents common mistakes like wrong nodeType formats, incorrect parameter structures, and inefficient tool usage. If the user mentions n8n, workflows, nodes, or automation and you have n8n MCP tools available, use this skill first.
44
---
55

66
# n8n MCP Tools Expert
@@ -18,9 +18,10 @@ n8n-mcp provides tools organized into categories:
1818
3. **Workflow Management**[WORKFLOW_GUIDE.md](WORKFLOW_GUIDE.md)
1919
4. **Template Library** - Search and deploy 2,700+ real workflows
2020
5. **Data Tables** - Manage n8n data tables and rows (`n8n_manage_datatable`)
21-
6. **Credential Management** - Full credential CRUD + schema discovery (`n8n_manage_credentials`)
22-
7. **Security & Audit** - Instance security auditing with custom deep scan (`n8n_audit_instance`)
23-
8. **Documentation & Guides** - Tool docs, AI agent guide, Code node guides
21+
6. **Workflow Folders** - Folder CRUD + workflow placement (`n8n_manage_folders`)
22+
7. **Credential Management** - Full credential CRUD + schema discovery (`n8n_manage_credentials`)
23+
8. **Security & Audit** - Instance security auditing with custom deep scan (`n8n_audit_instance`)
24+
9. **Documentation & Guides** - Tool docs, AI agent guide, Code node guides
2425

2526
---
2627

@@ -38,6 +39,7 @@ n8n-mcp provides tools organized into categories:
3839
| `validate_workflow` | Checking complete workflow | 100-500ms |
3940
| `n8n_deploy_template` | Deploy template to n8n instance | 200-500ms |
4041
| `n8n_manage_datatable` | Managing data tables and rows | 50-500ms |
42+
| `n8n_manage_folders` | Folder CRUD + organizing workflows | 100-500ms |
4143
| `n8n_manage_credentials` | Credential CRUD + schema discovery | 50-500ms |
4244
| `n8n_audit_instance` | Security audit (built-in + custom scan) | 500-5000ms |
4345
| `n8n_autofix_workflow` | Auto-fix validation errors | 200-1500ms |
@@ -219,12 +221,13 @@ See [VALIDATION_GUIDE.md](VALIDATION_GUIDE.md) for:
219221
### Workflow Management
220222
See [WORKFLOW_GUIDE.md](WORKFLOW_GUIDE.md) for:
221223
- n8n_create_workflow
222-
- n8n_update_partial_workflow (20 operation types including patchNodeField and setNodeGroups!)
224+
- n8n_update_partial_workflow (21 operation types including patchNodeField, setNodeGroups, and moveToFolder!)
223225
- Smart parameters (branch, case)
224226
- AI connection types (8 types)
225227
- Workflow activation (activateWorkflow/deactivateWorkflow)
226228
- n8n_deploy_template
227229
- n8n_workflow_versions
230+
- n8n_manage_folders (folder CRUD + workflow placement)
228231
- n8n_manage_credentials (credential CRUD + schema discovery)
229232
- n8n_audit_instance (security auditing)
230233

@@ -252,6 +255,14 @@ See [OPERATIONS_GUIDE.md](OPERATIONS_GUIDE.md) for all actions, filter condition
252255

253256
---
254257

258+
## Workflow Folders
259+
260+
`n8n_manage_folders` organizes workflows into folders (actions `create`/`list`/`get`/`rename`/`move`/`delete`; n8n 2.19+, registered free Community tier and up). `projectId` defaults to `'personal'`. Placing workflows happens in the *workflow* tools: `parentFolderId` on `n8n_create_workflow`, or the `moveToFolder` operation of `n8n_update_partial_workflow` (both n8n 2.32+; `null` = project root). Two things to internalize: a workflow's folder is **write-only** in n8n's API (verify placement via a folder's `get` counts, never by reading the workflow), and `delete` without `transferToFolderId` **archives** the folder's workflows (`transferToFolderId: "0"` moves them to the project root instead, keeping them active).
261+
262+
See [WORKFLOW_GUIDE.md](WORKFLOW_GUIDE.md) for all actions, list filters/counts, and the delete semantics.
263+
264+
---
265+
255266
## Credential Management
256267

257268
`n8n_manage_credentials` is the unified credential tool: actions `list`, `get`, `create`, `update`, `delete`, `getSchema`. It never returns secrets — `get`/`create`/`update` strip the `data` field. Use `getSchema` before `create` to discover required fields. The optional `includeUsage: true` flag (on `list`/`get`) reverse-scans workflows and attaches `usedIn: [{id, name, active}]` + `usageCount` — use it before deleting or rotating a credential to see what breaks (it triggers a full client-side scan, caps at 5000 workflows, excludes archived, and degrades to a `usageScanError` field on failure).
@@ -298,6 +309,7 @@ See [OPERATIONS_GUIDE.md](OPERATIONS_GUIDE.md) for examples.
298309
- n8n_workflow_versions
299310
- n8n_autofix_workflow
300311
- n8n_manage_datatable
312+
- n8n_manage_folders (folder CRUD: n8n 2.19+, registered Community tier and up; workflow placement via parentFolderId/moveToFolder: n8n 2.32+)
301313
- n8n_manage_credentials
302314
- n8n_audit_instance
303315

@@ -322,6 +334,7 @@ If API tools unavailable, use templates and validation-only workflows.
322334
| validate_node (minimal) | <50ms | Small |
323335
| validate_node (full) | <100ms | Medium |
324336
| validate_workflow | 100-500ms | Medium |
337+
| n8n_manage_folders | 100-500ms | Small |
325338
| n8n_manage_credentials | 50-500ms | Small-Medium |
326339
| n8n_audit_instance | 500-5000ms | Large |
327340
| n8n_create_workflow | 100-500ms | Medium |
@@ -368,9 +381,10 @@ If API tools unavailable, use templates and validation-only workflows.
368381
7. Workflows can be **activated via API** (`activateWorkflow` operation)
369382
8. Workflows are built **iteratively** (56s avg between edits)
370383
9. **Data tables** managed with `n8n_manage_datatable` (CRUD + filtering)
371-
10. **Credentials** managed with `n8n_manage_credentials` (CRUD + schema discovery)
372-
11. **Security audits** via `n8n_audit_instance` (built-in + custom deep scan)
373-
12. **AI agent guide** available via `tools_documentation({topic: "ai_agents_guide", depth: "full"})`
384+
10. **Folders** managed with `n8n_manage_folders`; workflow placement is write-only (verify via folder counts, not the workflow)
385+
11. **Credentials** managed with `n8n_manage_credentials` (CRUD + schema discovery)
386+
12. **Security audits** via `n8n_audit_instance` (built-in + custom deep scan)
387+
13. **AI agent guide** available via `tools_documentation({topic: "ai_agents_guide", depth: "full"})`
374388

375389
**Common Workflow**:
376390
1. search_nodes → find node

data/skills/n8n-mcp-tools-expert/WORKFLOW_GUIDE.md

Lines changed: 94 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ n8n_create_workflow({
2424
name: "Webhook to Slack", // Required
2525
nodes: [...], // Required: array of nodes
2626
connections: {...}, // Required: connections object
27-
settings: {...} // Optional: workflow settings
27+
settings: {...}, // Optional: workflow settings
28+
parentFolderId: "abc123" // Optional: folder to create in (n8n 2.32+; omit = project root)
2829
})
2930
```
3031

@@ -72,6 +73,7 @@ n8n_create_workflow({
7273
- Workflows created **inactive** (activate with `activateWorkflow` operation)
7374
- Auto-sanitization runs on creation
7475
- Validate before creating for best results
76+
- `parentFolderId` places the workflow in a folder at creation (find or create folders with `n8n_manage_folders`). On n8n < 2.32 the whole create is rejected with a 400 naming the field — retry without it
7577

7678
---
7779

@@ -83,7 +85,7 @@ n8n_create_workflow({
8385

8486
**Common pattern**: 56s average between edits (iterative building!)
8587

86-
### 20 Operation Types
88+
### 21 Operation Types
8789

8890
**Node Operations** (7 types):
8991
1. `addNode` - Add new node
@@ -112,8 +114,9 @@ n8n_create_workflow({
112114
18. `activateWorkflow` - Activate workflow for automatic execution
113115
19. `deactivateWorkflow` - Deactivate workflow
114116

115-
**Project Management Operations** (1 type):
117+
**Project Management Operations** (2 types):
116118
20. `transferWorkflow` - Transfer workflow to a different project (enterprise/cloud)
119+
21. `moveToFolder` - Move workflow into a folder, or to the project root with `parentFolderId: null` (n8n 2.32+)
117120

118121
### Intent Parameter (IMPORTANT!)
119122

@@ -441,6 +444,33 @@ workflow without groups and warns; it does not fail.
441444
modes when the workflow has any. `mode: "active"` returns the *published* version's groups, which
442445
can differ from the draft's.
443446

447+
### moveToFolder (Folder Placement, n8n 2.32+)
448+
449+
Move the workflow into a folder as part of a diff:
450+
451+
```javascript
452+
n8n_update_partial_workflow({
453+
id: "workflow-id",
454+
intent: "Move into the Production folder",
455+
operations: [
456+
{type: "moveToFolder", parentFolderId: "abc123"} // or null = project root
457+
]
458+
})
459+
```
460+
461+
n8n treats a workflow's folder as **write-only**: it can be set but never read back
462+
(no field in `n8n_get_workflow`, no folder filter on `n8n_list_workflows`). Verify a
463+
move indirectly — `n8n_manage_folders({action: "get", folderId: "abc123"})` reports the
464+
folder's recursive `totalWorkflows` — or visually in the n8n UI. Two consequences:
465+
466+
- If a mixed update fails after the PUT persisted, the rollback restores the graph but
467+
**cannot** restore the previous folder (it was never readable); the error says so.
468+
- Combined with `transferWorkflow` in one request, the folder move applies in the
469+
*source* project before the transfer — move in a separate call after transferring.
470+
471+
On n8n < 2.32 the operation fails with a 400 naming `parentFolderId` plus upgrade
472+
guidance. Find or create folders with `n8n_manage_folders` (see below).
473+
444474
### Cleanup & Recovery
445475

446476
**cleanStaleConnections** - Remove broken connections:
@@ -995,6 +1025,67 @@ n8n_evaluations({
9951025

9961026
---
9971027

1028+
## n8n_manage_folders (FOLDER MANAGEMENT)
1029+
1030+
**Use when**: Organizing workflows into folders — creating structure before deploying a batch, restructuring a grown instance, or finding where to place a new workflow.
1031+
1032+
Folder CRUD needs n8n >= 2.19 and a licensed instance (folders unlock on the **registered free Community tier** — Settings → Usage and plan → register — and up) plus `folder:*` API key scopes. Placing *workflows* into folders needs n8n >= 2.32 and happens in the workflow tools (`parentFolderId` on `n8n_create_workflow`, `moveToFolder` op), not here.
1033+
1034+
### 6 Actions
1035+
1036+
`create`, `list`, `get`, `rename`, `move`, `delete`. `projectId` defaults to `'personal'` (the calling user's personal project) on every action — pass a real project ID on multi-project enterprise instances.
1037+
1038+
### Create a Folder
1039+
1040+
```javascript
1041+
n8n_manage_folders({action: "create", name: "Production"})
1042+
// Nested: add parentFolderId: "abc123"
1043+
// → {id, name, parentFolderId}
1044+
```
1045+
1046+
### List Folders (with contents counts)
1047+
1048+
```javascript
1049+
n8n_manage_folders({action: "list"})
1050+
// Optional: nameFilter (contains match), parentFolderId (direct children only),
1051+
// sortBy ("name:asc" ... default "updatedAt:desc"), skip, take (max 100)
1052+
// → folders: [{id, name, parentFolder, workflowCount, subFolderCount, path}], count
1053+
// count = total matching the query, not the page size; path = names from root
1054+
```
1055+
1056+
### Folder Details (recursive totals)
1057+
1058+
```javascript
1059+
n8n_manage_folders({action: "get", folderId: "abc123"})
1060+
// → {..., totalSubFolders, totalWorkflows} // recursive — this is how you verify
1061+
// a workflow placement, since n8n never reports a workflow's folder directly
1062+
```
1063+
1064+
### Rename / Move
1065+
1066+
```javascript
1067+
n8n_manage_folders({action: "rename", folderId: "abc123", name: "Staging"})
1068+
n8n_manage_folders({action: "move", folderId: "abc123", parentFolderId: "def456"})
1069+
n8n_manage_folders({action: "move", folderId: "abc123", parentFolderId: null}) // → project root
1070+
```
1071+
1072+
### Delete (read this one)
1073+
1074+
```javascript
1075+
n8n_manage_folders({action: "delete", folderId: "abc123", transferToFolderId: "0"})
1076+
```
1077+
1078+
Without `transferToFolderId`, the folder's workflows are moved to the project root **and ARCHIVED** (deactivated), and sub-folders are deleted. Pass `transferToFolderId` to move contents somewhere first — `"0"` means the project root and keeps workflows active. Prefer the transfer form unless archiving is intended.
1079+
1080+
**Gotchas**:
1081+
- Folder names are not unique — `list` before `create` to avoid duplicates
1082+
- A workflow's folder cannot be read back through the API; don't build logic that queries folder membership. Folder contents are visible only as counts
1083+
- The `'personal'` default resolves through the projects API when licensed; on Community (where that API is 403) it infers the project from an existing workflow — a brand-new instance with zero workflows needs an explicit `projectId`, or create any workflow first
1084+
- 403 = missing `folder:*` scopes or an unregistered/unlicensed instance; 404 = wrong project/folder ID, or n8n < 2.19 (no folders API at all)
1085+
- On n8n 2.19–2.31 folder CRUD works but workflow placement doesn't (that needs 2.32+)
1086+
1087+
---
1088+
9981089
## Workflow Lifecycle
9991090

10001091
**Standard pattern**:

data/skills/n8n-workflow-patterns/SKILL.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ These skills work together with Workflow Patterns:
364364
- Deploy templates (n8n_deploy_template)
365365
- Use `tools_documentation({topic: "ai_agents_guide", depth: "full"})` for AI pattern guidance
366366
- Manage data tables with `n8n_manage_datatable`
367+
- Organize workflows into folders with `n8n_manage_folders`
367368

368369
**n8n Expression Syntax** - Use to:
369370
- Write expressions in transformation nodes

data/skills/using-n8n-mcp-skills/SKILL.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,9 @@ closes the gap where a tool's full description isn't loaded until first use.
133133
- `n8n_executions` — list/inspect executions. **There is no `execute_workflow` tool.**
134134
- `n8n_evaluations` — evaluation test runs: list runs, aggregated metrics, per-case results (n8n ≥ 2.30), plus `run`/`cancel` to start or stop a run (n8n ≥ 2.32). `run` executes the workflow against its whole dataset — real nodes fire, so ask the user first. A 403 can mean the API key was created before the action's minimum version (re-create it for the testRun scopes), evaluations aren't licensed on the plan, or the key's owner lacks access to the workflow — for `run`/`cancel`, specifically the `workflow:execute` scope.
135135

136-
**Data, credentials, audit**
136+
**Data, folders, credentials, audit**
137137
- `n8n_manage_datatable` — Data Table CRUD, filtering, dry-run.
138+
- `n8n_manage_folders` — workflow folder CRUD with contents counts (n8n ≥ 2.19, registered Community tier and up; `projectId` defaults to `personal`). Place workflows via `parentFolderId` on `n8n_create_workflow` or the `moveToFolder` op (n8n ≥ 2.32). Placement is write-only — verify via a folder's `get` counts, never by reading the workflow. `delete` without `transferToFolderId` moves the folder's workflows to the project root and ARCHIVES them — they still exist, but deactivated (`transferToFolderId: "0"` = transfer to project root without archiving).
138139
- `n8n_manage_credentials` — credential CRUD + `getSchema` discovery.
139140
- `n8n_audit_instance` — security audit (hardcoded secrets, unauthenticated webhooks, error-handling gaps).
140141

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "n8n-mcp",
3-
"version": "2.68.0",
3+
"version": "2.68.1",
44
"description": "Integration between n8n workflow automation and Model Context Protocol (MCP)",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)