Skip to content

Releases

v2.1.2

Choose a tag to compare

@github-actions github-actions released this 29 Nov 21:35
d07dafc

Security

  • The README's password is refused in production - the README's docker run set AUTH_PASSWORD=change-me and published port 8000 on every interface, and MATE_ENV=production refused only the default mate, so an installation that copied the command had a password every such installation shares. Production now refuses change-me too, in any case, and development logs a warning for it. The README and the deployment guide generate a password and publish the port on 127.0.0.1 only. When upgrading: a production installation still on change-me stops at startup; set your own AUTH_PASSWORD

v2.1.1

Choose a tag to compare

@github-actions github-actions released this 29 Nov 15:48
df3ccd7

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.py and 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 events serves, and uses one engine instead of a new connection pool per call; sessions of both runtimes are ordered by time again (a datetime update_time sorted as 0);
    • shared/test/test_routes_do_not_block.py fails on an async route that awaits nothing.

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 than EVENT_LOOP_LAG_WARN_MS (250), naming the requests in flight, and /metrics has mate_event_loop_lag_seconds. See docs/dev/deployment.md

v2.1.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 21:13
43f1a64

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_KEY set, 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 headers as 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 new approval_requests table (migration V050):

    • the agent, the tool and its arguments (at most 16,000 characters);
    • where the run came from (chat, api, trigger, slack or eval), 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.approved or approval.rejected with 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>/decide with approve or reject and 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 a2a and mcp, 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/approvals takes inbox=true (leave out a chat's requests) and q (search agent, tool and user)
    • Session Tracking opens a session given in its link (?session_id=…&app_name=…&user_id=…)
  • Who approves, who is told, and how long a request waits (approvals inbox, phase 3, #376) - require_confirmation can 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) or either (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=… (under MATE_PUBLIC_URL when set). Agents of the Default workspace without one use APPROVALS_NOTIFY_TYPE with APPROVALS_NOTIFY_URL or APPROVALS_NOTIFY_TO;
    • expires_after_minutes: the agent's own wait, instead of APPROVALS_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 approver and answered_at to approval_requests.
  • Input and output schemas and include_contents on LangGraph (#374) - an agent's output_schema, input_schema and include_contents were 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.css holds m- 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.js is 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.js opens and closes dialogs, with Escape, focus and Tab kept inside; static/js/tabs.js gives tabs their keyboard and ARIA states. See docs/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; widget for 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/sessions takes exact_app=true (its app_name otherwise matches part of a name), GET /dashboard/api/usage/logs takes agent_name and then returns by_model and, for up to 31 days, by_hour, and GET /dashboard/api/traces takes agent_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=1 shows a dashboard page without its navigation and sidebar
    • Components: m-section, m-chips, m-menu and m-savebar in static/css/components.css. See docs/user/agents.md and docs/dev/dashboard-components.md

Security

  • Keys of MCP servers, tools and webhooks are encrypted in the database - with MATE_SECRET_KEY set, 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...
Read more

v2.0.1

Choose a tag to compare

@github-actions github-actions released this 16 Nov 07:30
c6de50f

Security

  • The image data extraction tool ignored the workspace's provider keys - it read OPENROUTER_API_KEY and OPENAI_API_KEY from 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, else This 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 unless OUTBOUND_ALLOW_PRIVATE_NETWORK is set.

v2.0.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 09:08
183355d

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. See docs/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) and email (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-Workspace header.
    • 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_DOMAINS and OAUTH_ALLOWED_EMAILS still apply. See docs/user/users-and-roles.md
    • Workspace budgets and alerts: a budget of scope workspace counts tokens and dollars over the whole workspace's usage, and the Whole workspace alert rule (stored as global) measures it. A user's budget or alert counts their usage in the workspace only. See docs/user/rate-limits.md and docs/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.
  • 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, xai or ollama, 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 with This 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 when MATE_SECRET_KEY is set, is shown as ••••1234 once saved, and the audit entry names the provider only. Admins of the workspace see which providers have a key. See docs/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.py makes the calls 1.x clients make against the real app: the OpenAI-compatible API with a personal access token, the widget and /run_sse through the proxy with admin credentials. A change to it is a breaking change.
  • Cross-workspace test (#277) - shared/test/test_cross_workspace.py calls 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.py sets up a workspace over HTTP and suspends it; shared/test/test_provider_keys_end_to_end.py runs a workspace on its own OpenRouter key and checks that no request carries a platform key. See docs/dev/auth-and-access.md

Changed

  • MATE_SECRET_KEY is required in production (#347) - with MATE_ENV=production the auth server refuses to start without it, unless MATE_ALLOW_INSECURE_DEFAULTS is set. Elsewhere it still only warns. See docs/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.roles keeps only admin, pending and widget. Agent roles are edited on Members; the Users page edits admin and pending. 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 from users.roles: restore the backup instead.
  • "Admin" means an administrator of the workspace (#320) - a user with the admin role 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. Taking admin away 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_ROLES is 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_id field.
  • An RBAC refusal's audit entry lists, in user_roles, the user's agent roles in the agent's workspace, where it listed users.roles (#342).
  • No agent is exposed over MCP unless named (#364) - MCP_EXPOSED_AGENTS defaulted to chess_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. Set MCP_EXPOSED_AGENTS=chess_mate_root if 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_id unique, 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: migrated any 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_NETWORK is 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 or trigger_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/get and tasks/cancel through 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's tool_config were used. Both runtimes now add the stores assigned on the File Search page.
    ...
Read more

v1.6.1

Choose a tag to compare

@github-actions github-actions released this 07 Nov 08:44
80e5525

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 send apps/<agent>/users/<own id>/../<other id>/sessions (with curl --path-as-is, or %2e%2e) and read another user's conversations, or reach run_sse and other admin-only routes the same way. Such a path is now refused with 403; an admin's request is forwarded as before. See docs/dev/auth-and-access.md
  • /run_live escapes its query - the WebSocket proxy built the agent server's URL by pasting app_name, user_id and session_id into it, so a session_id of x&user_id=<other id> ran the live session as that other user. The query is now built with urlencode.
  • 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

Choose a tag to compare

@github-actions github-actions released this 31 Oct 09:18
0b44b38

Added

  • User guide for personal access tokens (#235) - docs/user/personal-access-tokens.md explains 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.md and docs/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.inference span 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. See docs/user/trace-replay.md and docs/dev/tracing.md

  • Route inventory test (#276, 1.6.0 item 1) - shared/test/test_route_inventory.py lists every /dashboard/api/ route of the real app from its router, those of included routers too (FastAPI keeps those out of app.routes), and requests each as a non-admin. It fails when a route answers anything but the middleware's 403, or when the allowlists in server/dashboard_authz.py let 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. See docs/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 from SECRET_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 new EncryptedText type (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 columns TEXT, since an encrypted value no longer fits VARCHAR(255). cryptography is 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. See docs/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_admin itself. Every dashboard route uses it: the 24 pages, the API routes of dashboard_server.py, and the docs, widget-key and chat-integration routes, which take get_api_request_context so that a signed-out caller still gets 401 there rather than a redirect. _get_is_admin and _get_auth_user_dependency are 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. See docs/dev/auth-and-access.md

  • Log rows carry their project (#276, 1.6.0 item 3) - token_usage_logs, guardrail_logs, agent_responses and audit_logs get a project_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. See docs/dev/database-and-migrations.md

  • create_model() takes the caller's context (#276, 1.6.0 item 5) - create_model(), and create_chat_model() on the LangGraph runtime, take a ModelContext: 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.py fails on a call to either function that does not pass a context. See docs/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. See docs/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_sse request 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. See docs/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=langgraph removed 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. See docs/dev/langgraph-runtime.md

  • The LangGraph runtime skipped remote MCP servers (#289) - on AGENT_FRAMEWORK=langgraph, an MCP server given by url was 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", with headers, timeout and connect_timeout; ${NAME} in the url and headers is read from the environment and an unset one skips the server; only http and https are accepted; and an entry with both url and command uses the url. ${NAME} in a stdio server's command, args and env is 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. See docs/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 now slack_<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...

Read more

v1.5.1

Choose a tag to compare

@github-actions github-actions released this 17 Oct 16:00
472d223

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 /run or /run_sse whose body gives user_id and userId (or
    app_name and appName) with different values is refused. MATE's own clients
    send one spelling.
  • With MATE_PLUGINS_ENABLED=true, an agent built in code needs an agents_config
    row, or the role check refuses it.

No migrations.

Fixed

  • Deleting a project left its integrations, budgets and test cases behind - _delete_project removed 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.log calls 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_id in the body of /run and /run_sse. ADK also accepts userId and uses it when a body has both, so a body with the user's own user_id and "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 with appName, 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. See docs/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. With MATE_PLUGINS_ENABLED=true the check runs for every LLM agent in the app, so an agent built in code needs an agents_config row now. See docs/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_agent or health_check_agent, and the dashboard and the create_agent tool accept any name, so an agent given one of them answered everyone, whatever its allowed_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 (or projectId) from the body of /run_sse and 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, behind POST /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

Choose a tag to compare

@github-actions github-actions released this 17 Oct 07:20
894b943

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/mcp and /images/mcp need
    credentials, for example a personal access token.
  • POST /triggers/{id}/fire without the trigger's key needs an admin.
  • With CSP_MODE=enforce, inline scripts need the nonce; report-only, the default,
    blocks nothing.
  • SUPABASE_BUCKET defaults to artifacts everywhere; 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_spans rows recorded with OTEL_TRACING_ENABLED=true (ADK runtime only), through two new admin routes, GET /dashboard/api/traces/sessions and GET /dashboard/api/traces/replay. The gen_ai.inference span now records mate.model.fallback and the fallback as gen_ai.response.model when the fallback answered. See docs/user/trace-replay.md
  • Docker image on GitHub Container Registry (#249) - every release tag now publishes ghcr.io/antiv/mate for linux/amd64 and linux/arm64, tagged 1.5.0, 1.5 and latest, so MATE runs with one docker run and no clone or local build. The workflow starts the image and checks /health before it pushes anything. See docs/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 resource mate://agents/<agent>/about, with the agent's name, description and how to call it (not its instruction). initialize announces both capabilities. See docs/dev/mcp-servers.md
  • GET /mcp lists the agents exposed over MCP (#231) - with a personal access token (or any other way the agent servers accept), it returns the agents in MCP_EXPOSED_AGENTS that the caller may use, each with its name, description and full MCP URL, so a client can be set up without knowing the names. See docs/dev/mcp-servers.md
  • Agent MCP servers describe themselves (#231) - the initialize response of /agents/<name>/mcp now carries the agent's description in serverInfo (title, description) and as instructions. 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 for openrouter/ 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, and openrouter/ 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.generate and a separate Nano Banana path through OpenRouter chat, so Imagen, FLUX, Stability, Recraft, xAI or Bedrock models could not be used. Generation now goes through litellm.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 takes GOOGLE_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 new IMAGE_MODEL, else dall-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 new system_settings table (migration V040). Existing configs keep working: bare OpenAI names with the same defaults and key fallbacks, nano-banana, and the tool name generate_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/health now looks for the default model's key instead of listing OpenAI models. See docs/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_fallback audit entries both runtimes write. Its webhook event is model_fallback_alert. See docs/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. See docs/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_URL and MATE_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 /feedback route takes at most 30 ratings a minute per client, and forgets idle clients. Off by default. See docs/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 latest only when it is the highest final vX.Y.Z tag, so a v1.5.1 cut from a release/1.5 branch after v2.0.0 leaves both on 2.0.0. CI also runs on pushes to release/**. How releases and maintenance branches work: docs/dev/releases.md
  • Dollar budgets can see calls without a price and sub-agents (#222) - ...
Read more

v1.4.0

Choose a tag to compare

@antiv antiv released this 05 Oct 18:23
de39b57

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.txt is 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-ui is off unless ADK_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_callback without
    a URL, or an email output without a recipient or SMTP_HOST is now a 400.
    Existing triggers like that keep their config, but their runs are recorded
    as errors instead of ok.
  • docker-compose.yml now loads .env into the container, so every setting
    in it reaches MATE, and DB_TYPE and ARTIFACT_SERVICE come from it
    (defaults sqlite and local_folder; it used to force supabase).
  • 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 rollback is 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/docs with search: user guides, developer guides, and a reference (configuration, HTTP API, tools, database) that scripts/gen_docs.py generates 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 from documents/ moved into docs/; pages not yet re-checked against the code are marked as such. See docs/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 its frame-ancestors from the widget key's allowed origins when WIDGET_ORIGIN_STRICT is on, covering the same sites as the origin check, so once enforced it also stops a site that hides its referrer. It ships as Content-Security-Policy-Report-Only (CSP_MODE): nothing is blocked, and violations are logged once each through /csp-report. CSP_EXTRA_SOURCES adds hosts a deployment needs. Inline scripts are still allowed; removing them is the next step. See docs/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_model on 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 an agent.model_fallback audit 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. See docs/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" returned 501. 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. See docs/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 new docs tool 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. See docs/user/help.md
  • The database in /health - /health now answers 503 with "database": "unavailable" when the database cannot be reached, so the Docker HEALTHCHECK and 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 with MATE_ENV=production the 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-ui is a debugging tool that shows admins every event, tool argument and session state, runs on the dashboard's origin, and needs 'unsafe-eval'. With MATE_ENV=production it is no longer served unless ADK_DEV_UI=true; elsewhere nothing changes. The CSP only allows eval() 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 rollback is removed - it looked for R<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_code read_only or too_long and 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_callback without a URL and an email output without a recipient or SMTP_HOST were saved without complaint, and their runs recorded as ok. Create and update now answer 400 with 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-compose did not pass .env to the container, so LLM API keys and every setting not listed under environment: never reached MATE. It is loaded with env_file now (optional), and the explicit entries still win. DB_TYPE and ARTIFACT_SERVICE are taken from .env instead of being forced to sqlite and supabase, and DB_PASSWORD is no longer required (#159, #163). Thanks to ...
Read more