Developer Tools

MCP Tools

The 28 tools the Ubex MCP server gives an AI assistant, in five groups. Your assistant picks them itself, but knowing them helps you ask for the right thing and follow what it does. The ids they take, such as a project's or a web app's, come from the listing tools.

Workspaces and projects list_workspaces list_projects get_project_context create_project Web apps create_web_app get_web_app pull_web_app push_web_app deploy_web_app Tables and data list_tables create_table alter_table move_table set_table_scope declare_relation remove_relation insert_rows query_rows Workflows list_workflows get_workflow save_workflow edit_workflow get_code_docs list_node_types get_node_docs Testing and CLI call_endpoint get_execution_logs get_cli
Every tool, grouped by what it works on.

In the tables below, Changes says whether a tool only reads, or also changes your account.

Workspaces and projects

Tool What it does Takes Changes
list_workspaces The organization's workspaces you can work in, with your role in each nothing No
list_projects Your projects. Each has a web app (the site), workflows (its endpoints) and a workspace workspace_id (optional) No
get_project_context Everything about one project in one read: its web apps, every endpoint with its exact request and response contract, and the workspace's tables (with their columns) and file buckets. Assistants read it before writing frontend code or a workflow project_id No
create_project Creates an empty project in a workspace, with its own collection in My Data for its tables. Names are unique per workspace workspace_id, name, and optionally collection_name or an existing collection_id Yes

Web apps

Tool What it does Takes Changes
create_web_app Adds a site to a project. It comes with starter files that build (index.html with the import map, app.jsx, a layout, a Button component, Tailwind and theme styles) and a public address, and is not live until deployed. The project's existing endpoints are opened to the new site project_id, name (optional) Yes
get_web_app The site's address, deploy status and live version, the files changed since the last deploy, whether it builds now (errors as path:line:col), and the workflows a deploy would publish first web_app_id No
pull_web_app Reads the site's files. Each text file comes with a hash. Without paths it gives every path and hash, and as many contents as fit in one answer (about 50 KB); the rest are fetched by path. A path ending in / selects a folder. Images, fonts and videos come as download links web_app_id, paths (optional) No
push_web_app Writes whole files and deletes files, all or nothing. Each changed file sends back the base_hash it was read with, so a file changed in the meantime is never overwritten. Checks that the app still builds. It cannot write assets/ web_app_id, files (path, content, base_hash), delete Yes, not live
deploy_web_app Puts the site live, as Publish does in the Ubex app: builds it, first publishes the workflows it calls that have unpublished changes, uploads, and returns once the site is live (a minute or two). If the site doesn't build, nothing is deployed and the errors come back web_app_id, label (optional, by default "Version N") Yes, live

Tables and data

Tool What it does Takes Changes
list_tables The workspace's tables with their columns, the My Data collection each is filed in, their unique and indexed columns, relations and scope, and the file buckets. The newest come first; past the first 25, tables come without their columns workspace_id No
create_table Creates a table, filed in the project's collection. Every row gets _id, created_at and updated_at by itself. Column types: text, longtext, number, currency, date, datetime, select, multiselect, checkbox, url, email, json. A column can be required, unique or indexed, or link to another table with links_to project_id, name, columns, description, unique_together Yes
alter_table Adds, updates or removes one column, or adds or removes a unique combination of 2 to 4 columns. Removing a column deletes its data in every row workspace_id, table_id, action, and the column or columns Yes
move_table Files tables and buckets in a project's collection in My Data. Only where they are listed changes: rows, files and the workflows that use them stay as they are project_id, table_ids, bucket_ids Yes
set_table_scope Scopes a table's rows by caller, for an app that serves many organizations: every read and write then keeps to the rows whose column holds the caller's token claim (such as organization_id), so a forgotten filter can never leak another customer's rows workspace_id, table_id, column, claim, or clear Yes
declare_relation Declares that a column holds another table's row _id, so endpoints can include the linked row, filter by it and count related rows workspace_id, table_id, column, to_table_id, name and inverse (optional) Yes
remove_relation Removes a declared relation. The column and its values stay workspace_id, relation_id Yes
insert_rows Inserts up to 50 rows, each an object keyed by column name. For sample and seed data workspace_id, table, rows Yes
query_rows Reads a table's newest rows, optionally filtered (eq, neq, contains, gt, lt, gte, lte). Used to confirm that an endpoint really stored what it says workspace_id, table, filters, limit (up to 100) No

Workflows

Tool What it does Takes Changes
list_workflows A project's workflows, with the endpoint each serves: method, path, authentication and address project_id No
get_workflow A workflow as code (the route file it compiles from, each step marked // @<id>), or as its graph of nodes and connections with format: "graph" workflow_id, format No
save_workflow Creates an endpoint from a whole route file, or replaces one. It compiles the code (a line it can't read comes back with its number, and nothing is saved), runs the platform's checks, saves, and runs the endpoint once. The answer has the address, the request and response contract and the test result. Also takes a graph instead of code project_id and name (new) or workflow_id, code, dry_run Yes, runs once
edit_workflow Changes a saved workflow by search-and-replace edits on its code. Lines left alone keep their steps as they are, settings and place on the canvas included. Then it compiles, checks and saves as save_workflow does workflow_id, edits (search, replace), dry_run Yes, runs once
get_code_docs How to write a workflow as code, and what this project's code can use: its tables with their columns, buckets, AI models, other workflows, connections and secrets project_id No
list_node_types Every node type a workflow can be built from, with what it does nothing No
get_node_docs The settings each node type takes, its rules and what it outputs types No

Testing and CLI

Tool What it does Takes Changes
call_endpoint Sends one of the project's endpoints a real HTTP request and gives back the status, headers and body. It can upload files as multipart form data. For an endpoint behind a login, the assistant logs in through your login endpoint first and sends the token project_id, method, url, headers, body, files It can, real rows
get_execution_logs The last run of a workflow, node by node, with each node's input, output and error. Used when an endpoint answers wrongly project_id, and workflow_id or endpoint No
get_cli How to install, update and log in to the Ubex CLI, and its newest version. Given the version you have, it says whether yours is the newest installed (optional) No

Good to know

  • Tables have two engines. list_tables marks tables on the new engine native: true. Workflows read and write them with the app.Table node, one Prisma Client call. Older tables use the older table nodes (app.DataSources and app.DatasourceWrite) until you press Move to the new engine on them in My Data. When an assistant changes a workflow that still uses the older nodes on a native table, it replaces them and checks the endpoint still answers the same.
  • Each project keeps its data together. Tables and buckets are filed in the project's collection in My Data, and the builders of a project see only its collection.
  • Endpoints have one path each. Front-end code calls them by path on the app's own address, fetch("/api/<path>"), which works on the Ubex domain and on your own domain alike.

We update these pages often. Spotted something out of date? Tell us

AI AssistantPowered by Ubex
Beta
Ask me anything about Ubex workflows, nodes, or the API.