@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.
Files changed (514) hide show
  1. package/LICENSE +45 -21
  2. package/README.md +439 -162
  3. package/bin/flowdot-mcp.js +15 -15
  4. package/dist/api-client.d.ts +0 -6
  5. package/dist/api-client.js +0 -6
  6. package/dist/index.d.ts +0 -23
  7. package/dist/index.js +0 -24
  8. package/dist/resources/index.d.ts +1 -11
  9. package/dist/resources/index.js +2882 -2127
  10. package/dist/server.d.ts +0 -12
  11. package/dist/server.js +23 -21
  12. package/dist/tools/add-connection.d.ts +2 -8
  13. package/dist/tools/add-connection.js +0 -6
  14. package/dist/tools/add-custom-node-comment.d.ts +2 -9
  15. package/dist/tools/add-custom-node-comment.js +0 -7
  16. package/dist/tools/add-node.d.ts +2 -8
  17. package/dist/tools/add-node.js +0 -6
  18. package/dist/tools/add-recipe-step.d.ts +3 -9
  19. package/dist/tools/add-recipe-step.js +95 -101
  20. package/dist/tools/add-recipe-store.d.ts +2 -8
  21. package/dist/tools/add-recipe-store.js +30 -36
  22. package/dist/tools/add-shared-result-comment.d.ts +2 -8
  23. package/dist/tools/add-shared-result-comment.js +0 -7
  24. package/dist/tools/add-workflow-comment.d.ts +2 -8
  25. package/dist/tools/add-workflow-comment.js +0 -7
  26. package/dist/tools/agent-chat.d.ts +2 -8
  27. package/dist/tools/agent-chat.js +0 -10
  28. package/dist/tools/agent-toolkits.d.ts +3 -10
  29. package/dist/tools/agent-toolkits.js +294 -336
  30. package/dist/tools/append-app-code.d.ts +2 -10
  31. package/dist/tools/append-app-code.js +27 -35
  32. package/dist/tools/browse-recipes.d.ts +2 -8
  33. package/dist/tools/browse-recipes.js +0 -7
  34. package/dist/tools/cancel-execution.d.ts +2 -8
  35. package/dist/tools/cancel-execution.js +0 -7
  36. package/dist/tools/clone-app.d.ts +2 -9
  37. package/dist/tools/clone-app.js +20 -27
  38. package/dist/tools/copy-custom-node.d.ts +2 -9
  39. package/dist/tools/copy-custom-node.js +0 -7
  40. package/dist/tools/create-app-file.d.ts +2 -9
  41. package/dist/tools/create-app-file.js +18 -25
  42. package/dist/tools/create-app.d.ts +2 -9
  43. package/dist/tools/create-app.js +123 -130
  44. package/dist/tools/create-custom-node.d.ts +3 -10
  45. package/dist/tools/create-custom-node.js +66 -75
  46. package/dist/tools/create-input-preset.d.ts +2 -8
  47. package/dist/tools/create-input-preset.js +0 -7
  48. package/dist/tools/create-knowledge-category.d.ts +2 -9
  49. package/dist/tools/create-knowledge-category.js +0 -7
  50. package/dist/tools/create-recipe.d.ts +2 -8
  51. package/dist/tools/create-recipe.js +21 -27
  52. package/dist/tools/create-shared-result.d.ts +2 -8
  53. package/dist/tools/create-shared-result.js +0 -6
  54. package/dist/tools/create-workflow.d.ts +2 -8
  55. package/dist/tools/create-workflow.js +0 -6
  56. package/dist/tools/delete-app-file.d.ts +2 -9
  57. package/dist/tools/delete-app-file.js +9 -16
  58. package/dist/tools/delete-app.d.ts +2 -9
  59. package/dist/tools/delete-app.js +3 -10
  60. package/dist/tools/delete-connection.d.ts +2 -8
  61. package/dist/tools/delete-connection.js +0 -7
  62. package/dist/tools/delete-custom-node.d.ts +2 -9
  63. package/dist/tools/delete-custom-node.js +0 -7
  64. package/dist/tools/delete-input-preset.d.ts +2 -8
  65. package/dist/tools/delete-input-preset.js +0 -6
  66. package/dist/tools/delete-knowledge-category.d.ts +2 -8
  67. package/dist/tools/delete-knowledge-category.js +0 -6
  68. package/dist/tools/delete-knowledge-document.d.ts +2 -8
  69. package/dist/tools/delete-knowledge-document.js +0 -6
  70. package/dist/tools/delete-node.d.ts +2 -8
  71. package/dist/tools/delete-node.js +0 -7
  72. package/dist/tools/delete-recipe-step.d.ts +2 -8
  73. package/dist/tools/delete-recipe-step.js +2 -8
  74. package/dist/tools/delete-recipe-store.d.ts +2 -8
  75. package/dist/tools/delete-recipe-store.js +2 -8
  76. package/dist/tools/delete-recipe.d.ts +2 -8
  77. package/dist/tools/delete-recipe.js +0 -6
  78. package/dist/tools/delete-workflow.d.ts +2 -8
  79. package/dist/tools/delete-workflow.js +0 -7
  80. package/dist/tools/duplicate-workflow.d.ts +2 -8
  81. package/dist/tools/duplicate-workflow.js +0 -6
  82. package/dist/tools/edit-app-code.d.ts +2 -10
  83. package/dist/tools/edit-app-code.js +34 -43
  84. package/dist/tools/execute-workflow.d.ts +2 -8
  85. package/dist/tools/execute-workflow.js +0 -11
  86. package/dist/tools/favorite-custom-node.d.ts +2 -9
  87. package/dist/tools/favorite-custom-node.js +0 -8
  88. package/dist/tools/favorite-recipe.d.ts +2 -8
  89. package/dist/tools/favorite-recipe.js +2 -8
  90. package/dist/tools/favorite-workflow.d.ts +2 -8
  91. package/dist/tools/favorite-workflow.js +0 -7
  92. package/dist/tools/fork-recipe.d.ts +2 -8
  93. package/dist/tools/fork-recipe.js +7 -13
  94. package/dist/tools/get-app-file.d.ts +2 -9
  95. package/dist/tools/get-app-file.js +20 -28
  96. package/dist/tools/get-app-template.d.ts +1 -8
  97. package/dist/tools/get-app-template.js +827 -834
  98. package/dist/tools/get-app.d.ts +2 -9
  99. package/dist/tools/get-app.js +54 -66
  100. package/dist/tools/get-custom-node-comments.d.ts +2 -9
  101. package/dist/tools/get-custom-node-comments.js +0 -7
  102. package/dist/tools/get-custom-node-template.d.ts +1 -8
  103. package/dist/tools/get-custom-node-template.js +60 -73
  104. package/dist/tools/get-custom-node.d.ts +2 -9
  105. package/dist/tools/get-custom-node.js +0 -12
  106. package/dist/tools/get-execution-history.d.ts +2 -8
  107. package/dist/tools/get-execution-history.js +0 -7
  108. package/dist/tools/get-execution.d.ts +2 -8
  109. package/dist/tools/get-execution.js +0 -7
  110. package/dist/tools/get-input-preset.d.ts +2 -8
  111. package/dist/tools/get-input-preset.js +0 -7
  112. package/dist/tools/get-knowledge-document-content.d.ts +6 -0
  113. package/dist/tools/get-knowledge-document-content.js +42 -0
  114. package/dist/tools/get-knowledge-document.d.ts +2 -8
  115. package/dist/tools/get-knowledge-document.js +0 -6
  116. package/dist/tools/get-knowledge-storage.d.ts +2 -8
  117. package/dist/tools/get-knowledge-storage.js +0 -7
  118. package/dist/tools/get-node-connections.d.ts +2 -8
  119. package/dist/tools/get-node-connections.js +0 -7
  120. package/dist/tools/get-node-schema.d.ts +2 -8
  121. package/dist/tools/get-node-schema.js +0 -13
  122. package/dist/tools/get-public-workflows.d.ts +2 -8
  123. package/dist/tools/get-public-workflows.js +0 -7
  124. package/dist/tools/get-recipe-definition.d.ts +2 -10
  125. package/dist/tools/get-recipe-definition.js +1 -10
  126. package/dist/tools/get-recipe.d.ts +2 -8
  127. package/dist/tools/get-recipe.js +10 -19
  128. package/dist/tools/get-shared-result-comments.d.ts +2 -8
  129. package/dist/tools/get-shared-result-comments.js +0 -6
  130. package/dist/tools/get-shared-result.d.ts +2 -8
  131. package/dist/tools/get-shared-result.js +0 -8
  132. package/dist/tools/get-workflow-comments.d.ts +2 -8
  133. package/dist/tools/get-workflow-comments.js +0 -7
  134. package/dist/tools/get-workflow-details.d.ts +2 -8
  135. package/dist/tools/get-workflow-details.js +0 -8
  136. package/dist/tools/get-workflow-graph.d.ts +2 -8
  137. package/dist/tools/get-workflow-graph.js +1 -10
  138. package/dist/tools/get-workflow-inputs-schema.d.ts +2 -8
  139. package/dist/tools/get-workflow-inputs-schema.js +0 -7
  140. package/dist/tools/get-workflow-metrics.d.ts +2 -8
  141. package/dist/tools/get-workflow-metrics.js +1 -9
  142. package/dist/tools/get-workflow-public-url.d.ts +2 -8
  143. package/dist/tools/get-workflow-public-url.js +0 -6
  144. package/dist/tools/get-workflow-tags.d.ts +2 -8
  145. package/dist/tools/get-workflow-tags.js +0 -7
  146. package/dist/tools/index.d.ts +2 -11
  147. package/dist/tools/index.js +12 -139
  148. package/dist/tools/insert-app-code.d.ts +2 -10
  149. package/dist/tools/insert-app-code.js +35 -43
  150. package/dist/tools/link-app-workflow.d.ts +2 -9
  151. package/dist/tools/link-app-workflow.js +21 -28
  152. package/dist/tools/link-recipe.d.ts +2 -8
  153. package/dist/tools/link-recipe.js +18 -24
  154. package/dist/tools/list-app-files.d.ts +2 -9
  155. package/dist/tools/list-app-files.js +10 -20
  156. package/dist/tools/list-apps.d.ts +2 -9
  157. package/dist/tools/list-apps.js +8 -15
  158. package/dist/tools/list-available-nodes.d.ts +2 -8
  159. package/dist/tools/list-available-nodes.js +0 -13
  160. package/dist/tools/list-custom-nodes.d.ts +2 -9
  161. package/dist/tools/list-custom-nodes.js +0 -7
  162. package/dist/tools/list-input-presets.d.ts +2 -8
  163. package/dist/tools/list-input-presets.js +0 -7
  164. package/dist/tools/list-knowledge-categories.d.ts +2 -9
  165. package/dist/tools/list-knowledge-categories.js +0 -11
  166. package/dist/tools/list-knowledge-documents.d.ts +2 -9
  167. package/dist/tools/list-knowledge-documents.js +0 -10
  168. package/dist/tools/list-recipe-steps.d.ts +2 -8
  169. package/dist/tools/list-recipe-steps.js +1 -8
  170. package/dist/tools/list-recipe-stores.d.ts +2 -8
  171. package/dist/tools/list-recipe-stores.js +0 -6
  172. package/dist/tools/list-recipes.d.ts +2 -8
  173. package/dist/tools/list-recipes.js +22 -31
  174. package/dist/tools/list-shared-results.d.ts +2 -8
  175. package/dist/tools/list-shared-results.js +0 -6
  176. package/dist/tools/list-user-teams.d.ts +2 -9
  177. package/dist/tools/list-user-teams.js +0 -7
  178. package/dist/tools/list-workflows.d.ts +2 -8
  179. package/dist/tools/list-workflows.js +0 -8
  180. package/dist/tools/move-document-to-category.d.ts +2 -8
  181. package/dist/tools/move-document-to-category.js +0 -6
  182. package/dist/tools/patch-knowledge-document-section.d.ts +8 -0
  183. package/dist/tools/patch-knowledge-document-section.js +47 -0
  184. package/dist/tools/prepend-app-code.d.ts +2 -10
  185. package/dist/tools/prepend-app-code.js +23 -31
  186. package/dist/tools/publish-app.d.ts +2 -9
  187. package/dist/tools/publish-app.js +7 -14
  188. package/dist/tools/query-knowledge-base.d.ts +2 -9
  189. package/dist/tools/query-knowledge-base.js +1 -15
  190. package/dist/tools/rename-app-file.d.ts +2 -9
  191. package/dist/tools/rename-app-file.js +16 -23
  192. package/dist/tools/reprocess-document.d.ts +2 -8
  193. package/dist/tools/reprocess-document.js +0 -6
  194. package/dist/tools/retry-execution.d.ts +2 -8
  195. package/dist/tools/retry-execution.js +0 -6
  196. package/dist/tools/search-apps.d.ts +2 -9
  197. package/dist/tools/search-apps.js +13 -20
  198. package/dist/tools/search-public-custom-nodes.d.ts +2 -9
  199. package/dist/tools/search-public-custom-nodes.js +0 -7
  200. package/dist/tools/search-workflows.d.ts +2 -8
  201. package/dist/tools/search-workflows.js +0 -8
  202. package/dist/tools/search.d.ts +2 -8
  203. package/dist/tools/search.js +1 -7
  204. package/dist/tools/set-app-entry-file.d.ts +2 -9
  205. package/dist/tools/set-app-entry-file.js +13 -20
  206. package/dist/tools/set-workflow-tags.d.ts +2 -8
  207. package/dist/tools/set-workflow-tags.js +0 -7
  208. package/dist/tools/stream-execution.d.ts +2 -9
  209. package/dist/tools/stream-execution.js +0 -8
  210. package/dist/tools/toggle-community-inputs.d.ts +2 -8
  211. package/dist/tools/toggle-community-inputs.js +0 -6
  212. package/dist/tools/toggle-custom-node-visibility.d.ts +2 -9
  213. package/dist/tools/toggle-custom-node-visibility.js +0 -8
  214. package/dist/tools/toggle-workflow-public.d.ts +2 -8
  215. package/dist/tools/toggle-workflow-public.js +0 -7
  216. package/dist/tools/transfer-document-ownership.d.ts +2 -9
  217. package/dist/tools/transfer-document-ownership.js +0 -7
  218. package/dist/tools/unlink-app-workflow.d.ts +2 -9
  219. package/dist/tools/unlink-app-workflow.js +2 -9
  220. package/dist/tools/unpublish-app.d.ts +2 -9
  221. package/dist/tools/unpublish-app.js +2 -9
  222. package/dist/tools/update-app-file.d.ts +2 -9
  223. package/dist/tools/update-app-file.js +15 -22
  224. package/dist/tools/update-app.d.ts +2 -9
  225. package/dist/tools/update-app.js +14 -21
  226. package/dist/tools/update-custom-node.d.ts +3 -10
  227. package/dist/tools/update-custom-node.js +11 -24
  228. package/dist/tools/update-input-preset.d.ts +2 -8
  229. package/dist/tools/update-input-preset.js +0 -7
  230. package/dist/tools/update-knowledge-category.d.ts +2 -8
  231. package/dist/tools/update-knowledge-category.js +0 -6
  232. package/dist/tools/update-knowledge-document-content.d.ts +7 -0
  233. package/dist/tools/update-knowledge-document-content.js +42 -0
  234. package/dist/tools/update-node.d.ts +2 -8
  235. package/dist/tools/update-node.js +0 -7
  236. package/dist/tools/update-recipe-step.d.ts +2 -8
  237. package/dist/tools/update-recipe-step.js +6 -12
  238. package/dist/tools/update-recipe-store.d.ts +2 -8
  239. package/dist/tools/update-recipe-store.js +5 -11
  240. package/dist/tools/update-recipe.d.ts +2 -8
  241. package/dist/tools/update-recipe.js +14 -20
  242. package/dist/tools/upload-document-from-url.d.ts +2 -9
  243. package/dist/tools/upload-document-from-url.js +0 -7
  244. package/dist/tools/upload-text-document.d.ts +2 -9
  245. package/dist/tools/upload-text-document.js +0 -7
  246. package/dist/tools/validate-workflow.d.ts +2 -8
  247. package/dist/tools/validate-workflow.js +0 -8
  248. package/dist/tools/vote-custom-node.d.ts +2 -9
  249. package/dist/tools/vote-custom-node.js +0 -7
  250. package/dist/tools/vote-input-preset.d.ts +2 -8
  251. package/dist/tools/vote-input-preset.js +0 -6
  252. package/dist/tools/vote-recipe.d.ts +2 -8
  253. package/dist/tools/vote-recipe.js +2 -8
  254. package/dist/tools/vote-shared-result.d.ts +2 -8
  255. package/dist/tools/vote-shared-result.js +0 -6
  256. package/dist/tools/vote-workflow.d.ts +2 -8
  257. package/dist/tools/vote-workflow.js +0 -6
  258. package/dist/types.d.ts +0 -6
  259. package/dist/types.js +0 -6
  260. package/dist/utils/script-validator.d.ts +1 -18
  261. package/dist/utils/script-validator.js +5 -44
  262. package/package.json +81 -62
  263. package/dist/api-client.d.ts.map +0 -1
  264. package/dist/api-client.js.map +0 -1
  265. package/dist/index.d.ts.map +0 -1
  266. package/dist/index.js.map +0 -1
  267. package/dist/resources/index.d.ts.map +0 -1
  268. package/dist/resources/index.js.map +0 -1
  269. package/dist/server.d.ts.map +0 -1
  270. package/dist/server.js.map +0 -1
  271. package/dist/tools/add-connection.d.ts.map +0 -1
  272. package/dist/tools/add-connection.js.map +0 -1
  273. package/dist/tools/add-custom-node-comment.d.ts.map +0 -1
  274. package/dist/tools/add-custom-node-comment.js.map +0 -1
  275. package/dist/tools/add-node.d.ts.map +0 -1
  276. package/dist/tools/add-node.js.map +0 -1
  277. package/dist/tools/add-recipe-step.d.ts.map +0 -1
  278. package/dist/tools/add-recipe-step.js.map +0 -1
  279. package/dist/tools/add-recipe-store.d.ts.map +0 -1
  280. package/dist/tools/add-recipe-store.js.map +0 -1
  281. package/dist/tools/add-shared-result-comment.d.ts.map +0 -1
  282. package/dist/tools/add-shared-result-comment.js.map +0 -1
  283. package/dist/tools/add-workflow-comment.d.ts.map +0 -1
  284. package/dist/tools/add-workflow-comment.js.map +0 -1
  285. package/dist/tools/agent-chat.d.ts.map +0 -1
  286. package/dist/tools/agent-chat.js.map +0 -1
  287. package/dist/tools/agent-toolkits.d.ts.map +0 -1
  288. package/dist/tools/agent-toolkits.js.map +0 -1
  289. package/dist/tools/append-app-code.d.ts.map +0 -1
  290. package/dist/tools/append-app-code.js.map +0 -1
  291. package/dist/tools/browse-recipes.d.ts.map +0 -1
  292. package/dist/tools/browse-recipes.js.map +0 -1
  293. package/dist/tools/cancel-execution.d.ts.map +0 -1
  294. package/dist/tools/cancel-execution.js.map +0 -1
  295. package/dist/tools/clone-app.d.ts.map +0 -1
  296. package/dist/tools/clone-app.js.map +0 -1
  297. package/dist/tools/copy-custom-node.d.ts.map +0 -1
  298. package/dist/tools/copy-custom-node.js.map +0 -1
  299. package/dist/tools/create-app-file.d.ts.map +0 -1
  300. package/dist/tools/create-app-file.js.map +0 -1
  301. package/dist/tools/create-app.d.ts.map +0 -1
  302. package/dist/tools/create-app.js.map +0 -1
  303. package/dist/tools/create-custom-node.d.ts.map +0 -1
  304. package/dist/tools/create-custom-node.js.map +0 -1
  305. package/dist/tools/create-input-preset.d.ts.map +0 -1
  306. package/dist/tools/create-input-preset.js.map +0 -1
  307. package/dist/tools/create-knowledge-category.d.ts.map +0 -1
  308. package/dist/tools/create-knowledge-category.js.map +0 -1
  309. package/dist/tools/create-recipe.d.ts.map +0 -1
  310. package/dist/tools/create-recipe.js.map +0 -1
  311. package/dist/tools/create-shared-result.d.ts.map +0 -1
  312. package/dist/tools/create-shared-result.js.map +0 -1
  313. package/dist/tools/create-workflow.d.ts.map +0 -1
  314. package/dist/tools/create-workflow.js.map +0 -1
  315. package/dist/tools/delete-app-file.d.ts.map +0 -1
  316. package/dist/tools/delete-app-file.js.map +0 -1
  317. package/dist/tools/delete-app.d.ts.map +0 -1
  318. package/dist/tools/delete-app.js.map +0 -1
  319. package/dist/tools/delete-connection.d.ts.map +0 -1
  320. package/dist/tools/delete-connection.js.map +0 -1
  321. package/dist/tools/delete-custom-node.d.ts.map +0 -1
  322. package/dist/tools/delete-custom-node.js.map +0 -1
  323. package/dist/tools/delete-input-preset.d.ts.map +0 -1
  324. package/dist/tools/delete-input-preset.js.map +0 -1
  325. package/dist/tools/delete-knowledge-category.d.ts.map +0 -1
  326. package/dist/tools/delete-knowledge-category.js.map +0 -1
  327. package/dist/tools/delete-knowledge-document.d.ts.map +0 -1
  328. package/dist/tools/delete-knowledge-document.js.map +0 -1
  329. package/dist/tools/delete-node.d.ts.map +0 -1
  330. package/dist/tools/delete-node.js.map +0 -1
  331. package/dist/tools/delete-recipe-step.d.ts.map +0 -1
  332. package/dist/tools/delete-recipe-step.js.map +0 -1
  333. package/dist/tools/delete-recipe-store.d.ts.map +0 -1
  334. package/dist/tools/delete-recipe-store.js.map +0 -1
  335. package/dist/tools/delete-recipe.d.ts.map +0 -1
  336. package/dist/tools/delete-recipe.js.map +0 -1
  337. package/dist/tools/delete-workflow.d.ts.map +0 -1
  338. package/dist/tools/delete-workflow.js.map +0 -1
  339. package/dist/tools/duplicate-workflow.d.ts.map +0 -1
  340. package/dist/tools/duplicate-workflow.js.map +0 -1
  341. package/dist/tools/edit-app-code.d.ts.map +0 -1
  342. package/dist/tools/edit-app-code.js.map +0 -1
  343. package/dist/tools/execute-workflow.d.ts.map +0 -1
  344. package/dist/tools/execute-workflow.js.map +0 -1
  345. package/dist/tools/favorite-custom-node.d.ts.map +0 -1
  346. package/dist/tools/favorite-custom-node.js.map +0 -1
  347. package/dist/tools/favorite-recipe.d.ts.map +0 -1
  348. package/dist/tools/favorite-recipe.js.map +0 -1
  349. package/dist/tools/favorite-workflow.d.ts.map +0 -1
  350. package/dist/tools/favorite-workflow.js.map +0 -1
  351. package/dist/tools/fork-recipe.d.ts.map +0 -1
  352. package/dist/tools/fork-recipe.js.map +0 -1
  353. package/dist/tools/get-app-file.d.ts.map +0 -1
  354. package/dist/tools/get-app-file.js.map +0 -1
  355. package/dist/tools/get-app-template.d.ts.map +0 -1
  356. package/dist/tools/get-app-template.js.map +0 -1
  357. package/dist/tools/get-app.d.ts.map +0 -1
  358. package/dist/tools/get-app.js.map +0 -1
  359. package/dist/tools/get-custom-node-comments.d.ts.map +0 -1
  360. package/dist/tools/get-custom-node-comments.js.map +0 -1
  361. package/dist/tools/get-custom-node-template.d.ts.map +0 -1
  362. package/dist/tools/get-custom-node-template.js.map +0 -1
  363. package/dist/tools/get-custom-node.d.ts.map +0 -1
  364. package/dist/tools/get-custom-node.js.map +0 -1
  365. package/dist/tools/get-execution-history.d.ts.map +0 -1
  366. package/dist/tools/get-execution-history.js.map +0 -1
  367. package/dist/tools/get-execution.d.ts.map +0 -1
  368. package/dist/tools/get-execution.js.map +0 -1
  369. package/dist/tools/get-input-preset.d.ts.map +0 -1
  370. package/dist/tools/get-input-preset.js.map +0 -1
  371. package/dist/tools/get-knowledge-document.d.ts.map +0 -1
  372. package/dist/tools/get-knowledge-document.js.map +0 -1
  373. package/dist/tools/get-knowledge-storage.d.ts.map +0 -1
  374. package/dist/tools/get-knowledge-storage.js.map +0 -1
  375. package/dist/tools/get-node-connections.d.ts.map +0 -1
  376. package/dist/tools/get-node-connections.js.map +0 -1
  377. package/dist/tools/get-node-schema.d.ts.map +0 -1
  378. package/dist/tools/get-node-schema.js.map +0 -1
  379. package/dist/tools/get-public-workflows.d.ts.map +0 -1
  380. package/dist/tools/get-public-workflows.js.map +0 -1
  381. package/dist/tools/get-recipe-definition.d.ts.map +0 -1
  382. package/dist/tools/get-recipe-definition.js.map +0 -1
  383. package/dist/tools/get-recipe.d.ts.map +0 -1
  384. package/dist/tools/get-recipe.js.map +0 -1
  385. package/dist/tools/get-shared-result-comments.d.ts.map +0 -1
  386. package/dist/tools/get-shared-result-comments.js.map +0 -1
  387. package/dist/tools/get-shared-result.d.ts.map +0 -1
  388. package/dist/tools/get-shared-result.js.map +0 -1
  389. package/dist/tools/get-workflow-comments.d.ts.map +0 -1
  390. package/dist/tools/get-workflow-comments.js.map +0 -1
  391. package/dist/tools/get-workflow-details.d.ts.map +0 -1
  392. package/dist/tools/get-workflow-details.js.map +0 -1
  393. package/dist/tools/get-workflow-graph.d.ts.map +0 -1
  394. package/dist/tools/get-workflow-graph.js.map +0 -1
  395. package/dist/tools/get-workflow-inputs-schema.d.ts.map +0 -1
  396. package/dist/tools/get-workflow-inputs-schema.js.map +0 -1
  397. package/dist/tools/get-workflow-metrics.d.ts.map +0 -1
  398. package/dist/tools/get-workflow-metrics.js.map +0 -1
  399. package/dist/tools/get-workflow-public-url.d.ts.map +0 -1
  400. package/dist/tools/get-workflow-public-url.js.map +0 -1
  401. package/dist/tools/get-workflow-tags.d.ts.map +0 -1
  402. package/dist/tools/get-workflow-tags.js.map +0 -1
  403. package/dist/tools/index.d.ts.map +0 -1
  404. package/dist/tools/index.js.map +0 -1
  405. package/dist/tools/insert-app-code.d.ts.map +0 -1
  406. package/dist/tools/insert-app-code.js.map +0 -1
  407. package/dist/tools/link-app-workflow.d.ts.map +0 -1
  408. package/dist/tools/link-app-workflow.js.map +0 -1
  409. package/dist/tools/link-recipe.d.ts.map +0 -1
  410. package/dist/tools/link-recipe.js.map +0 -1
  411. package/dist/tools/list-app-files.d.ts.map +0 -1
  412. package/dist/tools/list-app-files.js.map +0 -1
  413. package/dist/tools/list-apps.d.ts.map +0 -1
  414. package/dist/tools/list-apps.js.map +0 -1
  415. package/dist/tools/list-available-nodes.d.ts.map +0 -1
  416. package/dist/tools/list-available-nodes.js.map +0 -1
  417. package/dist/tools/list-custom-nodes.d.ts.map +0 -1
  418. package/dist/tools/list-custom-nodes.js.map +0 -1
  419. package/dist/tools/list-input-presets.d.ts.map +0 -1
  420. package/dist/tools/list-input-presets.js.map +0 -1
  421. package/dist/tools/list-knowledge-categories.d.ts.map +0 -1
  422. package/dist/tools/list-knowledge-categories.js.map +0 -1
  423. package/dist/tools/list-knowledge-documents.d.ts.map +0 -1
  424. package/dist/tools/list-knowledge-documents.js.map +0 -1
  425. package/dist/tools/list-recipe-steps.d.ts.map +0 -1
  426. package/dist/tools/list-recipe-steps.js.map +0 -1
  427. package/dist/tools/list-recipe-stores.d.ts.map +0 -1
  428. package/dist/tools/list-recipe-stores.js.map +0 -1
  429. package/dist/tools/list-recipes.d.ts.map +0 -1
  430. package/dist/tools/list-recipes.js.map +0 -1
  431. package/dist/tools/list-shared-results.d.ts.map +0 -1
  432. package/dist/tools/list-shared-results.js.map +0 -1
  433. package/dist/tools/list-user-teams.d.ts.map +0 -1
  434. package/dist/tools/list-user-teams.js.map +0 -1
  435. package/dist/tools/list-workflows.d.ts.map +0 -1
  436. package/dist/tools/list-workflows.js.map +0 -1
  437. package/dist/tools/move-document-to-category.d.ts.map +0 -1
  438. package/dist/tools/move-document-to-category.js.map +0 -1
  439. package/dist/tools/prepend-app-code.d.ts.map +0 -1
  440. package/dist/tools/prepend-app-code.js.map +0 -1
  441. package/dist/tools/publish-app.d.ts.map +0 -1
  442. package/dist/tools/publish-app.js.map +0 -1
  443. package/dist/tools/query-knowledge-base.d.ts.map +0 -1
  444. package/dist/tools/query-knowledge-base.js.map +0 -1
  445. package/dist/tools/rename-app-file.d.ts.map +0 -1
  446. package/dist/tools/rename-app-file.js.map +0 -1
  447. package/dist/tools/reprocess-document.d.ts.map +0 -1
  448. package/dist/tools/reprocess-document.js.map +0 -1
  449. package/dist/tools/retry-execution.d.ts.map +0 -1
  450. package/dist/tools/retry-execution.js.map +0 -1
  451. package/dist/tools/search-apps.d.ts.map +0 -1
  452. package/dist/tools/search-apps.js.map +0 -1
  453. package/dist/tools/search-public-custom-nodes.d.ts.map +0 -1
  454. package/dist/tools/search-public-custom-nodes.js.map +0 -1
  455. package/dist/tools/search-workflows.d.ts.map +0 -1
  456. package/dist/tools/search-workflows.js.map +0 -1
  457. package/dist/tools/search.d.ts.map +0 -1
  458. package/dist/tools/search.js.map +0 -1
  459. package/dist/tools/set-app-entry-file.d.ts.map +0 -1
  460. package/dist/tools/set-app-entry-file.js.map +0 -1
  461. package/dist/tools/set-workflow-tags.d.ts.map +0 -1
  462. package/dist/tools/set-workflow-tags.js.map +0 -1
  463. package/dist/tools/stream-execution.d.ts.map +0 -1
  464. package/dist/tools/stream-execution.js.map +0 -1
  465. package/dist/tools/toggle-community-inputs.d.ts.map +0 -1
  466. package/dist/tools/toggle-community-inputs.js.map +0 -1
  467. package/dist/tools/toggle-custom-node-visibility.d.ts.map +0 -1
  468. package/dist/tools/toggle-custom-node-visibility.js.map +0 -1
  469. package/dist/tools/toggle-workflow-public.d.ts.map +0 -1
  470. package/dist/tools/toggle-workflow-public.js.map +0 -1
  471. package/dist/tools/transfer-document-ownership.d.ts.map +0 -1
  472. package/dist/tools/transfer-document-ownership.js.map +0 -1
  473. package/dist/tools/unlink-app-workflow.d.ts.map +0 -1
  474. package/dist/tools/unlink-app-workflow.js.map +0 -1
  475. package/dist/tools/unpublish-app.d.ts.map +0 -1
  476. package/dist/tools/unpublish-app.js.map +0 -1
  477. package/dist/tools/update-app-file.d.ts.map +0 -1
  478. package/dist/tools/update-app-file.js.map +0 -1
  479. package/dist/tools/update-app.d.ts.map +0 -1
  480. package/dist/tools/update-app.js.map +0 -1
  481. package/dist/tools/update-custom-node.d.ts.map +0 -1
  482. package/dist/tools/update-custom-node.js.map +0 -1
  483. package/dist/tools/update-input-preset.d.ts.map +0 -1
  484. package/dist/tools/update-input-preset.js.map +0 -1
  485. package/dist/tools/update-knowledge-category.d.ts.map +0 -1
  486. package/dist/tools/update-knowledge-category.js.map +0 -1
  487. package/dist/tools/update-node.d.ts.map +0 -1
  488. package/dist/tools/update-node.js.map +0 -1
  489. package/dist/tools/update-recipe-step.d.ts.map +0 -1
  490. package/dist/tools/update-recipe-step.js.map +0 -1
  491. package/dist/tools/update-recipe-store.d.ts.map +0 -1
  492. package/dist/tools/update-recipe-store.js.map +0 -1
  493. package/dist/tools/update-recipe.d.ts.map +0 -1
  494. package/dist/tools/update-recipe.js.map +0 -1
  495. package/dist/tools/upload-document-from-url.d.ts.map +0 -1
  496. package/dist/tools/upload-document-from-url.js.map +0 -1
  497. package/dist/tools/upload-text-document.d.ts.map +0 -1
  498. package/dist/tools/upload-text-document.js.map +0 -1
  499. package/dist/tools/validate-workflow.d.ts.map +0 -1
  500. package/dist/tools/validate-workflow.js.map +0 -1
  501. package/dist/tools/vote-custom-node.d.ts.map +0 -1
  502. package/dist/tools/vote-custom-node.js.map +0 -1
  503. package/dist/tools/vote-input-preset.d.ts.map +0 -1
  504. package/dist/tools/vote-input-preset.js.map +0 -1
  505. package/dist/tools/vote-recipe.d.ts.map +0 -1
  506. package/dist/tools/vote-recipe.js.map +0 -1
  507. package/dist/tools/vote-shared-result.d.ts.map +0 -1
  508. package/dist/tools/vote-shared-result.js.map +0 -1
  509. package/dist/tools/vote-workflow.d.ts.map +0 -1
  510. package/dist/tools/vote-workflow.js.map +0 -1
  511. package/dist/types.d.ts.map +0 -1
  512. package/dist/types.js.map +0 -1
  513. package/dist/utils/script-validator.d.ts.map +0 -1
  514. package/dist/utils/script-validator.js.map +0 -1
