mirror of
https://github.com/baserow/baserow.git
synced 2026-12-06 17:28:38 +00:00
* feat(automation): share the workflow and node read tools MCP clients can find automations and read workflow graphs; workflows and nodes in another workspace are not found. * feat(mcp): label the automation tool groups * feat(automation): check automation formulas without a model Adds the workflow and node definitions to core so MCP can use them, with a formula check that needs no model. * fix(assistant): repair automation formulas after the nodes are written The model ran inside the write transaction (#6297), and Kuma's own write path didn't scope nodes and tables to the workspace. * feat(mcp): offer Kuma's automation tools * docs(mcp): list the automation tools * fix(automation): report values the node tools can't set These values were dropped or misapplied without telling the caller, who then assumed they were set. * fix(automation): keep node formulas runnable and updates non-destructive A ref in a previous_node path broke the workflow at run time and on import, and a typo in an update wiped a working value. * fix(automation): store the email body type as a choice The quoted value made emails go out as text/'html' and left the editor without a valid choice. * fix(assistant): let repaired formulas name nodes by their ref The generator sees each node's ref, but the repair write refused a formula that used it. * fix(assistant): stop repairing automation formulas when cancelled A cancel during the model call still wrote that node's formulas. * fix(assistant): keep a cancel and each field's repair apart in formula repair A generator error after a cancel was logged as a failed repair, and a missing field kept every repaired row value in formula_errors. * fix(automation): report a row_id or values a new row node can't take add_nodes dropped them silently where update_nodes reports them, so a create_row with a row_id looked like it acted on that row. * fix(automation): refuse a formula path the node doesn't output A condition like get('previous_node.<trigger>.Priority') parsed, so it was stored and its branch never matched. Kuma used to rewrite every condition, which hid this. * fix(automation): report what the node tools drop or misplace Values a node type takes no part of, a branch on a node that isn't a router, a repeated field and unchanged nodes were all reported as done. Text naming previous_node was read as a node path, and the builder lost its loose formula detection. * test(assistant): add evals for changing existing workflows The automation evals only created workflows, so add_nodes, update_nodes and delete_nodes were never exercised against a model. * fix(automation): list branches by label and keep a branch sent without a condition In the evals the model passed a branch uid as previous_node_ref, and listed unchanged branches in update_nodes without a condition, which was refused. * fix(automation): leave formula text in string literals alone Paths and $formula: inside quoted text were checked and rewritten as code. Field names are accepted in row paths since the row services read them too. A whole value written as one call with a space before ( is a formula again. * fix(automation): reload the graph after a node change rolls back The request's cached graph kept the rolled-back change and the next node saved it. A node given twice in update_nodes had its first formula repaired over the second. An email's body_type was reported as not set although it was. * fix(assistant): list nodes Kuma repaired in updated_nodes A node only the repair changed came back missing, so Kuma retried the update. The evals also check the email is still connected to the trigger.