n8n/packages/cli
Arvin Ansari fcba43ed45 feat(core): Give the MCP tools the same folder and node-type reads (no-changelog)
The MCP server builds its own tools against WorkflowService and never touched the
Instance AI adapter, so it carried the same gap: `search_folders` could resolve a
folder name to an id, and then nothing would accept that id.

- `search_workflows` gains `folderId`, `recursive` and `nodeTypes`, and every row
  now carries `folder {id, name, path}` in the same `path` shape `search_folders`
  returns, so the two are directly comparable.
- A `folderId` the caller cannot read aborts the search with an explanation
  rather than returning the unscoped set, which is indistinguishable from the
  folder being empty and would be presented as its contents.
- Subtree expansion goes through `findFolderSubtreesForUser`, so the access check
  covers the descendants in the same query that finds them.
- `get_workflow_details` reports `folder {id, name}` alongside the existing bare
  `parentFolderId`, which required a second lookup to be worth anything.

Folder reads are wired only when folders are licensed, matching how the folder
tools are already registered.
2026-08-27 19:06:06 +02:00
..
bin
scripts feat(core): Add new agent slack integration (#35591) 2026-08-17 09:27:50 +00:00
src feat(core): Give the MCP tools the same folder and node-type reads (no-changelog) 2026-08-27 19:06:06 +02:00
templates fix(core): Keep the account panel on hosted forms once every account is connected (#36429) 2026-08-18 06:38:47 +00:00
test feat(core): Let the agent read and address workflow folders (no-changelog) 2026-08-27 14:00:20 +02:00
AGENTS.md chore(core): Lock the @n8n/typeorm import ratchet and document the boundary (no-changelog) (#34370) 2026-07-21 08:26:21 +00:00
BREAKING-CHANGES.md
eslint.config.mjs refactor(API): Route public API credentials through the shared credentials service (#36048) 2026-08-17 13:14:21 +00:00
nodemon.json
package.json refactor(API): Migrate workflow archive, unarchive, and transfer routes to the decorator pattern (no-changelog) (#35835) 2026-08-18 15:14:06 +00:00
tsconfig.build.json feat: Add @n8n/telemetry event registry with typed track() support (no-changelog) (#34662) 2026-07-23 16:09:54 +00:00
tsconfig.json feat: Add @n8n/telemetry event registry with typed track() support (no-changelog) (#34662) 2026-07-23 16:09:54 +00:00
vitest.config.base.ts feat: Add @n8n/telemetry event registry with typed track() support (no-changelog) (#34662) 2026-07-23 16:09:54 +00:00
vitest.config.integration.testcontainers.ts chore: Remove references to Jest (#33282) 2026-07-01 09:03:25 +00:00
vitest.config.integration.ts refactor(core): Tidy agent-eval runner and rating-persistence internals (no-changelog) (#35424) 2026-08-04 10:42:20 +00:00
vitest.config.migration.testcontainers.ts chore: Remove references to Jest (#33282) 2026-07-01 09:03:25 +00:00
vitest.config.migration.ts chore: Remove references to Jest (#33282) 2026-07-01 09:03:25 +00:00
vitest.config.ts test: Migrate cli package from Jest to Vitest (#31804) 2026-06-29 21:19:56 +03:00
vitest.tsc-entity-transform.ts chore: Consolidate ts tooling catalog (#34310) 2026-07-16 10:10:12 +00:00
vitest.workspace-externals.ts test: Migrate cli package from Jest to Vitest (#31804) 2026-06-29 21:19:56 +03:00