@@ -1,11 +1,4 @@
1
- /**
2
- * get_app Tool
3
- *
4
- * Get detailed information about a specific app including its code.
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 getAppTool: Tool;
10
4
  export declare function handleGetApp(client: FlowDotApiClient, args: Record<string, unknown>): Promise<CallToolResult>;
11
- //# sourceMappingURL=get-app.d.ts.map
@@ -1,21 +1,15 @@
1
- /**
2
- * get_app Tool
3
- *
4
- * Get detailed information about a specific app including its code.
5
- * Required scope: apps:read
6
- */
7
1
  export const getAppTool = {
8
2
  name: 'get_app',
9
- description: `Get detailed information about a FlowDot app, including its React code and linked workflows.
10
-
11
- Apps are React frontend applications that can optionally call workflows as backends.
12
-
13
- Returns the full app details including:
14
- - Name, description, category, tags
15
- - React code (JSX/TSX)
16
- - Mobile code (if available)
17
- - Configuration
18
- - Linked workflows
3
+ description: `Get detailed information about a FlowDot app, including its React code and linked workflows.
4
+
5
+ Apps are React frontend applications that can optionally call workflows as backends.
6
+
7
+ Returns the full app details including:
8
+ - Name, description, category, tags
9
+ - React code (JSX/TSX)
10
+ - Mobile code (if available)
11
+ - Configuration
12
+ - Linked workflows
19
13
  - Usage statistics`,
20
14
  inputSchema: {
21
15
  type: 'object',
@@ -32,53 +26,48 @@ export async function handleGetApp(client, args) {
32
26
  try {
33
27
  const appId = String(args.app_id);
34
28
  const app = await client.getApp(appId);
35
- // Format linked workflows
36
29
  let workflowsSection = '';
37
30
  if (app.workflows && app.workflows.length > 0) {
38
31
  const workflowList = app.workflows.map((w) => {
39
32
  const alias = w.alias ? ` (alias: ${w.alias})` : '';
40
33
  return ` - ${w.name} (${w.hash})${alias}`;
41
34
  });
42
- workflowsSection = `
43
- ## Linked Workflows
44
- ${workflowList.join('\n')}
45
-
46
- To invoke workflows from your app code, use:
47
- \`\`\`javascript
48
- const result = await invokeWorkflow('${app.workflows[0].hash}', { input: 'value' });
49
- \`\`\`
35
+ workflowsSection = `
36
+ ## Linked Workflows
37
+ ${workflowList.join('\n')}
38
+
39
+ To invoke workflows from your app code, use:
40
+ \`\`\`javascript
41
+ const result = await invokeWorkflow('${app.workflows[0].hash}', { input: 'value' });
42
+ \`\`\`
50
43
  `;
51
44
  }
