Repository navigation
Releases
v2.1.2
Security
- The README's password is refused in production - the README's
docker runsetAUTH_PASSWORD=change-meand published port 8000 on every interface, andMATE_ENV=productionrefused only the defaultmate, so an installation that copied the command had a password every such installation shares. Production now refuseschange-metoo, in any case, and development logs a warning for it. The README and the deployment guide generate a password and publish the port on127.0.0.1only. When upgrading: a production installation still onchange-mestops at startup; set your ownAUTH_PASSWORD
v2.1.1
Fixed
- The auth server waited on the dashboard - every request of the auth server runs on one event loop, a client's call of the OpenAI-compatible API, the proxy to the agents and the widget included. 196 async routes awaited nothing and queried the database on it, as did PAT authentication on every API and MCP call, so each held every other request for as long as its queries took. The Sessions page read the whole sessions table and scanned the events table once per row, long enough for the reverse proxy to answer 502 Bad Gateway:
- routes that await nothing, and PAT and MCP authentication, are plain functions, which FastAPI runs in its thread pool; 43 that awaited only their body take it from
server/request_body.pyand are plain functions too; - the async ones run their database work and eval scoring (an LLM judge, embeddings) in a thread: the OpenAI-compatible API's agent lookup and usage, the proxy's agent model and an SSO user's roles, the widget's chat, eval runs and the Playground, the Work Room's search, agent edits;
- Sessions counts, orders and pages in the database, reads a page row's events by the session's whole key, which ADK's index on
eventsserves, and uses one engine instead of a new connection pool per call; sessions of both runtimes are ordered by time again (a datetimeupdate_timesorted as 0); shared/test/test_routes_do_not_block.pyfails on an async route that awaits nothing.
- routes that await nothing, and PAT and MCP authentication, are plain functions, which FastAPI runs in its thread pool; 43 that awaited only their body take it from
Added
- Event loop lag - the log warns
Event loop blocked for N ms; requests in flight: ...when the auth server's loop is held longer thanEVENT_LOOP_LAG_WARN_MS(250), naming the requests in flight, and/metricshasmate_event_loop_lag_seconds. Seedocs/dev/deployment.md
v2.1.0
Published again on 2026-11-24, with the Work Room's new chat, names for its conversations and small fixes to the dashboard (#419, #421). If you took 2.1.0 before that, pull the image or the tag again: docker pull ghcr.io/antiv/mate:2.1.0, git fetch --tags --force.
Before upgrading, back up the database, and afterwards reinstall the dependencies (pip install -r requirements.lock) or pull the image. The first start adds V050–V052, which change no existing data.
- With
MATE_SECRET_KEYset, the first start encrypts the keys already stored in MCP servers, tools, triggers and alert rules. After that, going back to 2.0 takes the backup, or entering those values again. - An approval card waiting from before the upgrade takes no answer: ask the agent again.
- API clients of alert rules get
headersas an object with__stored__values, rather than"***".
Added
-
A command palette (dashboard redesign, step 6, #376) - Ctrl+K (⌘K on a Mac), or Search in the header, jumps to an agent, one of your recent conversations or a page you may open. Every word typed has to match, with or without accents; arrow keys and Enter choose, Ctrl+Enter opens a new tab. An administrator goes to an agent's page, a member to a chat with it (
GET /dashboard/api/palette). Inside a code editor Ctrl+K stays the editor's -
Search in the Work Room (dashboard redesign, step 5, #376) - Search agents above the welcome page's agents filters them by name and description as you type; Enter opens the only match. Search sessions above the sidebar's conversations filters them by name as you type, and Enter also finds the conversations whose messages hold the words, with the passage that matched (
GET /dashboard/api/workroom/sessions/search, your own conversations with that agent only). The list now holds every conversation, 20 at a time with Show more, instead of only the latest 20 -
A record of every approval request (approvals inbox, phase 1, #376) - each time an agent pauses before a tool it must ask about (
require_confirmation), the agent runtime writes a row to the newapproval_requeststable (migration V050):- the agent, the tool and its arguments (at most 16,000 characters);
- where the run came from (
chat,api,trigger,slackoreval), and the trigger that started it; - the agent's workspace.
- Decisions: when the person chatting approves or rejects, the row says so, with who and when, and the audit log gets
approval.approvedorapproval.rejectedwith a hash of the arguments rather than the arguments. - Coverage: both runtimes, and every surface, A2A and MCP included. Nothing about how a run goes changes.
- The history: admins can list the requests at
GET /dashboard/api/approvals, scoped to their workspace. The dashboard page comes with the inbox - Triggers: the session a trigger opens now carries the trigger's id in its state (
mate_trigger_id)
-
Approval for runs nobody is chatting in (approvals inbox, phase 2) - a trigger, an A2A or MCP call, the OpenAI-compatible API, Slack or an eval that reaches a tool which asks first now waits for an administrator, instead of stopping for good:
- Deciding:
POST /dashboard/api/approvals/<id>/decidewithapproveorrejectand an optional note. The run then continues in the background from where it stopped. Two decisions on one request: the first wins, the second gets 409. A chat's request is still answered in the chat. - Triggers: a trigger whose run waits shows an hourglass on Last Run, and sends nothing until every request of the run is decided; then the agent's answer goes to the trigger's destination.
- Expiry: a request nobody decides expires after
APPROVALS_EXPIRE_MINUTES(default a day), and the run continues as if it had been rejected. - Cancellation: deleting the agent cancels its waiting requests.
- Audit: each decision, expiry and cancellation has its audit entry.
- A2A and MCP: runs are now recorded as
a2aandmcp, not as a chat's. - The Approvals page (Control Room → Workspace), with a count of the waiting requests beside it in the sidebar:
- Waiting: the requests the inbox decides. Each opens with its arguments, Approve, Reject and a note, and a link to its session.
- History: every request of the workspace, a chat's included, with its decision, who made it, and how the run went on. It can be filtered by decision and source, searched, and is paged.
GET /dashboard/api/approvalstakesinbox=true(leave out a chat's requests) andq(search agent, tool and user)- Session Tracking opens a session given in its link (
?session_id=…&app_name=…&user_id=…)
- Deciding:
-
Who approves, who is told, and how long a request waits (approvals inbox, phase 3, #376) -
require_confirmationcan be an object as well as a list of tools:approver:chat(the default, as before),inbox(only an administrator decides, on the Approvals page; the chat's card has no buttons and says it is waiting) oreither(whoever answers first);notify: an http, email, Slack or Discord destination that is told when a request starts waiting for an administrator. The message names the agent, the tool, the source and the arguments' names, never their values, and links to/dashboard/approvals?id=…(underMATE_PUBLIC_URLwhen set). Agents of the Default workspace without one useAPPROVALS_NOTIFY_TYPEwithAPPROVALS_NOTIFY_URLorAPPROVALS_NOTIFY_TO;expires_after_minutes: the agent's own wait, instead ofAPPROVALS_EXPIRE_MINUTES.- Saving an agent checks these settings and refuses what doesn't validate.
- In the Visual Builder, the agent panel has an Approvals section with a summary and a dialog for all four settings.
- Migration V051 adds
approverandanswered_attoapproval_requests.
-
Input and output schemas and
include_contentson LangGraph (#374) - an agent'soutput_schema,input_schemaandinclude_contentswere ignored on the LangGraph runtime and now work as on ADK. Thanks to @tharunsridhar -
The cost of each call in Usage → Raw Data (#386) - in the table and in a call's details; a call whose model has no price shows —. Thanks to @KhHuyy
-
Dashboard components (dashboard redesign, step 2, #376) -
static/css/components.cssholdsm-classes for cards, buttons, form fields, badges, switches, notices, dialogs and tables, on the design tokens only, so they are right in both themes without the Tailwind remap.static/js/data-table.jsis a shared table with search, sorting, pagination and an empty state, for lists a page loads whole and for lists the API pages;static/js/dialogs.jsopens and closes dialogs, with Escape, focus and Tab kept inside;static/js/tabs.jsgives tabs their keyboard and ARIA states. Seedocs/dev/dashboard-components.md -
Each agent has a page (dashboard redesign, step 4, #376) -
/dashboard/agents/<name>, opened from the agent's row on Agents and from Advanced Setup in the Visual Builder. Its header holds Copy, Open in Visual Builder, Export and Delete, and it has tabs; the tab open is in the address (#versions):- Settings, the agent's editor, in three columns: the basics on the left, the instruction in a Markdown editor in the centre, and on the right one section each for tools, MCP servers, File Search, memory blocks, guardrails, planner, generation, input/output, model endpoint, AI disclosure and advanced settings. A section says on its line whether it is set (
3 on), and holds its fields and their JSON, which follow each other as you type. A save bar appears when something changed, and leaving with unsaved changes asks first; each save makes a version, as before - Pickers instead of JSON for parent agents (the workspace's other agents) and allowed roles (the roles the workspace's members and agents use, each with how many members hold it;
widgetfor an agent on a website) - New and Copy use the same editor:
/dashboard/agents/new, and/dashboard/agents/new?from=<name> - Versions: the version history with its diff, Rollback, Run Evals and tags
- Sessions: the conversations with the agent from every surface, with search; a sub-agent shows its root agent's. Open shows one in the Session Inspector
- Evals: the agent's test cases with their latest result, and the score of each version
- Usage: the agent's model calls over 24 hours, 7 or 30 days, with calls, tokens and cost per model, and charts of the tokens and the cost over time, by model
- Traces: the traces that ran the agent
- Channels: its triggers, widget keys (with their dialog) and Slack integrations
- Test, for a root agent: a chat with it, the Work Room framed in the page
- API:
GET /dashboard/api/sessionstakesexact_app=true(itsapp_nameotherwise matches part of a name),GET /dashboard/api/usage/logstakesagent_nameand then returnsby_modeland, for up to 31 days,by_hour, andGET /dashboard/api/tracestakesagent_name; both answer 404 for another workspace's agent./dashboard/evals?agent=<name>opens an agent's suite,/dashboard/traces?trace_id=<id>&hours=<n>one trace, and?embed=1shows a dashboard page without its navigation and sidebar - Components:
m-section,m-chips,m-menuandm-savebarinstatic/css/components.css. Seedocs/user/agents.mdanddocs/dev/dashboard-components.md
- Settings, the agent's editor, in three columns: the basics on the left, the instruction in a Markdown editor in the centre, and on the right one section each for tools, MCP servers, File Search, memory blocks, guardrails, planner, generation, input/output, model endpoint, AI disclosure and advanced settings. A section says on its line whether it is set (
Security
- Keys of MCP servers, tools and webhooks are encrypted in the database - with
MATE_SECRET_KEYset, the keys in an agent's MCP servers and tools, and the address and headers a trigger or an alert rule sends to, are stored encrypted, in the agent's versions too. Only those values are; the rest of each configuration stays readable. Those stored before are encrypted at the next start. Going back to 2.0 after that: those values ha...
v2.0.1
Security
- The image data extraction tool ignored the workspace's provider keys - it read
OPENROUTER_API_KEYandOPENAI_API_KEYfrom the environment, so an agent in a workspace that may not use the platform's keys called on them. It now looks the key up as every other model call does: the workspace's key for the provider, else the environment where the workspace may use it, elseThis workspace has no key for <provider>. A key in a provider's error is masked. With an Ollama model the tool downloads the image itself; outside Default that download no longer reaches the server's own network unlessOUTBOUND_ALLOW_PRIVATE_NETWORKis set.
v2.0.0
Read docs/dev/upgrading-to-2.0.md before upgrading. The first start migrates the database (V046–V049) and moves agent roles off users.roles; the only way back to 1.x is the backup taken before it. In production the auth server refuses to start without MATE_SECRET_KEY. An installation upgraded from 1.x has one workspace, Default, holding everything it had, and answers its clients as 1.x did: shared/test/test_client_contract.py runs the OpenAI-compatible API with a personal access token, the widget and /run_sse through the proxy against the real app, unchanged since 1.6.
Added
- Workspaces (#277) - several organisations (clients, departments) in one installation, each with its own members, projects, agents, budgets, alert rules, logs and provider keys. A workspace's members see and run only its agents and data, through every entry point: the dashboard, the proxy and
/list-apps, the Work Room, the OpenAI-compatible API, MCP and A2A, the widget, triggers and Slack, alerts and rate limits, traces and replay. A row of another workspace answers 404. Agent names stay unique across the installation. Seedocs/user/workspaces.md- Platform → Workspaces, for platform administrators: create a workspace with a first owner, who gets an invitation; rename, suspend and resume, close one with no projects. A suspended or closed workspace stops: its dashboard, tokens, agents, widget keys, Slack integrations and triggers. The page also sets whether a workspace may use the platform's provider keys, and which platform features it may use:
code(the code executor, stdio MCP servers, hardcoded agents),server_credentials(Google Drive, Calendar, Supabase Storage, the shop's vendor settings) andemail(a trigger's or alert's email through the server's SMTP). Default has all three, as 1.x did, and always uses the platform's keys. - The workspace switcher in the account menu, shown to someone with more than one workspace. Basic auth picks a workspace with the
X-MATE-Workspaceheader. - Control Room → Members: owners change a member's role (owner, admin, member) and agent roles, or remove them; anyone leaves a workspace. The last owner can't leave or be demoted. Every change is audited.
- Invitations: an owner invites an email with a role. The link is valid for 7 days and used once; it is emailed when SMTP is set and shown to copy either way. Accepting it, signed in or through single sign-on with the invited email, adds the membership.
OAUTH_ALLOWED_DOMAINSandOAUTH_ALLOWED_EMAILSstill apply. Seedocs/user/users-and-roles.md - Workspace budgets and alerts: a budget of scope
workspacecounts tokens and dollars over the whole workspace's usage, and the Whole workspace alert rule (stored asglobal) measures it. A user's budget or alert counts their usage in the workspace only. Seedocs/user/rate-limits.mdanddocs/user/alerts.md - Usage and logs per workspace: Usage, Audit Logs, Guardrail Logs, Traces and Sessions show the current workspace; platform administrators can show All workspaces, and Platform → Workspaces shows each workspace's usage over 30 days. Members see their own usage. Log rows and spans carry
workspace_id.
- Platform → Workspaces, for platform administrators: create a workspace with a first owner, who gets an invitation; rename, suspend and resume, close one with no projects. A suspended or closed workspace stops: its dashboard, tokens, agents, widget keys, Slack integrations and triggers. The page also sets whether a workspace may use the platform's provider keys, and which platform features it may use:
- Provider keys per workspace (#277) - on Models and keys, a workspace's owners save a key, with an optional base URL, for
google,openai,anthropic,openrouter,deepseek,mistral,groq,xaiorollama, and set the workspace's image model. A key is looked up on every model call: the agent's own key, else the workspace's key for the model's provider, else the platform's keys in the environment when the workspace may use them, else the call fails withThis workspace has no key for <provider>. That covers the agent's model and its fallback, sub-agents, the compaction summarizer, native Gemini and File Search, the image tool, memory block embeddings, the eval judge and improver, Work Room titles and the hallucination guardrail. A key is saved only whenMATE_SECRET_KEYis set, is shown as••••1234once saved, and the audit entry names the provider only. Admins of the workspace see which providers have a key. Seedocs/user/workspaces.md - Upgrade guide -
docs/dev/upgrading-to-2.0.md: what to do before upgrading, what the first start changes, how to check it and how to go back. - Client contract test (#309) -
shared/test/test_client_contract.pymakes the calls 1.x clients make against the real app: the OpenAI-compatible API with a personal access token, the widget and/run_ssethrough the proxy with admin credentials. A change to it is a breaking change. - Cross-workspace test (#277) -
shared/test/test_cross_workspace.pycalls every dashboard route as a member of another workspace and fails when one answers with a row it should not, unless the route is listed as platform-only.shared/test/test_workspace_end_to_end.pysets up a workspace over HTTP and suspends it;shared/test/test_provider_keys_end_to_end.pyruns a workspace on its own OpenRouter key and checks that no request carries a platform key. Seedocs/dev/auth-and-access.md
Changed
MATE_SECRET_KEYis required in production (#347) - withMATE_ENV=productionthe auth server refuses to start without it, unlessMATE_ALLOW_INSECURE_DEFAULTSis set. Elsewhere it still only warns. Seedocs/dev/deployment.md- Agent roles are kept per workspace (#337) - the first start moves each user's agent roles to their membership of Default, once, and
users.roleskeeps onlyadmin,pendingandwidget. Agent roles are edited on Members; the Users page editsadminandpending. A user inserted with agent roles, as 1.x code writes them, gets them on the membership. Going back to 1.x after the first start loses the agent roles, which 1.x reads fromusers.roles: restore the backup instead. - "Admin" means an administrator of the workspace (#320) - a user with the
adminrole is a platform administrator and an owner of Default. Owners and admins of a workspace administer only that one; the installation's pages (settings, the wizard, binary builds, Platform → Workspaces) stay with platform administrators. Takingadminaway makes an owner of Default a member (#342). - A personal access token reaches one workspace (#317) - the workspace it was made in; tokens from 1.x reach Default.
ALLOWED_API_ROLESis matched on the user's agent roles in that workspace. A token stops working when its workspace is closed or suspended, or its owner is no longer a member of it. - Responses that list projects, agents or logs gain a
workspace_idfield. - An RBAC refusal's audit entry lists, in
user_roles, the user's agent roles in the agent's workspace, where it listedusers.roles(#342). - No agent is exposed over MCP unless named (#364) -
MCP_EXPOSED_AGENTSdefaulted tochess_mate_root, so an installation with an agent of that name served it at/agents/chess_mate_root/mcp. Unset or empty, it now exposes none. SetMCP_EXPOSED_AGENTS=chess_mate_rootif you relied on the default. - Project names are unique per workspace (#334), instead of across the installation. A template import whose agent names one another workspace holds is refused with 409 before it creates the project.
- One integration per Slack team (#319) - V047 makes
channel_integrations.team_idunique, so a Slack event finds one workspace. It fails on an installation with two integrations for one team; the upgrade guide has the query that finds them. - A renamed agent keeps its rows (#328) - a rename moves the agent's sessions, ratings and other rows to the new name, and rewrites its sub-agents'
parent_agents. - The dashboard uses its own dialogs everywhere (#244) - the last native
alert()calls are the shared dialog. - One date and time format (#247) - every page shows dates and times in the viewer's time zone, in one format, and an empty value as one placeholder.
- The agent side panel closes by clicking outside it or pressing Escape (#312) - with unsaved changes, it asks first.
- The developer and user guides were checked against the code (#205, #206, #236) - no guide is marked
status: migratedany more, and the guides name the dashboard's buttons, fields and tiers as it shows them.
Security
- Single sign-on uses PKCE (#364) - Google and GitHub sign-in send a code challenge (S256) with the redirect and the verifier with the code, so a code taken from the redirect is of no use. The registered redirect URIs don't change.
- A provider error that repeats the key is logged with it masked (#352) - some providers repeat the key they were sent in their error, which reached the logs through ADK's traceback and could reach a response. The key of the call is masked in the error and the errors it was raised from, on streamed and live calls too.
- Webhooks, MCP servers and model endpoints of a workspace other than Default don't reach the server's own network (#326) - private and loopback addresses are refused, and a model endpoint's redirects aren't followed, unless
OUTBOUND_ALLOW_PRIVATE_NETWORKis set. - Only the server gives out the reserved user ids (#321) - single sign-on and new accounts can't take a widget visitor's
widget_<key id>_id ortrigger_runner. - A rating needs a session of the caller with that agent (#321), and a session is read and deleted by its whole key (app, user, id), so a session id another agent also has reaches only the session checked.
- Each agent has its own A2A task store (#321) -
tasks/getandtasks/cancelthrough one agent find none of another's tasks.
Fixed
- The LangGraph runtime ignored the File Search stores assigned to an agent (#362) - on
AGENT_FRAMEWORK=langgraph, only stores written into the agent'stool_configwere used. Both runtimes now add the stores assigned on the File Search page.
...
v1.6.1
Security
- The proxy refuses dot segments from non-admins - the proxy to the agent server checked a non-admin's path as it was sent, but httpx resolves
.and..segments when it forwards the request. A signed-in user who was not an admin could sendapps/<agent>/users/<own id>/../<other id>/sessions(withcurl --path-as-is, or%2e%2e) and read another user's conversations, or reachrun_sseand other admin-only routes the same way. Such a path is now refused with 403; an admin's request is forwarded as before. Seedocs/dev/auth-and-access.md /run_liveescapes its query - the WebSocket proxy built the agent server's URL by pastingapp_name,user_idandsession_idinto it, so asession_idofx&user_id=<other id>ran the live session as that other user. The query is now built withurlencode.- The widget escapes the visitor id - the widget created a visitor's session at a URL built from the visitor id the page sent, so
../in it could create a session under another agent or user. The id is now escaped; a generated visitor id is unchanged.
v1.6.0
Added
-
User guide for personal access tokens (#235) -
docs/user/personal-access-tokens.mdexplains who can have a token, how to create, use and revoke one, and how to use it as an OpenAI-compatible model or from an MCP client. Before, only the developer guides, which non-admins cannot open, explained them, and the help panel answered questions about tokens with the MCP server configuration instead. Users and roles and Tools and MCP servers link to it. -
Cost per helpful answer (#275) - the Usage page's Satisfaction by Agent table shows what each answer rated helpful cost: the cost of every answer rated in the period, not helpful ones included, divided by the number rated helpful. A rating is joined to its answer's token rows through the invocation id, so the cost includes the sub-agents the answer handed to. Calls without a price are left out and counted, and an agent with fewer than 10 rated answers is shown in grey. The Evals Playground shows Cost per passed case per variant: its whole cost over the cases it passed, or no passes. See
docs/user/usage-and-audit.mdanddocs/user/evals.md -
Trace Replay shows which version of an agent answered (#274) - when an agent is built, MATE records the config it was built from: a short hash, and the id and number of the stored version that holds it, if one does. Each model call's
gen_ai.inferencespan carries them (mate.agent.config_hash,mate.agent.config_version_id,mate.agent.config_version). Trace Replay shows the version on each agent node and in the step list. Clicking it opens the agent's version history at that version. A run on an older version than the agent has now is marked in amber, and a config no saved version holds (changed by an agent, a template import or the API) shows its hash, so two replays on different configs can be told apart. Seedocs/user/trace-replay.mdanddocs/dev/tracing.md -
Route inventory test (#276, 1.6.0 item 1) -
shared/test/test_route_inventory.pylists every/dashboard/api/route of the real app from its router, those of included routers too (FastAPI keeps those out ofapp.routes), and requests each as a non-admin. It fails when a route answers anything but the middleware's 403, or when the allowlists inserver/dashboard_authz.pylet through a route the test does not list as reviewed. The four routes a non-admin may call today (reading and sending ratings, reading their own tokens, renaming a conversation) are the reviewed ones. The test is the skeleton of the 2.0 cross-workspace test. Seedocs/dev/auth-and-access.md -
Secrets encrypted at rest (#276, 1.6.0 item 4) - with the new
MATE_SECRET_KEY(a Fernet key, separate fromSECRET_KEY), the secrets MATE stores and reads back are encrypted in the database: a Slack integration's bot token and signing secret, a webhook trigger's signing secret, and an agent's literal Model API Key, in its version history too. The columns use a newEncryptedTexttype (shared/utils/secret_box.py) that encrypts on write and decrypts on read, so nothing else changes. When the key is set on an existing installation, the auth server encrypts the values still stored in the clear at its next start. Without the key everything works as before, and the auth server warns at startup with the number of secrets stored in the clear; 2.0 will require it in production. A key that is not a Fernet key stops the auth server at startup. Keep the key: a secret stored with it reads as empty without it, and has to be entered again. Migration V045 makes the four columnsTEXT, since an encrypted value no longer fitsVARCHAR(255).cryptographyis now a direct dependency. Checked on SQLite, PostgreSQL 16 and MySQL 8.0 by upgrading a database written by 1.6.0's previous step. Seedocs/dev/deployment.md
Changed
-
One request context for dashboard routes (#276, 1.6.0 item 2) - a dashboard route now learns who is calling from one dependency,
get_request_context(server/request_context.py), which gives it the user and their role, instead of resolving the user and calling_get_is_adminitself. Every dashboard route uses it: the 24 pages, the API routes ofdashboard_server.py, and the docs, widget-key and chat-integration routes, which takeget_api_request_contextso that a signed-out caller still gets 401 there rather than a redirect._get_is_adminand_get_auth_user_dependencyare gone, and 2.0 adds the workspace to the context. Nothing changes for users: a signed-out caller is still sent to the login page, and a non-admin to the Work Room. The route inventory test now also fails on a dashboard route that does not take the context. Seedocs/dev/auth-and-access.md -
Log rows carry their project (#276, 1.6.0 item 3) -
token_usage_logs,guardrail_logs,agent_responsesandaudit_logsget aproject_id(migration V044), written with the row: the agent's project, or for an audit entry the project of the agent or project it names. The Usage page's cost by project reads it, so a call stays with the project it was made in when its agent is moved, renamed or deleted; before, every call was counted under the agent's current project, and under No project once the agent was deleted. Rows from before the upgrade are filled in from each agent's current project by a backfill the auth server runs once in the background, 10,000 rows at a time, so a large table is never locked for long. Checked on SQLite, PostgreSQL 16 and MySQL 8.0, and on a copy of a real database, where cost by project came out the same as before. Seedocs/dev/database-and-migrations.md -
create_model()takes the caller's context (#276, 1.6.0 item 5) -create_model(), andcreate_chat_model()on the LangGraph runtime, take aModelContext: the agent and project a model is built for. An agent's model and its fallback model get the agent, a subagent gets the agent that started it, and the fallback agent and the compaction summarizer get the installation's empty context. Provider keys still come from the environment, so nothing changes for users; the context appears in the "Creating ... model" log line, and 2.0 looks up a workspace's provider keys from it.shared/test/test_model_context.pyfails on a call to either function that does not pass a context. Seedocs/dev/agent-runtime.md
Fixed
-
An agent created with the name of a deleted one inherited what was left of it (#276, found in the reviews of 1.5.1) - many tables refer to an agent by name, with no foreign key to cascade along, and deleting an agent left those rows behind. A new agent with the same name, perhaps in another project, then took them over:
- its file-search store links, possibly to another project's stores;
- its widget keys, which exposed the new agent publicly, and its Slack integrations and triggers;
- its budgets, alert rules and eval test cases;
- its users' stored OAuth credentials, their conversations on both runtimes, the memory built from them, and app-wide state.
Every way of deleting an agent now removes them, in the same transaction: the dashboard's agent and project delete, the Create Agent tool and the wizard's trial cleanup (
shared/utils/agent_cleanup.py). Usage, guardrail, feedback and audit logs stay. Checked on SQLite, PostgreSQL 16 and MySQL 8.0 against the session tables ADK creates. Seedocs/user/agents.md -
A signed-in user could use up another user's request allowance (#276, found in the review of 1.5.1 C) - the rate-limit middleware counted a
/run_sserequest against the user id in its body before the proxy checked that id, so requests naming another user, which the proxy then refused with 403, still counted against that user's per-minute limit. A request that is refused is no longer counted. Seedocs/user/rate-limits.md -
A LangGraph session created with the id of a deleted one resumed its conversation (#276, found in the review of #302) - deleting a session on
AGENT_FRAMEWORK=langgraphremoved its rows but not its checkpointed graph state. Deleting a session now deletes its checkpoint, and creating a session with a given id deletes any checkpoint left under it. Seedocs/dev/langgraph-runtime.md -
The LangGraph runtime skipped remote MCP servers (#289) - on
AGENT_FRAMEWORK=langgraph, an MCP server given byurlwas dropped with the warning "missing command or args", and the agent ran without its tools. It is now reached as on ADK: over streamable HTTP, or SSE with"transport": "sse", withheaders,timeoutandconnect_timeout;${NAME}in the url and headers is read from the environment and an unset one skips the server; onlyhttpandhttpsare accepted; and an entry with bothurlandcommanduses the url.${NAME}in a stdio server'scommand,argsandenvis now read from the environment too, as on ADK, instead of being passed on as written. A server that cannot be reached now costs only its own tools, not those of every server of the agent. Seedocs/user/tools-and-mcp.md -
Slack users from different Slack workspaces shared one MATE user (#276, 1.6.0 item 6) - a Slack user's MATE id was
slack_<user>, without the workspace, so the same Slack user id in two workspaces had one set of roles, one profile, one memory and one store of connected accounts (OAuth credentials). The id is nowslack_<team>_<user>. On upgrade:- A Slack user's first message creates the new id with the roles of the old one, so no one loses access to a restricted agent, and the audit log records it.
- The bot starts existing threads and direct messages afresh.
- The old id keeps its conversations, usage and audit entries, which stay readable in the dashboard; its profile, memory and connected accounts are not carried over.
See
docs/user/slack.md -
LangGraph checked roles only for the agent requested, not the one that answered (#276, 1.6.0 item 7) - on `AGENT_FRAMEW...
v1.5.1
Every deployment should upgrade, and soon: a signed-in user who is not an admin
could chat as another user, the admin included, by sending a second spelling of the
user id (userId) that the proxy did not check. The release also makes the role
check refuse when it cannot decide instead of letting the call through, stops
agents named like a system agent from skipping it, ties file search stores and
budgets to the agent's own project, and deletes a project's integrations, budgets
and test cases with it.
Before upgrading:
- A request to
/runor/run_ssewhose body givesuser_idanduserId(or
app_nameandappName) with different values is refused. MATE's own clients
send one spelling. - With
MATE_PLUGINS_ENABLED=true, an agent built in code needs anagents_config
row, or the role check refuses it.
No migrations.
Fixed
-
Deleting a project left its integrations, budgets and test cases behind -
_delete_projectremoved the project's agents, stores, memory blocks, widget keys, triggers and alert rules, but not:- its Slack and other channel integrations, and integrations of other projects pointing at its agents, which stayed active for an agent that no longer existed;
- the rate-limit configs of the project and its agents;
- its agents' eval test cases and their results.
A new agent with a deleted one's name inherited its budget and its test cases. They are deleted with the project now; deleting a single agent still leaves them (#276)
-
The Edit Memory Block dialog had controls that did nothing (#243) - its minimize and restore buttons and its drag handle are gone, and so are six debug
console.logcalls in the agent form scripts. Thanks to @sourabh65mehta
Security
- A signed-in user could chat as someone else, the admin included - the proxy lets a user who is not an admin run an agent only as themselves, and checked the
user_idin the body of/runand/run_sse. ADK also acceptsuserIdand uses it when a body has both, so a body with the user's ownuser_idand"userId": "admin"passed the check and ran as the admin: past the agents' role checks, and into the admin's conversations, memory and profile. Both spellings are checked now, and a body where they differ is refused. The rate-limit middleware had the same blind spot withappName, which let a request be checked against one agent's budget while another agent ran; it now reads the same values ADK uses and refuses a body whose spellings disagree. Seedocs/dev/auth-and-access.md(#276) - The role check let a model call through when it couldn't decide - before each model call the RBAC callback compares the caller's roles with the agent's
allowed_for_roles, but it allowed the call, with a warning, when there was no user id in the context, no agent name, or no enabled config for the agent, which also happens when the config lookup fails on a database error. It now refuses in all three cases, as it already did when the check raised, and so does the callback chain if the check itself fails to run; the LangGraph runtime's hook refuses an agent without a config the same way. Eval and Playground runs and the system agents still skip the check. WithMATE_PLUGINS_ENABLED=truethe check runs for every LLM agent in the app, so an agent built in code needs anagents_configrow now. Seedocs/dev/auth-and-access.md(#276) - Agents named like a system agent skipped the role check - the RBAC callback skipped any agent named
mate_fallback_agent,system_agentorhealth_check_agent, and the dashboard and thecreate_agenttool accept any name, so an agent given one of them answered everyone, whatever itsallowed_for_roles. Only the fallback agent MATE builds itself when the configuration cannot load skips the check now, recognised by its class rather than by name; the other two names belonged to no agent (#276) - A chat request could pick the project its budget was checked against - the rate-limit middleware read
project_id(orprojectId) from the body of/run_sseand checked the request against that project's limits instead of the agent's, so a caller could name a project without a budget and escape the one on the agent's project. It now ignores the body's project and the rate limit service looks the project up from the agent, as the OpenAI-compatible API already did (#276) - A file search store could be assigned to an agent of another project -
assign_store_to_agent, behindPOST /dashboard/api/agents/{name}/file-search/stores/assign, checked that the agent and the store existed, not that they belonged to the same project, so an agent could be given another project's documents. It now refuses a store of another project. The dashboard already offered only the project's own stores; Clone to Project with file search still shares the source's stores on purpose (#276)
v1.5.0
Every deployment should upgrade: the agent, Google Drive and image MCP servers
answered without a login, an empty AUTH_PASSWORD let anyone sign in with empty
fields, any signed-in user could fire a trigger, and a widget admin key could change
another agent's files. The release brings costs in US dollars with dollar budgets,
a Playground to compare models and instructions, Trace Replay on the Visual
Builder canvas, an image tool for any LiteLLM image model, alerts on fallback
model use and to Slack and Discord, and a Docker image on GHCR. MySQL works
for the first time, and A2A works again on a2a-sdk 1.x.
Before upgrading:
- MCP clients of
/agents/<name>/mcp,/gdrive/mcpand/images/mcpneed
credentials, for example a personal access token. POST /triggers/{id}/firewithout the trigger's key needs an admin.- With
CSP_MODE=enforce, inline scripts need the nonce;report-only, the default,
blocks nothing. SUPABASE_BUCKETdefaults toartifactseverywhere; set it if you relied on
public-bucket.
Migrations V037 to V043 run on startup.
Added
- Trace Replay on the Visual Builder canvas - a traced chat session can be played back on the agent graph as one run, turn after turn (the time between turns cut to a short pause): agents light up in the order they ran, the edge into a sub-agent lights up while it is handed the conversation, each agent shows the model or tool it is using and how long it has run, finished agents show their time, and an agent whose model failed shows which fallback model answered. The session list only offers sessions of the project on the canvas. Open it with Replay in the Visual Builder toolbar, or Replay on canvas on a trace. It reads the
trace_spansrows recorded withOTEL_TRACING_ENABLED=true(ADK runtime only), through two new admin routes,GET /dashboard/api/traces/sessionsandGET /dashboard/api/traces/replay. Thegen_ai.inferencespan now recordsmate.model.fallbackand the fallback asgen_ai.response.modelwhen the fallback answered. Seedocs/user/trace-replay.md - Docker image on GitHub Container Registry (#249) - every release tag now publishes
ghcr.io/antiv/mateforlinux/amd64andlinux/arm64, tagged1.5.0,1.5andlatest, so MATE runs with onedocker runand no clone or local build. The workflow starts the image and checks/healthbefore it pushes anything. Seedocs/dev/deployment.md - Agent MCP servers offer a prompt and a resource - next to its tool, each agent exposed over MCP now lists the prompt
ask_<agent>, which asks the agent a question through its tool, and the resourcemate://agents/<agent>/about, with the agent's name, description and how to call it (not its instruction).initializeannounces both capabilities. Seedocs/dev/mcp-servers.md GET /mcplists the agents exposed over MCP (#231) - with a personal access token (or any other way the agent servers accept), it returns the agents inMCP_EXPOSED_AGENTSthat the caller may use, each with its name, description and full MCP URL, so a client can be set up without knowing the names. Seedocs/dev/mcp-servers.md- Agent MCP servers describe themselves (#231) - the
initializeresponse of/agents/<name>/mcpnow carries the agent's description inserverInfo(title,description) and asinstructions. MCP registries read it: without it the LobeHub market CLI (lhm plugin init) refused the server with "Could not infer a plugin description" - Playground: compare models and instructions side by side (#178) - on the Evals page, a Playground tab runs one prompt, or an agent's active eval suite, on two or three variants of the agent: its current config or a stored version, with another model and/or other instructions. It shows each variant's average score, reply time, cost in US dollars and tokens, and every reply with its own score, time and cost. Variants run in memory like eval runs: nothing is saved or deployed, and a variant that cannot run shows its error while the others still run
- Cost in US dollars, not only tokens (#178) - tokens were tracked per agent, user and project, but no price was shown anywhere. Every model call is now priced when it is logged (
token_usage_logs.cost_usd), and the Usage page shows the period's cost, the cost per agent and per project, and what agents' fallback models cost apart (calls a fallback answered are now marked,is_fallback). Prices come from a price set on the new Model prices part of the Settings page, then foropenrouter/models OpenRouter's own price list (LiteLLM has no entry for most of them, and reports 0 for those), then LiteLLM's. A model none of them prices has no cost rather than a cost of $0, and the Usage page shows the share of tokens left out. Setting a price reprices the model's past calls; Fill in missing costs prices calls logged before their model had a price, andopenrouter/calls logged before OpenRouter's list arrived are priced as soon as it does. Costs are list prices, without discounts for cached input. Rate Limits takes budgets in dollars per day and per month for a user, agent or project (usd_per_day,usd_per_month), each measured against that scope's own spend, with the same warn or block actions, and the Budget threshold alert can be in dollars, with its own limit or the Rate Limits one. Calls without a price do not count toward a dollar budget - The image tool takes any image model LiteLLM supports - the agent form offered three models, and the tool had two hand-written paths: OpenAI's
images.generateand a separate Nano Banana path through OpenRouter chat, so Imagen, FLUX, Stability, Recraft, xAI or Bedrock models could not be used. Generation now goes throughlitellm.aimage_generation, except for OpenRouter models, which go through its chat completions asking for an image (modalities), since LiteLLM's image call for OpenRouter leaves that out and the model then answers in text only. Models are named as for agents (gemini/gemini-2.5-flash-image,black_forest_labs/flux-pro-1.1, ...) and each provider's usual key; Gemini also takesGOOGLE_API_KEY. Image Model in the agent form is a text field with suggestions. The default for agents that name none is set on a new Settings page in the dashboard (Control Room → System), or with the newIMAGE_MODEL, elsedall-e-3; the page shows which applies and whether its provider's key is set, and every change is audited. The page stores its values in a newsystem_settingstable (migration V040). Existing configs keep working: bare OpenAI names with the same defaults and key fallbacks,nano-banana, and the tool namegenerate_image_nano_banana. Images are saved with the type they came in (JPEG, WebP, ...) instead of always as PNG; only PNGs carry the Art. 50 AI-generated marker. The setup check behind/images/mcp/healthnow looks for the default model's key instead of listing OpenAI models. Seedocs/dev/image-generation.md - Alert when agents answer on their fallback model - the fallback model hides a provider outage from the person chatting, and the Agent errors condition could not show it either: on ADK it counts the primary's failure like any other error, on LangGraph not at all. A new Fallback model used condition counts the requests a fallback answered in a time window, per agent, project, user or globally, from the
agent.model_fallbackaudit entries both runtimes write. Its webhook event ismodel_fallback_alert. Seedocs/user/alerts.md - Slack and Discord as alert destinations - an alert posted to a Slack or Discord webhook URL as an HTTP destination was refused, since those take a fixed body (
text,content) rather than MATE's payload. Alert rules can now name a Slack (incoming webhook) or Discord (webhook) destination, which posts the alert message as text. Slack's<>&are escaped and Discord's mentions turned off, so a rule or agent name cannot ping the channel, and the rule list shows the destination type instead of the webhook URL. Seedocs/user/alerts.md - Ratings from standalone builds - a standalone build showed no 👍/👎, since it had nowhere to keep them, so whoever distributed one never learned which answers were bad. With
MATE_FEEDBACK_URLandMATE_FEEDBACK_KEY(the standalone feedback key of a widget key for the same agent, shown under Embed Code) in the build's.env, the chat shows the buttons and the note after a thumbs-down, and the build forwards each rating to that MATE, where it lands in Evals → Rated Down with Add to evals and Suggest a fix. The central server cannot read the build's sessions, so the build sends the rated question and answer, read from its own session store, never from the browser; they are stored on the rating (migration V038) and shown as sent by a standalone build, and used only when the server has no session for it. The server takes them only with the feedback key (X-Widget-Feedback-Key, migration V039 generates one for every widget key): with the public key, which is in every page that embeds the widget, the rating is recorded and the text ignored, so a visitor cannot feed made-up exchanges to Suggest a fix. A rating can no longer be changed through another agent's widget key. The build's/feedbackroute takes at most 30 ratings a minute per client, and forgets idle clients. Off by default. Seedocs/dev/standalone-build.md(#125)
Changed
- Patch releases for an older minor version - a release tag now marks the GitHub release as Latest and the Docker image as
latestonly when it is the highest finalvX.Y.Ztag, so av1.5.1cut from arelease/1.5branch afterv2.0.0leaves both on 2.0.0. CI also runs on pushes torelease/**. How releases and maintenance branches work:docs/dev/releases.md - Dollar budgets can see calls without a price and sub-agents (#222) - ...
v1.4.0
Every deployment should upgrade: the built-in admin account was refused by
admin-only agents on a new installation, a disabled webhook trigger still ran,
and two pages could run script stored by a widget visitor or a widget key's
holder. The release also brings a fallback model for provider outages, a
Content-Security-Policy (Report-Only), the documentation inside the
dashboard with a help agent behind a ? button, and memory blocks that
honour their Read-only and Character Limit settings.
Migrations V034 to V036 apply on startup. V035 replaces a Tavily API key that
older seeds wrote into agents' MCP URLs with ${TAVILY_API_KEY}; set that
variable if an agent uses Tavily.
Before upgrading:
- Install from
requirements.lock(pip install -r requirements.lock); Docker
and CI already do.requirements.txtis now only the list of direct
dependencies, and SQLAlchemy is pinned below 2.1. - With
MATE_ENV=production, the server exits at startup when it cannot reach
the database instead of serving an empty dashboard, and ADK's dev UI at
/dev-uiis off unlessADK_DEV_UI=true. - A memory block marked Read-only can no longer be changed or deleted, and a
value longer than its Character Limit is refused, whether the write comes
from an agent, the dashboard, the widget admin API, a trigger or a template
sync. An agent that relied on writing such a block now gets an error; untick
Read-only or raise the limit if that write is wanted. - Saving a trigger with an invalid cron expression, an
http_callbackwithout
a URL, or an email output without a recipient orSMTP_HOSTis now a400.
Existing triggers like that keep their config, but their runs are recorded
as errors instead ofok. docker-compose.ymlnow loads.envinto the container, so every setting
in it reaches MATE, andDB_TYPEandARTIFACT_SERVICEcome from it
(defaultssqliteandlocal_folder; it used to forcesupabase).- The Slack integration's Mention-only box is gone. It was never read: in
channels the agent has always answered only when mentioned. python shared/migrate.py rollbackis removed; it failed for every
migration. Reverse a change with a new migration or restore a backup.
Added
- Documentation in the dashboard - the documentation was a folder of Markdown files nobody saw from inside the product, and it drifted from the code. It now lives in
docs/and is served at/dashboard/docswith search: user guides, developer guides, and a reference (configuration, HTTP API, tools, database) thatscripts/gen_docs.pygenerates from the code. CI fails when the reference is stale and warns when code covered by a guide changes without the guide. The feature guides fromdocuments/moved intodocs/; pages not yet re-checked against the code are marked as such. Seedocs/dev/documentation.md - Content-Security-Policy - MATE sent no CSP, so an injected script could load code from any host and send data to one. Every page now gets a policy that limits scripts, styles, fonts and connections to MATE itself and the CDNs its templates use, forbids plugins and
<base>rewrites, and lets only MATE frame the dashboard. The widget chat page takes itsframe-ancestorsfrom the widget key's allowed origins whenWIDGET_ORIGIN_STRICTis on, covering the same sites as the origin check, so once enforced it also stops a site that hides its referrer. It ships asContent-Security-Policy-Report-Only(CSP_MODE): nothing is blocked, and violations are logged once each through/csp-report.CSP_EXTRA_SOURCESadds hosts a deployment needs. Inline scripts are still allowed; removing them is the next step. Seedocs/dev/content-security-policy.md(#124) - Fallback model - when an agent's model failed, the person chatting saw an error, even with healthy providers one config field away. An agent can now name a Fallback Model (agent modal, visual builder, or
fallback_modelon the agents API). A request whose model call fails because the provider is unavailable (a timeout, a connection failure, a 5xx or a 429) is re-run once on it, and the answer goes back without an error. Errors the request itself causes, such as a content-policy refusal or an oversized context, do not fall back, so a refusal cannot be used to get past the primary provider's filters. Guardrails and token logging apply to it as to any answer, usage logs book its tokens under the fallback model, and each fallback leaves a warning and anagent.model_fallbackaudit entry. The fallback is reached through the provider env vars, never the agent's own base URL and key. Works on both runtimes. Migration V034. Seedocs/user/fallback-model.md(#41) - Suggest a fix can change the memory blocks the agent read - when a wrong answer came from a block, such as outdated opening hours, the fix could only patch the instruction around it. The suggestion now also lists the blocks the agent read in that answer (from the rated turn, or by running the test case once in memory), and the model may revise the values of the ones you tick; read-only blocks are never offered. The check runs the suite with the new values standing in for the stored ones inside the in-memory run, without writing them, and warns which other agents of the project share the blocks. Apply is refused if a block changed meanwhile, and writes each block as a block version under your name, listed in the audit entry. See
docs/user/evals.md(#136) - Evals against a stored version on the LangGraph runtime - with
AGENT_FRAMEWORK=langgraph, running an eval against a version, a suite run and "Check against suite" returned501. They now build the graph from the version's snapshot, with sub-agents from their current config, and run it against an in-memory checkpointer, as the ADK runtime does. The deployed graph, the LangGraph session tables and the configured artifact storage are untouched, and RBAC is skipped for the eval run on both runtimes. Seedocs/user/evals.md(#123) - Help agent - a ? button on every dashboard page opens a chat with
mate_help, a built-in agent that searches and reads MATE's documentation through the newdocstool and knows which page you are on. Admins get every section with links to the Documentation page; other users get the user guides only. Migration V036 creates it in its own MATE Help project, open to the admin and user roles, with no model set, so it uses the server's default until an admin picks one; it is only created when no agent of that name exists. Seedocs/user/help.md - The database in
/health-/healthnow answers503with"database": "unavailable"when the database cannot be reached, so the DockerHEALTHCHECKand orchestrators notice. PostgreSQL and MySQL are retried at startup (DB_CONNECT_RETRIES, default 5, 3 s apart) for a database that starts after MATE, and withMATE_ENV=productionthe server exits if it still cannot connect (#144) - Hashed lock file -
requirements.lock, compiled with uv for Python 3.11 on every platform, pins every package with hashes. Docker, CI and the Quick Start install from it, so rebuilding the same commit can no longer pick up a breaking release. The README says how to regenerate and upgrade it (#143)
Changed
- ADK's dev UI is off in production by default -
/dev-uiis a debugging tool that shows admins every event, tool argument and session state, runs on the dashboard's origin, and needs'unsafe-eval'. WithMATE_ENV=productionit is no longer served unlessADK_DEV_UI=true; elsewhere nothing changes. The CSP only allowseval()there while it is served. The dashboard's Chat button already opens the Work Room, so nothing in the dashboard depends on it - The Slack integration's Mention-only option is removed - the form saved it but nothing read it: in channels the agent always answered only when mentioned, plus direct messages. The Slack guide says so (#154)
migrate.py rollbackis removed - it looked forR<version>files no migration ships, in the wrong folder, so it failed for every migration. The CLI now says to write a reversing migration or restore a backup (#156)- The dashboard's old dev UI chat side panel is removed; nothing could open it, as the Chat button opens the Work Room
Fixed
- Memory blocks ignored Read-only and Character Limit. Both were stored in a block's metadata and never checked. Changes, deletes and restores of a read-only block are now refused unless the write clears the flag, as is a value over the limit, with
error_coderead_onlyortoo_longand a message an agent can act on. The dashboard's edit form now saves the Read-only, Character Limit and Preserve on migration fields it always sent, a trigger whose answer cannot be written to its block fails the run instead of dropping the answer, and template sync skips such blocks and lists them in the sync dialog. Importing agents with overwrite still replaces blocks directly (#153) - Triggers reported success when nothing was delivered or scheduled. An invalid cron expression, an
http_callbackwithout a URL and an email output without a recipient orSMTP_HOSTwere saved without complaint, and their runs recorded asok. Create and update now answer400with the reason (update only checks when it changes the type, schedule or output, so rotating an older trigger's key still works), and such a run is recorded as an error with the agent's answer kept (#151) docker-composedid not pass.envto the container, so LLM API keys and every setting not listed underenvironment:never reached MATE. It is loaded withenv_filenow (optional), and the explicit entries still win.DB_TYPEandARTIFACT_SERVICEare taken from.envinstead of being forced tosqliteandsupabase, andDB_PASSWORDis no longer required (#159, #163). Thanks to ...