mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
stop-reporting-builder-custom-code-errors
14
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
e7381b5384 |
feat(mcp): always turn on OAuth sign-in and add the MCP tools changelog (#6930)
* chore: add changelog entry for the MCP shared tools The tools PRs left it for when the milestone was done. * feat(mcp): always turn on OAuth sign-in BASEROW_MCP_OAUTH_ENABLED is removed before it ships, so OAuth sign-in is on everywhere. The settings page opens the endpoint tab when the OAuth connections fail to load. |
||
|
|
c152a16f92 |
feat: let Kuma create, change and remove data source filters from the filter form, the chat and MCP (#6544)
* feat: let Kuma create, change and remove data source filters from the filter form, the chat and MCP * fix: allow earlier data sources in Kuma builder filters * refactor: share targeted Kuma action endpoint * refactor: derive service filter validation from filter types * fix: reuse shared boolean values in service filters * refactor: expose filter deprecation on backend types * refactor: delegate formula examples to application types * fix: allow Kuma to edit summary widget filters * test: include summary widgets in filter tool contract * fix: allow dashboard service filter groups * test: allow dashboard filter groups in assistant prompts * feat: enable inline Kuma for summary widget filters * test: initialize roles for transactional synced table copies * fix: reject table changes during Kuma filter generation * fix: reject current node formulas in service filters * perf: batch filterable data source discovery --------- Co-authored-by: Jeremie Pardou <571533+jrmi@users.noreply.github.com> |
||
|
|
49eb0c4881 |
fix(mcp): let MCP clients undo and redo their changes (#6753)
* fix(mcp): let MCP clients undo and redo their changes MCP tool calls ran without a client session, so their actions were stored with no session and no undo could reach them. * fix(mcp): undo a whole tool call past the action group limit Sets the undo session for every tool in one place and restores it after the call. Reports lock conflicts instead of an internal error. * fix(mcp): stop undo and redo at a part of a call that failed Carrying on past a failed part left one tool call half undone. * chore(mcp): say why the undo session import stays local Qodo asked for a reason; a module-level import fails before Django is set up. * fix(mcp): keep other calls of an endpoint out while undo or redo runs Undo and redo take a call back in parts, and a call of the same endpoint that landed between two parts made them stop with the call half undone. * fix(mcp): release the endpoint lock on any database error An InterfaceError on unlock escaped and could leave the lock held, and the regression test now waits on the lock instead of a fixed timeout. * fix(mcp): give up on a taken endpoint lock and stop undo in a split call A blocked advisory lock wait froze the shared sync thread of the worker, so calls now try for a few seconds and ask the client to try again. A second undo after a failed part went on into the older parts of the same call. * docs(mcp): say how far the undo API reaches into MCP changes * fix(mcp): wait for the endpoint lock off the MCP thread and redo a partly undone call at once The retry sleep held the worker's shared MCP thread, so other calls waited too. Undo stayed refused after redo could no longer restore the call, and one redo only reset the failed part. * docs(mcp): describe the endpoint lock errors and partly undone calls * fix(mcp): take, use and release the endpoint lock in one step and redo only the failed batch A cancelled tool call could leave the endpoint lock taken until the worker restarted. Redo of a partly undone call could mark really undone parts as redone without redoing them. * fix(mcp): set the undo session on the thread that runs the tool call A cancelled call keeps running on the MCP thread after the async side stops waiting, so its later actions lost the session and group. * test(mcp): cancel the call after its first field instead of after a fixed wait A slow runner could cancel before the body started and fail the test. * fix(mcp): drop the endpoint changes lock A session advisory lock can leak under PgBouncer transaction pooling and then block the endpoint's later calls. Without it, a write during undo only splits the undo, and the next undos finish it. |
||
|
|
d822dd067a |
feat(agent): row comment tools, with a search shared by MCP and Kuma (#6760)
* feat(row comments): search comments across a database Add RowCommentHandler.search_comments and the shared search_row_comments tool. They return the comments on the rows of a database, newest first, each with its table and row, narrowed by table, mentioned users, authors and creation time. A user is given as an ID, part of a name, or 0 for the user the tools act as. Every search is index-driven. A mention search is one query that starts from the mentions of the given users. Any other search reads the newest comments of each table from two new indexes, (table, -created_on) and (table, user, -created_on), added with RetryableAddIndexConcurrently. Comments on trashed rows are dropped after a page is read, so the result carries has_more instead of a total. list_row_comments now also returns the user_id and the mentions of each comment. * feat(mcp): expose search_row_comments Register the comment search as a read-only MCP tool in the database_read group, next to list_row_comments, and document it. * feat(agent): let a tool type be deactivated for a workspace An Agent tool type can now tell that a workspace can't use it, through is_deactivated and raise_if_deactivated, like service and node types do. A deactivated tool stays in the Agent's available tools, marked deactivated, so the client can show it as locked. It is left out of the allowed tools, so a reply never offers it, and the configuration refuses to allow it. * feat(agent): show a deactivated tool as locked in the tool permissions A tool the workspace can't use keeps its row in the Agent's tool permissions. A lock button replaces its Allow checkbox and opens the modal the tool's presentation type returns from getDeactivatedClickModal. The presets and the counts only consider the tools the workspace can use. * feat(agent): add the row comment tools An Agent can now list the comments of a row, search the comments of a database and post comments. Premium registers the three tools and their presentation. A workspace without premium sees them locked, and the lock opens the paid features modal on row comments. The core tests that pin the Agent tool names and their presentation now cover the core tools only; premium pins its own. * feat(agent): tell the model who a private conversation is with The tools of an Agent act as its identity, so the model had no way to turn "me" into a user. The instructions of a private conversation now name the person and their user ID. A conversation started by a trigger names nobody. The name is collapsed to one short line because it is user-controlled text. * feat(assistant): let Kuma search row comments Wrap the shared search_row_comments tool for Kuma, active in every mode like the other database read tools, and add an eval case that asks for the comments mentioning the user. * fix(agent): require workspace RBAC for row comment tools in Agents and Kuma * fix(row comments): accept an empty table list and odd digits in a search An empty table_ids returned no comments while the empty lists of users meant no filter. It now searches every table like an omitted one. A reference such as "²" passed isdigit() and failed in int(); isdecimal() reads it as a name. * refactor(row comments): check the searched tables in one permission call check_multiple_permissions raises the first denial itself, so the search no longer evaluates a denied table a second time to get its error. * fix(agent): refuse a deactivated tool by default A tool type that only said it is deactivated was listed as locked but could still be allowed and called. The base check now raises when the type is deactivated, as the service and automation node types do. A type can still raise its own error, like the one for a missing licence. * fix(agent): tell an Agent only about the locked tools it was allowed Every reply in a workspace without the licence carried a note about the three row comment tools, also for an Agent that never had them or has no workspace access. The note now names the tools in the Agent's allow list that the workspace can't use, and is left out when there are none. The tool type gives the reason and the handler writes the sentence. Kuma has no allow list, so its tool group keeps the sentence naming all three. * fix(agent): honor saved tool grants and row comment search permissions * fix(assistant): end a scenario's enterprise licence with its eval case A scenario's instance-wide licence stayed for every later case of the run, and the cached licence list hid it from its own case. The case's fixtures now add it, refresh the cache and remove it when the case ends. A licence that was already there is kept. * fix(row comments): cap the page of the comment tools A search without a mention filter reads the comments up to its page in every table, and a huge page overflowed the offset. Both comment tools stop at page 100, also in Kuma. * fix(row comments): read a user reference the same way in the search and its step The step of a search showed "0" when the model sent the acting user as text. The search and the step now share one parser. The description also says a name matches everyone whose name contains it. * fix(agent): make a tool's lock a button only when it explains itself A locked tool without a modal got a button that did nothing, and every locked tool kept a disabled Ask first checkbox that screen readers announced. |
||
|
|
12389f071c |
docs(mcp): align MCP docs with baserow-mcp 1.0.0 (#6754)
* docs(mcp): align MCP docs with baserow-mcp 1.0.0 Point tool changes at Edit tools under My settings > MCP server, list the six skills, add delete_element_items to the test plan, correct the BASEROW_OSS_ONLY builder notes and update the steps for adding a tool. * docs(mcp): say clients keep their tool list until they ask again * docs(mcp): fix test plan steps that fail as written Testers ticked the wrong tool, kept a stale tool list and had a wrong minimum version, so correct scenarios looked like bugs. |
||
|
|
90fcd746ac |
refactor(builder): move the builder tools from enterprise to contrib/builder (#6660)
* refactor(builder): move the builder tools from enterprise to contrib/builder Only login needs enterprise code, so setup_user_source and its helpers stay there and the other builder tools work without a paid edition. * test(builder): keep the guards on the builder tools left in enterprise The enterprise tests block model calls and assistant imports again, and the backend tests pass without enterprise. * fix(builder): say an auth_form needs an instance that has it On an instance without enterprise, the refusal no longer claims the whole batch was undone. * test(builder): run the missing element check without enterprise |
||
|
|
ad7c61db45 |
fix(mcp): follow-up fixes for the application builder tools (#6650)
* perf(automation): leave replaced published copies to the hourly cleanup
clear_old_history already removes them and keeps the newest copy, so the extra task isn't needed. Its delete now batches the service deletes.
* fix(mcp): keep dashboard creation on connections that allowed create_dashboards
The tool is now create_dashboard and unregistered names are ignored, so stored grants lost it.
* docs(mcp): list pause_workflow and move_elements as destructive
* fix(mcp): log the integration create_automation adds
It was created without its action type, so the audit log missed it.
* test(assistant): expect the integration action when redoing a new automation
* fix(mcp): check the workflow copy that publish_workflow makes live
A service-only node edit during the publication still went live unchecked. The checks now run on the copy in the same transaction, and come from the node types.
* test(assistant): tighten Kuma eval checks and add unquoted ask case
Search check judges only the sentence naming Sales and Invoices; two cases
also check nothing else changed; core cases share one database scenario.
* docs: run the shared tool tests in the assistant test plan
* chore: add changelog entries for the MCP builder tools and redo fix
* fix(mcp): check {{ }} templates in linear time
* fix(mcp): report the client's value in formula_errors
Kuma's repair step reads the description instead. The invalid-formula
warning uses loguru and no longer names the assistant.
* fix(builder): refuse a user property the user data provider doesn't have
* fix(assistant): route Kuma's mapping, move and style tools through the shared tools
Kuma now refuses mappings the page can't read and makes its moves in one
transaction, like MCP.
* fix(mcp): title list_applications 'List databases'
It lists only databases. The old list_databases becomes 'List all databases'
so the two stay apart at consent.
* feat(mcp): name the builder action tools element actions
list_element_actions, create_element_actions and update_element_action, so
they read apart from automation actions before grants store them. MCP drops
add_action_field_mapping; Kuma keeps it and its own tool names.
* fix(assistant): name the right update tool for an application of another type
* fix(mcp): keep create_database out of the shared create_tables description
The Agent Builder offers create_tables but not create_database; Kuma's own
description still names it.
* fix(builder): validate page paths in the handler and create pages with visibility in one action
* fix(builder): refuse row action mappings on read-only fields
* fix(builder): bound page, user source, menu item and column names in tool input
* fix(builder): keep an explicit column formula over a field of the same name
* perf(builder): reuse the loaded page when listing elements
* perf(builder): reload page graphs only after a failed move
* feat(builder): allow get_row data sources without a row id in the tools
* refactor(builder): update builders through the shared update_application helper
* perf(builder): list a page's data sources with the service in one call
* fix(builder): record tool-created integrations and login pages in the audit log
* docs(mcp): say setup_user_source can create a users table or a password field
* feat(mcp): move builder item deletes into a builder_delete group
* feat(builder): list links and actions a page parameter change breaks, and let update_element fix a link
* test(mcp): expect delete_element_items in the annotation list
* chore: update English backend translation catalogs
* feat(assistant): use the element action tool names in Kuma too
Kuma lists every mode's tools by name and switches mode on a call, so create_actions next to the automation node tools could route an automation request into the builder.
* chore: drop the MCP builder tools feature changelog entry
The MCP feature entry is added once the milestone is done.
* fix(automation): keep the draft dirty when a publication rolls back
Refuse an empty draft before copying it, and warn about a delete row node with no row ID.
* fix(mcp): keep the integration create_automation adds out of undo
Undo could trash it under the nodes that use it; the builder tools already do this.
* fix(builder): list table link columns a page change breaks and fix the link hint
* fix(assistant): keep Kuma's style and move tools to the page they name
* fix(mcp): shorten the setup_user_source title so consent shows it whole
* fix(mcp): keep tool changes made while the create_dashboard rename runs
One UPDATE rewrites each allow list from the row it locks, so a revoked tool
isn't restored from a stale read.
* fix(automation): keep the draft's dirty flag when a workflow is published
The flag tracks the test clone, which publishing doesn't replace, so a draft
edit made during a publication was lost and the next test run reused a stale clone.
* fix(builder): write page parameter formulas by name after a concurrent edit
The formula step runs in its own transaction, so an editor can reorder or
retarget the parameters in between. Match each formula by name, and refuse
when the link or action now opens another page.
* fix(builder): list menu items whose page parameters no longer fit
A menu item made in the editor can give page parameters, so a page that drops
them still breaks it. Compare its parameters always, and point to the editor.
* fix(assistant): judge the search-finds-table eval on claims, not wording
Negation is scoped to the clause naming the table, lists under a Sales heading
count, and an answer that also says Invoices is missing fails.
|
||
|
|
be71e3bce6 |
feat(mcp): add application builder tools and one create and update tool per application type (#6606)
* refactor(mcp): share the tool error messages
The row comment, row colour and audit log tools need licence errors to reach the client, and the item error helper outside automation.
* fix(assistant): show shared tool errors to Kuma
A licence or input error from a shared tool ended the chat run instead of reaching the model.
* feat(mcp): search the workspace
Lets MCP clients and Kuma find a table or row by name without walking every database.
* feat(mcp): read and post row comments
Lets MCP clients and Kuma read what people said about a row and add to it, in plain text.
* feat(mcp): change view sorts, field visibility and row colours
Lets MCP clients and Kuma configure views, and delete views and filters. list_views now returns the ids those tools take.
* feat(mcp): read the workspace audit log
Lets MCP clients and Kuma answer who did what in a workspace. It stays off until a user turns it on, even though it only reads.
* refactor(assistant): move the builder tool types out of the assistant
The builder tools need these types and helpers without pydantic_ai
or the assistant, so MCP can share them with Kuma.
* feat(assistant): make Kuma's builder writes undoable
Kuma's page, data source, workflow action and user source writes now appear in undo and the action log.
* fix(assistant): set up a new login page after undoing the old one
Undo trashes the login page but the builder still points at it, so setup skipped creating one.
* fix(mcp): run the field visibility change in a transaction
Over MCP and Kuma it failed on select_for_update, as they call tools outside a transaction.
* feat(mcp): add the application builder tool groups
Builder tools need their own groups and picker labels so users can switch them on separately.
* feat(mcp): offer the application builder read tools
Clients other than Kuma can inspect builders, pages, data sources, elements and actions.
* test(mcp): keep the no model calls check to the shared builder tests
Under a rootdir that excludes the enterprise tests, pytest applied the autouse patch of Agent to every test.
* test(mcp): prove the no model calls check runs and restore Kuma's not found hints
The folder check now resolves paths, and Kuma's list tools explain a missing builder or page again.
* feat(mcp): offer creating and updating builders and pages
Clients with builder_edit can set up an application builder and its pages. Kuma's
page tools now run the same create and update code, and keep their own results.
* feat(mcp): offer creating and updating builder data sources
The formula step that needs no model moves to the shared code, so MCP stores given
formulas and reports the rest. Kuma runs it, then repairs what is left with its model.
* fix(mcp): check builder formulas against values of the right type
Example values of the wrong type refused valid formulas, and over MCP no model can
fix that. Failures after a batch committed are now reported with their item.
* fix(mcp): check builder formulas without evaluating them
Example values can't stand in for every field type, so they refused valid formulas.
The check now looks at the formula's functions and paths against what the page has.
* fix(mcp): check nested builder formulas in linear time
Each nested get was visited twice, so a short formula could stall a request thread.
* feat(mcp): offer the application builder element tools
MCP clients can build page content without a model. Kuma runs the same create and
update code and repairs what it leaves.
* fix(mcp): store the values the element create tools are given
A default value or link URL was dropped with nothing reported; a negative size gave an internal error.
Column-name-wins is now opt-in, and update_element is marked destructive.
* fix(mcp): only take row colours a row can show
A row takes its colour from a CSS class per palette name, so a hex value reported success and coloured nothing.
* fix(mcp): undo a row colour that fails halfway
The tool adds to a view's colours, so a client retrying after an error would end up with a second colour.
* fix(mcp): show how a view's filters combine
A view matching any filter, or one with filter groups, read as one matching all of them.
* fix(mcp): mark set_view_sorts as overwriting
It replaces a view's sorts and an empty list removes them, so clients should confirm it.
* fix(mcp): read comments with a mention without a label
The API accepts such a mention, and one of them made every comment of the row unreadable.
* fix(mcp): refuse a blank workspace search
The API trims the query too, and a space would match most names.
* docs(mcp): say why reordered sorts are recreated
* test(mcp): expect how filters combine in the listed views
* feat(mcp): offer the application builder action, setup and theme tools
MCP clients can now wire up workflow actions, build a page in one call, add logins and set a theme.
Kuma's tools call the same functions and keep their results, repairing formulas after each phase.
* fix(mcp): handle bad input to the audit log tools
A reversed range and a blank query read as nothing having happened, and an unknown browser timezone ended Kuma's run.
* fix(mcp): read comments with no content
The API accepts such a comment, and one of them made every comment on the page unreadable.
* fix(mcp): show when a view's filters are switched off
Those filters hide no rows, so listing them as active misled the client.
* docs(mcp): correct what the view tools say they do
Row colours work on every view with rows, and Kuma was told to skip list_views when it needs the filters and colours.
* fix(mcp): leave IP addresses out of the audit log tools
Who did what doesn't need them, and Kuma sends tool results to the LLM provider.
* feat(mcp): add update_action and fix the builder action review findings
A refused notification or open_page value had no way to be corrected over MCP.
A shared page action could name a data source only one page has, which fails on click.
* fix(mcp): let clients read back action values and check open_page parameters
update_action could silently drop page parameters it couldn't show, and store ones the target page lacks.
Reads now give the values in the form update_action takes.
* fix(mcp): keep function-call values as formulas when update_action gets them back
A value list_actions shows like upper('abc') was written back as fixed text.
A custom-URL action no longer fails the page parameter check.
* feat(mcp): offer one create and one update tool per application type
A client asking for one application type should only get that type, and an
edit group should not reach the other types.
* fix(mcp): connect new automations to the workspace data
Row actions fail at run time without a Local Baserow integration, and Kuma's
old hook used to add it.
* fix: redo restores an automation after undoing its creation
An automation is trashed under its own type, so restoring it as an application failed and rolled back the whole undo group.
Undoing a delete and redoing a duplicate or template install had the same problem.
* feat(mcp): offer publishing a workflow
MCP clients could build a workflow but not make it run.
The list reported the draft copy, so a published workflow looked like a draft.
* fix(mcp): refuse publishing a workflow that can't do anything
An MCP client has no UI to stop it, and the workflow came back as live.
Clients also skipped confirmation for a tool that starts real effects.
* feat(mcp): offer pausing a workflow
A client could start a workflow over MCP but had no way to stop it.
* perf: delete older published workflow copies in the background
The delete took over 90% of a republish, in the transaction and on the thread
shared by MCP calls and websocket DB work.
* fix: keep the newest published copy of a paused workflow
The cleanup only kept live copies, so a paused or disabled workflow lost its copy and reported the wrong state.
pause_workflow no longer needs a local cache scope: the update reads the published copy uncached.
* perf: delete superseded copies on the export queue
Deferring the service deletes takes a 200 node copy from 22s to 1.2s.
A 60s countdown keeps the delete away from a row event still reading the just-disabled copy.
* fix(mcp): tighten application tool names, lookups and checks
Blank names, hidden applications and the unclear-request eval check slipped past the new application tools.
* test(mcp): cover builder tool schemas and the read only preset
Keeps Kuma-only parameters off MCP and shows the preset can't write.
* test: add a Kuma eval for a bare request to create an application
A request like this should make an application builder, not a database.
* docs: list the builder and application MCP tools and their test steps
Adds groups, defaults and destructive flags, the new tools, and the manual create-an-application test.
* test: drop tests another test covers and tighten the weak ones
Each dropped test had a covering test that asserts the same behaviour.
The routing test no longer hides a redirect behind a second call.
* test: add Kuma evals for dashboards, several applications, renames and action edits
Nothing called create_dashboard, update_* or update_action in the last eval run.
* fix: let Kuma create an application that has a purpose without asking for a name
Evals asked only for the name, and create_builder had lost the rule against inventing app records.
The setup_user_source description now says it reuses an existing source.
* docs: say MCP writes can't be undone where the action layer is described
The line said operations are undoable, which the builder section contradicts.
* fix: say an application, app or website means an application builder
Kuma and MCP clients could pick a database or dashboard tool for a plain request for an app.
* fix(mcp): refuse a builder formula that reads a row field by its name
A published page only loads fields its formulas name as field_<id>, so such a value
was stored with no report and rendered empty there. Kuma's repair now rewrites it.
* fix(mcp): point a button's click message to its notification action
A model asked to change the message a button shows rewrote the button's text and saw
only success. Descriptions say where that message lives, and the result names it.
* fix: ask first on a bare app request even though an app means a builder
"Application means builder" and "for my team" read as enough to create Team App.
The wording now says it only picks the tool, and who an app is for isn't a purpose.
* fix: show update_action's required thought in an example
On notification title edits the model left thought out and Groq rejected the call,
so the edit took two or three tries.
* fix(mcp): check what new and changed table columns read
A by-name column was stored and came back empty on the published page, with no signal to the client.
* fix(mcp): read a form element's default value from the row around it
At run time a record selector's default value reads the enclosing repeat, not its own rows.
* fix(mcp): refuse a user source table whose fields can't be used
A text field named Password made adding the password field an internal error, and a refused setup left an integration behind.
* fix(mcp): keep the given order of children in a container
Core puts each new child first, so one call's children came out reversed on both clients.
* fix(mcp): accept a file field's thumbnails in a formula
They are valid at run time, but the file field's schema leaves them out.
* fix(mcp): check a new row action's field values like an update does
A value like nosuchfn('x') was stored unchecked and failed only when the page ran.
* chore: remove the table button action hook that never created anything
It always returned no actions, so its result handling and the empty TYPE_CHECKING block were dead too.
* fix(mcp): mark update_action as destructive
Moving an action to another table clears its field values, so clients should ask first.
* docs: correct the builder tool descriptions and docs for MCP
They promised undo MCP doesn't have, named an unset setting, and left out the button note.
* fix(mcp): store plain field values on a new row action as fixed text
Only text that is or parses as a formula goes through the check; Alice no longer comes back empty.
* fix(mcp): list a page's elements in page order
A move showed in the page but not in the list. A move before a child of another place is refused.
* fix: point formula fields to the tool description
The field text claimed a $formula: prefix that MCP does not repair.
* fix(mcp): describe a field value so it is true on create and update
update_action refuses plain text with the same schema create_actions uses.
* fix(mcp): treat an empty place_in_container as unset when moving before a child
The move schema treats an empty place as unset, but this check refused it.
* fix(mcp): refuse an open_page action missing its page parameters
A new action without them stored a button that couldn't open its row and reported success; update_action already refused this.
* fix(mcp): create a child before the element given in its container
before_element_id was ignored once a parent was given, so the element went last.
* fix(mcp): move into a column's first place when none is given
The field says none means the default slot and create does this, but the move failed.
* fix(mcp): refuse moving an empty container into itself
The check for an element already last caught this case, so the move reported success.
* fix(mcp): make a valid example email for a role with spaces
A role name with a space or symbol made the example row fail, and with it the whole setup.
* fix(mcp): refuse a row_id on a data source that is neither a number nor a formula
Plain text was stored as a literal row id with no report, and on update it replaced a working value.
* fix(mcp): read a whole function call as a formula on a new action too
create_actions stored upper('abc') as text while update_action read it as a formula.
* fix(mcp): show a client the shared page's data sources and its ID
A header can only read a shared page data source, and a client couldn't list one or find where to create it.
* fix(mcp): let create_display_elements give a link's page parameters
Over MCP only setup_page could give them, so a link to a page with a path parameter was left broken.
* fix(mcp): refuse a link's new page when its parameters don't fit
update_element kept the old page's parameters, leaving a link that breaks when clicked.
* fix(mcp): say what a client can do when a link's new page doesn't fit
The refusal said to replace the link, but no tool deletes a builder element.
* fix(mcp): give a login page that's already set a working form
setup_user_source reported success on a set login page with no usable form, or one only logged-in visitors can see, and nobody could log in.
* fix(mcp): keep a sentence with a parenthesis as plain text
Order now (today only) was stored empty over MCP, against the docs saying plain text is fixed text.
Builder values now use the automation pattern, which keeps a whole spaced call like get ('x') as a formula.
* fix(mcp): refuse a new link whose parameters don't fit its page
The frontend hides such a link at run time. open_page and link updates already refuse it.
* fix(mcp): keep a fixed value that parses as a sum as plain text
A field value of 3/4 was stored as a formula showing 0.75, and a link parameter of 10/2 as 5.
Field values and link parameters now follow the title rule: calls and plain numbers or booleans only.
* fix(mcp): check every changed column when two share a name
Keyed by name, a bad formula on the first of two columns named Edit was stored unchecked.
* fix(mcp): list a column's children in the order the page shows them
Places were walked in insertion order, so a child added to the second column first was listed first.
* fix(mcp): refuse page parameters with a repeated name
The frontend compares the name lists exactly and hides the link or button if a name is there twice.
* fix(mcp): share the lookup that hides an application the user can't see
The same wrapper was copied in the four application types' tools.
* fix(mcp): remove a dead refresh action helper and a repeated form element block
The refresh helper's value was always overwritten, and four form elements built their label and default value the same way.
* fix(mcp): refuse form data on items of the shared page
At run time a shared element reads the form data of the page being shown, so a
header form's value is empty and its element or action counts as in error.
* fix(mcp): store an auth form's login button label as text
The frontend can't parse 'Sign in' as a formula, so visitors saw the default label
instead. Export and duplicate keep the value either way.
* fix(mcp): store page parameters in the order of the page they open
The frontend compares the names with _.isEqual, so a complete list in another order
hides the link or button from visitors.
* fix(mcp): make a link go to the page or URL an update gives it
Without a navigation type the stored one stayed, so visitors still went to the old
target.
* fix(mcp): refuse a menu item that links to a page with path parameters
Menu items have no parameter field, and one missing its parameters puts the whole
menu in error, which hides it from visitors.
* fix(mcp): refuse a row id on a data source that has none
A list_rows source dropped it and reported success. A get_row source does have a
search query, so that stays.
* fix(mcp): refuse a move before an element outside the given parent
It moved to the end and reported success. No Kuma prompt, eval or test depends on it:
on the base a parent made before_id ignored either way.
* fix(mcp): refuse a new field mapping on a trashed field
The mapping would be stored against a field no visitor's row can get. A mapping the
action already has on a trashed field can still be changed.
* fix(mcp): say when the login page's form uses another user source
The result reported success while people in the new table couldn't log in. A page at
/login found with no login page set now keeps its one form too, instead of a second.
* fix(mcp): mark the builder tools that overwrite stored values destructive
update_nodes, update_fields and update_widgets do. Clients only ask first when the hint
is set.
* fix(mcp): refuse element values the REST API refuses
level=99, format='html' and column_amount=500 reached the database with no error, and
rows=-1 gave "Internal error.". The limits are the serializers' and models'.
* chore(mcp): format the review fixes
* fix(mcp): keep what a restricted view hides out of the view tools
A member below builder could read a restricted view's filters, hidden sorts and colours from list_views, and a field's name from an error before permissions were checked.
* fix(mcp): replace a view's sorts one call at a time
Two calls could each read the old sorts and add to them, leaving a list neither asked for.
* fix(mcp): read a mention whose label isn't a string
The API accepts such a label, and one comment holding it stopped the row's comments from being listed.
* fix(mcp): limit the row comments of a call to 100
Each comment runs about nine queries in its own transaction, and a commenter could ask for any number.
* fix(mcp): show Kuma that set_field_visibility needs a field
Both clients now reject an empty list from the schema, so the checks after it can't run.
* docs(mcp): correct the audit log tools' licence and fields
An advanced licence also has the audit log, and entries no longer hold an IP address.
* test(mcp): run the missing formula case on a data source with a row id
A list_rows source now refuses a row id before any formula is generated.
* test(mcp): expect the builder tools that overwrite values to be destructive
* refactor(mcp): rename set_row_colours to add_row_colours
It adds to the colours a view has, while set_view_sorts replaces the sorts.
* fix(mcp): add a login form for the new user source beside another's
People in the new table can log in once the call succeeds, whichever way the login page
was found. This replaces the note and restores the two forms Kuma's test expects.
* fix(mcp): leave a refused field value out of a new row action
The empty placeholder was a live mapping, so each click wrote an empty string
over that field of a real row until someone fixed the formula.
* fix(mcp): refuse a header's pages that can't work
share_type 'only' with no pages hides a header on every page, and page_ids with
no share_type were ignored. An update has no page_ids, so it can only refuse.
* fix(mcp): refuse changing an action on a trashed page
The lookup only checked the application, so an action on a page in the trash
could still be changed.
* fix(mcp): keep a zero column gap and page size on a new element
0 is allowed, as on REST, but was replaced by the default of 20.
* fix(mcp): treat a whole function call on an element as a formula
A formula like upper('abc') read from list_elements and sent back was stored as
text, so the page showed the formula itself. Actions already follow this rule.
Also replaces the placeholder expression repeated on each element value.
* fix(mcp): share the parameter model and the stored formula reader
Two identical parameter models and three readers of a stored formula's text.
* chore(mcp): format the round's review fixes
* fix(mcp): refuse a page size of zero on tables and repeats
A page size of 0 fetches no rows and shows an empty element; the editor's
minimum is 1.
* fix(mcp): warn on publish about a row_id stored as an empty literal
update_nodes stores row_id='' as '', which the check for a missing row_id
didn't count as empty.
* fix(mcp): keep a field value's formula when its field id has spaces
The formula was stored under the stripped id and looked up under the raw one, so
' 12' lost its value with no report.
* fix: leave test clones out of the superseded copies task
A test run can pick up an older clone just before this task deletes it, so writing
its history entry fails. clear_old_history removes unused clones.
* fix(mcp): refuse style values the element columns can't hold
An overlong color or a radius or size past the column's limit gave "Internal
error.", and a negative radius, which the editor refuses, was stored.
* fix(mcp): treat a whole function call in search_query as a formula
upper('abc') from list_data_sources was stored as text when sent back, as elements
were. The create docstring also said plain text was left empty, which it isn't.
* fix(mcp): mark the application update tools destructive
update_table only renames and is marked destructive, as is update_page; these
overwrite a stored name too. update_builder also changes the login page.
* chore(mcp): format the round's review fixes
* fix(mcp): stop set_view_sorts deadlocking with a new sort
A new sort checks its view when it commits, which the view lock blocked while
the sort rows it needed were held. Sort writers now share a weaker view lock.
* fix(mcp): title add_row_colours Add row colours
* refactor(mcp): merge search_audit_log into list_audit_log
The two differed only by a text query and a 90 day cap. Timestamps now need an
offset, as nothing tells MCP the user's timezone.
* feat(mcp): let a date filter carry its timezone
MCP has no timezone for the user, so relative date modes would follow UTC. An
offset can't express those, so the caller names the IANA timezone.
* test(assistant): expect the login page to stay after undo
Develop creates the login page without an action, so undo no longer trashes it.
* fix(mcp): say a licence is missing when a tool needs one
The REST message reads like a permission problem, which sends users to the wrong fix.
* test(mcp): cover the licence message of the tool errors
* fix(mcp): mark tools that reach outside the workspace as open world (#6609)
ChatGPT's scan refused to publish create_views because it reported
openWorldHint false while public views, emails and redirects reach outside.
* fix(builder): refuse a reused user source without password login
A login form for it could never sign anyone in, yet the setup reported success.
* fix(automation): check a workflow under the lock that publishes it
A node deleted between the checks and the publication went live unchecked.
* fix(builder): cap how many items one builder tool call takes
A caller could ask for any number of elements or nested items in one call.
* test(assistant): fail evals that only look like they passed
A wrong dashboard name, a denied table search and a form mapping both fields to one input passed.
* fix(mcp): mark pausing a workflow and moving elements as destructive
Neither only adds: a pause drops events and a move changes existing placement.
* refactor(builder): read tables without the database MCP module
The shared builder layer shouldn't depend on one client's adapter.
* test(assistant): add an eval that changes a row action's mapping
update_action had no eval for the branch that writes rows.
* test(mcp): expect moving elements to be destructive
|
||
|
|
4654019e22 |
feat(mcp): add search, row comment, view config and audit log tools (#6593)
* refactor(mcp): share the tool error messages The row comment, row colour and audit log tools need licence errors to reach the client, and the item error helper outside automation. * fix(assistant): show shared tool errors to Kuma A licence or input error from a shared tool ended the chat run instead of reaching the model. * feat(mcp): search the workspace Lets MCP clients and Kuma find a table or row by name without walking every database. * feat(mcp): read and post row comments Lets MCP clients and Kuma read what people said about a row and add to it, in plain text. * feat(mcp): change view sorts, field visibility and row colours Lets MCP clients and Kuma configure views, and delete views and filters. list_views now returns the ids those tools take. * feat(mcp): read the workspace audit log Lets MCP clients and Kuma answer who did what in a workspace. It stays off until a user turns it on, even though it only reads. * fix(mcp): run the field visibility change in a transaction Over MCP and Kuma it failed on select_for_update, as they call tools outside a transaction. * fix(mcp): only take row colours a row can show A row takes its colour from a CSS class per palette name, so a hex value reported success and coloured nothing. * fix(mcp): undo a row colour that fails halfway The tool adds to a view's colours, so a client retrying after an error would end up with a second colour. * fix(mcp): show how a view's filters combine A view matching any filter, or one with filter groups, read as one matching all of them. * fix(mcp): mark set_view_sorts as overwriting It replaces a view's sorts and an empty list removes them, so clients should confirm it. * fix(mcp): read comments with a mention without a label The API accepts such a mention, and one of them made every comment of the row unreadable. * fix(mcp): refuse a blank workspace search The API trims the query too, and a space would match most names. * docs(mcp): say why reordered sorts are recreated * test(mcp): expect how filters combine in the listed views * fix(mcp): handle bad input to the audit log tools A reversed range and a blank query read as nothing having happened, and an unknown browser timezone ended Kuma's run. * fix(mcp): read comments with no content The API accepts such a comment, and one of them made every comment on the page unreadable. * fix(mcp): show when a view's filters are switched off Those filters hide no rows, so listing them as active misled the client. * docs(mcp): correct what the view tools say they do Row colours work on every view with rows, and Kuma was told to skip list_views when it needs the filters and colours. * fix(mcp): leave IP addresses out of the audit log tools Who did what doesn't need them, and Kuma sends tool results to the LLM provider. * fix(mcp): keep what a restricted view hides out of the view tools A member below builder could read a restricted view's filters, hidden sorts and colours from list_views, and a field's name from an error before permissions were checked. * fix(mcp): replace a view's sorts one call at a time Two calls could each read the old sorts and add to them, leaving a list neither asked for. * fix(mcp): read a mention whose label isn't a string The API accepts such a label, and one comment holding it stopped the row's comments from being listed. * fix(mcp): limit the row comments of a call to 100 Each comment runs about nine queries in its own transaction, and a commenter could ask for any number. * fix(mcp): show Kuma that set_field_visibility needs a field Both clients now reject an empty list from the schema, so the checks after it can't run. * docs(mcp): correct the audit log tools' licence and fields An advanced licence also has the audit log, and entries no longer hold an IP address. * refactor(mcp): rename set_row_colours to add_row_colours It adds to the colours a view has, while set_view_sorts replaces the sorts. * fix(mcp): stop set_view_sorts deadlocking with a new sort A new sort checks its view when it commits, which the view lock blocked while the sort rows it needed were held. Sort writers now share a weaker view lock. * fix(mcp): title add_row_colours Add row colours * refactor(mcp): merge search_audit_log into list_audit_log The two differed only by a text query and a 90 day cap. Timestamps now need an offset, as nothing tells MCP the user's timezone. * feat(mcp): let a date filter carry its timezone MCP has no timezone for the user, so relative date modes would follow UTC. An offset can't express those, so the caller names the IANA timezone. |
||
|
|
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. |
||
|
|
583ebf9f83 |
feat(mcp): offer Kuma's automation tools (#6469)
* 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. |
||
|
|
be799d43d2 |
feat(mcp): share Kuma's table, field and view tools with MCP (#6442)
* feat(database): share field tools and store raw formulas without a model MCP and Kuma need one definition of the field tools, and the MCP path has no model. Kuma repairs invalid formulas after the shared call, outside the transaction. * fix(assistant): run formula repair after the table transaction commits Tables and fields are now created by shared core code in one transaction, and Kuma repairs invalid formulas only after it commits. Closes #6297 for database. * fix(database): save each field in its own savepoint A database error on one field aborted the whole transaction, losing the other fields in the call. * feat(mcp): offer Kuma's table, field and view tools MCP clients get the field and view write tools Kuma uses, built from the same functions, and the disabled core table and field tools they replace are gone. * fix(database): reject bad select filter values and check every view first A string select value made an empty filter and an int one an internal error. A missing view left the filters of earlier views saved, so a retry duplicated them. * refactor(database): share list_tables between MCP and Kuma MCP gains Kuma's name filters and keeps its list output; Kuma's not-found hint now only names and counts databases the user can see. * refactor(database): share get_table_schema between MCP and Kuma MCP now gets Kuma's field details (option IDs, lookup through and target, array formula type) and keeps its old keys; Kuma reshapes the same result. * feat(mcp): share list_applications between MCP and Kuma Kuma's list_builders pages instead of silently stopping at 20. list_databases stays as an alias because existing connections allow it. * fix(assistant): keep generated formulas out of Kuma's table schema The shared schema sends MCP the formula of lookup, count and rollup fields, as before; Kuma only showed it for formula fields. * test(mcp): pin that stored tool lists can't hold removed or re-enabled tools Every write path has checked names against enabled tools since allowed_tools was added, so no data migration is needed. * docs(mcp): list the shared database tools in the test plan * fix(database): log unexpected field tool errors and hide their message The per-item loops sent raw exception text to MCP clients and never logged it. * fix(database): report an empty formula in formula_errors It used to fail later with "retry later" advice that Kuma's fixer never saw. * fix(database): create the filters of all views in one transaction An error on a later view left the earlier filters saved, and a retry duplicated them. * fix(database): store form settings and skip view filters Baserow refuses A form view filter or a field option error failed the call unreadably, form submit settings were dropped, and date, boolean and select filter values were stored as something other than what the response echoed. * fix(database): lock updated fields and drop models cached in a rolled back item update_fields merged select options from an unlocked read, and a failed item or a denied table could leave the request's cached table model ahead of the database. * fix(database): look up through the link field a lookup names through_field was taken for a table id, so the lookup failed or linked a new field to the wrong table, and a link field created for a lookup went unreported. * fix(database): report a refused primary field name with the table's name A reserved, blank or too long primary_field_name failed create_tables with "Internal error.". * fix(mcp): list only databases with list_applications The tool sits in the database read group, so it must not list builders, automations or dashboards until their groups exist. * fix(assistant): leave empty formulas to the user and note every unrepaired one The fixer invented a formula for a field that had none, and a permission denial while repairing dropped the notes for the formulas still invalid. * fix(database): validate a form view's redirect URL like the REST API The public form navigates to it after submit, so a javascript: URL ran in Baserow's origin. Also stops catching filter errors this path can't raise. * fix(database): match a lookup's through_field name ignoring case and spaces Select labels are matched that way, so link field names now are too. * refactor(database): move user_error_message next to the shared tools The table tools imported it from the MCP services, which is a layer above them. * fix(database): echo no value for a relative date filter that ignores it The response showed a value Baserow never stored for modes like today; it now reports null with a note. * fix(database): match reused table field names ignoring case and spaces "email" against an existing "Email" was reported missing, and next_steps led to a near duplicate field. Also tests a blank primary field name over MCP. * fix(mcp): let list_tables and get_table_schema ignore unknown arguments They are legacy default tools and ignored extra keys before, so existing clients that send them got errors. * fix(database): lock field updates in table and field id order Two calls locking the same fields in opposite order could deadlock when waiting for locks instead of failing with a conflict. * fix(assistant): drop models cached in a failed formula repair The repair savepoints could leave the request's table model ahead of the database, like the shared loops did before. * fix(database): lock all updated fields up front and apply them in order Sorting the updates broke a rename followed by a formula using the new name; the fields are now locked in id order first, and a lock conflict reads like REST's. * fix(database): make gte and lte view filters include equal values The aliases mapped to strict comparisons, so a row equal to the value was left out. * fix(database): skip link_row view filters without a row id A missing or non-numeric value was stored and matched every row. * fix(database): skip number view filters without a number A missing value was stored as "None", which hides every row. * fix(database): use UTC in date view filters when the profile has no timezone The filter stored "None" as its timezone and matched no rows. * fix(database): limit view names in create_views to 255 characters A longer name reached the database column and failed as an internal error. * fix(database): reject select options that share a value on create Tools pick options by value, so the second of two such options could never be matched. update_fields already rejected them. * fix(database): match a reused lookup's link field name like creation does Creation ignores case and outer spaces after an exact match, so the reused table check reported a lookup through "projects" as wrong when its link is "Projects". * fix(database): only skip a requested field named exactly like the primary field Field names are unique only when they match exactly, so a requested " Name " next to the primary "Name" was dropped without a word. * fix(database): reject a table name several tables in the database share Table creation reused the last such table while a link picked the first, so the link could point at another table than the response reported. * fix(database): create lookups after every requested table has its fields Fields were added table by table, so a lookup of a field in a later table of the same create_tables call failed. * fix(database): skip a requested field named like the primary in another case Clients vary the case of the primary field name, so an exact match created a second "name" next to "Name". Spaces still count, as on develop. * fix(database): resolve linked table names among the tables the user can see A hidden table of the same name made a link ambiguous, and the error revealed it. * fix(database): store an empty value for empty and not empty number filters * docs(mcp): list_applications lists databases only * test(assistant): add formula and lookup evals for Kuma's database tools * test(assistant): expect an empty value for empty number filters * feat(database): look up through the table's only link field when none is named Kuma often leaves the link out of a lookup and retries after the validation error. * fix(assistant): keep a later formula update and stop repairing formulas when cancelled * fix(database): take the filter timezone from the tool context, not the user profile An actor such as an Agent has no profile. * docs(database): explain a lookup to a formula of a later table * fix(assistant): repair the formula of the update that failed Formula errors from update_fields carry the index of their update, so the repair no longer matches on formula text. A later update that sets the formula to None leaves it unchanged and no longer skips the repair. |
||
|
|
8c56297939 |
docs(mcp): describe OAuth sign-in and endpoint keys in the MCP docs (#6394)
* docs(mcp): describe /mcp with OAuth and endpoint keys in the MCP server doc The doc still described the SSE key URL as the only way in. * docs(mcp): cover OAuth and settings tabs in the MCP test plan and dev doc The test plan only covered the SSE key URL. * docs(mcp): add setup for other MCP clients and the baserow-mcp plugin The test plan only showed Claude Code. * docs(mcp): fix review findings in the MCP test plan and docs Use a <server url> placeholder, link the baserow-mcp README for other clients and correct UI steps. * docs(mcp): unset BASEROW_PUBLIC_URL in the tunnel step It overrides PUBLIC_BACKEND_URL, so the tunnel URL was ignored. * docs(mcp): mention the OpenAI apps challenge route for self-hosted proxies #6395 added it to the Caddyfile only. |
||
|
|
cf15a4a02f |
refactor (MCP): refactor MCP tools; share AI Assistant capabilities (#4980)
* feat(mcp): refactor tools to service layer and add database/table/field CRUD Replace internal API request pattern with a dedicated service module for MCP operations. Simplify tool architecture from dynamic per-table tools to static tools with explicit table_id parameters. Add new tools for managing databases, tables, fields, and batch row operations. * fix(mcp): address Copilot review feedback - Let exceptions propagate from MCPTool.call() so call_tool() logs them - Fix N+1 queries in get_table_schema using enhance_field_queryset hook - Fetch fields for all tables in a single specific_iterator pass - Clamp list_rows pagination to safe bounds (ROW_PAGE_SIZE_LIMIT) - Fix update_fields docstring to reflect type-change support - Fix module path in utils.py comment - Update "Adding a new tool" docs to match current MCPTool pattern * fix: comment risky tools; waiting for a proper permission check * feat(mcp): add enabled flag to MCPTool and disable risky tools Add `enabled` attribute to MCPTool base class so tools can be registered but hidden from MCP clients. Disable database/table/field CRUD tools until users can control tool availability through the UI. Also add docs/testing/mcp-test-plan.md with manual testing instructions. * fix(mcp): replace list[dict] with typed Pydantic models for field/row specs Validate required keys (name+type for field create, id for field update, id for row update) at the schema level instead of relying on KeyError from dict.pop() in the service layer. Uses extra="allow" so type-specific options and field values pass through. * fix: wrap update_rows in a transaction * address feedback |