52
- // Format tags
53
45
  const tags = app.tags?.length ? app.tags.join(', ') : 'None';
54
- // Format code section
55
46
  let codeSection = '';
56
47
  if (app.code) {
57
- codeSection = `
58
- ## App Code
59
- \`\`\`jsx
60
- ${app.code}
61
- \`\`\`
48
+ codeSection = `
49
+ ## App Code
50
+ \`\`\`jsx
51
+ ${app.code}
52
+ \`\`\`
62
53
  `;
63
54
  }
64
- // Format mobile code if exists
65
55
  let mobileCodeSection = '';
66
56
  if (app.mobile_code) {
67
- mobileCodeSection = `
68
- ## Mobile Code
69
- \`\`\`jsx
70
- ${app.mobile_code}
71
- \`\`\`
57
+ mobileCodeSection = `
58
+ ## Mobile Code
59
+ \`\`\`jsx
60
+ ${app.mobile_code}
61
+ \`\`\`
72
62
  `;
73
63
  }
74
- // Format config if exists
75
64
  let configSection = '';
76
65
  if (app.config && Object.keys(app.config).length > 0) {
77
- configSection = `
78
- ## Configuration
79
- \`\`\`json
80
- ${JSON.stringify(app.config, null, 2)}
81
- \`\`\`
66
+ configSection = `
67
+ ## Configuration
68
+ \`\`\`json
69
+ ${JSON.stringify(app.config, null, 2)}
70
+ \`\`\`
82
71
  `;
83
72
  }
