Files
baserow/docs/development
alamin-br d5d93a12cb feat(mcp): add the dashboard tools (#6526)
* feat(mcp): add the dashboard tool groups

* feat(dashboard): share the dashboard list and create tools

* feat(dashboard): share the widget read tools

* feat(dashboard): share the widget write tools

* feat(mcp): offer the dashboard tools

* docs(mcp): list the dashboard tools

* fix(dashboard): keep chart series styles when a widget changes

Only the changed data source values are sent, and a series given at the same position keeps its id, so per-series chart types and colours survive. create_dashboards is capped at 20 names.

* fix(dashboard): address review of the dashboard tools

Chart aggregations, licence errors, series styles, clearing values, hidden items and
write permissions behaved differently from the UI and the automation tools.

* feat(assistant): let Kuma build dashboards

Kuma gets a dashboard mode with the shared widget tools, so it can add, change, read
and delete widgets and opens the dashboard after adding them.

* test(assistant): give the chart eval a premium licence

Charts need premium; without it Kuma asked about the plan instead of adding the chart.

* fix(assistant): name the tools that list dashboard and widget ids

Without them the argument fixer told Kuma to call list_dashboards, which it doesn't have.

* fix(assistant): answer dashboard questions from the widgets

Kuma sometimes added a widget or view filter to count something a chart already showed.

* fix(dashboard): address final review of the dashboard tools

A refused write kept earlier items, other users' personal views passed the check,
and broken widgets, wrong chart types and missing ids gave unhelpful errors.

* fix(dashboard): address review of the dashboard tools

The services validate the data source, Kuma creates dashboards without an
event the frontend can't handle, and the chart evals check the figures.

* refactor(dashboard): let widget types register their tool definitions

Charts and pie charts are premium, so their tool models, series handling and
series_config now live in premium instead of the open-source tools.

* fix(mcp): keep core.tools importable before Django is set up

asgi.py imports baserow.core.mcp before django.setup(), and core.mcp now
imports core.tools for its error mapping.

* fix(assistant): refresh db connections in the dashboard tools

develop now runs every Kuma toolset through AssistantFunctionToolset, which
checks the thread's database connection before each sync tool call.

* fix(dashboard): check the whole widget on partial updates

The service only checks an aggregation sent with its field, so a partial update
could save a widget that can't compute. Also restyle a chart whose series differ
from its type, and tighten the eval check for the Won count.

* test(dashboard): drop tests that only check constants and pydantic

They assert configured limits and pydantic behaviour that other tests already cover.
2026-11-03 12:52:34 +01:00
..
2026-06-09 15:41:31 +00:00
2025-10-08 09:13:38 +02:00