@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,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* list_recipe_steps MCP Tool
|
|
3
|
-
*
|
|
4
|
-
* Lists all steps in a recipe.
|
|
5
|
-
*/
|
|
6
1
|
export const listRecipeStepsTool = {
|
|
7
2
|
name: 'list_recipe_steps',
|
|
8
3
|
description: 'List all steps in a recipe with their types, connections, and configurations.',
|
|
@@ -30,7 +25,6 @@ export async function handleListRecipeSteps(api, args) {
|
|
|
30
25
|
],
|
|
31
26
|
};
|
|
32
27
|
}
|
|
33
|
-
// Get recipe to check entry step
|
|
34
28
|
const recipe = await api.getRecipe(args.hash);
|
|
35
29
|
const entryStepId = recipe.entry_step_id;
|
|
36
30
|
const stepList = steps
|
|
@@ -40,7 +34,7 @@ export async function handleListRecipeSteps(api, args) {
|
|
|
40
34
|
const desc = s.description ? ` - ${s.description}` : '';
|
|
41
35
|
const next = s.next ? `\n → next: ${s.next}` : '';
|
|
42
36
|
const onError = s.on_error ? `\n → on_error: ${s.on_error}` : '';
|
|
43
|
-
return `- **${s.name}** (${s.type})${entryMark}${desc}${next}${onError}
|
|
37
|
+
return `- **${s.name}** (${s.type})${entryMark}${desc}${next}${onError}
|
|
44
38
|
ID: ${s.id}`;
|
|
45
39
|
})
|
|
46
40
|
.join('\n\n');
|
|
@@ -66,4 +60,3 @@ export async function handleListRecipeSteps(api, args) {
|
|
|
66
60
|
};
|
|
67
61
|
}
|
|
68
62
|
}
|
|
69
|
-
//# sourceMappingURL=list-recipe-steps.js.map
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Lists all stores 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 listRecipeStoresTool: Tool;
|
|
9
4
|
export declare function handleListRecipeStores(api: FlowDotApiClient, args: {
|
|
10
5
|
hash: string;
|
|
11
6
|
}): Promise<CallToolResult>;
|
|
12
|
-
//# sourceMappingURL=list-recipe-stores.d.ts.map
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* list_recipe_stores MCP Tool
|
|
3
|
-
*
|
|
4
|
-
* Lists all stores in a recipe.
|
|
5
|
-
*/
|
|
6
1
|
export const listRecipeStoresTool = {
|
|
7
2
|
name: 'list_recipe_stores',
|
|
8
3
|
description: 'List all stores (variables) in a recipe. Stores hold data that flows between steps.',
|
|
@@ -84,4 +79,3 @@ export async function handleListRecipeStores(api, args) {
|
|
|
84
79
|
};
|
|
85
80
|
}
|
|
86
81
|
}
|
|
87
|
-
//# sourceMappingURL=list-recipe-stores.js.map
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Lists agent recipes available to the user.
|
|
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 listRecipesTool: Tool;
|
|
9
4
|
export declare function handleListRecipes(api: FlowDotApiClient, args: {
|
|
10
5
|
favorites_only?: boolean;
|
|
11
6
|
}): Promise<CallToolResult>;
|
|
12
|
-
//# sourceMappingURL=list-recipes.d.ts.map
|
|
@@ -1,32 +1,27 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* list_recipes MCP Tool
|
|
3
|
-
*
|
|
4
|
-
* Lists agent recipes available to the user.
|
|
5
|
-
*/
|
|
6
1
|
export const listRecipesTool = {
|
|
7
2
|
name: 'list_recipes',
|
|
8
|
-
description: `List agent recipes available to the user. Returns recipe IDs, names, descriptions, and step counts.
|
|
9
|
-
|
|
10
|
-
**What are Recipes?**
|
|
11
|
-
Recipes are reusable agent orchestration workflows. Design them with MCP tools, execute them via the FlowDot CLI.
|
|
12
|
-
|
|
13
|
-
**CRITICAL**: MCP tools can only DESIGN recipes. To RUN a recipe, use the CLI:
|
|
14
|
-
\`npx flowdot recipes run <aliasOrHash> --input '{"key":"value"}'\`
|
|
15
|
-
|
|
16
|
-
**Building a Recipe (workflow):**
|
|
17
|
-
1. create_recipe → Creates recipe, returns hash
|
|
18
|
-
2. add_recipe_store → Define inputs (is_input: true) and outputs (is_output: true)
|
|
19
|
-
- **Name primary input store \`request\`** - CLI passes task as \`inputs.request\`
|
|
20
|
-
3. add_recipe_step → Add steps (agent, parallel, loop, gate, branch, invoke)
|
|
21
|
-
- For agent steps, use \`user_prompt\` (NOT \`prompt\`) in config
|
|
22
|
-
4. update_recipe_step → Connect steps via "next" and "on_error"
|
|
23
|
-
5. update_recipe → Set entry_step_id to the first step
|
|
24
|
-
6. link_recipe → Create CLI alias for easy execution
|
|
25
|
-
|
|
26
|
-
**Step Types:** agent (LLM with tools), parallel (concurrent), loop (iterate array), gate (approval), branch (conditional), invoke (subroutine)
|
|
27
|
-
|
|
28
|
-
**Interpolation Syntax:**
|
|
29
|
-
- \`{{inputs.request}}\` - Access CLI task argument
|
|
3
|
+
description: `List agent recipes available to the user. Returns recipe IDs, names, descriptions, and step counts.
|
|
4
|
+
|
|
5
|
+
**What are Recipes?**
|
|
6
|
+
Recipes are reusable agent orchestration workflows. Design them with MCP tools, execute them via the FlowDot CLI.
|
|
7
|
+
|
|
8
|
+
**CRITICAL**: MCP tools can only DESIGN recipes. To RUN a recipe, use the CLI:
|
|
9
|
+
\`npx flowdot recipes run <aliasOrHash> --input '{"key":"value"}'\`
|
|
10
|
+
|
|
11
|
+
**Building a Recipe (workflow):**
|
|
12
|
+
1. create_recipe → Creates recipe, returns hash
|
|
13
|
+
2. add_recipe_store → Define inputs (is_input: true) and outputs (is_output: true)
|
|
14
|
+
- **Name primary input store \`request\`** - CLI passes task as \`inputs.request\`
|
|
15
|
+
3. add_recipe_step → Add steps (agent, parallel, loop, gate, branch, invoke)
|
|
16
|
+
- For agent steps, use \`user_prompt\` (NOT \`prompt\`) in config
|
|
17
|
+
4. update_recipe_step → Connect steps via "next" and "on_error"
|
|
18
|
+
5. update_recipe → Set entry_step_id to the first step
|
|
19
|
+
6. link_recipe → Create CLI alias for easy execution
|
|
20
|
+
|
|
21
|
+
**Step Types:** agent (LLM with tools), parallel (concurrent), loop (iterate array), gate (approval), branch (conditional), invoke (subroutine)
|
|
22
|
+
|
|
23
|
+
**Interpolation Syntax:**
|
|
24
|
+
- \`{{inputs.request}}\` - Access CLI task argument
|
|
30
25
|
- \`{{store_key}}\` - Reference store values`,
|
|
31
26
|
inputSchema: {
|
|
32
27
|
type: 'object',
|
|
@@ -41,9 +36,7 @@ Recipes are reusable agent orchestration workflows. Design them with MCP tools,
|
|
|
41
36
|
};
|
|
42
37
|
export async function handleListRecipes(api, args) {
|
|
43
38
|
try {
|
|
44
|
-
// listRecipes() now returns AgentRecipe[] directly (not wrapped in { recipes: [...] })
|
|
45
39
|
let recipes = await api.listRecipes();
|
|
46
|
-
// Filter favorites if requested
|
|
47
40
|
if (args.favorites_only) {
|
|
48
41
|
recipes = recipes.filter((r) => r.is_favorited);
|
|
49
42
|
}
|
|
@@ -57,7 +50,6 @@ export async function handleListRecipes(api, args) {
|
|
|
57
50
|
],
|
|
58
51
|
};
|
|
59
52
|
}
|
|
60
|
-
// Format as a readable list
|
|
61
53
|
const recipeList = recipes
|
|
62
54
|
.filter((r) => r && typeof r === 'object')
|
|
63
55
|
.map((r) => {
|
|
@@ -89,4 +81,3 @@ export async function handleListRecipes(api, args) {
|
|
|
89
81
|
};
|
|
90
82
|
}
|
|
91
83
|
}
|
|
92
|
-
//# sourceMappingURL=list-recipes.js.map
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Lists shared execution results 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 listSharedResultsTool: Tool;
|
|
9
4
|
export declare function handleListSharedResults(api: FlowDotApiClient, args: {
|
|
10
5
|
workflow_id: string;
|
|
@@ -12,4 +7,3 @@ export declare function handleListSharedResults(api: FlowDotApiClient, args: {
|
|
|
12
7
|
limit?: number;
|
|
13
8
|
page?: number;
|
|
14
9
|
}): Promise<CallToolResult>;
|
|
15
|
-
//# sourceMappingURL=list-shared-results.d.ts.map
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* list_shared_results MCP Tool
|
|
3
|
-
*
|
|
4
|
-
* Lists shared execution results for a workflow.
|
|
5
|
-
*/
|
|
6
1
|
export const listSharedResultsTool = {
|
|
7
2
|
name: 'list_shared_results',
|
|
8
3
|
description: 'List all shared execution results for a workflow. Shows shareable links, view counts, and metadata for each shared result.',
|
|
@@ -77,4 +72,3 @@ export async function handleListSharedResults(api, args) {
|
|
|
77
72
|
};
|
|
78
73
|
}
|
|
79
74
|
}
|
|
80
|
-
//# sourceMappingURL=list-shared-results.js.map
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Lists all teams the user belongs to, including owned teams and member teams.
|
|
5
|
-
* Use this to discover available teams before filtering knowledge base operations.
|
|
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 listUserTeamsToolDef: Tool;
|
|
10
4
|
export declare function handleListUserTeams(api: FlowDotApiClient): Promise<CallToolResult>;
|
|
11
|
-
//# sourceMappingURL=list-user-teams.d.ts.map
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* List User Teams Tool
|
|
3
|
-
*
|
|
4
|
-
* Lists all teams the user belongs to, including owned teams and member teams.
|
|
5
|
-
* Use this to discover available teams before filtering knowledge base operations.
|
|
6
|
-
*/
|
|
7
1
|
export const listUserTeamsToolDef = {
|
|
8
2
|
name: 'list_user_teams',
|
|
9
3
|
description: 'List all teams you belong to. Use this to discover available teams before filtering knowledge base operations by team. Returns team ID, name, your role, and member count.',
|
|
@@ -53,4 +47,3 @@ export async function handleListUserTeams(api) {
|
|
|
53
47
|
};
|
|
54
48
|
}
|
|
55
49
|
}
|
|
56
|
-
//# sourceMappingURL=list-user-teams.js.map
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Lists workflows available to the user.
|
|
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 listWorkflowsTool: Tool;
|
|
9
4
|
export declare function handleListWorkflows(api: FlowDotApiClient, args: {
|
|
10
5
|
filter?: string;
|
|
11
6
|
favorites_only?: boolean;
|
|
12
7
|
}): Promise<CallToolResult>;
|
|
13
|
-
//# sourceMappingURL=list-workflows.d.ts.map
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* list_workflows MCP Tool
|
|
3
|
-
*
|
|
4
|
-
* Lists workflows available to the user.
|
|
5
|
-
*/
|
|
6
1
|
export const listWorkflowsTool = {
|
|
7
2
|
name: 'list_workflows',
|
|
8
3
|
description: 'List FlowDot workflows available to the user. Returns workflow IDs, names, and descriptions.',
|
|
@@ -24,7 +19,6 @@ export const listWorkflowsTool = {
|
|
|
24
19
|
export async function handleListWorkflows(api, args) {
|
|
25
20
|
try {
|
|
26
21
|
const response = await api.listWorkflows(args.filter, args.favorites_only);
|
|
27
|
-
// Handle unexpected response formats
|
|
28
22
|
const workflows = Array.isArray(response) ? response : [];
|
|
29
23
|
if (workflows.length === 0) {
|
|
30
24
|
return {
|
|
@@ -36,7 +30,6 @@ export async function handleListWorkflows(api, args) {
|
|
|
36
30
|
],
|
|
37
31
|
};
|
|
38
32
|
}
|
|
39
|
-
// Format as a readable list
|
|
40
33
|
const workflowList = workflows
|
|
41
34
|
.filter(w => w && typeof w === 'object')
|
|
42
35
|
.map((w) => {
|
|
@@ -67,4 +60,3 @@ export async function handleListWorkflows(api, args) {
|
|
|
67
60
|
};
|
|
68
61
|
}
|
|
69
62
|
}
|
|
70
|
-
//# sourceMappingURL=list-workflows.js.map
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Moves a document to a different category.
|
|
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 moveDocumentToCategoryToolDef: Tool;
|
|
9
4
|
export declare function handleMoveDocumentToCategory(api: FlowDotApiClient, args: {
|
|
10
5
|
document_id: number;
|
|
11
6
|
category_id?: number | null;
|
|
12
7
|
}): Promise<CallToolResult>;
|
|
13
|
-
//# sourceMappingURL=move-document-to-category.d.ts.map
|
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Move Document to Category Tool
|
|
3
|
-
*
|
|
4
|
-
* Moves a document to a different category.
|
|
5
|
-
*/
|
|
6
1
|
export const moveDocumentToCategoryToolDef = {
|
|
7
2
|
name: 'move_document_to_category',
|
|
8
3
|
description: 'Move a document to a different category, or remove it from its current category (make it uncategorized).',
|
|
@@ -39,4 +34,3 @@ export async function handleMoveDocumentToCategory(api, args) {
|
|
|
39
34
|
};
|
|
40
35
|
}
|
|
41
36
|
}
|
|
42
|
-
//# sourceMappingURL=move-document-to-category.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
|
|
2
|
+
import type { FlowDotApiClient } from '../api-client.js';
|
|
3
|
+
export declare const patchKnowledgeDocumentSectionToolDef: Tool;
|
|
4
|
+
export declare function handlePatchKnowledgeDocumentSection(api: FlowDotApiClient, args: {
|
|
5
|
+
document_id: number | string;
|
|
6
|
+
old_text: string;
|
|
7
|
+
new_text: string;
|
|
8
|
+
}): Promise<CallToolResult>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export const patchKnowledgeDocumentSectionToolDef = {
|
|
2
|
+
name: 'patch_knowledge_document_section',
|
|
3
|
+
description: 'Edit a targeted section of a knowledge base document by find-and-replace. The old_text must be at least 10 characters and must match EXACTLY ONCE in the current document. If there are 0 or 2+ matches the request fails with an error — expand old_text to make it unique and retry. Triggers reprocessing of chunks and embeddings after the edit. Requires edit permission on the document. Use this for targeted section edits; for full rewrites use update_knowledge_document_content.',
|
|
4
|
+
inputSchema: {
|
|
5
|
+
type: 'object',
|
|
6
|
+
properties: {
|
|
7
|
+
document_id: {
|
|
8
|
+
type: ['number', 'string'],
|
|
9
|
+
description: 'The document ID (number) or hash (string)',
|
|
10
|
+
},
|
|
11
|
+
old_text: {
|
|
12
|
+
type: 'string',
|
|
13
|
+
description: 'The exact text to find and replace. Must be at least 10 characters and must match exactly once in the document (including whitespace and line breaks).',
|
|
14
|
+
},
|
|
15
|
+
new_text: {
|
|
16
|
+
type: 'string',
|
|
17
|
+
description: 'The replacement text. Can be an empty string to delete the matched section.',
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
required: ['document_id', 'old_text', 'new_text'],
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
export async function handlePatchKnowledgeDocumentSection(api, args) {
|
|
24
|
+
try {
|
|
25
|
+
const result = await api.patchKnowledgeDocumentSection(args.document_id, args.old_text, args.new_text);
|
|
26
|
+
const lines = [
|
|
27
|
+
'## Document Section Patched',
|
|
28
|
+
'',
|
|
29
|
+
`**ID:** ${result.id}`,
|
|
30
|
+
`**New size:** ${result.file_size_bytes} bytes`,
|
|
31
|
+
`**Bytes changed:** ${result.bytes_changed > 0 ? '+' : ''}${result.bytes_changed}`,
|
|
32
|
+
`**Status:** ${result.status}`,
|
|
33
|
+
'',
|
|
34
|
+
result.message || 'Section patched and queued for reprocessing.',
|
|
35
|
+
];
|
|
36
|
+
return {
|
|
37
|
+
content: [{ type: 'text', text: lines.join('\n') }],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
catch (error) {
|
|
41
|
+
const message = error instanceof Error ? error.message : 'Unknown error';
|
|
42
|
+
return {
|
|
43
|
+
content: [{ type: 'text', text: `Error patching document section: ${message}` }],
|
|
44
|
+
isError: true,
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -1,12 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Prepends content to the beginning of app code.
|
|
5
|
-
* Use this to add constants, configuration, or setup code at the start.
|
|
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 prependAppCodeTool: Tool;
|
|
11
4
|
export declare function handlePrependAppCode(client: FlowDotApiClient, args: Record<string, unknown>): Promise<CallToolResult>;
|
|
12
|
-
//# sourceMappingURL=prepend-app-code.d.ts.map
|
|
@@ -1,29 +1,22 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* prepend_app_code Tool
|
|
3
|
-
*
|
|
4
|
-
* Prepends content to the beginning of app code.
|
|
5
|
-
* Use this to add constants, configuration, or setup code at the start.
|
|
6
|
-
* Required scope: apps:manage
|
|
7
|
-
*/
|
|
8
1
|
export const prependAppCodeTool = {
|
|
9
2
|
name: 'prepend_app_code',
|
|
10
|
-
description: `Prepends content to the beginning of app code.
|
|
11
|
-
|
|
12
|
-
CRITICAL: Remember export rules:
|
|
13
|
-
- NO IMPORTS - React is global
|
|
14
|
-
- App entry file MUST end with: export default MyAppName;
|
|
15
|
-
|
|
16
|
-
Use this tool when you need to:
|
|
17
|
-
- Add constants or configuration at the start of the code
|
|
18
|
-
- Add comments or documentation at the beginning
|
|
19
|
-
- Insert setup code before the main component
|
|
20
|
-
|
|
21
|
-
NOTE: Since FlowDot apps don't use imports, this is less commonly needed.
|
|
22
|
-
For most cases, use edit_app_code or insert_app_code instead.
|
|
23
|
-
|
|
24
|
-
Example usage:
|
|
25
|
-
- content: "// App Configuration\\nconst API_URL = 'https://api.example.com';\\n\\n"
|
|
26
|
-
|
|
3
|
+
description: `Prepends content to the beginning of app code.
|
|
4
|
+
|
|
5
|
+
CRITICAL: Remember export rules:
|
|
6
|
+
- NO IMPORTS - React is global
|
|
7
|
+
- App entry file MUST end with: export default MyAppName;
|
|
8
|
+
|
|
9
|
+
Use this tool when you need to:
|
|
10
|
+
- Add constants or configuration at the start of the code
|
|
11
|
+
- Add comments or documentation at the beginning
|
|
12
|
+
- Insert setup code before the main component
|
|
13
|
+
|
|
14
|
+
NOTE: Since FlowDot apps don't use imports, this is less commonly needed.
|
|
15
|
+
For most cases, use edit_app_code or insert_app_code instead.
|
|
16
|
+
|
|
17
|
+
Example usage:
|
|
18
|
+
- content: "// App Configuration\\nconst API_URL = 'https://api.example.com';\\n\\n"
|
|
19
|
+
|
|
27
20
|
Max code size: 102KB`,
|
|
28
21
|
inputSchema: {
|
|
29
22
|
type: 'object',
|
|
@@ -58,12 +51,12 @@ export async function handlePrependAppCode(client, args) {
|
|
|
58
51
|
return {
|
|
59
52
|
content: [{
|
|
60
53
|
type: 'text',
|
|
61
|
-
text: `Content prepended to app code successfully!
|
|
62
|
-
|
|
63
|
-
App ID: ${result.id}
|
|
64
|
-
Field: ${result.field}
|
|
65
|
-
Previous size: ${result.previous_length} bytes
|
|
66
|
-
New size: ${result.new_length} bytes (+${sizeDiff} bytes)
|
|
54
|
+
text: `Content prepended to app code successfully!
|
|
55
|
+
|
|
56
|
+
App ID: ${result.id}
|
|
57
|
+
Field: ${result.field}
|
|
58
|
+
Previous size: ${result.previous_length} bytes
|
|
59
|
+
New size: ${result.new_length} bytes (+${sizeDiff} bytes)
|
|
67
60
|
Updated at: ${result.updated_at}`,
|
|
68
61
|
}],
|
|
69
62
|
};
|
|
@@ -76,4 +69,3 @@ Updated at: ${result.updated_at}`,
|
|
|
76
69
|
};
|
|
77
70
|
}
|
|
78
71
|
}
|
|
79
|
-
//# sourceMappingURL=prepend-app-code.js.map
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Publish an app to make it publicly visible.
|
|
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 publishAppTool: Tool;
|
|
10
4
|
export declare function handlePublishApp(client: FlowDotApiClient, args: Record<string, unknown>): Promise<CallToolResult>;
|
|
11
|
-
//# sourceMappingURL=publish-app.d.ts.map
|
|
@@ -1,18 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* publish_app Tool
|
|
3
|
-
*
|
|
4
|
-
* Publish an app to make it publicly visible.
|
|
5
|
-
* Required scope: apps:manage
|
|
6
|
-
*/
|
|
7
1
|
export const publishAppTool = {
|
|
8
2
|
name: 'publish_app',
|
|
9
|
-
description: `Publish an app to make it publicly visible in the FlowDot app marketplace.
|
|
10
|
-
|
|
11
|
-
Once published:
|
|
12
|
-
- Other users can discover and view your app
|
|
13
|
-
- Other users can clone your app
|
|
14
|
-
- Your app can receive votes and comments
|
|
15
|
-
|
|
3
|
+
description: `Publish an app to make it publicly visible in the FlowDot app marketplace.
|
|
4
|
+
|
|
5
|
+
Once published:
|
|
6
|
+
- Other users can discover and view your app
|
|
7
|
+
- Other users can clone your app
|
|
8
|
+
- Your app can receive votes and comments
|
|
9
|
+
|
|
16
10
|
You can unpublish at any time using unpublish_app.`,
|
|
17
11
|
inputSchema: {
|
|
18
12
|
type: 'object',
|
|
@@ -41,4 +35,3 @@ export async function handlePublishApp(client, args) {
|
|
|
41
35
|
};
|
|
42
36
|
}
|
|
43
37
|
}
|
|
44
|
-
//# sourceMappingURL=publish-app.js.map
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Performs RAG queries against the knowledge base to retrieve relevant document chunks.
|
|
5
|
-
* Supports filtering by team and controlling which document sources to include.
|
|
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 queryKnowledgeBaseToolDef: Tool;
|
|
10
4
|
export declare function handleQueryKnowledgeBase(api: FlowDotApiClient, args: {
|
|
11
5
|
query: string;
|
|
@@ -15,4 +9,3 @@ export declare function handleQueryKnowledgeBase(api: FlowDotApiClient, args: {
|
|
|
15
9
|
include_team?: boolean;
|
|
16
10
|
top_k?: number;
|
|
17
11
|
}): Promise<CallToolResult>;
|
|
18
|
-
//# sourceMappingURL=query-knowledge-base.d.ts.map
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Query Knowledge Base Tool
|
|
3
|
-
*
|
|
4
|
-
* Performs RAG queries against the knowledge base to retrieve relevant document chunks.
|
|
5
|
-
* Supports filtering by team and controlling which document sources to include.
|
|
6
|
-
*/
|
|
7
1
|
export const queryKnowledgeBaseToolDef = {
|
|
8
2
|
name: 'query_knowledge_base',
|
|
9
3
|
description: 'Search your knowledge base using semantic and keyword search. Returns relevant document chunks with source attribution. Use this to find information from your uploaded documents. By default searches both personal and team documents.',
|
|
@@ -51,7 +45,7 @@ export async function handleQueryKnowledgeBase(api, args) {
|
|
|
51
45
|
top_k: args.top_k || 5,
|
|
52
46
|
});
|
|
53
47
|
if (response.result_count === 0) {
|
|
54
|
-
|
|
48
|
+
const tips = [
|
|
55
49
|
'Using different keywords',
|
|
56
50
|
'Checking if documents are fully processed (status: ready)',
|
|
57
51
|
'Removing category filters',
|
|
@@ -73,7 +67,6 @@ export async function handleQueryKnowledgeBase(api, args) {
|
|
|
73
67
|
'',
|
|
74
68
|
`**Query:** "${args.query}"`,
|
|
75
69
|
];
|
|
76
|
-
// Add filter info if any filters applied
|
|
77
70
|
const filters = [];
|
|
78
71
|
if (args.team_id)
|
|
79
72
|
filters.push(`Team ID: ${args.team_id}`);
|
|
@@ -87,17 +80,14 @@ export async function handleQueryKnowledgeBase(api, args) {
|
|
|
87
80
|
lines.push(`**Filters:** ${filters.join(', ')}`);
|
|
88
81
|
}
|
|
89
82
|
lines.push('');
|
|
90
|
-
// Track unique sources for citation
|
|
91
83
|
const sources = new Map();
|
|
92
84
|
for (let i = 0; i < response.results.length; i++) {
|
|
93
85
|
const result = response.results[i];
|
|
94
|
-
// Track source
|
|
95
86
|
sources.set(result.document_hash || result.document_title, {
|
|
96
87
|
title: result.document_title,
|
|
97
88
|
isTeam: result.is_team_document,
|
|
98
89
|
teamId: result.team_id ?? undefined,
|
|
99
90
|
});
|
|
100
|
-
// Calculate relevance indicator
|
|
101
91
|
let relevanceStr = '';
|
|
102
92
|
if (result.similarity !== null) {
|
|
103
93
|
const similarity = (result.similarity * 100).toFixed(0);
|
|
@@ -106,20 +96,17 @@ export async function handleQueryKnowledgeBase(api, args) {
|
|
|
106
96
|
else if (result.relevance !== null) {
|
|
107
97
|
relevanceStr = ` (relevance: ${result.relevance.toFixed(2)})`;
|
|
108
98
|
}
|
|
109
|
-
// Add team indicator if from team
|
|
110
99
|
const sourceLabel = result.is_team_document
|
|
111
100
|
? `"${result.document_title}" [Team]`
|
|
112
101
|
: `"${result.document_title}"`;
|
|
113
102
|
lines.push(`### Result ${i + 1} from ${sourceLabel}${relevanceStr}`);
|
|
114
103
|
lines.push('');
|
|
115
|
-
// Show the content (truncate if very long)
|
|
116
104
|
const content = result.content.length > 2000
|
|
117
105
|
? result.content.substring(0, 2000) + '... (truncated)'
|
|
118
106
|
: result.content;
|
|
119
107
|
lines.push(content);
|
|
120
108
|
lines.push('');
|
|
121
109
|
}
|
|
122
|
-
// Add sources footer
|
|
123
110
|
lines.push('---');
|
|
124
111
|
const personalSources = Array.from(sources.values()).filter(s => !s.isTeam);
|
|
125
112
|
const teamSources = Array.from(sources.values()).filter(s => s.isTeam);
|
|
@@ -141,4 +128,3 @@ export async function handleQueryKnowledgeBase(api, args) {
|
|
|
141
128
|
};
|
|
142
129
|
}
|
|
143
130
|
}
|
|
144
|
-
//# sourceMappingURL=query-knowledge-base.js.map
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
* Rename or move a file in a multi-file FlowDot app.
|
|
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 renameAppFileTool: Tool;
|
|
10
4
|
export declare function handleRenameAppFile(client: FlowDotApiClient, args: Record<string, unknown>): Promise<CallToolResult>;
|
|
11
|
-
//# sourceMappingURL=rename-app-file.d.ts.map
|
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* rename_app_file Tool
|
|
3
|
-
*
|
|
4
|
-
* Rename or move a file in a multi-file FlowDot app.
|
|
5
|
-
* Required scope: apps:manage
|
|
6
|
-
*/
|
|
7
1
|
export const renameAppFileTool = {
|
|
8
2
|
name: 'rename_app_file',
|
|
9
|
-
description: `Rename or move a file within a multi-file FlowDot app.
|
|
10
|
-
|
|
11
|
-
Changes the file's path while preserving its content. Can be used to:
|
|
12
|
-
- Rename a file (e.g., "Button.jsx" -> "PrimaryButton.jsx")
|
|
13
|
-
- Move to a different directory (e.g., "Button.jsx" -> "components/Button.jsx")
|
|
14
|
-
- Both rename and move at once
|
|
15
|
-
|
|
16
|
-
File constraints:
|
|
17
|
-
- Allowed extensions: jsx, js, tsx, ts, css, json, md
|
|
18
|
-
- No path traversal (../) allowed
|
|
3
|
+
description: `Rename or move a file within a multi-file FlowDot app.
|
|
4
|
+
|
|
5
|
+
Changes the file's path while preserving its content. Can be used to:
|
|
6
|
+
- Rename a file (e.g., "Button.jsx" -> "PrimaryButton.jsx")
|
|
7
|
+
- Move to a different directory (e.g., "Button.jsx" -> "components/Button.jsx")
|
|
8
|
+
- Both rename and move at once
|
|
9
|
+
|
|
10
|
+
File constraints:
|
|
11
|
+
- Allowed extensions: jsx, js, tsx, ts, css, json, md
|
|
12
|
+
- No path traversal (../) allowed
|
|
19
13
|
- No hidden files (starting with .)`,
|
|
20
14
|
inputSchema: {
|
|
21
15
|
type: 'object',
|
|
@@ -42,12 +36,12 @@ export async function handleRenameAppFile(client, args) {
|
|
|
42
36
|
const filePath = String(args.file_path);
|
|
43
37
|
const newPath = String(args.new_path);
|
|
44
38
|
const result = await client.renameAppFile(appId, filePath, { new_path: newPath });
|
|
45
|
-
const text = `# File Renamed Successfully
|
|
46
|
-
|
|
47
|
-
**Old Path:** ${filePath}
|
|
48
|
-
**New Path:** ${result.path}
|
|
49
|
-
**App:** ${appId}
|
|
50
|
-
|
|
39
|
+
const text = `# File Renamed Successfully
|
|
40
|
+
|
|
41
|
+
**Old Path:** ${filePath}
|
|
42
|
+
**New Path:** ${result.path}
|
|
43
|
+
**App:** ${appId}
|
|
44
|
+
|
|
51
45
|
The file has been renamed/moved successfully.`;
|
|
52
46
|
return {
|
|
53
47
|
content: [{ type: 'text', text }],
|
|
@@ -61,4 +55,3 @@ The file has been renamed/moved successfully.`;
|
|
|
61
55
|
};
|
|
62
56
|
}
|
|
63
57
|
}
|
|
64
|
-
//# sourceMappingURL=rename-app-file.js.map
|