84
73
  const badges = [];
@@ -87,27 +76,27 @@ ${JSON.stringify(app.config, null, 2)}
87
76
  if (app.is_featured)
88
77
  badges.push('Featured');
89
78
  const badgeStr = badges.length ? ` [${badges.join(', ')}]` : '';
90
- const text = `# ${app.name}${badgeStr}
91
-
92
- **ID:** ${app.id}
93
- **Status:** ${app.is_public ? 'Public' : 'Private'}
94
- **Category:** ${app.category || 'Uncategorized'}
95
- **Tags:** ${tags}
96
- **Mobile Compatible:** ${app.mobile_compatible ? 'Yes' : 'No'}
97
- **Can Edit:** ${app.can_edit ? 'Yes' : 'No'}
98
-
99
- ## Description
100
- ${app.description || 'No description provided.'}
101
-
102
- ## Statistics
103
- - Upvotes: ${app.upvotes} | Downvotes: ${app.downvotes}
104
- - Executions: ${app.execution_count}
105
- - Clones: ${app.clone_count}
106
- - Views: ${app.view_count || 0}
107
-
108
- **Created:** ${app.created_at}
109
- **Updated:** ${app.updated_at}
110
- ${app.published_at ? `**Published:** ${app.published_at}` : ''}
79
+ const text = `# ${app.name}${badgeStr}
80
+
81
+ **ID:** ${app.id}
82
+ **Status:** ${app.is_public ? 'Public' : 'Private'}
83
+ **Category:** ${app.category || 'Uncategorized'}
84
+ **Tags:** ${tags}
85
+ **Mobile Compatible:** ${app.mobile_compatible ? 'Yes' : 'No'}
86
+ **Can Edit:** ${app.can_edit ? 'Yes' : 'No'}
87
+
88
+ ## Description
89
+ ${app.description || 'No description provided.'}
90
+
91
+ ## Statistics
92
+ - Upvotes: ${app.upvotes} | Downvotes: ${app.downvotes}
93
+ - Executions: ${app.execution_count}
94
+ - Clones: ${app.clone_count}
95
+ - Views: ${app.view_count || 0}
96
+
97
+ **Created:** ${app.created_at}
98
+ **Updated:** ${app.updated_at}
99
+ ${app.published_at ? `**Published:** ${app.published_at}` : ''}
111
100
  ${workflowsSection}${codeSection}${mobileCodeSection}${configSection}`;
112
101
  return {
113
102
  content: [{ type: 'text', text }],
@@ -121,4 +110,3 @@ ${workflowsSection}${codeSection}${mobileCodeSection}${configSection}`;
121
110
  };
