Repository navigation
fix(import): look up folder assignments by name when search hits the 200 cap - #84
Merged
Merged
Conversation
…200 cap search_workflows has no cursor and maxes at 200, so import --mcp missed older workflows. get_workflow_details cannot fill those gaps: n8n refuses it unless availableInMCP is on, and a null parentFolderId from details is not a trustworthy root. Name-filtered search is the tool that still returns parentFolderId (n8n 2.37+). Hits without that field stay unknown so older n8n cannot flatten UI folders to root. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
search_workflowshas no cursor and maxes at 200, soimport --mcpmissed older workflowsparentFolderId(n8n 2.37+);get_workflow_detailsis refused unlessavailableInMCPis onparentFolderIdstay unknown so older n8n cannot flatten UI folders to rootTest plan
bun test tests/importer/folder-source.test.ts tests/api/mcp-client.test.tsimport --mcpagainst n8n 2.37+ attachesparentFolderId/folderfor a workflow outside the newest 200Made with Cursor