@flowdot.ai/mcp-server 1.0.3 → 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 +45 -21
- package/README.md +439 -162
- package/bin/flowdot-mcp.js +15 -15
- package/dist/api-client.d.ts +0 -6
- package/dist/api-client.js +0 -6
- package/dist/index.d.ts +0 -23
- package/dist/index.js +0 -24
- package/dist/resources/index.d.ts +1 -11
- package/dist/resources/index.js +2882 -2127
- package/dist/server.d.ts +0 -12
- package/dist/server.js +23 -21
- package/dist/tools/add-connection.d.ts +2 -8
- package/dist/tools/add-connection.js +0 -6
- package/dist/tools/add-custom-node-comment.d.ts +2 -9
- package/dist/tools/add-custom-node-comment.js +0 -7
- package/dist/tools/add-node.d.ts +2 -8
- package/dist/tools/add-node.js +0 -6
- package/dist/tools/add-recipe-step.d.ts +3 -9
- package/dist/tools/add-recipe-step.js +95 -101
- package/dist/tools/add-recipe-store.d.ts +2 -8
- package/dist/tools/add-recipe-store.js +30 -36
- package/dist/tools/add-shared-result-comment.d.ts +2 -8
- package/dist/tools/add-shared-result-comment.js +0 -7
- package/dist/tools/add-workflow-comment.d.ts +2 -8
- package/dist/tools/add-workflow-comment.js +0 -7
- package/dist/tools/agent-chat.d.ts +2 -8
- package/dist/tools/agent-chat.js +0 -10
- package/dist/tools/agent-toolkits.d.ts +3 -10
- package/dist/tools/agent-toolkits.js +294 -336
- package/dist/tools/append-app-code.d.ts +2 -10
- package/dist/tools/append-app-code.js +27 -35
- package/dist/tools/browse-recipes.d.ts +2 -8
- package/dist/tools/browse-recipes.js +0 -7
- package/dist/tools/cancel-execution.d.ts +2 -8
- package/dist/tools/cancel-execution.js +0 -7
- package/dist/tools/clone-app.d.ts +2 -9
- package/dist/tools/clone-app.js +20 -27
- package/dist/tools/copy-custom-node.d.ts +2 -9
- package/dist/tools/copy-custom-node.js +0 -7
- package/dist/tools/create-app-file.d.ts +2 -9
- package/dist/tools/create-app-file.js +18 -25
- package/dist/tools/create-app.d.ts +2 -9
- package/dist/tools/create-app.js +123 -130
- package/dist/tools/create-custom-node.d.ts +3 -10
- package/dist/tools/create-custom-node.js +66 -75
- package/dist/tools/create-input-preset.d.ts +2 -8
- package/dist/tools/create-input-preset.js +0 -7
- package/dist/tools/create-knowledge-category.d.ts +2 -9
- package/dist/tools/create-knowledge-category.js +0 -7
- package/dist/tools/create-recipe.d.ts +2 -8
- package/dist/tools/create-recipe.js +21 -27
- package/dist/tools/create-shared-result.d.ts +2 -8
- package/dist/tools/create-shared-result.js +0 -6
- package/dist/tools/create-workflow.d.ts +2 -8
- package/dist/tools/create-workflow.js +0 -6
- package/dist/tools/delete-app-file.d.ts +2 -9
- package/dist/tools/delete-app-file.js +9 -16
- package/dist/tools/delete-app.d.ts +2 -9
- package/dist/tools/delete-app.js +3 -10
- package/dist/tools/delete-connection.d.ts +2 -8
- package/dist/tools/delete-connection.js +0 -7
- package/dist/tools/delete-custom-node.d.ts +2 -9
- package/dist/tools/delete-custom-node.js +0 -7
- package/dist/tools/delete-input-preset.d.ts +2 -8
- package/dist/tools/delete-input-preset.js +0 -6
- package/dist/tools/delete-knowledge-category.d.ts +2 -8
- package/dist/tools/delete-knowledge-category.js +0 -6
- package/dist/tools/delete-knowledge-document.d.ts +2 -8
- package/dist/tools/delete-knowledge-document.js +0 -6
- package/dist/tools/delete-node.d.ts +2 -8
- package/dist/tools/delete-node.js +0 -7
- package/dist/tools/delete-recipe-step.d.ts +2 -8
- package/dist/tools/delete-recipe-step.js +2 -8
- package/dist/tools/delete-recipe-store.d.ts +2 -8
- package/dist/tools/delete-recipe-store.js +2 -8
- package/dist/tools/delete-recipe.d.ts +2 -8
- package/dist/tools/delete-recipe.js +0 -6
- package/dist/tools/delete-workflow.d.ts +2 -8
- package/dist/tools/delete-workflow.js +0 -7
- package/dist/tools/duplicate-workflow.d.ts +2 -8
- package/dist/tools/duplicate-workflow.js +0 -6
- package/dist/tools/edit-app-code.d.ts +2 -10
- package/dist/tools/edit-app-code.js +34 -43
- package/dist/tools/execute-workflow.d.ts +2 -8
- package/dist/tools/execute-workflow.js +0 -11
- package/dist/tools/favorite-custom-node.d.ts +2 -9
- package/dist/tools/favorite-custom-node.js +0 -8
- package/dist/tools/favorite-recipe.d.ts +2 -8
- package/dist/tools/favorite-recipe.js +2 -8
- package/dist/tools/favorite-workflow.d.ts +2 -8
- package/dist/tools/favorite-workflow.js +0 -7
- package/dist/tools/fork-recipe.d.ts +2 -8
- package/dist/tools/fork-recipe.js +7 -13
- package/dist/tools/get-app-file.d.ts +2 -9
- package/dist/tools/get-app-file.js +20 -28
- package/dist/tools/get-app-template.d.ts +1 -8
- package/dist/tools/get-app-template.js +827 -834
- package/dist/tools/get-app.d.ts +2 -9
- package/dist/tools/get-app.js +54 -66
- package/dist/tools/get-custom-node-comments.d.ts +2 -9
- package/dist/tools/get-custom-node-comments.js +0 -7
- package/dist/tools/get-custom-node-template.d.ts +1 -8
- package/dist/tools/get-custom-node-template.js +60 -73
- package/dist/tools/get-custom-node.d.ts +2 -9
- package/dist/tools/get-custom-node.js +0 -12
- package/dist/tools/get-execution-history.d.ts +2 -8
- package/dist/tools/get-execution-history.js +0 -7
- package/dist/tools/get-execution.d.ts +2 -8
- package/dist/tools/get-execution.js +0 -7
- package/dist/tools/get-input-preset.d.ts +2 -8
- package/dist/tools/get-input-preset.js +0 -7
- package/dist/tools/get-knowledge-document-content.d.ts +6 -0
- package/dist/tools/get-knowledge-document-content.js +42 -0
- package/dist/tools/get-knowledge-document.d.ts +2 -8
- package/dist/tools/get-knowledge-document.js +0 -6
- package/dist/tools/get-knowledge-storage.d.ts +2 -8
- package/dist/tools/get-knowledge-storage.js +0 -7
- package/dist/tools/get-node-connections.d.ts +2 -8
- package/dist/tools/get-node-connections.js +0 -7
- package/dist/tools/get-node-schema.d.ts +2 -8
- package/dist/tools/get-node-schema.js +0 -13
- package/dist/tools/get-public-workflows.d.ts +2 -8
- package/dist/tools/get-public-workflows.js +0 -7
- package/dist/tools/get-recipe-definition.d.ts +2 -10
- package/dist/tools/get-recipe-definition.js +1 -10
- package/dist/tools/get-recipe.d.ts +2 -8
- package/dist/tools/get-recipe.js +10 -19
- package/dist/tools/get-shared-result-comments.d.ts +2 -8
- package/dist/tools/get-shared-result-comments.js +0 -6
- package/dist/tools/get-shared-result.d.ts +2 -8
- package/dist/tools/get-shared-result.js +0 -8
- package/dist/tools/get-workflow-comments.d.ts +2 -8
- package/dist/tools/get-workflow-comments.js +0 -7
- package/dist/tools/get-workflow-details.d.ts +2 -8
- package/dist/tools/get-workflow-details.js +0 -8
- package/dist/tools/get-workflow-graph.d.ts +2 -8
- package/dist/tools/get-workflow-graph.js +1 -10
- package/dist/tools/get-workflow-inputs-schema.d.ts +2 -8
- package/dist/tools/get-workflow-inputs-schema.js +0 -7
- package/dist/tools/get-workflow-metrics.d.ts +2 -8
- package/dist/tools/get-workflow-metrics.js +1 -9
- package/dist/tools/get-workflow-public-url.d.ts +2 -8
- package/dist/tools/get-workflow-public-url.js +0 -6
- package/dist/tools/get-workflow-tags.d.ts +2 -8
- package/dist/tools/get-workflow-tags.js +0 -7
- package/dist/tools/index.d.ts +2 -11
- package/dist/tools/index.js +12 -139
- package/dist/tools/insert-app-code.d.ts +2 -10
- package/dist/tools/insert-app-code.js +35 -43
- package/dist/tools/link-app-workflow.d.ts +2 -9
- package/dist/tools/link-app-workflow.js +21 -28
- package/dist/tools/link-recipe.d.ts +2 -8
- package/dist/tools/link-recipe.js +18 -24
- package/dist/tools/list-app-files.d.ts +2 -9
- package/dist/tools/list-app-files.js +10 -20
- package/dist/tools/list-apps.d.ts +2 -9
- package/dist/tools/list-apps.js +8 -15
- package/dist/tools/list-available-nodes.d.ts +2 -8
- package/dist/tools/list-available-nodes.js +0 -13
- package/dist/tools/list-custom-nodes.d.ts +2 -9
- package/dist/tools/list-custom-nodes.js +0 -7
- package/dist/tools/list-input-presets.d.ts +2 -8
- package/dist/tools/list-input-presets.js +0 -7
- package/dist/tools/list-knowledge-categories.d.ts +2 -9
- package/dist/tools/list-knowledge-categories.js +0 -11
- package/dist/tools/list-knowledge-documents.d.ts +2 -9
- package/dist/tools/list-knowledge-documents.js +0 -10
- package/dist/tools/list-recipe-steps.d.ts +2 -8
- package/dist/tools/list-recipe-steps.js +1 -8
- package/dist/tools/list-recipe-stores.d.ts +2 -8
- package/dist/tools/list-recipe-stores.js +0 -6
- package/dist/tools/list-recipes.d.ts +2 -8
- package/dist/tools/list-recipes.js +22 -31
- package/dist/tools/list-shared-results.d.ts +2 -8
- package/dist/tools/list-shared-results.js +0 -6
- package/dist/tools/list-user-teams.d.ts +2 -9
- package/dist/tools/list-user-teams.js +0 -7
- package/dist/tools/list-workflows.d.ts +2 -8
- package/dist/tools/list-workflows.js +0 -8
- package/dist/tools/move-document-to-category.d.ts +2 -8
- package/dist/tools/move-document-to-category.js +0 -6
- package/dist/tools/patch-knowledge-document-section.d.ts +8 -0
- package/dist/tools/patch-knowledge-document-section.js +47 -0
- package/dist/tools/prepend-app-code.d.ts +2 -10
- package/dist/tools/prepend-app-code.js +23 -31
- package/dist/tools/publish-app.d.ts +2 -9
- package/dist/tools/publish-app.js +7 -14
- package/dist/tools/query-knowledge-base.d.ts +2 -9
- package/dist/tools/query-knowledge-base.js +1 -15
- package/dist/tools/rename-app-file.d.ts +2 -9
- package/dist/tools/rename-app-file.js +16 -23
- package/dist/tools/reprocess-document.d.ts +2 -8
- package/dist/tools/reprocess-document.js +0 -6
- package/dist/tools/retry-execution.d.ts +2 -8
- package/dist/tools/retry-execution.js +0 -6
- package/dist/tools/search-apps.d.ts +2 -9
- package/dist/tools/search-apps.js +13 -20
- package/dist/tools/search-public-custom-nodes.d.ts +2 -9
- package/dist/tools/search-public-custom-nodes.js +0 -7
- package/dist/tools/search-workflows.d.ts +2 -8
- package/dist/tools/search-workflows.js +0 -8
- package/dist/tools/search.d.ts +2 -8
- package/dist/tools/search.js +1 -7
- package/dist/tools/set-app-entry-file.d.ts +2 -9
- package/dist/tools/set-app-entry-file.js +13 -20
- package/dist/tools/set-workflow-tags.d.ts +2 -8
- package/dist/tools/set-workflow-tags.js +0 -7
- package/dist/tools/stream-execution.d.ts +2 -9
- package/dist/tools/stream-execution.js +0 -8
- package/dist/tools/toggle-community-inputs.d.ts +2 -8
- package/dist/tools/toggle-community-inputs.js +0 -6
- package/dist/tools/toggle-custom-node-visibility.d.ts +2 -9
- package/dist/tools/toggle-custom-node-visibility.js +0 -8
- package/dist/tools/toggle-workflow-public.d.ts +2 -8
- package/dist/tools/toggle-workflow-public.js +0 -7
- package/dist/tools/transfer-document-ownership.d.ts +2 -9
- package/dist/tools/transfer-document-ownership.js +0 -7
- package/dist/tools/unlink-app-workflow.d.ts +2 -9
- package/dist/tools/unlink-app-workflow.js +2 -9
- package/dist/tools/unpublish-app.d.ts +2 -9
- package/dist/tools/unpublish-app.js +2 -9
- package/dist/tools/update-app-file.d.ts +2 -9
- package/dist/tools/update-app-file.js +15 -22
- package/dist/tools/update-app.d.ts +2 -9
- package/dist/tools/update-app.js +14 -21
- package/dist/tools/update-custom-node.d.ts +3 -10
- package/dist/tools/update-custom-node.js +11 -24
- package/dist/tools/update-input-preset.d.ts +2 -8
- package/dist/tools/update-input-preset.js +0 -7
- package/dist/tools/update-knowledge-category.d.ts +2 -8
- package/dist/tools/update-knowledge-category.js +0 -6
- package/dist/tools/update-knowledge-document-content.d.ts +7 -0
- package/dist/tools/update-knowledge-document-content.js +42 -0
- package/dist/tools/update-node.d.ts +2 -8
- package/dist/tools/update-node.js +0 -7
- package/dist/tools/update-recipe-step.d.ts +2 -8
- package/dist/tools/update-recipe-step.js +6 -12
- package/dist/tools/update-recipe-store.d.ts +2 -8
- package/dist/tools/update-recipe-store.js +5 -11
- package/dist/tools/update-recipe.d.ts +2 -8
- package/dist/tools/update-recipe.js +14 -20
- package/dist/tools/upload-document-from-url.d.ts +2 -9
- package/dist/tools/upload-document-from-url.js +0 -7
- package/dist/tools/upload-text-document.d.ts +2 -9
- package/dist/tools/upload-text-document.js +0 -7
- package/dist/tools/validate-workflow.d.ts +2 -8
- package/dist/tools/validate-workflow.js +0 -8
- package/dist/tools/vote-custom-node.d.ts +2 -9
- package/dist/tools/vote-custom-node.js +0 -7
- package/dist/tools/vote-input-preset.d.ts +2 -8
- package/dist/tools/vote-input-preset.js +0 -6
- package/dist/tools/vote-recipe.d.ts +2 -8
- package/dist/tools/vote-recipe.js +2 -8
- package/dist/tools/vote-shared-result.d.ts +2 -8
- package/dist/tools/vote-shared-result.js +0 -6
- package/dist/tools/vote-workflow.d.ts +2 -8
- package/dist/tools/vote-workflow.js +0 -6
- package/dist/types.d.ts +0 -6
- package/dist/types.js +0 -6
- package/dist/utils/script-validator.d.ts +1 -18
- package/dist/utils/script-validator.js +5 -44
- package/package.json +81 -62
- package/dist/api-client.d.ts.map +0 -1
- package/dist/api-client.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/resources/index.d.ts.map +0 -1
- package/dist/resources/index.js.map +0 -1
- package/dist/server.d.ts.map +0 -1
- package/dist/server.js.map +0 -1
- package/dist/tools/add-connection.d.ts.map +0 -1
- package/dist/tools/add-connection.js.map +0 -1
- package/dist/tools/add-custom-node-comment.d.ts.map +0 -1
- package/dist/tools/add-custom-node-comment.js.map +0 -1
- package/dist/tools/add-node.d.ts.map +0 -1
- package/dist/tools/add-node.js.map +0 -1
- package/dist/tools/add-recipe-step.d.ts.map +0 -1
- package/dist/tools/add-recipe-step.js.map +0 -1
- package/dist/tools/add-recipe-store.d.ts.map +0 -1
- package/dist/tools/add-recipe-store.js.map +0 -1
- package/dist/tools/add-shared-result-comment.d.ts.map +0 -1
- package/dist/tools/add-shared-result-comment.js.map +0 -1
- package/dist/tools/add-workflow-comment.d.ts.map +0 -1
- package/dist/tools/add-workflow-comment.js.map +0 -1
- package/dist/tools/agent-chat.d.ts.map +0 -1
- package/dist/tools/agent-chat.js.map +0 -1
- package/dist/tools/agent-toolkits.d.ts.map +0 -1
- package/dist/tools/agent-toolkits.js.map +0 -1
- package/dist/tools/append-app-code.d.ts.map +0 -1
- package/dist/tools/append-app-code.js.map +0 -1
- package/dist/tools/browse-recipes.d.ts.map +0 -1
- package/dist/tools/browse-recipes.js.map +0 -1
- package/dist/tools/cancel-execution.d.ts.map +0 -1
- package/dist/tools/cancel-execution.js.map +0 -1
- package/dist/tools/clone-app.d.ts.map +0 -1
- package/dist/tools/clone-app.js.map +0 -1
- package/dist/tools/copy-custom-node.d.ts.map +0 -1
- package/dist/tools/copy-custom-node.js.map +0 -1
- package/dist/tools/create-app-file.d.ts.map +0 -1
- package/dist/tools/create-app-file.js.map +0 -1
- package/dist/tools/create-app.d.ts.map +0 -1
- package/dist/tools/create-app.js.map +0 -1
- package/dist/tools/create-custom-node.d.ts.map +0 -1
- package/dist/tools/create-custom-node.js.map +0 -1
- package/dist/tools/create-input-preset.d.ts.map +0 -1
- package/dist/tools/create-input-preset.js.map +0 -1
- package/dist/tools/create-knowledge-category.d.ts.map +0 -1
- package/dist/tools/create-knowledge-category.js.map +0 -1
- package/dist/tools/create-recipe.d.ts.map +0 -1
- package/dist/tools/create-recipe.js.map +0 -1
- package/dist/tools/create-shared-result.d.ts.map +0 -1
- package/dist/tools/create-shared-result.js.map +0 -1
- package/dist/tools/create-workflow.d.ts.map +0 -1
- package/dist/tools/create-workflow.js.map +0 -1
- package/dist/tools/delete-app-file.d.ts.map +0 -1
- package/dist/tools/delete-app-file.js.map +0 -1
- package/dist/tools/delete-app.d.ts.map +0 -1
- package/dist/tools/delete-app.js.map +0 -1
- package/dist/tools/delete-connection.d.ts.map +0 -1
- package/dist/tools/delete-connection.js.map +0 -1
- package/dist/tools/delete-custom-node.d.ts.map +0 -1
- package/dist/tools/delete-custom-node.js.map +0 -1
- package/dist/tools/delete-input-preset.d.ts.map +0 -1
- package/dist/tools/delete-input-preset.js.map +0 -1
- package/dist/tools/delete-knowledge-category.d.ts.map +0 -1
- package/dist/tools/delete-knowledge-category.js.map +0 -1
- package/dist/tools/delete-knowledge-document.d.ts.map +0 -1
- package/dist/tools/delete-knowledge-document.js.map +0 -1
- package/dist/tools/delete-node.d.ts.map +0 -1
- package/dist/tools/delete-node.js.map +0 -1
- package/dist/tools/delete-recipe-step.d.ts.map +0 -1
- package/dist/tools/delete-recipe-step.js.map +0 -1
- package/dist/tools/delete-recipe-store.d.ts.map +0 -1
- package/dist/tools/delete-recipe-store.js.map +0 -1
- package/dist/tools/delete-recipe.d.ts.map +0 -1
- package/dist/tools/delete-recipe.js.map +0 -1
- package/dist/tools/delete-workflow.d.ts.map +0 -1
- package/dist/tools/delete-workflow.js.map +0 -1
- package/dist/tools/duplicate-workflow.d.ts.map +0 -1
- package/dist/tools/duplicate-workflow.js.map +0 -1
- package/dist/tools/edit-app-code.d.ts.map +0 -1
- package/dist/tools/edit-app-code.js.map +0 -1
- package/dist/tools/execute-workflow.d.ts.map +0 -1
- package/dist/tools/execute-workflow.js.map +0 -1
- package/dist/tools/favorite-custom-node.d.ts.map +0 -1
- package/dist/tools/favorite-custom-node.js.map +0 -1
- package/dist/tools/favorite-recipe.d.ts.map +0 -1
- package/dist/tools/favorite-recipe.js.map +0 -1
- package/dist/tools/favorite-workflow.d.ts.map +0 -1
- package/dist/tools/favorite-workflow.js.map +0 -1
- package/dist/tools/fork-recipe.d.ts.map +0 -1
- package/dist/tools/fork-recipe.js.map +0 -1
- package/dist/tools/get-app-file.d.ts.map +0 -1
- package/dist/tools/get-app-file.js.map +0 -1
- package/dist/tools/get-app-template.d.ts.map +0 -1
- package/dist/tools/get-app-template.js.map +0 -1
- package/dist/tools/get-app.d.ts.map +0 -1
- package/dist/tools/get-app.js.map +0 -1
- package/dist/tools/get-custom-node-comments.d.ts.map +0 -1
- package/dist/tools/get-custom-node-comments.js.map +0 -1
- package/dist/tools/get-custom-node-template.d.ts.map +0 -1
- package/dist/tools/get-custom-node-template.js.map +0 -1
- package/dist/tools/get-custom-node.d.ts.map +0 -1
- package/dist/tools/get-custom-node.js.map +0 -1
- package/dist/tools/get-execution-history.d.ts.map +0 -1
- package/dist/tools/get-execution-history.js.map +0 -1
- package/dist/tools/get-execution.d.ts.map +0 -1
- package/dist/tools/get-execution.js.map +0 -1
- package/dist/tools/get-input-preset.d.ts.map +0 -1
- package/dist/tools/get-input-preset.js.map +0 -1
- package/dist/tools/get-knowledge-document.d.ts.map +0 -1
- package/dist/tools/get-knowledge-document.js.map +0 -1
- package/dist/tools/get-knowledge-storage.d.ts.map +0 -1
- package/dist/tools/get-knowledge-storage.js.map +0 -1
- package/dist/tools/get-node-connections.d.ts.map +0 -1
- package/dist/tools/get-node-connections.js.map +0 -1
- package/dist/tools/get-node-schema.d.ts.map +0 -1
- package/dist/tools/get-node-schema.js.map +0 -1
- package/dist/tools/get-public-workflows.d.ts.map +0 -1
- package/dist/tools/get-public-workflows.js.map +0 -1
- package/dist/tools/get-recipe-definition.d.ts.map +0 -1
- package/dist/tools/get-recipe-definition.js.map +0 -1
- package/dist/tools/get-recipe.d.ts.map +0 -1
- package/dist/tools/get-recipe.js.map +0 -1
- package/dist/tools/get-shared-result-comments.d.ts.map +0 -1
- package/dist/tools/get-shared-result-comments.js.map +0 -1
- package/dist/tools/get-shared-result.d.ts.map +0 -1
- package/dist/tools/get-shared-result.js.map +0 -1
- package/dist/tools/get-workflow-comments.d.ts.map +0 -1
- package/dist/tools/get-workflow-comments.js.map +0 -1
- package/dist/tools/get-workflow-details.d.ts.map +0 -1
- package/dist/tools/get-workflow-details.js.map +0 -1
- package/dist/tools/get-workflow-graph.d.ts.map +0 -1
- package/dist/tools/get-workflow-graph.js.map +0 -1
- package/dist/tools/get-workflow-inputs-schema.d.ts.map +0 -1
- package/dist/tools/get-workflow-inputs-schema.js.map +0 -1
- package/dist/tools/get-workflow-metrics.d.ts.map +0 -1
- package/dist/tools/get-workflow-metrics.js.map +0 -1
- package/dist/tools/get-workflow-public-url.d.ts.map +0 -1
- package/dist/tools/get-workflow-public-url.js.map +0 -1
- package/dist/tools/get-workflow-tags.d.ts.map +0 -1
- package/dist/tools/get-workflow-tags.js.map +0 -1
- package/dist/tools/index.d.ts.map +0 -1
- package/dist/tools/index.js.map +0 -1
- package/dist/tools/insert-app-code.d.ts.map +0 -1
- package/dist/tools/insert-app-code.js.map +0 -1
- package/dist/tools/link-app-workflow.d.ts.map +0 -1
- package/dist/tools/link-app-workflow.js.map +0 -1
- package/dist/tools/link-recipe.d.ts.map +0 -1
- package/dist/tools/link-recipe.js.map +0 -1
- package/dist/tools/list-app-files.d.ts.map +0 -1
- package/dist/tools/list-app-files.js.map +0 -1
- package/dist/tools/list-apps.d.ts.map +0 -1
- package/dist/tools/list-apps.js.map +0 -1
- package/dist/tools/list-available-nodes.d.ts.map +0 -1
- package/dist/tools/list-available-nodes.js.map +0 -1
- package/dist/tools/list-custom-nodes.d.ts.map +0 -1
- package/dist/tools/list-custom-nodes.js.map +0 -1
- package/dist/tools/list-input-presets.d.ts.map +0 -1
- package/dist/tools/list-input-presets.js.map +0 -1
- package/dist/tools/list-knowledge-categories.d.ts.map +0 -1
- package/dist/tools/list-knowledge-categories.js.map +0 -1
- package/dist/tools/list-knowledge-documents.d.ts.map +0 -1
- package/dist/tools/list-knowledge-documents.js.map +0 -1
- package/dist/tools/list-recipe-steps.d.ts.map +0 -1
- package/dist/tools/list-recipe-steps.js.map +0 -1
- package/dist/tools/list-recipe-stores.d.ts.map +0 -1
- package/dist/tools/list-recipe-stores.js.map +0 -1
- package/dist/tools/list-recipes.d.ts.map +0 -1
- package/dist/tools/list-recipes.js.map +0 -1
- package/dist/tools/list-shared-results.d.ts.map +0 -1
- package/dist/tools/list-shared-results.js.map +0 -1
- package/dist/tools/list-user-teams.d.ts.map +0 -1
- package/dist/tools/list-user-teams.js.map +0 -1
- package/dist/tools/list-workflows.d.ts.map +0 -1
- package/dist/tools/list-workflows.js.map +0 -1
- package/dist/tools/move-document-to-category.d.ts.map +0 -1
- package/dist/tools/move-document-to-category.js.map +0 -1
- package/dist/tools/prepend-app-code.d.ts.map +0 -1
- package/dist/tools/prepend-app-code.js.map +0 -1
- package/dist/tools/publish-app.d.ts.map +0 -1
- package/dist/tools/publish-app.js.map +0 -1
- package/dist/tools/query-knowledge-base.d.ts.map +0 -1
- package/dist/tools/query-knowledge-base.js.map +0 -1
- package/dist/tools/rename-app-file.d.ts.map +0 -1
- package/dist/tools/rename-app-file.js.map +0 -1
- package/dist/tools/reprocess-document.d.ts.map +0 -1
- package/dist/tools/reprocess-document.js.map +0 -1
- package/dist/tools/retry-execution.d.ts.map +0 -1
- package/dist/tools/retry-execution.js.map +0 -1
- package/dist/tools/search-apps.d.ts.map +0 -1
- package/dist/tools/search-apps.js.map +0 -1
- package/dist/tools/search-public-custom-nodes.d.ts.map +0 -1
- package/dist/tools/search-public-custom-nodes.js.map +0 -1
- package/dist/tools/search-workflows.d.ts.map +0 -1
- package/dist/tools/search-workflows.js.map +0 -1
- package/dist/tools/search.d.ts.map +0 -1
- package/dist/tools/search.js.map +0 -1
- package/dist/tools/set-app-entry-file.d.ts.map +0 -1
- package/dist/tools/set-app-entry-file.js.map +0 -1
- package/dist/tools/set-workflow-tags.d.ts.map +0 -1
- package/dist/tools/set-workflow-tags.js.map +0 -1
- package/dist/tools/stream-execution.d.ts.map +0 -1
- package/dist/tools/stream-execution.js.map +0 -1
- package/dist/tools/toggle-community-inputs.d.ts.map +0 -1
- package/dist/tools/toggle-community-inputs.js.map +0 -1
- package/dist/tools/toggle-custom-node-visibility.d.ts.map +0 -1
- package/dist/tools/toggle-custom-node-visibility.js.map +0 -1
- package/dist/tools/toggle-workflow-public.d.ts.map +0 -1
- package/dist/tools/toggle-workflow-public.js.map +0 -1
- package/dist/tools/transfer-document-ownership.d.ts.map +0 -1
- package/dist/tools/transfer-document-ownership.js.map +0 -1
- package/dist/tools/unlink-app-workflow.d.ts.map +0 -1
- package/dist/tools/unlink-app-workflow.js.map +0 -1
- package/dist/tools/unpublish-app.d.ts.map +0 -1
- package/dist/tools/unpublish-app.js.map +0 -1
- package/dist/tools/update-app-file.d.ts.map +0 -1
- package/dist/tools/update-app-file.js.map +0 -1
- package/dist/tools/update-app.d.ts.map +0 -1
- package/dist/tools/update-app.js.map +0 -1
- package/dist/tools/update-custom-node.d.ts.map +0 -1
- package/dist/tools/update-custom-node.js.map +0 -1
- package/dist/tools/update-input-preset.d.ts.map +0 -1
- package/dist/tools/update-input-preset.js.map +0 -1
- package/dist/tools/update-knowledge-category.d.ts.map +0 -1
- package/dist/tools/update-knowledge-category.js.map +0 -1
- package/dist/tools/update-node.d.ts.map +0 -1
- package/dist/tools/update-node.js.map +0 -1
- package/dist/tools/update-recipe-step.d.ts.map +0 -1
- package/dist/tools/update-recipe-step.js.map +0 -1
- package/dist/tools/update-recipe-store.d.ts.map +0 -1
- package/dist/tools/update-recipe-store.js.map +0 -1
- package/dist/tools/update-recipe.d.ts.map +0 -1
- package/dist/tools/update-recipe.js.map +0 -1
- package/dist/tools/upload-document-from-url.d.ts.map +0 -1
- package/dist/tools/upload-document-from-url.js.map +0 -1
- package/dist/tools/upload-text-document.d.ts.map +0 -1
- package/dist/tools/upload-text-document.js.map +0 -1
- package/dist/tools/validate-workflow.d.ts.map +0 -1
- package/dist/tools/validate-workflow.js.map +0 -1
- package/dist/tools/vote-custom-node.d.ts.map +0 -1
- package/dist/tools/vote-custom-node.js.map +0 -1
- package/dist/tools/vote-input-preset.d.ts.map +0 -1
- package/dist/tools/vote-input-preset.js.map +0 -1
- package/dist/tools/vote-recipe.d.ts.map +0 -1
- package/dist/tools/vote-recipe.js.map +0 -1
- package/dist/tools/vote-shared-result.d.ts.map +0 -1
- package/dist/tools/vote-shared-result.js.map +0 -1
- package/dist/tools/vote-workflow.d.ts.map +0 -1
- package/dist/tools/vote-workflow.js.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist/utils/script-validator.d.ts.map +0 -1
- package/dist/utils/script-validator.js.map +0 -1
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Deletes a node from a workflow.
|
|
5
|
-
*/
|
|
6
|
-
import { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
7
|
-
import { FlowDotApiClient } from '../api-client.js';
|
|
1
|
+
import type { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { FlowDotApiClient } from '../api-client.js';
|
|
8
3
|
export declare const deleteNodeTool: Tool;
|
|
9
4
|
export declare function handleDeleteNode(api: FlowDotApiClient, args: {
|
|
10
5
|
workflow_id: string;
|
|
11
6
|
node_id: string;
|
|
12
7
|
}): Promise<CallToolResult>;
|
|
13
|
-
//# sourceMappingURL=delete-node.d.ts.map
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* delete_node MCP Tool
|
|
3
|
-
*
|
|
4
|
-
* Deletes a node from a workflow.
|
|
5
|
-
*/
|
|
6
1
|
export const deleteNodeTool = {
|
|
7
2
|
name: 'delete_node',
|
|
8
3
|
description: 'Delete a node from a workflow. This also removes all connections to/from the node.',
|
|
@@ -23,7 +18,6 @@ export const deleteNodeTool = {
|
|
|
23
18
|
};
|
|
24
19
|
export async function handleDeleteNode(api, args) {
|
|
25
20
|
try {
|
|
26
|
-
// API may return undefined (no data wrapper) or { message: "..." }
|
|
27
21
|
const result = await api.deleteNode(args.workflow_id, args.node_id);
|
|
28
22
|
const message = result?.message || `Node ${args.node_id} has been deleted.`;
|
|
29
23
|
return {
|
|
@@ -38,4 +32,3 @@ export async function handleDeleteNode(api, args) {
|
|
|
38
32
|
};
|
|
39
33
|
}
|
|
40
34
|
}
|
|
41
|
-
//# sourceMappingURL=delete-node.js.map
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Deletes a step from a recipe.
|
|
5
|
-
*/
|
|
6
|
-
import { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
7
|
-
import { FlowDotApiClient } from '../api-client.js';
|
|
1
|
+
import type { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { FlowDotApiClient } from '../api-client.js';
|
|
8
3
|
export declare const deleteRecipeStepTool: Tool;
|
|
9
4
|
export declare function handleDeleteRecipeStep(api: FlowDotApiClient, args: {
|
|
10
5
|
hash: string;
|
|
11
6
|
step_id: string;
|
|
12
7
|
confirm: boolean;
|
|
13
8
|
}): Promise<CallToolResult>;
|
|
14
|
-
//# sourceMappingURL=delete-recipe-step.d.ts.map
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* delete_recipe_step MCP Tool
|
|
3
|
-
*
|
|
4
|
-
* Deletes a step from a recipe.
|
|
5
|
-
*/
|
|
6
1
|
export const deleteRecipeStepTool = {
|
|
7
2
|
name: 'delete_recipe_step',
|
|
8
3
|
description: 'Delete a step from a recipe. References to this step will need to be updated.',
|
|
@@ -42,8 +37,8 @@ export async function handleDeleteRecipeStep(api, args) {
|
|
|
42
37
|
content: [
|
|
43
38
|
{
|
|
44
39
|
type: 'text',
|
|
45
|
-
text: `Step ${args.step_id} has been deleted from the recipe.
|
|
46
|
-
|
|
40
|
+
text: `Step ${args.step_id} has been deleted from the recipe.
|
|
41
|
+
|
|
47
42
|
Note: Update any steps that referenced this step in their 'next' or 'on_error' fields.`,
|
|
48
43
|
},
|
|
49
44
|
],
|
|
@@ -62,4 +57,3 @@ Note: Update any steps that referenced this step in their 'next' or 'on_error' f
|
|
|
62
57
|
};
|
|
63
58
|
}
|
|
64
59
|
}
|
|
65
|
-
//# sourceMappingURL=delete-recipe-step.js.map
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Deletes a store from a recipe.
|
|
5
|
-
*/
|
|
6
|
-
import { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
7
|
-
import { FlowDotApiClient } from '../api-client.js';
|
|
1
|
+
import type { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { FlowDotApiClient } from '../api-client.js';
|
|
8
3
|
export declare const deleteRecipeStoreTool: Tool;
|
|
9
4
|
export declare function handleDeleteRecipeStore(api: FlowDotApiClient, args: {
|
|
10
5
|
hash: string;
|
|
11
6
|
store_id: string;
|
|
12
7
|
confirm: boolean;
|
|
13
8
|
}): Promise<CallToolResult>;
|
|
14
|
-
//# sourceMappingURL=delete-recipe-store.d.ts.map
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* delete_recipe_store MCP Tool
|
|
3
|
-
*
|
|
4
|
-
* Deletes a store from a recipe.
|
|
5
|
-
*/
|
|
6
1
|
export const deleteRecipeStoreTool = {
|
|
7
2
|
name: 'delete_recipe_store',
|
|
8
3
|
description: 'Delete a store from a recipe. Steps using this store will need to be updated.',
|
|
@@ -42,8 +37,8 @@ export async function handleDeleteRecipeStore(api, args) {
|
|
|
42
37
|
content: [
|
|
43
38
|
{
|
|
44
39
|
type: 'text',
|
|
45
|
-
text: `Store ${args.store_id} has been deleted from the recipe.
|
|
46
|
-
|
|
40
|
+
text: `Store ${args.store_id} has been deleted from the recipe.
|
|
41
|
+
|
|
47
42
|
Note: Update any steps that referenced this store in their configurations.`,
|
|
48
43
|
},
|
|
49
44
|
],
|
|
@@ -62,4 +57,3 @@ Note: Update any steps that referenced this store in their configurations.`,
|
|
|
62
57
|
};
|
|
63
58
|
}
|
|
64
59
|
}
|
|
65
|
-
//# sourceMappingURL=delete-recipe-store.js.map
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Permanently deletes an agent recipe.
|
|
5
|
-
*/
|
|
6
|
-
import { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
7
|
-
import { FlowDotApiClient } from '../api-client.js';
|
|
1
|
+
import type { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { FlowDotApiClient } from '../api-client.js';
|
|
8
3
|
export declare const deleteRecipeTool: Tool;
|
|
9
4
|
export declare function handleDeleteRecipe(api: FlowDotApiClient, args: {
|
|
10
5
|
hash: string;
|
|
11
6
|
confirm: boolean;
|
|
12
7
|
}): Promise<CallToolResult>;
|
|
13
|
-
//# sourceMappingURL=delete-recipe.d.ts.map
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* delete_recipe MCP Tool
|
|
3
|
-
*
|
|
4
|
-
* Permanently deletes an agent recipe.
|
|
5
|
-
*/
|
|
6
1
|
export const deleteRecipeTool = {
|
|
7
2
|
name: 'delete_recipe',
|
|
8
3
|
description: 'Permanently delete an agent recipe. This action cannot be undone.',
|
|
@@ -56,4 +51,3 @@ export async function handleDeleteRecipe(api, args) {
|
|
|
56
51
|
};
|
|
57
52
|
}
|
|
58
53
|
}
|
|
59
|
-
//# sourceMappingURL=delete-recipe.js.map
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Deletes a workflow permanently.
|
|
5
|
-
*/
|
|
6
|
-
import { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
7
|
-
import { FlowDotApiClient } from '../api-client.js';
|
|
1
|
+
import type { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { FlowDotApiClient } from '../api-client.js';
|
|
8
3
|
export declare const deleteWorkflowTool: Tool;
|
|
9
4
|
export declare function handleDeleteWorkflow(api: FlowDotApiClient, args: {
|
|
10
5
|
workflow_id: string;
|
|
11
6
|
}): Promise<CallToolResult>;
|
|
12
|
-
//# sourceMappingURL=delete-workflow.d.ts.map
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* delete_workflow MCP Tool
|
|
3
|
-
*
|
|
4
|
-
* Deletes a workflow permanently.
|
|
5
|
-
*/
|
|
6
1
|
export const deleteWorkflowTool = {
|
|
7
2
|
name: 'delete_workflow',
|
|
8
3
|
description: 'Permanently delete a workflow. This action cannot be undone. Only the workflow owner can delete it.',
|
|
@@ -19,7 +14,6 @@ export const deleteWorkflowTool = {
|
|
|
19
14
|
};
|
|
20
15
|
export async function handleDeleteWorkflow(api, args) {
|
|
21
16
|
try {
|
|
22
|
-
// API may return undefined (no data wrapper) or { message: "..." }
|
|
23
17
|
const result = await api.deleteWorkflow(args.workflow_id);
|
|
24
18
|
const message = result?.message || `Workflow ${args.workflow_id} has been permanently deleted.`;
|
|
25
19
|
return {
|
|
@@ -34,4 +28,3 @@ export async function handleDeleteWorkflow(api, args) {
|
|
|
34
28
|
};
|
|
35
29
|
}
|
|
36
30
|
}
|
|
37
|
-
//# sourceMappingURL=delete-workflow.js.map
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Duplicates/clones an existing workflow.
|
|
5
|
-
*/
|
|
6
|
-
import { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
7
|
-
import { FlowDotApiClient } from '../api-client.js';
|
|
1
|
+
import type { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { FlowDotApiClient } from '../api-client.js';
|
|
8
3
|
export declare const duplicateWorkflowTool: Tool;
|
|
9
4
|
export declare function handleDuplicateWorkflow(api: FlowDotApiClient, args: {
|
|
10
5
|
workflow_id: string;
|
|
11
6
|
name?: string;
|
|
12
7
|
}): Promise<CallToolResult>;
|
|
13
|
-
//# sourceMappingURL=duplicate-workflow.d.ts.map
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* duplicate_workflow MCP Tool
|
|
3
|
-
*
|
|
4
|
-
* Duplicates/clones an existing workflow.
|
|
5
|
-
*/
|
|
6
1
|
export const duplicateWorkflowTool = {
|
|
7
2
|
name: 'duplicate_workflow',
|
|
8
3
|
description: 'Create a copy of an existing workflow. The new workflow will be private and editable.',
|
|
@@ -46,4 +41,3 @@ export async function handleDuplicateWorkflow(api, args) {
|
|
|
46
41
|
};
|
|
47
42
|
}
|
|
48
43
|
}
|
|
49
|
-
//# sourceMappingURL=duplicate-workflow.js.map
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Performs exact string replacement in app code.
|
|
5
|
-
* Similar to find-and-replace - replaces old_string with new_string.
|
|
6
|
-
* Required scope: apps:manage
|
|
7
|
-
*/
|
|
8
|
-
import { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
9
|
-
import { FlowDotApiClient } from '../api-client.js';
|
|
1
|
+
import type { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { FlowDotApiClient } from '../api-client.js';
|
|
10
3
|
export declare const editAppCodeTool: Tool;
|
|
11
4
|
export declare function handleEditAppCode(client: FlowDotApiClient, args: Record<string, unknown>): Promise<CallToolResult>;
|
|
12
|
-
//# sourceMappingURL=edit-app-code.d.ts.map
|
|
@@ -1,40 +1,33 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* edit_app_code Tool
|
|
3
|
-
*
|
|
4
|
-
* Performs exact string replacement in app code.
|
|
5
|
-
* Similar to find-and-replace - replaces old_string with new_string.
|
|
6
|
-
* Required scope: apps:manage
|
|
7
|
-
*/
|
|
8
1
|
export const editAppCodeTool = {
|
|
9
2
|
name: 'edit_app_code',
|
|
10
|
-
description: `Performs exact string replacement in app code. Similar to find-and-replace.
|
|
11
|
-
|
|
12
|
-
CRITICAL: Remember these rules when editing code:
|
|
13
|
-
- NO IMPORTS - React is global
|
|
14
|
-
- MUST include export default at the end: export default MyAppName;
|
|
15
|
-
- NO FORM ELEMENTS - Use div + button with type="button" instead
|
|
16
|
-
- Workflow results: Use getNodeOutput(result, nodeTitle) helper
|
|
17
|
-
- ALL BUTTONS need type="button" attribute
|
|
18
|
-
|
|
19
|
-
Use this tool when you need to:
|
|
20
|
-
- Modify specific sections of existing app code
|
|
21
|
-
- Replace a function, component, or code block
|
|
22
|
-
- Fix bugs or update logic in the code
|
|
23
|
-
|
|
24
|
-
IMPORTANT RULES:
|
|
25
|
-
- old_string must exist EXACTLY in the code (including whitespace/indentation)
|
|
26
|
-
- If old_string appears multiple times, the operation fails unless replace_all=true
|
|
27
|
-
- Provide enough context in old_string to make it unique
|
|
28
|
-
|
|
29
|
-
WORKFLOW FOR BUILDING LARGE APPS:
|
|
30
|
-
1. Create app with minimal code: create_app(name: "MyApp")
|
|
31
|
-
2. Set initial skeleton: update_app(code: "function MyApp() { ... } export default MyApp;")
|
|
32
|
-
3. Use edit_app_code to incrementally replace/expand sections
|
|
33
|
-
4. Use append_app_code to add helper functions before the export
|
|
34
|
-
|
|
35
|
-
Example:
|
|
36
|
-
- old_string: "return <div>Loading...</div>;"
|
|
37
|
-
- new_string: "return <div className
|
|
3
|
+
description: `Performs exact string replacement in app code. Similar to find-and-replace.
|
|
4
|
+
|
|
5
|
+
CRITICAL: Remember these rules when editing code:
|
|
6
|
+
- NO IMPORTS - React is global
|
|
7
|
+
- MUST include export default at the end: export default MyAppName;
|
|
8
|
+
- NO FORM ELEMENTS - Use div + button with type="button" instead
|
|
9
|
+
- Workflow results: Use getNodeOutput(result, nodeTitle) helper
|
|
10
|
+
- ALL BUTTONS need type="button" attribute
|
|
11
|
+
|
|
12
|
+
Use this tool when you need to:
|
|
13
|
+
- Modify specific sections of existing app code
|
|
14
|
+
- Replace a function, component, or code block
|
|
15
|
+
- Fix bugs or update logic in the code
|
|
16
|
+
|
|
17
|
+
IMPORTANT RULES:
|
|
18
|
+
- old_string must exist EXACTLY in the code (including whitespace/indentation)
|
|
19
|
+
- If old_string appears multiple times, the operation fails unless replace_all=true
|
|
20
|
+
- Provide enough context in old_string to make it unique
|
|
21
|
+
|
|
22
|
+
WORKFLOW FOR BUILDING LARGE APPS:
|
|
23
|
+
1. Create app with minimal code: create_app(name: "MyApp")
|
|
24
|
+
2. Set initial skeleton: update_app(code: "function MyApp() { ... } export default MyApp;")
|
|
25
|
+
3. Use edit_app_code to incrementally replace/expand sections
|
|
26
|
+
4. Use append_app_code to add helper functions before the export
|
|
27
|
+
|
|
28
|
+
Example:
|
|
29
|
+
- old_string: "return <div>Loading...</div>;"
|
|
30
|
+
- new_string: "return <div className='p-4'><h1>Hello World</h1></div>;"`,
|
|
38
31
|
inputSchema: {
|
|
39
32
|
type: 'object',
|
|
40
33
|
properties: {
|
|
@@ -81,19 +74,18 @@ export async function handleEditAppCode(client, args) {
|
|
|
81
74
|
return {
|
|
82
75
|
content: [{
|
|
83
76
|
type: 'text',
|
|
84
|
-
text: `App code edited successfully!
|
|
85
|
-
|
|
86
|
-
App ID: ${result.id}
|
|
87
|
-
Field: ${result.field}
|
|
88
|
-
Previous size: ${result.previous_length} bytes
|
|
89
|
-
New size: ${result.new_length} bytes (${sizeChange} bytes)
|
|
77
|
+
text: `App code edited successfully!
|
|
78
|
+
|
|
79
|
+
App ID: ${result.id}
|
|
80
|
+
Field: ${result.field}
|
|
81
|
+
Previous size: ${result.previous_length} bytes
|
|
82
|
+
New size: ${result.new_length} bytes (${sizeChange} bytes)
|
|
90
83
|
Updated at: ${result.updated_at}`,
|
|
91
84
|
}],
|
|
92
85
|
};
|
|
93
86
|
}
|
|
94
87
|
catch (error) {
|
|
95
88
|
const message = error instanceof Error ? error.message : 'Unknown error';
|
|
96
|
-
// Try to extract debug info from error message if it's a JSON parse failure issue
|
|
97
89
|
let debugInfo = '';
|
|
98
90
|
if (message.includes('not found')) {
|
|
99
91
|
debugInfo = '\n\nTroubleshooting tips:\n' +
|
|
@@ -107,4 +99,3 @@ Updated at: ${result.updated_at}`,
|
|
|
107
99
|
};
|
|
108
100
|
}
|
|
109
101
|
}
|
|
110
|
-
//# sourceMappingURL=edit-app-code.js.map
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Executes a FlowDot workflow.
|
|
5
|
-
*/
|
|
6
|
-
import { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
7
|
-
import { FlowDotApiClient } from '../api-client.js';
|
|
1
|
+
import type { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { FlowDotApiClient } from '../api-client.js';
|
|
8
3
|
export declare const executeWorkflowTool: Tool;
|
|
9
4
|
export declare function handleExecuteWorkflow(api: FlowDotApiClient, args: {
|
|
10
5
|
workflow_id: string;
|
|
@@ -12,4 +7,3 @@ export declare function handleExecuteWorkflow(api: FlowDotApiClient, args: {
|
|
|
12
7
|
wait_for_completion?: boolean;
|
|
13
8
|
mode?: string;
|
|
14
9
|
}): Promise<CallToolResult>;
|
|
15
|
-
//# sourceMappingURL=execute-workflow.d.ts.map
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* execute_workflow MCP Tool
|
|
3
|
-
*
|
|
4
|
-
* Executes a FlowDot workflow.
|
|
5
|
-
*/
|
|
6
1
|
export const executeWorkflowTool = {
|
|
7
2
|
name: 'execute_workflow',
|
|
8
3
|
description: 'Execute a FlowDot workflow by ID. Use list_workflows first to get available workflow IDs.',
|
|
@@ -36,7 +31,6 @@ export const executeWorkflowTool = {
|
|
|
36
31
|
export async function handleExecuteWorkflow(api, args) {
|
|
37
32
|
try {
|
|
38
33
|
const result = await api.executeWorkflow(args.workflow_id, args.inputs || {}, args.wait_for_completion ?? true, args.mode || 'flowdot');
|
|
39
|
-
// Handle async execution (not waiting for completion)
|
|
40
34
|
if (result.status === 'started' && result.message) {
|
|
41
35
|
return {
|
|
42
36
|
content: [
|
|
@@ -47,7 +41,6 @@ export async function handleExecuteWorkflow(api, args) {
|
|
|
47
41
|
],
|
|
48
42
|
};
|
|
49
43
|
}
|
|
50
|
-
// Handle completed execution with enhanced output formatting
|
|
51
44
|
const lines = [
|
|
52
45
|
'Workflow executed successfully.',
|
|
53
46
|
'',
|
|
@@ -60,7 +53,6 @@ export async function handleExecuteWorkflow(api, args) {
|
|
|
60
53
|
lines.push('```json');
|
|
61
54
|
lines.push(JSON.stringify(result.outputs, null, 2));
|
|
62
55
|
lines.push('```');
|
|
63
|
-
// Add individual output values for easy reading
|
|
64
56
|
lines.push('');
|
|
65
57
|
lines.push('## Output Values');
|
|
66
58
|
for (const [key, val] of Object.entries(result.outputs)) {
|
|
@@ -74,7 +66,6 @@ export async function handleExecuteWorkflow(api, args) {
|
|
|
74
66
|
else {
|
|
75
67
|
displayVal = String(val);
|
|
76
68
|
}
|
|
77
|
-
// Truncate very long values for readability
|
|
78
69
|
if (displayVal.length > 500) {
|
|
79
70
|
displayVal = displayVal.substring(0, 500) + '... (truncated)';
|
|
80
71
|
}
|
|
@@ -82,7 +73,6 @@ export async function handleExecuteWorkflow(api, args) {
|
|
|
82
73
|
}
|
|
83
74
|
}
|
|
84
75
|
else if (result.outputs) {
|
|
85
|
-
// Handle non-object outputs (string, number, etc.)
|
|
86
76
|
lines.push('');
|
|
87
77
|
lines.push('## Output');
|
|
88
78
|
lines.push(`\`\`\`\n${String(result.outputs)}\n\`\`\``);
|
|
@@ -109,4 +99,3 @@ export async function handleExecuteWorkflow(api, args) {
|
|
|
109
99
|
};
|
|
110
100
|
}
|
|
111
101
|
}
|
|
112
|
-
//# sourceMappingURL=execute-workflow.js.map
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Add or remove a custom node from favorites.
|
|
5
|
-
* Scope: custom_nodes:manage
|
|
6
|
-
*/
|
|
7
|
-
import { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
8
|
-
import { FlowDotApiClient } from '../api-client.js';
|
|
1
|
+
import type { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { FlowDotApiClient } from '../api-client.js';
|
|
9
3
|
export declare const favoriteCustomNodeTool: Tool;
|
|
10
4
|
export declare function handleFavoriteCustomNode(api: FlowDotApiClient, args: {
|
|
11
5
|
node_id: string;
|
|
12
6
|
favorite?: boolean;
|
|
13
7
|
}): Promise<CallToolResult>;
|
|
14
|
-
//# sourceMappingURL=favorite-custom-node.d.ts.map
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* favorite_custom_node MCP Tool
|
|
3
|
-
*
|
|
4
|
-
* Add or remove a custom node from favorites.
|
|
5
|
-
* Scope: custom_nodes:manage
|
|
6
|
-
*/
|
|
7
1
|
export const favoriteCustomNodeTool = {
|
|
8
2
|
name: 'favorite_custom_node',
|
|
9
3
|
description: 'Add or remove a custom node from your favorites.',
|
|
@@ -24,7 +18,6 @@ export const favoriteCustomNodeTool = {
|
|
|
24
18
|
};
|
|
25
19
|
export async function handleFavoriteCustomNode(api, args) {
|
|
26
20
|
try {
|
|
27
|
-
// If favorite is not specified, default to true (add to favorites)
|
|
28
21
|
const favorite = args.favorite !== undefined ? args.favorite : true;
|
|
29
22
|
const result = await api.favoriteCustomNode(args.node_id, favorite);
|
|
30
23
|
const lines = [
|
|
@@ -45,4 +38,3 @@ export async function handleFavoriteCustomNode(api, args) {
|
|
|
45
38
|
};
|
|
46
39
|
}
|
|
47
40
|
}
|
|
48
|
-
//# sourceMappingURL=favorite-custom-node.js.map
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Add or remove a recipe from favorites.
|
|
5
|
-
*/
|
|
6
|
-
import { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
7
|
-
import { FlowDotApiClient } from '../api-client.js';
|
|
1
|
+
import type { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { FlowDotApiClient } from '../api-client.js';
|
|
8
3
|
export declare const favoriteRecipeTool: Tool;
|
|
9
4
|
export declare function handleFavoriteRecipe(api: FlowDotApiClient, args: {
|
|
10
5
|
hash: string;
|
|
11
6
|
favorite: boolean;
|
|
12
7
|
}): Promise<CallToolResult>;
|
|
13
|
-
//# sourceMappingURL=favorite-recipe.d.ts.map
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* favorite_recipe MCP Tool
|
|
3
|
-
*
|
|
4
|
-
* Add or remove a recipe from favorites.
|
|
5
|
-
*/
|
|
6
1
|
export const favoriteRecipeTool = {
|
|
7
2
|
name: 'favorite_recipe',
|
|
8
3
|
description: 'Add or remove a recipe from your favorites. Favorited recipes can be filtered in list_recipes.',
|
|
@@ -30,8 +25,8 @@ export async function handleFavoriteRecipe(api, args) {
|
|
|
30
25
|
content: [
|
|
31
26
|
{
|
|
32
27
|
type: 'text',
|
|
33
|
-
text: `${emoji} Recipe ${action} favorites!
|
|
34
|
-
|
|
28
|
+
text: `${emoji} Recipe ${action} favorites!
|
|
29
|
+
|
|
35
30
|
**Favorited:** ${result.is_favorited ? 'Yes' : 'No'}`,
|
|
36
31
|
},
|
|
37
32
|
],
|
|
@@ -50,4 +45,3 @@ export async function handleFavoriteRecipe(api, args) {
|
|
|
50
45
|
};
|
|
51
46
|
}
|
|
52
47
|
}
|
|
53
|
-
//# sourceMappingURL=favorite-recipe.js.map
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Favorites or unfavorites a workflow.
|
|
5
|
-
*/
|
|
6
|
-
import { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
7
|
-
import { FlowDotApiClient } from '../api-client.js';
|
|
1
|
+
import type { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { FlowDotApiClient } from '../api-client.js';
|
|
8
3
|
export declare const favoriteWorkflowTool: Tool;
|
|
9
4
|
export declare function handleFavoriteWorkflow(api: FlowDotApiClient, args: {
|
|
10
5
|
workflow_id: string;
|
|
11
6
|
favorite: boolean;
|
|
12
7
|
}): Promise<CallToolResult>;
|
|
13
|
-
//# sourceMappingURL=favorite-workflow.d.ts.map
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* favorite_workflow MCP Tool
|
|
3
|
-
*
|
|
4
|
-
* Favorites or unfavorites a workflow.
|
|
5
|
-
*/
|
|
6
1
|
export const favoriteWorkflowTool = {
|
|
7
2
|
name: 'favorite_workflow',
|
|
8
3
|
description: 'Add or remove a workflow from your favorites. Favorited workflows can be filtered in list_workflows.',
|
|
@@ -23,7 +18,6 @@ export const favoriteWorkflowTool = {
|
|
|
23
18
|
};
|
|
24
19
|
export async function handleFavoriteWorkflow(api, args) {
|
|
25
20
|
try {
|
|
26
|
-
// API may return undefined (no data wrapper) or { message: "..." }
|
|
27
21
|
const result = await api.favoriteWorkflow(args.workflow_id, args.favorite);
|
|
28
22
|
const action = args.favorite ? 'added to' : 'removed from';
|
|
29
23
|
const message = result?.message || `Workflow ${action} favorites.`;
|
|
@@ -39,4 +33,3 @@ export async function handleFavoriteWorkflow(api, args) {
|
|
|
39
33
|
};
|
|
40
34
|
}
|
|
41
35
|
}
|
|
42
|
-
//# sourceMappingURL=favorite-workflow.js.map
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Creates a copy of a public recipe.
|
|
5
|
-
*/
|
|
6
|
-
import { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
7
|
-
import { FlowDotApiClient } from '../api-client.js';
|
|
1
|
+
import type { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { FlowDotApiClient } from '../api-client.js';
|
|
8
3
|
export declare const forkRecipeTool: Tool;
|
|
9
4
|
export declare function handleForkRecipe(api: FlowDotApiClient, args: {
|
|
10
5
|
hash: string;
|
|
11
6
|
name?: string;
|
|
12
7
|
}): Promise<CallToolResult>;
|
|
13
|
-
//# sourceMappingURL=fork-recipe.d.ts.map
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* fork_recipe MCP Tool
|
|
3
|
-
*
|
|
4
|
-
* Creates a copy of a public recipe.
|
|
5
|
-
*/
|
|
6
1
|
export const forkRecipeTool = {
|
|
7
2
|
name: 'fork_recipe',
|
|
8
3
|
description: 'Create a copy of a public recipe into your account. The copy will be private and editable.',
|
|
@@ -28,13 +23,13 @@ export async function handleForkRecipe(api, args) {
|
|
|
28
23
|
content: [
|
|
29
24
|
{
|
|
30
25
|
type: 'text',
|
|
31
|
-
text: `Recipe forked successfully!
|
|
32
|
-
|
|
33
|
-
**New Name:** ${result.name}
|
|
34
|
-
**New Hash:** ${result.hash}
|
|
35
|
-
**Forked From:** ${result.forked_from.name} by ${result.forked_from.user_name}
|
|
36
|
-
**Visibility:** Private
|
|
37
|
-
|
|
26
|
+
text: `Recipe forked successfully!
|
|
27
|
+
|
|
28
|
+
**New Name:** ${result.name}
|
|
29
|
+
**New Hash:** ${result.hash}
|
|
30
|
+
**Forked From:** ${result.forked_from.name} by ${result.forked_from.user_name}
|
|
31
|
+
**Visibility:** Private
|
|
32
|
+
|
|
38
33
|
You can now edit this recipe and customize it for your needs.`,
|
|
39
34
|
},
|
|
40
35
|
],
|
|
@@ -53,4 +48,3 @@ You can now edit this recipe and customize it for your needs.`,
|
|
|
53
48
|
};
|
|
54
49
|
}
|
|
55
50
|
}
|
|
56
|
-
//# sourceMappingURL=fork-recipe.js.map
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Get a specific file from a multi-file FlowDot app.
|
|
5
|
-
* Required scope: apps:read
|
|
6
|
-
*/
|
|
7
|
-
import { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
8
|
-
import { FlowDotApiClient } from '../api-client.js';
|
|
1
|
+
import type { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { FlowDotApiClient } from '../api-client.js';
|
|
9
3
|
export declare const getAppFileTool: Tool;
|
|
10
4
|
export declare function handleGetAppFile(client: FlowDotApiClient, args: Record<string, unknown>): Promise<CallToolResult>;
|
|
11
|
-
//# sourceMappingURL=get-app-file.d.ts.map
|