122
111
  }
123
112
  }
124
- //# sourceMappingURL=get-app.js.map
@@ -1,13 +1,6 @@
1
- /**
2
- * get_custom_node_comments MCP Tool
3
- *
4
- * Get comments and ratings for a custom node.
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 getCustomNodeCommentsTool: Tool;
10
4
  export declare function handleGetCustomNodeComments(api: FlowDotApiClient, args: {
11
5
  node_id: string;
12
6
  }): Promise<CallToolResult>;
13
- //# sourceMappingURL=get-custom-node-comments.d.ts.map
@@ -1,9 +1,3 @@
1
- /**
2
- * get_custom_node_comments MCP Tool
3
- *
4
- * Get comments and ratings for a custom node.
5
- * Scope: custom_nodes:read
6
- */
7
1
  export const getCustomNodeCommentsTool = {
8
2
  name: 'get_custom_node_comments',
9
3
  description: 'Get comments and ratings for a custom node.',
@@ -62,4 +56,3 @@ export async function handleGetCustomNodeComments(api, args) {
62
56
  };
63
57
  }
64
58
  }
65
- //# sourceMappingURL=get-custom-node-comments.js.map
@@ -1,10 +1,4 @@
1
- /**
2
- * get_custom_node_template MCP Tool
3
- *
4
- * Generate a working script template for a custom node.
5
- * This is a local tool - no API call needed.
6
- */
7
- import { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
1
+ import type { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
8
2
  interface InputDef {
9
3
  name: string;
10
4
  dataType: 'text' | 'number' | 'boolean' | 'json' | 'array' | 'any';
@@ -28,4 +22,3 @@ export declare function handleGetCustomNodeTemplate(args: {
28
22
  llm_enabled?: boolean;
29
23
  }): Promise<CallToolResult>;
30
24
  export {};
31
- //# sourceMappingURL=get-custom-node-template.d.ts.map
@@ -1,25 +1,19 @@
1
- /**
2
- * get_custom_node_template MCP Tool
3
- *
4
- * Generate a working script template for a custom node.
5
- * This is a local tool - no API call needed.
6
- */
7
1
  export const getCustomNodeTemplateTool = {
8
2
  name: 'get_custom_node_template',
9
- description: `Generate a working script template for a custom node based on inputs and outputs.
10
-
11
- Use this tool to get a correctly formatted script before creating a custom node.
12
- The generated template includes:
13
- - The required processData(inputs, properties, llm) function
14
- - Input variable declarations with proper defaults
15
- - Property access (if properties defined)
16
- - LLM call examples (if llm_enabled is true)
17
- - Return statement with all output names
18
-
19
- VALID DATA TYPES: text, number, boolean, json, array, any
20
-
21
- LLM CAPABILITY:
22
- Set llm_enabled: true to generate a template that includes llm.call() examples.
3
+ description: `Generate a working script template for a custom node based on inputs and outputs.
4
+
5
+ Use this tool to get a correctly formatted script before creating a custom node.
6
+ The generated template includes:
7
+ - The required processData(inputs, properties, llm) function
8
+ - Input variable declarations with proper defaults
9
+ - Property access (if properties defined)
10
+ - LLM call examples (if llm_enabled is true)
11
+ - Return statement with all output names
12
+
13
+ VALID DATA TYPES: text, number, boolean, json, array, any
14
+
15
+ LLM CAPABILITY:
16
+ Set llm_enabled: true to generate a template that includes llm.call() examples.
23
17
  When LLM is enabled, users will see Quick Select buttons to choose their AI model.`,
24
18
  inputSchema: {
25
19
  type: 'object',
@@ -99,7 +93,6 @@ function getDefaultValue(dataType) {
99
93
  export async function handleGetCustomNodeTemplate(args) {
100
94
  const lines = [];
101
95
  lines.push('function processData(inputs, properties, llm) {');
102
- // Add input declarations
103
96
  if (args.inputs.length > 0) {
104
97
  lines.push(' // Get inputs');
105
98
  for (const input of args.inputs) {
@@ -109,7 +102,6 @@ export async function handleGetCustomNodeTemplate(args) {
109
102
  }
110
103
  lines.push('');
111
104
  }
112
- // Add property declarations
113
105
  if (args.properties && args.properties.length > 0) {
114
106
  lines.push(' // Get properties');
115
107
  for (const prop of args.properties) {
@@ -119,7 +111,6 @@ export async function handleGetCustomNodeTemplate(args) {
119
111
  }
120
112
  lines.push('');
121
113
  }
122
- // Add LLM example if enabled
123
114
  if (args.llm_enabled) {
124
115
  lines.push(' // LLM call example (llm_enabled is true)');
125
116
  lines.push(' // Users will see Quick Select buttons to choose their AI model');
@@ -140,73 +131,69 @@ export async function handleGetCustomNodeTemplate(args) {
140
131
  lines.push(' // TODO: Add your logic here');
141
132
  lines.push('');
142
133
  }
143
- // Add return statement
144
134
  lines.push(' return {');
145
135
  for (let i = 0; i < args.outputs.length; i++) {
146
136
  const output = args.outputs[i];
147
137
  const comment = output.description ? ` // ${output.description}` : ` // ${output.dataType}`;
148
138
  const comma = i < args.outputs.length - 1 ? ',' : '';
149
- // Default return value based on first input or sensible default
150
139
  const returnVal = args.inputs.length > 0 ? args.inputs[0].name : getDefaultValue(output.dataType);
151
140
  lines.push(` ${output.name}: ${returnVal}${comma}${comment}`);
152
141
  }
153
142
  lines.push(' };');
154
143
  lines.push('}');
155
144
  const template = lines.join('\n');
156
- // Build response with explanation
157
- const response = `## Custom Node Script Template
158
-
159
- \`\`\`javascript
160
- ${template}
161
- \`\`\`
162
-
163
- ### Inputs Available:
164
- ${args.inputs.map((i) => `- \`inputs.${i.name}\` (${i.dataType})${i.description ? ` - ${i.description}` : ''}`).join('\n')}
165
-
166
- ### Outputs Expected:
167
- ${args.outputs.map((o) => `- \`${o.name}\` (${o.dataType})${o.description ? ` - ${o.description}` : ''}`).join('\n')}
145
+ const response = `## Custom Node Script Template
146
+
147
+ \`\`\`javascript
148
+ ${template}
149
+ \`\`\`
150
+
151
+ ### Inputs Available:
152
+ ${args.inputs.map((i) => `- \`inputs.${i.name}\` (${i.dataType})${i.description ? ` - ${i.description}` : ''}`).join('\n')}
153
+
154
+ ### Outputs Expected:
155
+ ${args.outputs.map((o) => `- \`${o.name}\` (${o.dataType})${o.description ? ` - ${o.description}` : ''}`).join('\n')}
168
156
  ${args.properties && args.properties.length > 0
169
- ? `
170
- ### Properties Available:
157
+ ? `
158
+ ### Properties Available:
171
159
  ${args.properties.map((p) => `- \`properties.${p.key}\` (${p.dataType})${p.description ? ` - ${p.description}` : ''}`).join('\n')}`
172
- : ''}
173
-
174
- ### Usage Notes:
175
- - The \`processData\` function is auto-invoked by the runtime
176
- - Return keys MUST match output names exactly (case-sensitive)
177
- - Available globals: console, JSON, Math, String.prototype.trim, Array.isArray
160
+ : ''}
161
+
162
+ ### Usage Notes:
163
+ - The \`processData\` function is auto-invoked by the runtime
164
+ - Return keys MUST match output names exactly (case-sensitive)
165
+ - Available globals: console, JSON, Math, String.prototype.trim, Array.isArray
178
166
  - No require/import, eval, process, global, or file system access${args.llm_enabled
179
- ? `
180
-
181
- ### LLM Capability (Enabled):
182
- When you create this node with \`llm_enabled: true\`:
183
- - Users see Quick Select buttons (FlowDot, Simple, Capable, Complex)
184
- - Your script can call \`llm.call()\` to make AI requests
185
-
186
- **llm.call() syntax:**
187
- \`\`\`javascript
188
- const result = llm.call({
189
- prompt: "Your prompt", // Required
190
- systemPrompt: "Instructions", // Optional
191
- temperature: 0.7, // Optional (0-2)
192
- maxTokens: 1000 // Optional
193
- });
194
- \`\`\`
195
-
196
- **Response structure:**
197
- \`\`\`javascript
198
- {
199
- success: boolean,
200
- response: string, // LLM's response
201
- error: string | null, // Error if failed
202
- provider: string,
203
- model: string,
204
- tokens: { prompt, response, total }
205
- }
167
+ ? `
168
+
169
+ ### LLM Capability (Enabled):
170
+ When you create this node with \`llm_enabled: true\`:
171
+ - Users see Quick Select buttons (FlowDot, Simple, Capable, Complex)
172
+ - Your script can call \`llm.call()\` to make AI requests
173
+
174
+ **llm.call() syntax:**
175
+ \`\`\`javascript
176
+ const result = llm.call({
177
+ prompt: "Your prompt", // Required
178
+ systemPrompt: "Instructions", // Optional
179
+ temperature: 0.7, // Optional (0-2)
180
+ maxTokens: 1000 // Optional
181
+ });
182
+ \`\`\`
183
+
184
+ **Response structure:**
185
+ \`\`\`javascript
186
+ {
187
+ success: boolean,
188
+ response: string, // LLM's response
189
+ error: string | null, // Error if failed
190
+ provider: string,
191
+ model: string,
192
+ tokens: { prompt, response, total }
193
+ }
206
194
  \`\`\``
207
195
  : ''}`;
208
196
  return {
209
197
  content: [{ type: 'text', text: response }],
210
198
  };
211
199
  }
212
- //# sourceMappingURL=get-custom-node-template.js.map
@@ -1,13 +1,6 @@
1
- /**
2
- * get_custom_node MCP Tool
3
- *
4
- * Get detailed information about a custom node including its script code.
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 getCustomNodeTool: Tool;
10
4
  export declare function handleGetCustomNode(api: FlowDotApiClient, args: {
11
5
  node_id: string;
12
6
  }): Promise<CallToolResult>;
13
- //# sourceMappingURL=get-custom-node.d.ts.map
@@ -1,9 +1,3 @@
1
- /**
2
- * get_custom_node MCP Tool
3
- *
4
- * Get detailed information about a custom node including its script code.
5
- * Scope: custom_nodes:read
6
- */
7
1
  export const getCustomNodeTool = {
8
2
  name: 'get_custom_node',
9
3
  description: 'Get detailed information about a custom node including inputs, outputs, properties, and script code.',
@@ -46,7 +40,6 @@ export async function handleGetCustomNode(api, args) {
46
40
  `- **Memory Limit:** ${node.memory_limit || 128}MB`,
47
41
  ``,
48
42
  ];
49
- // Inputs
50
43
  if (node.inputs && node.inputs.length > 0) {
51
44
  lines.push(`### Inputs`);
