@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,41 +1,34 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* insert_app_code Tool
|
|
3
|
-
*
|
|
4
|
-
* Inserts content after a specific pattern in app code.
|
|
5
|
-
* Use this to add code at specific locations without replacing existing code.
|
|
6
|
-
* Required scope: apps:manage
|
|
7
|
-
*/
|
|
8
1
|
export const insertAppCodeTool = {
|
|
9
2
|
name: 'insert_app_code',
|
|
10
|
-
description: `Inserts content after a specific pattern in app code.
|
|
11
|
-
|
|
12
|
-
CRITICAL: Remember export rules:
|
|
13
|
-
- App entry file MUST end with: export default MyAppName;
|
|
14
|
-
- To add helper functions, insert BEFORE the export statement
|
|
15
|
-
- Use after_pattern to find the closing brace of your main component
|
|
16
|
-
|
|
17
|
-
Use this tool when you need to:
|
|
18
|
-
- Add new state declarations after existing ones
|
|
19
|
-
- Insert event handlers inside a component
|
|
20
|
-
- Add JSX elements at specific locations
|
|
21
|
-
- Insert code without replacing what's already there
|
|
22
|
-
|
|
23
|
-
IMPORTANT:
|
|
24
|
-
- after_pattern must exist EXACTLY in the code (including whitespace)
|
|
25
|
-
- Content is inserted immediately after the pattern (first occurrence)
|
|
26
|
-
- For multiple insertions at different locations, call this tool multiple times
|
|
27
|
-
|
|
28
|
-
WORKFLOW FOR BUILDING LARGE APPS:
|
|
29
|
-
1. Create app with skeleton: create_app + update_app with basic structure including export
|
|
30
|
-
2. Use insert_app_code to add state: after_pattern: "function MyApp() {"
|
|
31
|
-
content: "\\n const [data, setData] = React.useState(null);"
|
|
32
|
-
3. To add helper functions: after_pattern: "}\\n\\n" (before export)
|
|
33
|
-
content: "function helperFunc() { ... }\\n\\n"
|
|
34
|
-
|
|
35
|
-
Example:
|
|
36
|
-
- after_pattern: "const [loading, setLoading] = React.useState(false);"
|
|
37
|
-
- content: "\\n const [error, setError] = React.useState(null);"
|
|
38
|
-
|
|
3
|
+
description: `Inserts content after a specific pattern in app code.
|
|
4
|
+
|
|
5
|
+
CRITICAL: Remember export rules:
|
|
6
|
+
- App entry file MUST end with: export default MyAppName;
|
|
7
|
+
- To add helper functions, insert BEFORE the export statement
|
|
8
|
+
- Use after_pattern to find the closing brace of your main component
|
|
9
|
+
|
|
10
|
+
Use this tool when you need to:
|
|
11
|
+
- Add new state declarations after existing ones
|
|
12
|
+
- Insert event handlers inside a component
|
|
13
|
+
- Add JSX elements at specific locations
|
|
14
|
+
- Insert code without replacing what's already there
|
|
15
|
+
|
|
16
|
+
IMPORTANT:
|
|
17
|
+
- after_pattern must exist EXACTLY in the code (including whitespace)
|
|
18
|
+
- Content is inserted immediately after the pattern (first occurrence)
|
|
19
|
+
- For multiple insertions at different locations, call this tool multiple times
|
|
20
|
+
|
|
21
|
+
WORKFLOW FOR BUILDING LARGE APPS:
|
|
22
|
+
1. Create app with skeleton: create_app + update_app with basic structure including export
|
|
23
|
+
2. Use insert_app_code to add state: after_pattern: "function MyApp() {"
|
|
24
|
+
content: "\\n const [data, setData] = React.useState(null);"
|
|
25
|
+
3. To add helper functions: after_pattern: "}\\n\\n" (before export)
|
|
26
|
+
content: "function helperFunc() { ... }\\n\\n"
|
|
27
|
+
|
|
28
|
+
Example:
|
|
29
|
+
- after_pattern: "const [loading, setLoading] = React.useState(false);"
|
|
30
|
+
- content: "\\n const [error, setError] = React.useState(null);"
|
|
31
|
+
|
|
39
32
|
Max code size: 102KB`,
|
|
40
33
|
inputSchema: {
|
|
41
34
|
type: 'object',
|
|
@@ -76,12 +69,12 @@ export async function handleInsertAppCode(client, args) {
|
|
|
76
69
|
return {
|
|
77
70
|
content: [{
|
|
78
71
|
type: 'text',
|
|
79
|
-
text: `Content inserted into app code successfully!
|
|
80
|
-
|
|
81
|
-
App ID: ${result.id}
|
|
82
|
-
Field: ${result.field}
|
|
83
|
-
Previous size: ${result.previous_length} bytes
|
|
84
|
-
New size: ${result.new_length} bytes (+${sizeDiff} bytes)
|
|
72
|
+
text: `Content inserted into app code successfully!
|
|
73
|
+
|
|
74
|
+
App ID: ${result.id}
|
|
75
|
+
Field: ${result.field}
|
|
76
|
+
Previous size: ${result.previous_length} bytes
|
|
77
|
+
New size: ${result.new_length} bytes (+${sizeDiff} bytes)
|
|
85
78
|
Updated at: ${result.updated_at}`,
|
|
86
79
|
}],
|
|
87
80
|
};
|
|
@@ -94,4 +87,3 @@ Updated at: ${result.updated_at}`,
|
|
|
94
87
|
};
|
|
95
88
|
}
|
|
96
89
|
}
|
|
97
|
-
//# sourceMappingURL=insert-app-code.js.map
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Link a workflow to an app so the app can invoke it.
|
|
5
|
-
* Required scope: apps: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 linkAppWorkflowTool: Tool;
|
|
10
4
|
export declare function handleLinkAppWorkflow(client: FlowDotApiClient, args: Record<string, unknown>): Promise<CallToolResult>;
|
|
11
|
-
//# sourceMappingURL=link-app-workflow.d.ts.map
|
|
@@ -1,19 +1,13 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* link_app_workflow Tool
|
|
3
|
-
*
|
|
4
|
-
* Link a workflow to an app so the app can invoke it.
|
|
5
|
-
* Required scope: apps:manage
|
|
6
|
-
*/
|
|
7
1
|
export const linkAppWorkflowTool = {
|
|
8
2
|
name: 'link_app_workflow',
|
|
9
|
-
description: `Link a workflow to an app. Once linked, the app can invoke the workflow using invokeWorkflow().
|
|
10
|
-
|
|
11
|
-
The workflow must be owned by you. After linking, use the workflow hash in your app code:
|
|
12
|
-
|
|
13
|
-
\`\`\`javascript
|
|
14
|
-
const result = await invokeWorkflow('WORKFLOW_HASH', { input: 'value' });
|
|
15
|
-
\`\`\`
|
|
16
|
-
|
|
3
|
+
description: `Link a workflow to an app. Once linked, the app can invoke the workflow using invokeWorkflow().
|
|
4
|
+
|
|
5
|
+
The workflow must be owned by you. After linking, use the workflow hash in your app code:
|
|
6
|
+
|
|
7
|
+
\`\`\`javascript
|
|
8
|
+
const result = await invokeWorkflow('WORKFLOW_HASH', { input: 'value' });
|
|
9
|
+
\`\`\`
|
|
10
|
+
|
|
17
11
|
You can optionally provide an alias to reference the workflow by a friendly name.`,
|
|
18
12
|
inputSchema: {
|
|
19
13
|
type: 'object',
|
|
@@ -40,19 +34,19 @@ export async function handleLinkAppWorkflow(client, args) {
|
|
|
40
34
|
const workflowHash = String(args.workflow_hash);
|
|
41
35
|
const alias = args.alias ? String(args.alias) : undefined;
|
|
42
36
|
const result = await client.linkAppWorkflow(appId, workflowHash, alias);
|
|
43
|
-
const text = `Workflow linked successfully!
|
|
44
|
-
|
|
45
|
-
**Workflow:** ${result.name} (${result.hash})
|
|
46
|
-
${result.alias ? `**Alias:** ${result.alias}` : ''}
|
|
47
|
-
${result.description ? `**Description:** ${result.description}` : ''}
|
|
48
|
-
|
|
49
|
-
## Usage in App Code
|
|
50
|
-
|
|
51
|
-
\`\`\`javascript
|
|
52
|
-
// Invoke the workflow
|
|
53
|
-
const result = await invokeWorkflow('${result.hash}', {
|
|
54
|
-
// your inputs here
|
|
55
|
-
});
|
|
37
|
+
const text = `Workflow linked successfully!
|
|
38
|
+
|
|
39
|
+
**Workflow:** ${result.name} (${result.hash})
|
|
40
|
+
${result.alias ? `**Alias:** ${result.alias}` : ''}
|
|
41
|
+
${result.description ? `**Description:** ${result.description}` : ''}
|
|
42
|
+
|
|
43
|
+
## Usage in App Code
|
|
44
|
+
|
|
45
|
+
\`\`\`javascript
|
|
46
|
+
// Invoke the workflow
|
|
47
|
+
const result = await invokeWorkflow('${result.hash}', {
|
|
48
|
+
// your inputs here
|
|
49
|
+
});
|
|
56
50
|
\`\`\``;
|
|
57
51
|
return {
|
|
58
52
|
content: [{ type: 'text', text }],
|
|
@@ -66,4 +60,3 @@ const result = await invokeWorkflow('${result.hash}', {
|
|
|
66
60
|
};
|
|
67
61
|
}
|
|
68
62
|
}
|
|
69
|
-
//# sourceMappingURL=link-app-workflow.js.map
|
|
@@ -1,14 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Links a recipe for use in MCP context.
|
|
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 linkRecipeTool: Tool;
|
|
9
4
|
export declare function handleLinkRecipe(api: FlowDotApiClient, args: {
|
|
10
5
|
hash: string;
|
|
11
6
|
alias: string;
|
|
12
7
|
is_default?: boolean;
|
|
13
8
|
}): Promise<CallToolResult>;
|
|
14
|
-
//# sourceMappingURL=link-recipe.d.ts.map
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* link_recipe MCP Tool
|
|
3
|
-
*
|
|
4
|
-
* Links a recipe for use in MCP context.
|
|
5
|
-
*/
|
|
6
1
|
export const linkRecipeTool = {
|
|
7
2
|
name: 'link_recipe',
|
|
8
|
-
description: `Link a recipe for CLI execution. **REQUIRED** to run recipes from command line.
|
|
9
|
-
|
|
10
|
-
**CRITICAL - Alias Rules:**
|
|
11
|
-
- Use HYPHENS only: \`my-recipe\` ✓
|
|
12
|
-
- NO underscores: \`my_recipe\` ✗ (causes 422 error)
|
|
13
|
-
- Lowercase, alphanumeric + hyphens only
|
|
14
|
-
|
|
15
|
-
**After Linking, Run via CLI:**
|
|
16
|
-
\`\`\`bash
|
|
17
|
-
npx flowdot recipes run <alias> --input '{"input_key":"value"}'
|
|
18
|
-
\`\`\`
|
|
19
|
-
|
|
3
|
+
description: `Link a recipe for CLI execution. **REQUIRED** to run recipes from command line.
|
|
4
|
+
|
|
5
|
+
**CRITICAL - Alias Rules:**
|
|
6
|
+
- Use HYPHENS only: \`my-recipe\` ✓
|
|
7
|
+
- NO underscores: \`my_recipe\` ✗ (causes 422 error)
|
|
8
|
+
- Lowercase, alphanumeric + hyphens only
|
|
9
|
+
|
|
10
|
+
**After Linking, Run via CLI:**
|
|
11
|
+
\`\`\`bash
|
|
12
|
+
npx flowdot recipes run <alias> --input '{"input_key":"value"}'
|
|
13
|
+
\`\`\`
|
|
14
|
+
|
|
20
15
|
**Note:** MCP tools can only DESIGN recipes. CLI is required to EXECUTE them.`,
|
|
21
16
|
inputSchema: {
|
|
22
17
|
type: 'object',
|
|
@@ -49,12 +44,12 @@ export async function handleLinkRecipe(api, args) {
|
|
|
49
44
|
content: [
|
|
50
45
|
{
|
|
51
46
|
type: 'text',
|
|
52
|
-
text: `Recipe linked successfully!
|
|
53
|
-
|
|
54
|
-
**Alias:** ${result.alias}
|
|
55
|
-
**Recipe:** ${result.recipe_name} (${result.recipe_hash})
|
|
56
|
-
**Default:** ${result.is_default ? 'Yes' : 'No'}
|
|
57
|
-
|
|
47
|
+
text: `Recipe linked successfully!
|
|
48
|
+
|
|
49
|
+
**Alias:** ${result.alias}
|
|
50
|
+
**Recipe:** ${result.recipe_name} (${result.recipe_hash})
|
|
51
|
+
**Default:** ${result.is_default ? 'Yes' : 'No'}
|
|
52
|
+
|
|
58
53
|
You can now execute this recipe using the alias.`,
|
|
59
54
|
},
|
|
60
55
|
],
|
|
@@ -73,4 +68,3 @@ You can now execute this recipe using the alias.`,
|
|
|
73
68
|
};
|
|
74
69
|
}
|
|
75
70
|
}
|
|
76
|
-
//# sourceMappingURL=link-recipe.js.map
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* List all files in 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 listAppFilesTool: Tool;
|
|
10
4
|
export declare function handleListAppFiles(client: FlowDotApiClient, args: Record<string, unknown>): Promise<CallToolResult>;
|
|
11
|
-
//# sourceMappingURL=list-app-files.d.ts.map
|
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* list_app_files Tool
|
|
3
|
-
*
|
|
4
|
-
* List all files in a multi-file FlowDot app.
|
|
5
|
-
* Required scope: apps:read
|
|
6
|
-
*/
|
|
7
1
|
export const listAppFilesTool = {
|
|
8
2
|
name: 'list_app_files',
|
|
9
|
-
description: `List all files in a multi-file FlowDot app.
|
|
10
|
-
|
|
11
|
-
Returns a list of files with their paths, types, and entry point status.
|
|
12
|
-
|
|
13
|
-
Multi-file apps allow organizing React code across multiple files:
|
|
14
|
-
- Component files (.jsx, .tsx)
|
|
15
|
-
- Utility files (.js, .ts)
|
|
16
|
-
- Style files (.css)
|
|
17
|
-
- JSON configuration files
|
|
18
|
-
|
|
3
|
+
description: `List all files in a multi-file FlowDot app.
|
|
4
|
+
|
|
5
|
+
Returns a list of files with their paths, types, and entry point status.
|
|
6
|
+
|
|
7
|
+
Multi-file apps allow organizing React code across multiple files:
|
|
8
|
+
- Component files (.jsx, .tsx)
|
|
9
|
+
- Utility files (.js, .ts)
|
|
10
|
+
- Style files (.css)
|
|
11
|
+
- JSON configuration files
|
|
12
|
+
|
|
19
13
|
Use get_app_file to retrieve the content of a specific file.`,
|
|
20
14
|
inputSchema: {
|
|
21
15
|
type: 'object',
|
|
@@ -40,7 +34,6 @@ export async function handleListAppFiles(client, args) {
|
|
|
40
34
|
}],
|
|
41
35
|
};
|
|
42
36
|
}
|
|
43
|
-
// Group files by directory
|
|
44
37
|
const filesByDir = {};
|
|
45
38
|
for (const file of files) {
|
|
46
39
|
const dir = file.path.includes('/')
|
|
@@ -51,10 +44,8 @@ export async function handleListAppFiles(client, args) {
|
|
|
51
44
|
}
|
|
52
45
|
filesByDir[dir].push(file);
|
|
53
46
|
}
|
|
54
|
-
// Format output
|
|
55
47
|
let text = `# Files in App ${appId}\n\n`;
|
|
56
48
|
text += `**Total Files:** ${files.length}\n\n`;
|
|
57
|
-
// Find entry point
|
|
58
49
|
const entryFile = files.find(f => f.is_entry);
|
|
59
50
|
if (entryFile) {
|
|
60
51
|
text += `**Entry Point:** ${entryFile.path}\n\n`;
|
|
@@ -81,4 +72,3 @@ export async function handleListAppFiles(client, args) {
|
|
|
81
72
|
};
|
|
82
73
|
}
|
|
83
74
|
}
|
|
84
|
-
//# sourceMappingURL=list-app-files.js.map
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Lists the user's own apps with optional filtering.
|
|
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 listAppsTool: Tool;
|
|
10
4
|
export declare function handleListApps(client: FlowDotApiClient, args: Record<string, unknown>): Promise<CallToolResult>;
|
|
11
|
-
//# sourceMappingURL=list-apps.d.ts.map
|
package/dist/tools/list-apps.js
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* list_apps Tool
|
|
3
|
-
*
|
|
4
|
-
* Lists the user's own apps with optional filtering.
|
|
5
|
-
* Required scope: apps:read
|
|
6
|
-
*/
|
|
7
1
|
export const listAppsTool = {
|
|
8
2
|
name: 'list_apps',
|
|
9
|
-
description: `List the user's own FlowDot apps. Apps are React frontend applications that can optionally use workflows as backends.
|
|
10
|
-
|
|
3
|
+
description: `List the user's own FlowDot apps. Apps are React frontend applications that can optionally use workflows as backends.
|
|
4
|
+
|
|
11
5
|
Returns a paginated list of apps owned by the current user with metadata like name, description, category, tags, and usage stats.`,
|
|
12
6
|
inputSchema: {
|
|
13
7
|
type: 'object',
|
|
@@ -51,14 +45,14 @@ export async function handleListApps(client, args) {
|
|
|
51
45
|
const appsInfo = result.data.map((app) => {
|
|
52
46
|
const tags = app.tags?.length ? `[${app.tags.join(', ')}]` : '';
|
|
53
47
|
const status = app.is_public ? 'Public' : 'Private';
|
|
54
|
-
return `- **${app.name}** (${app.id})
|
|
55
|
-
${app.description || 'No description'}
|
|
56
|
-
Category: ${app.category || 'Uncategorized'} | Status: ${status} | Mobile: ${app.mobile_compatible ? 'Yes' : 'No'}
|
|
57
|
-
Executions: ${app.execution_count} | Upvotes: ${app.upvotes} | Clones: ${app.clone_count}
|
|
48
|
+
return `- **${app.name}** (${app.id})
|
|
49
|
+
${app.description || 'No description'}
|
|
50
|
+
Category: ${app.category || 'Uncategorized'} | Status: ${status} | Mobile: ${app.mobile_compatible ? 'Yes' : 'No'}
|
|
51
|
+
Executions: ${app.execution_count} | Upvotes: ${app.upvotes} | Clones: ${app.clone_count}
|
|
58
52
|
${tags ? `Tags: ${tags}` : ''}`;
|
|
59
53
|
});
|
|
60
|
-
const text = `Found ${result.total} app(s) (page ${result.current_page}/${result.last_page}):
|
|
61
|
-
|
|
54
|
+
const text = `Found ${result.total} app(s) (page ${result.current_page}/${result.last_page}):
|
|
55
|
+
|
|
62
56
|
${appsInfo.join('\n\n')}`;
|
|
63
57
|
return {
|
|
64
58
|
content: [{ type: 'text', text }],
|
|
@@ -72,4 +66,3 @@ ${appsInfo.join('\n\n')}`;
|
|
|
72
66
|
};
|
|
73
67
|
}
|
|
74
68
|
}
|
|
75
|
-
//# sourceMappingURL=list-apps.js.map
|
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Lists all available node types that can be added to workflows.
|
|
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 listAvailableNodesTool: Tool;
|
|
9
4
|
export declare function handleListAvailableNodes(api: FlowDotApiClient, _args: Record<string, never>): Promise<CallToolResult>;
|
|
10
|
-
//# sourceMappingURL=list-available-nodes.d.ts.map
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* list_available_nodes MCP Tool
|
|
3
|
-
*
|
|
4
|
-
* Lists all available node types that can be added to workflows.
|
|
5
|
-
*/
|
|
6
1
|
export const listAvailableNodesTool = {
|
|
7
2
|
name: 'list_available_nodes',
|
|
8
3
|
description: 'List all available node types organized by category. Shows node types, descriptions, and capabilities.',
|
|
@@ -14,20 +9,16 @@ export const listAvailableNodesTool = {
|
|
|
14
9
|
export async function handleListAvailableNodes(api, _args) {
|
|
15
10
|
try {
|
|
16
11
|
const response = await api.listAvailableNodes();
|
|
17
|
-
// Handle null/undefined explicitly (typeof null === 'object' in JS)
|
|
18
12
|
if (response === null || response === undefined) {
|
|
19
13
|
return {
|
|
20
14
|
content: [{ type: 'text', text: 'No node types available.' }],
|
|
21
15
|
};
|
|
22
16
|
}
|
|
23
|
-
// Handle both array and object formats from the API
|
|
24
17
|
let nodeList;
|
|
25
18
|
if (Array.isArray(response)) {
|
|
26
|
-
// Response is already an array of node types
|
|
27
19
|
nodeList = response;
|
|
28
20
|
}
|
|
29
21
|
else if (typeof response === 'object' && response !== null) {
|
|
30
|
-
// Response is an object keyed by node type name - extract values
|
|
31
22
|
nodeList = Object.values(response);
|
|
32
23
|
}
|
|
33
24
|
else {
|
|
@@ -36,7 +27,6 @@ export async function handleListAvailableNodes(api, _args) {
|
|
|
36
27
|
isError: true,
|
|
37
28
|
};
|
|
38
29
|
}
|
|
39
|
-
// Filter out any invalid entries (non-objects or objects without type)
|
|
40
30
|
nodeList = nodeList.filter((node) => node !== null &&
|
|
41
31
|
typeof node === 'object' &&
|
|
42
32
|
typeof node.type === 'string');
|
|
@@ -45,7 +35,6 @@ export async function handleListAvailableNodes(api, _args) {
|
|
|
45
35
|
content: [{ type: 'text', text: 'No node types available.' }],
|
|
46
36
|
};
|
|
47
37
|
}
|
|
48
|
-
// Group by category
|
|
49
38
|
const byCategory = {};
|
|
50
39
|
for (const node of nodeList) {
|
|
51
40
|
const category = node.category || 'other';
|
|
@@ -68,7 +57,6 @@ export async function handleListAvailableNodes(api, _args) {
|
|
|
68
57
|
}
|
|
69
58
|
lines.push('');
|
|
70
59
|
}
|
|
71
|
-
// Add custom node documentation section
|
|
72
60
|
lines.push('---');
|
|
73
61
|
lines.push('');
|
|
74
62
|
lines.push('### custom');
|
|
@@ -91,4 +79,3 @@ export async function handleListAvailableNodes(api, _args) {
|
|
|
91
79
|
};
|
|
92
80
|
}
|
|
93
81
|
}
|
|
94
|
-
//# sourceMappingURL=list-available-nodes.js.map
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Lists the user's own custom nodes with optional search and category filtering.
|
|
5
|
-
* Scope: custom_nodes: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 listCustomNodesTool: Tool;
|
|
10
4
|
export declare function handleListCustomNodes(api: FlowDotApiClient, args: {
|
|
11
5
|
search?: string;
|
|
@@ -13,4 +7,3 @@ export declare function handleListCustomNodes(api: FlowDotApiClient, args: {
|
|
|
13
7
|
limit?: number;
|
|
14
8
|
page?: number;
|
|
15
9
|
}): Promise<CallToolResult>;
|
|
16
|
-
//# sourceMappingURL=list-custom-nodes.d.ts.map
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* list_custom_nodes MCP Tool
|
|
3
|
-
*
|
|
4
|
-
* Lists the user's own custom nodes with optional search and category filtering.
|
|
5
|
-
* Scope: custom_nodes:read
|
|
6
|
-
*/
|
|
7
1
|
export const listCustomNodesTool = {
|
|
8
2
|
name: 'list_custom_nodes',
|
|
9
3
|
description: 'List your own custom nodes. Supports search and category filtering.',
|
|
@@ -77,4 +71,3 @@ export async function handleListCustomNodes(api, args) {
|
|
|
77
71
|
};
|
|
78
72
|
}
|
|
79
73
|
}
|
|
80
|
-
//# sourceMappingURL=list-custom-nodes.js.map
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Lists input presets (community inputs) for 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 listInputPresetsTool: Tool;
|
|
9
4
|
export declare function handleListInputPresets(api: FlowDotApiClient, args: {
|
|
10
5
|
workflow_id: string;
|
|
@@ -12,4 +7,3 @@ export declare function handleListInputPresets(api: FlowDotApiClient, args: {
|
|
|
12
7
|
limit?: number;
|
|
13
8
|
page?: number;
|
|
14
9
|
}): Promise<CallToolResult>;
|
|
15
|
-
//# sourceMappingURL=list-input-presets.d.ts.map
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* list_input_presets MCP Tool
|
|
3
|
-
*
|
|
4
|
-
* Lists input presets (community inputs) for a workflow.
|
|
5
|
-
*/
|
|
6
1
|
export const listInputPresetsTool = {
|
|
7
2
|
name: 'list_input_presets',
|
|
8
3
|
description: 'List input presets (community inputs) for a workflow. These are pre-configured input values that users can share with others.',
|
|
@@ -44,7 +39,6 @@ function formatPreset(preset) {
|
|
|
44
39
|
lines.push(`**Created by:** ${preset.user.name}`);
|
|
45
40
|
}
|
|
46
41
|
lines.push(`**Created:** ${preset.created_at}`);
|
|
47
|
-
// Show input values (summarized)
|
|
48
42
|
if (preset.inputs && Object.keys(preset.inputs).length > 0) {
|
|
49
43
|
lines.push('', '**Inputs:**');
|
|
50
44
|
for (const [key, value] of Object.entries(preset.inputs)) {
|
|
@@ -97,4 +91,3 @@ export async function handleListInputPresets(api, args) {
|
|
|
97
91
|
};
|
|
98
92
|
}
|
|
99
93
|
}
|
|
100
|
-
//# sourceMappingURL=list-input-presets.js.map
|
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Lists all document categories in the user's knowledge base.
|
|
5
|
-
* Supports filtering by team or personal categories only.
|
|
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 listKnowledgeCategoriesToolDef: Tool;
|
|
10
4
|
export declare function handleListKnowledgeCategories(api: FlowDotApiClient, args?: {
|
|
11
5
|
team_id?: number;
|
|
12
6
|
personal?: boolean;
|
|
13
7
|
}): Promise<CallToolResult>;
|
|
14
|
-
//# sourceMappingURL=list-knowledge-categories.d.ts.map
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* List Knowledge Categories Tool
|
|
3
|
-
*
|
|
4
|
-
* Lists all document categories in the user's knowledge base.
|
|
5
|
-
* Supports filtering by team or personal categories only.
|
|
6
|
-
*/
|
|
7
1
|
export const listKnowledgeCategoriesToolDef = {
|
|
8
2
|
name: 'list_knowledge_categories',
|
|
9
3
|
description: 'List all document categories in your knowledge base. Categories help organize documents for easier retrieval and targeted RAG queries. By default, shows both personal and team categories.',
|
|
@@ -41,14 +35,12 @@ export async function handleListKnowledgeCategories(api, args) {
|
|
|
41
35
|
content: [{ type: 'text', text: message }],
|
|
42
36
|
};
|
|
43
37
|
}
|
|
44
|
-
// Separate personal and team categories for display
|
|
45
38
|
const personalCategories = categories.filter(c => !c.team_id);
|
|
46
39
|
const teamCategories = categories.filter(c => c.team_id);
|
|
47
40
|
const lines = [
|
|
48
41
|
`## Knowledge Base Categories (${categories.length} total)`,
|
|
49
42
|
'',
|
|
50
43
|
];
|
|
51
|
-
// Show personal categories
|
|
52
44
|
if (personalCategories.length > 0 && !args?.team_id) {
|
|
53
45
|
lines.push('### Personal Categories');
|
|
54
46
|
lines.push('');
|
|
@@ -64,9 +56,7 @@ export async function handleListKnowledgeCategories(api, args) {
|
|
|
64
56
|
lines.push('');
|
|
65
57
|
}
|
|
66
58
|
}
|
|
67
|
-
// Show team categories
|
|
68
59
|
if (teamCategories.length > 0 && !args?.personal) {
|
|
69
|
-
// Group by team
|
|
70
60
|
const byTeam = new Map();
|
|
71
61
|
for (const cat of teamCategories) {
|
|
72
62
|
const teamId = cat.team_id;
|
|
@@ -104,4 +94,3 @@ export async function handleListKnowledgeCategories(api, args) {
|
|
|
104
94
|
};
|
|
105
95
|
}
|
|
106
96
|
}
|
|
107
|
-
//# sourceMappingURL=list-knowledge-categories.js.map
|
|
@@ -1,15 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Lists documents in the user's knowledge base with optional filtering.
|
|
5
|
-
* Includes both personal and team documents.
|
|
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 listKnowledgeDocumentsToolDef: Tool;
|
|
10
4
|
export declare function handleListKnowledgeDocuments(api: FlowDotApiClient, args: {
|
|
11
5
|
category_id?: number;
|
|
12
6
|
team_id?: number | 'personal';
|
|
13
7
|
status?: 'pending' | 'processing' | 'ready' | 'failed';
|
|
14
8
|
}): Promise<CallToolResult>;
|
|
15
|
-
//# sourceMappingURL=list-knowledge-documents.d.ts.map
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* List Knowledge Documents Tool
|
|
3
|
-
*
|
|
4
|
-
* Lists documents in the user's knowledge base with optional filtering.
|
|
5
|
-
* Includes both personal and team documents.
|
|
6
|
-
*/
|
|
7
1
|
export const listKnowledgeDocumentsToolDef = {
|
|
8
2
|
name: 'list_knowledge_documents',
|
|
9
3
|
description: 'List documents in your knowledge base. Optionally filter by category, team, or status. Shows document title, status, size, and chunk count. By default shows all accessible documents (personal and team).',
|
|
@@ -60,7 +54,6 @@ export async function handleListKnowledgeDocuments(api, args) {
|
|
|
60
54
|
return '?';
|
|
61
55
|
}
|
|
62
56
|
};
|
|
63
|
-
// Group documents by personal vs team
|
|
64
57
|
const personalDocs = documents.filter(d => !d.is_team_document);
|
|
65
58
|
const teamDocs = documents.filter(d => d.is_team_document);
|
|
66
59
|
const lines = [
|
|
@@ -87,7 +80,6 @@ export async function handleListKnowledgeDocuments(api, args) {
|
|
|
87
80
|
docLines.push('');
|
|
88
81
|
return docLines;
|
|
89
82
|
};
|
|
90
|
-
// Show personal documents if no team filter or explicitly 'personal'
|
|
91
83
|
if (personalDocs.length > 0 && (args.team_id === undefined || args.team_id === 'personal')) {
|
|
92
84
|
lines.push('### Personal Documents');
|
|
93
85
|
lines.push('');
|
|
@@ -95,7 +87,6 @@ export async function handleListKnowledgeDocuments(api, args) {
|
|
|
95
87
|
lines.push(...formatDoc(doc));
|
|
96
88
|
}
|
|
97
89
|
}
|
|
98
|
-
// Show team documents grouped by team
|
|
99
90
|
if (teamDocs.length > 0 && args.team_id !== 'personal') {
|
|
100
91
|
const byTeam = new Map();
|
|
101
92
|
for (const doc of teamDocs) {
|
|
@@ -126,4 +117,3 @@ export async function handleListKnowledgeDocuments(api, args) {
|
|
|
126
117
|
};
|
|
127
118
|
}
|
|
128
119
|
}
|
|
129
|
-
//# sourceMappingURL=list-knowledge-documents.js.map
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Lists all steps in 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 listRecipeStepsTool: Tool;
|
|
9
4
|
export declare function handleListRecipeSteps(api: FlowDotApiClient, args: {
|
|
10
5
|
hash: string;
|
|
11
6
|
}): Promise<CallToolResult>;
|
|
12
|
-
//# sourceMappingURL=list-recipe-steps.d.ts.map
|