Release 0.239
v0.239.53: team apps hardening (access matrix Part 2)
- An admin sees and stops members’ apps: Team admin > Member apps lists the team-shared and submitted ones (never a private draft), with their activity, Unshare, and Delete (confirmed: the app moves to the brain and waits in the brain’s trash, with its code and data, so an admin restores it for 30 days). A member’s app runs only while its author is an active member: disabling, demoting or deleting the author stops it.
- Accept moves the app’s activity rows to the brain app, so its Activity tab shows what members did with it.
- A member login connects an MCP client with OAuth: the bearer to cookie
upgrade (
POST /api/auth/sso) serves a member too, so the consent page, a top-level navigation that carries cookies only, sees the member instead of bouncing to sign-in. A client is still refused there. - The MCP consent page names the host the code goes back to, not only the
client’s self-chosen name. A member’s bearer to cookie upgrade is audited
(
auth.sso). A password change keeps a web client’s 7-day cookie at 7 days instead of re-minting a year. - A client’s MCP never reaches a public app, even in a client-shared folder (the browser’s rule).
- Sharing a member’s app with the team is the member’s own click in the app:
my_app_shareis gone from MCP;my_app_unsharemakes an app private. - An in-brain agent that turns a connector tool on, or clears its
confirmation, below admin waits for the owner in Pending; so does an agent
lowering a whole connector’s level (
access_set). - A connector tool’s read-only mark covers its description and input schema
(
v2:signature); a sync voids it when the remote tool changes or returns, a returning tool stays off below admin, and a change of sign-in (header, scheme, OAuth app or scope, another account) voids the connector’s marks. An OAuth reconnect as the same account keeps them (the account is a hash of the token’s issuer and subject); one that names no account keeps them and asks the admin to re-check. - Smaller: an audit row for member app changes over OAuth, token and peer
connections; the sidebar says whether MCP access reaches anyone
(
mcpReach); the connector docs no longer say a public connector reaches clients; tests for the effective app level and the embed rule.
v0.239.49
team apps Phase 3, members build apps
A team member builds mini apps like Pages (plan page b6dd688e, section A).
my_app_*tools on a member’s own MCP: create, write files, build, publish, schema, tools, snapshots, errors, share, submit, recall. Reads always; changes with the Write switch. Never a client’s.- The app lives in the member’s personal space: private, then shared with the team (every member runs and writes it), then submitted (frozen) for an admin to accept into the brain at admin or team level, or return.
- The author ceiling (migration 0235,
apps.author_level): a member’s app runs its tools at team rules at most, an admin’s run included, unless an admin accepts it with its tools reviewed. - Member routes:
GET /api/member/my-apps,POST .../:id/share,.../submit,.../recall,GET .../:id/history. The member run routes (frame, db and tool brokers) run a member’s own or team-shared app, keyed to the author’s space. - Admin routes:
GET /api/team-admin/app-submissions,GET .../:id(the published source),POST .../:id/accept { level, trustTools },POST .../:id/return { note }. - The space purge never deletes a member’s app.
- M3 audit: Accept is pinned to the reviewed version and a hash of its
source, manifest and build (409
changedotherwise, or with a draft pending). A copy keeps the source’s author ceiling, an import starts at team, a member-era undelete or code restore comes back at team; onlyPATCH /api/apps/:id { trustTools }lifts it. A member’s change holds the app’s state row, so it never races a Submit or an Accept. The list pill and the run lookup share one read-only rule. The roll’s connector check runs only on the roll that crosses into connectors by level. - Rows only below admin (access matrix M1): a member’s, client’s or
contact’s write through an app changes rows, never the schema. CREATE
TABLE / CREATE INDEX IF NOT EXISTS on an object that already exists is a
no-op success; anything else (a new table, ALTER, DROP, PRAGMA,
transactions) is refused with an error the app can catch. Apps must
declare their schema (
app_db_schema_set); remove run-time CREATE TABLE IF NOT EXISTS.scripts/roll.shcounts the live apps that would still break (numbers only) and stops unless--ack-app-ddl;--app-ddl-idslists those below admin. - A member’s app change runs on its lock’s own database connection, one at
a time per login (a burst waits, then answers busy). A restore of member
code lowers the ceiling before the code goes live. Migration 0236:
apps.author_ceiling_seenkeeps the trust switch on a trusted app. - Every app list carries
dataAccess(‘read’ or ‘read_write’) for the R and R/W pill, and the sidebar carriesmcpAccess.
team apps Phase 2, connectors by level
An MCP connector’s level now decides who may use its tools, as the level on an item does (plan page b6dd688e, section C).
- Apps below admin: a member’s run reaches a connector at team, client or public level, a client app one at client level, a contact link one at public level. This replaces External access for connector tools; single http tools keep External access.
- The admin’s confirm on a connector tool is its read-only mark: marked = read, unmarked = write. Apps may write through an unmarked tool (Jason’s decision); the member, client and contact brokers log every write call with its input (2 KB).
- Members’ and clients’ own MCP lists the connector tools at their level; write tools only with the Write switch. Every call is in the audit log. The member Settings > MCP lists the connectors open to them.
- The connector list carries its level.
pnpm -C server/web connector-levels: a read-only count, before a roll, of the apps that lose or gain a connector tool and the connectors below admin (ids and numbers only). Nothing raises a level by itself.- An undo snapshot whose row fails to commit no longer leaves its file.
- Contacts read only (Jason): a public run (contact link, public agent) only calls connector tools marked read-only.
dispatchMcpholds the connector level and the public read-only rule on every non-owner call, whatever group listed the tool.- A changed or moved connector voids the mark (refused below the owner until marked again); a connector moved while below admin disables its unmarked tools, and new remote tools arrive disabled there.
scripts/roll.shstops a roll that would open connector write tools (numbers only) unless--ack-connector-writes.- Admin texts (api_tool_update, app_tools_set, app warnings) say that unmarking makes a connector tool a write, never closes it.
v0.239.47: team apps Phase 1, MCP on app data
Members and clients reach the data of mini apps from their own MCP client (plan page b6dd688e). Migration 0234.
- New per-app switch MCP access (
apps.mcp_access, off by default), set only by an admin withPATCH /api/apps/:id { mcpAccess }. - New login MCP tools
app_data_list,app_data_schema,app_data_queryandapp_data_write. They replaceapp_db_list/app_db_queryon a member’s or client’s MCP. Reach and the read or write rule are the browser’s; the login’s Write switch addsapp_data_write. - Rows only: a data-only engine authorizer in the SQL child refuses every schema change on an MCP write.
- The first MCP write to an app in an hour takes a
pre_mcp_writesnapshot first; no snapshot, no write. Every MCP call lands an access log row; a write keeps its SQL and the rows it changed. pre_mcp_writesnapshots are pruned on their own line: the newest 24 per app withinAPP_SNAPSHOT_MCP_MAX_MB(default 512), so they never push out the other automatic snapshots.- A peer bound to a member or client now acts under that login’s switches: the login’s MCP switch off refuses the peer, and it writes only while the login’s Write is on too.
- New API key area
app_data. - Members get their own view of Settings > MCP:
GET /api/member/mcpandDELETE /api/member/mcp/clients/:id(their own grants only).
v0.239.45: Apache Tika 4
The document helper moves from apache/tika:3.3.1.0 to apache/tika:4.1.0-1
(Java 17+, process-isolated parsing). The roll needs nothing by hand: the
compose file carries the new image and an inline JSON config.
- Text comes from
PUT /tika/text(and/tika/htmlfor the legacy.xlsconversion). Tika 4 ignoresAccept, and its bare/tikareturns Markdown. Against a Tika 3 server the client asks again the 3.x way, so a box whose Tika container has not rolled keeps parsing. - Tika 4 parses in a fixed pool of forked JVMs. The config sets one fork with a 1 GB heap, a 60 s parse timeout (the 4.x default is one hour) and only the endpoints Mantle calls. A document that arrives while the fork is busy gets a 429, which the client now waits out instead of indexing nothing.
/unpack/allhas a new ZIP layout (numbered entries with metadata sidecars, plus the container itself). Embedded images from legacy formats read both layouts.- The container cap rises from 1.5 GB to 2 GB. Measured: idle about 250 MB (3.x about 230 MB), peak about 1.2 GB on a 43 MB HTML file (3.x about 0.5 GB). The image is 190 MB compressed (3.x 178 MB).
- PowerPoint text is now read in-process (
parsePptx, parse routepptx). Tika 4 orders slides by relationship id as a string, so any deck past nine slides came back shuffled (4.0.0, 4.1.0 and the 4.2.0 snapshot alike). Tika stays the fallback for a deck the reader cannot open.
v0.239.36: the fresh-install look
A FRESH install now wears the Jackdaw colour theme, Lorelei avatars and the
Neat background (switched on, seed 55361, tone auto, speed 2). One source,
FRESH_APPEARANCE in client-types (zero dependencies, so the brain and the
clients read the same object): a new profile row stores it, the brain’s
read fills it in for a row that never set a value, /api/appearance serves
it before the first account exists, and share-ui’s client fallbacks
(resolveAppearanceAttrs, DEFAULT_AVATAR_STYLE) use it.
An EXISTING brain keeps the look it shows today. Migration
keep_existing_look writes the old effective values into every existing
profile row that has none of its own: colorTheme clean-slate,
avatarStyle thumbs, neatBackground '' (off). Absent, JSON null and
(theme and style only) blank values are filled; a present value is never
touched. A fresh install has no profile rows when migrations run, so it is
untouched. A stored theme the registry no longer knows still paints the
baseline, as before.
share-ui now names the CSS baseline BASE_COLOR_THEME (still clean-slate,
the theme painted with no data-color-theme attribute);
DEFAULT_COLOR_THEME is a deprecated alias of it with the same value, and
FRESH_COLOR_THEME is the new default.
v0.239.34: needle scrollbars everywhere
Every scrollbar in the share surfaces, the mini-app frame and the Jackdaw
client is now one global needle (share-ui app.css): a 4px thumb in the
theme’s primary colour, 6px under the pointer, on a transparent track. No
class is needed; scrollbar-hidden (or Tailwind’s scrollbar-none) still
hides a bar. The fat grey bar came from Tailwind 4’s own scrollbar-thin
utility: it sets scrollbar-width: thin, which in Chromium switches the
styled bar off, so Chrome drew its 11px platform bar on every
.scrollbar-thin pane. Measured: 11px and 15px before, 6px after, in Chrome
and Safari. Firefox draws its own thin bar in the theme colour.
v0.239.31: API keys and the public HTTP API v1
Scripts and MCP clients get real API keys (migration 0232, plan page 1e62e204). Each login makes its own keys in Settings > API access (members from their menu, clients under API keys in the portal). A key acts as the login that made it and can only narrow it: read only or read and write, all areas or some. Nobody can make a key for another login.
- Where a key works:
Authorization: Bearer mtlk_...on/api/mcpand on the new versioned/api/v1(31 routes: whoami, search, pages, notes, tasks, tables, files, events, contacts, journal). Every other route refuses a key. Breaking changes go to/api/v2; v1 stays six months after. - Safety: only a SHA-256 of the key is stored, compared in constant
time; the key is shown once. Admins and members re-type their password
to make one; member keys last at most 90 days, client keys 30. A password
change, Sign out everywhere, or an admin’s End sessions, disable or role
change revokes the login’s keys. A key never confirms a visibility change,
cannot make a page public, and cannot change the content of an item others
can read. Every write a key makes is audited with
the key id and its maker (
key.created,key.revoked,key.refused,api.write). - Told when a key is made: the login gets a notice (members and clients in their own thread, pushed to their phone; admins a push to their own devices). It names the key, its access and expiry, never the secret.
- OAuth connectors now end with the login’s security actions: a password change, Sign out everywhere, an admin’s End sessions, disable or role change, and a reused device token revoke the login’s OAuth grants, an admin’s included (they used to survive). Reconnect the connector after a password change. Admins and members now type their password at the connector’s consent page.
- Client keys end when the client signs out (a client has no password to re-type).
- Limits: 120 requests a minute per key on v1 and 300 on MCP, 600 and 1200 per login across its keys, search 30 a minute per key, 50 live keys per login, 20 failed tries a minute per address and key prefix and 100 per address.
- MCP tokens retired: an admin no longer makes
mtlmcpk_tokens for a member or client (POST /api/mcp-logins/:id/tokensanswers 410). Tokens made before keep working until revoked, and Settings > MCP still lists and revokes them. Members and clients make their own key instead. - Docs: docs/guide/07-api/08-api-keys.md (new), 03-http-api.md (rewritten), 02-mcp-login.md.
0.239.13: the Mantle logo files are back in brand/
The Mantle marks left this repo with the jackdaw split and were later
deleted from jackdaw too, so no repo held a canonical copy. brand/ holds
them again, restored unchanged from git history, with the Affinity design
source (brand/mantle-logo-design.af) they were exported from.
brand/README.md names the source and records where the files went.
0.239.10: the service switches live at Settings > Services
The sandbox and media switches moved off the dashboard to their own screen,
/settings/services (shared nav, Power icon, a help topic). The sandbox and
media refusals and the docs point there. docs/services.md.
0.239.9: app builds accept type-only imports
lintRuntimeImports read import type { ReactNode } from 'react' as a value
import (and { type X } as a name type X), so an app with type-only
imports failed to build. Type-only clauses and specifiers are skipped now; a
mixed import still checks its value names.
0.239.4: a service switch’s .env backups belong to the stack owner
backups/env was made by the root sidecar with umask 077, so the box owner
could not read their own .env backups without sudo. The directories now
go to the stack directory’s owner, as the pre-roll backup’s do.
0.239.3: switch sandboxes or media on and off through the updater
- The updater takes one new request kind, in its own file
(
/signal/service-request.json, so an older updater never takes it for a roll): a service (sandboxesormedia) and on or off. - On: a free-disk check,
.envbacked up tobackups/env(newest 5), the token and sandboxes directory written when missing, the profile added, only that service pulled and started (--no-deps), then a health wait. Any failure restores.envand stops the container again. - Off: running sandbox containers are stopped (never removed), the service container is stopped and removed, the profile dropped. Tokens, the sandboxes directory, every sandbox’s files, app data and images stay.
- Routes (admin logins):
GET /api/services(state, plain descriptions with download size and memory, the small-box warning, the current run),GET /api/services/status(progress),POST /api/services/:name { enable }, audited asservice.toggle. A switch is refused while a roll runs, and a roll while a switch runs. The brain offers the switch only when the updater advertises the verb. - docs/services.md (new); sandboxes.md, video-ingest.md and self-hosting.md point at it.
0.239.2: outside Claude learns how a mini app knows who runs it
An MCP client building an app had no way to learn about host.me(); only
the in-brain app_authoring skill taught it.
app_createcarries a short runtime hint:host.me(), the:host_me_*parameters with a SQL example,host.db,host.tools.callwithapp_tools_set, and the level rules.app_file_writeandapp_source_setpoint at it;app_tools_set,app_db_schema_setandapp_db_querysay the rules that touch them.app_authoring_guide(new, MCP only, read only) serves docs/app-authoring-guide.md whole or one section. The admin server instructions point at it.- Docs drift fixed: the guide said a team app cannot learn the member, and that share links and members never call outside tools (External access says otherwise). The Appsmith skill states the current levels.
0.239.1: the boot reconcile keeps the owner’s param switches
syncSpecialistDefs wrote the manifest params whole onto every enabled
specialist, so a tool_loading, suggest_follow_up or top_p the owner
set went back to the manifest on the next boot. Those three keys
(OWNER_PARAM_KEYS) now keep their stored value; the manifest still owns
temperature and max_tokens. Adopt from template follows the same rule.
The compare ignores jsonb key order, so a row is no longer rewritten on
order alone. The propagation table in
server/web/lib/system-manifest/CLAUDE.md names the kept keys.
0.239.0: one live source for whether sandboxes and media are on
serviceEnabled()(@mantle/config) answers for the dashboard pills,/api/sandboxes, the sandbox tools,video_ingest, the CAD render path and the agent tool list, instead of a check for a bearer token. On means the compose profile is active (the updater’s live/signal/services.json, else the container’sCOMPOSE_PROFILES) and the URL and token are set.- A service that is off shows a grey pill, not red.
- An agent is not offered
sandbox_*orvideo_ingestwhere the service is off (effectiveToolSlugsdrops them; the grant stays). - The updater writes
/signal/services.json(profiles, token presence, container state, host memory, disk, core shape, verbs) withstack.json. Every app service mounts/signalread only. - Both service tokens are made on a roll and on install, so a later switch starts one container instead of restarting the brain. Never rotated.