52
45
  for (const input of node.inputs) {
@@ -54,7 +47,6 @@ export async function handleGetCustomNode(api, args) {
54
47
  }
55
48
  lines.push(``);
56
49
  }
57
- // Outputs
58
50
  if (node.outputs && node.outputs.length > 0) {
59
51
  lines.push(`### Outputs`);
60
52
  for (const output of node.outputs) {
@@ -62,7 +54,6 @@ export async function handleGetCustomNode(api, args) {
62
54
  }
63
55
  lines.push(``);
64
56
  }
65
- // Properties
66
57
  if (node.properties && node.properties.length > 0) {
67
58
  lines.push(`### Properties`);
68
59
  for (const prop of node.properties) {
@@ -70,13 +61,11 @@ export async function handleGetCustomNode(api, args) {
70
61
  }
71
62
  lines.push(``);
72
63
  }
73
- // Tags
74
64
  if (node.tags && node.tags.length > 0) {
75
65
  lines.push(`### Tags`);
76
66
  lines.push(node.tags.join(', '));
77
67
  lines.push(``);
78
68
  }
79
- // Script code
80
69
  if (node.script_code) {
81
70
  lines.push(`### Script Code`);
82
71
  lines.push('```javascript');
@@ -95,4 +84,3 @@ export async function handleGetCustomNode(api, args) {
95
84
  };
96
85
  }
97
86
  }
98
- //# sourceMappingURL=get-custom-node.js.map
@@ -1,14 +1,8 @@
1
- /**
2
- * get_execution_history MCP Tool
3
- *
4
- * Gets past execution history 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 getExecutionHistoryTool: Tool;
9
4
  export declare function handleGetExecutionHistory(api: FlowDotApiClient, args: {
10
5
  workflow_id: string;
11
6
  page?: number;
12
7
  limit?: number;
13
8
  }): Promise<CallToolResult>;
14
- //# sourceMappingURL=get-execution-history.d.ts.map
@@ -1,8 +1,3 @@
1
- /**
2
- * get_execution_history MCP Tool
3
- *
4
- * Gets past execution history for a workflow.
5
- */
6
1
  export const getExecutionHistoryTool = {
7
2
  name: 'get_execution_history',
8
3
  description: 'Get past execution history for a workflow including timestamps, status, and duration.',
@@ -30,7 +25,6 @@ export const getExecutionHistoryTool = {
30
25
  export async function handleGetExecutionHistory(api, args) {
31
26
  try {
32
27
  const result = await api.getExecutionHistory(args.workflow_id, args.page, args.limit);
33
- // Handle unexpected response formats
34
28
  const executions = Array.isArray(result?.data) ? result.data : [];
35
29
  if (executions.length === 0) {
36
30
  return {
@@ -62,4 +56,3 @@ export async function handleGetExecutionHistory(api, args) {
62
56
  };
63
57
  }
64
58
  }
65
- //# sourceMappingURL=get-execution-history.js.map
@@ -1,12 +1,6 @@
1
- /**
2
- * get_execution_status MCP Tool
3
- *
4
- * Gets the status and results of a workflow execution.
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 getExecutionTool: Tool;
9
4
  export declare function handleGetExecution(api: FlowDotApiClient, args: {
10
5
  execution_id: string;
11
6
  }): Promise<CallToolResult>;
12
- //# sourceMappingURL=get-execution.d.ts.map
@@ -1,8 +1,3 @@
1
- /**
2
- * get_execution_status MCP Tool
3
- *
4
- * Gets the status and results of a workflow execution.
5
- */
6
1
  export const getExecutionTool = {
7
2
  name: 'get_execution_status',
8
3
  description: 'Get the status and results of a workflow execution. Use after execute_workflow with wait_for_completion=false.',
@@ -20,7 +15,6 @@ export const getExecutionTool = {
20
15
  export async function handleGetExecution(api, args) {
21
16
  try {
22
17
  const execution = await api.getExecution(args.execution_id);
23
- // Build status message
24
18
  let statusEmoji = '';
25
19
  switch (execution.status) {
26
20
  case 'completed':
@@ -78,4 +72,3 @@ export async function handleGetExecution(api, args) {
78
72
  };
79
73
  }
80
74
  }
81
- //# sourceMappingURL=get-execution.js.map
@@ -1,13 +1,7 @@
1
- /**
2
- * get_input_preset MCP Tool
3
- *
4
- * Gets details of a specific input preset.
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 getInputPresetTool: Tool;
9
4
  export declare function handleGetInputPreset(api: FlowDotApiClient, args: {
10
5
  workflow_id: string;
11
6
  preset_hash: string;
12
7
  }): Promise<CallToolResult>;
13
- //# sourceMappingURL=get-input-preset.d.ts.map
@@ -1,8 +1,3 @@
1
- /**
2
- * get_input_preset MCP Tool
3
- *
4
- * Gets details of a specific input preset.
5
- */
6
1
  export const getInputPresetTool = {
7
2
  name: 'get_input_preset',
8
3
  description: 'Get detailed information about a specific input preset (community input), including all input values.',
@@ -47,7 +42,6 @@ export async function handleGetInputPreset(api, args) {
47
42
  if (preset.can_edit) {
48
43
  lines.push('', '> You can edit this preset.');
49
44
  }
50
- // Show all input values
51
45
  if (preset.inputs && Object.keys(preset.inputs).length > 0) {
52
46
  lines.push('', '### Input Values');
53
47
  lines.push('```json');
@@ -66,4 +60,3 @@ export async function handleGetInputPreset(api, args) {
66
60
  };
67
61
  }
68
62
  }
69
- //# sourceMappingURL=get-input-preset.js.map
@@ -0,0 +1,6 @@
1
+ import type { Tool, CallToolResult } from '@modelcontextprotocol/sdk/types.js';
2
+ import type { FlowDotApiClient } from '../api-client.js';
3
+ export declare const getKnowledgeDocumentContentToolDef: Tool;
4
+ export declare function handleGetKnowledgeDocumentContent(api: FlowDotApiClient, args: {
5
+ document_id: number | string;
6
+ }): Promise<CallToolResult>;
@@ -0,0 +1,42 @@
1
+ export const getKnowledgeDocumentContentToolDef = {
2
+ name: 'get_knowledge_document_content',
3
+ description: 'Fetch the full raw text content of a knowledge base document by ID or hash. Use this when you need to read an entire document (for example, a stable reference doc like Values or Voice) rather than a RAG-style chunk retrieval. Returns the complete file content as it was uploaded, without chunking or relevance filtering. Only works for text-based documents (markdown, plain text, CSV, JSON).',
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
+ },
12
+ required: ['document_id'],
13
+ },
14
+ };
15
+ export async function handleGetKnowledgeDocumentContent(api, args) {
16
+ try {
17
+ const result = await api.getKnowledgeDocumentContent(args.document_id);
18
+ const lines = [
19
+ `## Document Content: ${result.title}`,
20
+ '',
21
+ `**ID:** ${result.id}`,
22
+ `**Hash:** ${result.hash}`,
23
+ `**MIME Type:** ${result.mime_type}`,
24
+ `**Size:** ${result.file_size_bytes} bytes`,
25
+ `**Status:** ${result.status}`,
26
+ '',
27
+ '### Content',
28
+ '',
29
+ result.content,
30
+ ];
31
+ return {
32
+ content: [{ type: 'text', text: lines.join('\n') }],
33
+ };
34
+ }
35
+ catch (error) {
36
+ const message = error instanceof Error ? error.message : 'Unknown error';
37
+ return {
38
+ content: [{ type: 'text', text: `Error getting document content: ${message}` }],
39
+ isError: true,
40
+ };
41
+ }
42
+ }
@@ -1,12 +1,6 @@
1
- /**
2
- * Get Knowledge Document Tool
3
- *
4
- * Gets detailed information about a specific document.
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 getKnowledgeDocumentToolDef: Tool;
9
4
  export declare function handleGetKnowledgeDocument(api: FlowDotApiClient, args: {
10
5
  document_id: number | string;
11
6
  }): Promise<CallToolResult>;
12
- //# sourceMappingURL=get-knowledge-document.d.ts.map