Skip to content

Releases

v0.2.2

Choose a tag to compare

@github-actions github-actions released this 02 Dec 19:37
  • ad58e29: Every MCP tool states readOnlyHint, destructiveHint and openWorldHint, and the tools that change data (saveslot_write, saveslot_resolve, saveslot_schema_draft) are marked destructiveHint: true, so a host asks before calling them.

  • 8752616: Server mode: when a client starts OAuth without a scope parameter (as ChatGPT does), the authorization page now offers all four scopes, saveslot.read, saveslot.write, saveslot.schema and saveslot.delete, all ticked, instead of reading and writing only; the user can still untick any but reading. A connection authorized this way can make slots (saveslot_schema_draft). Making slots and deleting stay marked as the ones to think twice about, and deleting takes effect only once deletion is available. A client that asks for scopes is offered those, as before.

  • 2d51ae1: The authorization page still offers deleting records when an app asks for it, ticked as before, and its label now says it takes effect once deletion is available (in English and in Chinese): no operation deletes records in this version.

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 02 Dec 09:39
  • 3324024: saveslot <command> --help prints that command's own usage lines and the options, instead of every command; saveslot --help still prints them all, and now lists the server … commands too. saveslot config set of a key this version does not use (such as http.loopback) says it cannot be set and names the keys that can, instead of telling you to remove it from the file; saveslot config --help names every key config set takes, now including upgrade.backup.

  • e53f057: The authorization page can show apps the deployment knows by their name and icon. A new setting, SAVESLOT_KNOWN_APPS, names a JSON file listing apps, each a name, an icon and its hosts. When a request comes from one of those hosts (a client document's address, or the https address a self-registered app returns to), the page says "Cursor wants access to your saveslot" with the icon, prefills that name for the connection, and no longer says "an app calling itself". Loopback and app-scheme returns are never matched. A file that cannot be read, or an entry out of rule, refuses to start the server. Without the setting the page is unchanged.

  • 2c65bf4: Polished the OAuth authorization hand-off page shown after approving or denying an https client: added status badges, the handheld OK screen state on approval, a destination-host progress row, styled button fallbacks, and a 2-second delayed reveal for the "Continue" button so users are not prompted to click while the automatic redirect is already under way.

  • 554207e: MCP: saveslot_history advertises a flat input schema, with no oneOf by mode at its top level. A host that clamps a call's arguments to the schema read each mode's branch as closed and removed every argument but mode, so every call failed before it reached the server. Which parameters go with which mode is still said in their descriptions, and the server still refuses a wrong pairing with invalid_argument (missing or mode_mismatch).

  • 6206f87: A 401 from /mcp names the MCP endpoint's own protected resource metadata (/.well-known/oauth-protected-resource/mcp, whose resource is the /mcp address) instead of the root one, so a client that compares the metadata's resource with the address it was given, path included, goes on to authorize.

  • 1174b26: The authorization, verification and error pages show the SaveSlot mark as the browser tab's icon, written in the page, so nothing more is loaded.

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 08:26

saveslot 0.2.0 is mostly about running it. Server mode keeps at most a set number of tenants open per process (SAVESLOT_TENANT_CONNECTIONS), has a readiness endpoint (/ready) and a bounded shutdown, can write a record of each call, reopens a tenant's database connection if it drops, and records a read before answering it. Hosts that cannot be given a client ID in advance, such as Cursor and the Gemini app, can now sign in through dynamic client registration. Local mode is faster on large stores, and backs its data up before it upgrades a storage format in place. What saveslot can do with your data is the same as in 0.1.0: privacy deletion and migrations that rebuild a table are still to come; What 0.2.0 provides lists what this version has.

Upgrading from 0.1.0: tenant data is not migrated (the storage format stays at 5), and 0.2.0 opens 0.1.0's tenant databases as they are. The control database goes from format 1 to 2 once, so a server upgrade stops every process: take a snapshot of the control database first, as going back to 0.1.0 means restoring it. A self-hosted server should also point its health checks at /ready, give the container enough time to stop, and check its connection budget (each process takes the limit + 4 connections). A paging position 0.2.0 gives is not taken by 0.1.0, so going back mid-page reads from the first page again. In @fluxvita/saveslot-store-postgres, ownership_lost and PostgresTenantStore.epoch were removed. The details are in the guide, chapter 13, section 7.

Install: npm install -g @fluxvita/saveslot (Node 24.22.1+ or 26.12.1+). Server image: ghcr.io/fluxvita/saveslot:0.2.0.

Highlights

Server mode

  • A limit on database connections. A process keeps at most SAVESLOT_TENANT_CONNECTIONS tenants open (default 50), closes the one idle longest to open another, and answers unavailable (busy) to retry when none is idle, instead of failing once PostgreSQL runs out of connections. How long an idle tenant stays open is SAVESLOT_TENANT_IDLE (default 300 seconds).
  • Readiness and shutdown. GET /ready answers 200 only while the server is ready. On SIGTERM the server drains, waits a bounded time for requests in progress, then closes; the container's grace period must cover it (the example compose file sets one minute).
  • A lost tenant connection is opened again. A tenant whose connection was ended (the database restarted, a middlebox or an operator ended it) is reopened on its next use; a read is retried once, and a write that certainly did not commit answers unavailable (busy) instead of internal (a drop during COMMIT still answers internal).
  • Reads are recorded before answering. Read records are written before the answer, so they survive an exit or a lost connection; when that fails, the read answers unavailable (busy) without content.
  • Call records. With SAVESLOT_CALL_RECORDS=on (off by default) the server writes one line of JSON per call on standard output, and each /v1 answer to an authenticated request carries its call's ID in the Saveslot-Call header.
  • The control database's format 2, upgraded once at start, with a fingerprint of the settings every process must share; login forms now survive a restart.
  • The OAuth endpoints answer 503 temporarily_unavailable with Retry-After when a tenant is unavailable for now, and saveslot server restore can name the tenant by its local account (--user).

Signing in from hosts

  • Dynamic client registration (POST /oauth/register, on by default; SAVESLOT_OAUTH_DCR=off turns it off): hosts that publish no client ID metadata document register themselves, with as many redirect URIs as fit in the client ID, so Cursor and the Gemini app can connect. Registering stores nothing on the server.
  • Callbacks that move on are reached. An app whose callback page sends the browser on to another address (Cursor among them) now gets back to the app after "Authorize".
  • The authorization page ticks what the app asked for, so one click gives an app the permissions it requested; making slots and deleting are still marked as the ones to think twice about.
  • SAVESLOT_SETUP_URL (optional) names a page on how to connect an agent, given in the OAuth metadata so an agent that only has the MCP address can find the steps.

Local mode

  • Faster on large stores: the store gathers its own planner statistics, and a write's receipt and the lookup of the latest restore no longer read the whole store.
  • A backup before a storage format upgrade, next to the home, as a home the version before can open. saveslot init refuses a data directory that is not empty.
  • saveslot --version and --help work on musl distributions such as Alpine (commands that take local mode's writer lock still fail there).

Reads and writes

  • In most cases a query reads only the page it returns (event tables, point reads, unordered interval reads, and supported later pages), so memory and time no longer grow with all matching rows.
  • A write recomputes a derived table only for the groups it touched, where the rule allows.
  • Several judgements fixed: two writes of the same value on a field group, a stretch across one without a value, the undo of a confirmation, and a write sent again with its idempotency key, which now gets the first receipt back byte for byte.

MCP, the CLI and the sign-in pages

  • MCP texts and refusals say what to do next: saveslot_catalog with no slot to see, refusals with their bound and count, and the schema_updated notice as a sentence.
  • saveslot doctor reminds you when a host has not allowed saveslot's tools.
  • The authorization and device-code pages have a new look that fits a phone, in English and Chinese, and answer a click only once.

All changes

Every change in this release, from the packages' changelogs
  • 12c23c6: A closed item's details leave out a value a pending deletion removed: a conflict's effective, an awaiting item's current and a flagged item's matched_values. Each carries partially_deleted, a new optional field of ConflictDetail.effective, AwaitingDetail.current and FlaggedDetail; MCP and the CLI say so where it is set. Privacy deletion is not offered in this version, so no item has it yet.

  • d5d9c8f: A conflict item's previous leaves out a value a pending deletion removed, and carries partially_deleted, a new optional field of ConflictDetail.previous; MCP and the CLI say so where it is set. Privacy deletion is not offered in this version, so no item has it yet.

  • a56780a: Server mode takes dynamic client registration (RFC 7591) at POST /oauth/register, named as registration_endpoint in the authorization server metadata, so hosts that publish no client ID metadata document (Cursor and others) can sign in. Registering stores nothing: the client ID carries what was registered, signed with a key derived from the handle key file, and an authorized client is known by its grants afterwards. The authorization page shows where such a client returns to as its identity and its name only as its own claim, with only reading ticked (since changed: the page ticks every permission the app asked for, see below). Turn it off with SAVESLOT_OAUTH_DCR=off. saveslot connect cursor --profile <server> now gives the address-only entry.

  • d5d9c8f: TimelineResultCode gains removed, for a history timeline item whose content a deletion removed (before, such an item came out with an empty result). MCP and the CLI write it as "(removed by a deletion)". Privacy deletion is not offered in this version, so no item has it yet.

  • d5d9c8f: saveslot login checks that the home, credentials/ and the profile's credentials file are private before it signs in, and the refusal names the directory or file. Before, it checked them only after the sign-in in the browser, and a home open to others threw the new session away.

  • 0bf18e5: saveslot pending show writes when an item was opened as "opened 3 h ago", no longer "open 3 h" right after its state. saveslot connect on a server profile with --name, --scope or --slots ends its usage error with one full stop instead of two.

  • f1fe62e: saveslot doctor asks the local service for the hosts' connection instances and their reads only when the service says it is ready, and gives each of these calls up after 10 seconds instead of 60. A service that accepts the connection and does not answer no longer holds doctor for a minute at the hosts' step.

  • deabb94: saveslot doctor gives a reminder for a host whose connection instances have no read besides their self-check, with how that host allows saveslot's tools (Claude Code: allow them when it asks; with claude -p, add --allowedTools "mcp__saveslot"). A host that has not allowed the tools refuses the agent's calls before they reach saveslot, and without a terminal nothing asks, so a run wrote nothing and said nothing. The reminder is inferred from saveslot's own reads, so a host just connected and not yet used gets it too; it does not change the exit code.

  • 52344f1: saveslot --help lists profile list | use <name>, the options --home <dir> and --profile <name>, and vscode among the hosts of connect. All of them worked already; the help did not say so.

  • 4e30bbc: saveslot_history with changes, and saveslot history changes, no longer show a side withheld for deleted content as an empty value. In a change marked partially_deleted, a missing side reads "not shown" instead of —, which looked like the value had been cleared, or instead of giving only the new value, which looked like there had been none before. The line ends with "partly deleted: what is not shown c...

Read more

v0.2.0-rc.2

v0.2.0-rc.2 Pre-release
Pre-release

Choose a tag to compare

@FlyingDuck FlyingDuck released this 01 Dec 03:51
  • 581d07e: Server mode: a new optional setting, SAVESLOT_SETUP_URL, names the page that shows how to connect an agent to the deployment. When it is set, the OAuth metadata gives it as resource_documentation and service_documentation, so an agent that only has the MCP address can find the steps.

  • 68dfce0: The authorization page ticks every permission the app asked for, for dynamically registered apps too: an app that asks for reading and writing can do both after one click on "Authorize". Untick what you will not give. Making slots and deleting are still marked as the ones to think twice about.

  • 11985ef: The authorization page and the device code's verification page answer once per click: the first click marks the form sent and shows that the answer is in progress, and a second click while it is on its way sends nothing. After 10 seconds the mark is dropped, so a page left in place by a callback to an app (its own scheme) can be answered again. A form that expired or was already sent shows the page again with a new form and its defaults, instead of an error page that only sends the user back to the app. The browser no longer fills back what was ticked before, so the page always opens with its defaults.

v0.2.0-rc.1

v0.2.0-rc.1 Pre-release
Pre-release

Choose a tag to compare

@FlyingDuck FlyingDuck released this 30 Nov 13:07
  • a56780a: Server mode takes dynamic client registration (RFC 7591) at POST /oauth/register, named as registration_endpoint in the authorization server metadata, so hosts that publish no client ID metadata document (Cursor and others) can sign in. Registering stores nothing: the client ID carries what was registered, signed with a key derived from the handle key file, and an authorized client is known by its grants afterwards. The authorization page shows where such a client returns to as its identity and its name only as its own claim, with only reading ticked. Turn it off with SAVESLOT_OAUTH_DCR=off. saveslot connect cursor --profile <server> now gives the address-only entry.

  • 27d9ac0: Server mode: the control database's format is 2, and server start and server init upgrade a format 1 control database while no other server runs on it (holding the server lock alone), each step logged (control_upgrading, control_upgrade_step, control_upgraded; control_upgrade_failed with the step and the SQLSTATE). tenants gains an import_holder column, written by nothing yet. server start records a fingerprint of the settings every process must share (trusted proxies, public URL, allowed origins, the login, the handle key IDs, the cell's PostgreSQL server) in the control database, as hashes only, and logs config_fingerprint_changed with the names of the settings that changed. The local accounts' login form keys are derived from the handle key file instead of made at random by each process, so a form one process gave is taken by another and a restart no longer expires it; tokens name their key. CursorKeys.derive, PostgresBackend.clusterIdentity and the fingerprint functions are added; LocalIdentity takes formKeys.

v0.2.0-rc.0

v0.2.0-rc.0 Pre-release
Pre-release

Choose a tag to compare

@FlyingDuck FlyingDuck released this 30 Nov 06:22
  • 12c23c6: A closed item's details leave out a value a pending deletion removed: a conflict's effective, an awaiting item's current and a flagged item's matched_values. Each carries partially_deleted, a new optional field of ConflictDetail.effective, AwaitingDetail.current and FlaggedDetail; MCP and the CLI say so where it is set. Privacy deletion is not offered in this version, so no item has it yet.

  • d5d9c8f: A conflict item's previous leaves out a value a pending deletion removed, and carries partially_deleted, a new optional field of ConflictDetail.previous; MCP and the CLI say so where it is set. Privacy deletion is not offered in this version, so no item has it yet.

  • d5d9c8f: TimelineResultCode gains removed, for a history timeline item whose content a deletion removed (before, such an item came out with an empty result). MCP and the CLI write it as "(removed by a deletion)". Privacy deletion is not offered in this version, so no item has it yet.

  • d5d9c8f: saveslot connect cursor on a server profile says to issue a static token with saveslot connect http and prints the entry with the place for that token in its header. Before, it printed an entry with the address only, which Cursor cannot use: its remote sign-in needs dynamic client registration, which this version does not offer.

  • d5d9c8f: saveslot login checks that the home, credentials/ and the profile's credentials file are private before it signs in, and the refusal names the directory or file. Before, it checked them only after the sign-in in the browser, and a home open to others threw the new session away.

  • 0bf18e5: saveslot pending show writes when an item was opened as "opened 3 h ago", no longer "open 3 h" right after its state. saveslot connect on a server profile with --name, --scope or --slots ends its usage error with one full stop instead of two.

  • f1fe62e: saveslot doctor asks the local service for the hosts' connection instances and their reads only when the service says it is ready, and gives each of these calls up after 10 seconds instead of 60. A service that accepts the connection and does not answer no longer holds doctor for a minute at the hosts' step.

  • deabb94: saveslot doctor gives a reminder for a host whose connection instances have no read besides their self-check, with how that host allows saveslot's tools (Claude Code: allow them when it asks; with claude -p, add --allowedTools "mcp__saveslot"). A host that has not allowed the tools refuses the agent's calls before they reach saveslot, and without a terminal nothing asks, so a run wrote nothing and said nothing. The reminder is inferred from saveslot's own reads, so a host just connected and not yet used gets it too; it does not change the exit code.

  • 52344f1: saveslot --help lists profile list | use <name>, the options --home <dir> and --profile <name>, and vscode among the hosts of connect. All of them worked already; the help did not say so.

  • 4e30bbc: saveslot_history with changes, and saveslot history changes, no longer show a side withheld for deleted content as an empty value. In a change marked partially_deleted, a missing side reads "not shown" instead of —, which looked like the value had been cleared, or instead of giving only the new value, which looked like there had been none before. The line ends with "partly deleted: what is not shown came from content deleted since". A newly inserted row still gives only its new value. Privacy deletion is not offered in this version, so no change is marked yet.

  • 1d85a28: A pending item whose target a deletion still pending affects is no longer shown as one to decide. On MCP the list says it cannot be decided for now instead of naming decisions, and its detail says which deletions block it, when the last of them is due, and to decide after they have run, instead of saying the connection lacks a scope. The pending_deletion_target refusal is said the same way. In the CLI, saveslot pending marks the item, pending show says the same, a refused decision says it too, and pending resolve on such an item shows it and exits 5 without asking. Privacy deletion is not offered in this version, so no item is held this way yet.

  • 90ab30a: A paging cursor expires once a deletion is confirmed or cancelled in the tenant after its first page: the next page is refused with handle_expired, reason deletion_changed (new), and the caller reads again from the first page. What a read leaves out changed between the pages, so one round of paging could have given a stretch twice or missed one. A deletion carried out without a confirmation or cancellation in between does not expire a cursor. Privacy deletion is not offered in this version, so no cursor expires this way yet.

  • d5d9c8f: The sources reads give total: for a list, every source the filters take; for a search, every match, when every source the filters take fits in one call's scan (past that, no total is given and the next position says more may follow).

  • d5d9c8f: Before the local service upgrades a storage format in place, it backs the home's data up next to the home, as a home the version before can open; saveslot never removes it. A failed backup stops the upgrade at step backup, and saveslot start says what to do. It can be skipped with upgrade.backup = false or saveslot start --no-upgrade-backup.

  • 3ae6e08: Server mode can write a record for each call. With SAVESLOT_CALL_RECORDS=on (off by default), the server writes one line of JSON on the standard output at the end of each call that passed authentication: one per /v1 request and one per MCP tool call. The record says who made the call (tenant, actor, how the credential came to be), what the call was (surface, operation, route), how it ended (outcome, the contract's reason, an incident), and what it did to the tenant's log (appended, replayed or none, with the operation number and restore count). It holds no content: no names, no task, no keys, no values. Every /v1 answer to an authenticated call on a route gives the call's ID in the Saveslot-Call header, readable cross-origin, whether records are on or not. Records never hold a call up: past a bound, or when the output fails, they are dropped, and the drops are counted in a call_record_failed warning at most once a minute.

  • d5d9c8f: A store whose storage format is older is upgraded in place when it is opened, step by step, and a store of a newer format than this version knows is refused (format_too_new; one too old to upgrade, format_too_old). No upgrade step exists yet. While an upgrade runs, the local service's /health says starting with the step, saveslot mcp answers each call unavailable naming it, and a failed upgrade is upgrade_failed with its step, after which saveslot start exits with code 5.

  • d5d9c8f: saveslot init refuses a data directory that is already there and not empty (exit code 5), before it makes anything of the home, and says how to carry data over with export and import. Before, it opened what was there, which could upgrade an older store in place without a backup and then fail.

  • 1d8dfd8: Server mode has a readiness endpoint and a bounded shutdown. GET /ready (no token) answers 200 only while the server is ready and 503 while it starts, stops or has failed; the image's health check now asks it, and /health still answers 200 in every state. On SIGTERM or SIGINT the server keeps serving for SAVESLOT_SHUTDOWN_DRAIN seconds (default 10) with /ready at 503, then takes no new connections and waits at most SAVESLOT_SHUTDOWN_TIMEOUT seconds (default 30) for the requests in progress before closing the connections still open, then closes the tenants within 10 seconds and releases its lock. A second signal skips what is left of the waits. Before, a client that never finished sending its request body kept the server from stopping, and a request that finished during the stop kept its keep-alive connection open for another five seconds. The container's termination grace period must cover the three steps; the example compose file sets stop_grace_period: 1m.

  • 9bf87e1: A tenant whose database connection went away (the database restarted, a middlebox or an operator ended it) is opened again on its next use, and so is a tenant whose directory now names another database: before, every request to that tenant failed with internal until the tenant was closed for being idle. Uses still on the old connection finish first. When opening it again cannot reach the database, the request is answered unavailable (busy, retry_after 1) and the next use tries once more. Each reopen is logged as the warning tenant_reopened with the tenant and the reason (connection or database).

  • 6b8cf09: saveslot server restore can name the tenant by its local account's name (--user <name>) instead of its ID (--tenant <tenant>): exactly one of the two. An account that is not there is exit code 4; an account whose tenant is not made yet, or --user with the external login configured, is exit code 5.

  • 81220c3: Server mode says which step of a storage format upgrade failed, and nothing of the database's own message. The server log gets upgrade_failed with the tenant's database, the step (such as 5->6) and the SQLSTATE; server restore, server user and server init write the same to standard error, with what to do, and exit 5, where server restore used to let the database's message, which may quote stored values, reach standard error. server restore and server user now log a tenant's upgrade step by step, as server start does. The MCP bridge no longer logs autostart_exit_7 when the service it started is upgrading its store: that is said as service_upgrading.

  • 01e6898: A local service that is stopping answers /v1 with unavailable reason stopping and a retry_after, and one that has failed with `s...

Read more

v0.1.0

Choose a tag to compare

@FlyingDuck FlyingDuck released this 27 Nov 05:15

The first release of saveslot: the saveslot command and its service.

  • Local mode: the service runs on your own computer, and the agents on it share it.
  • Server mode: one saveslot serves all of your devices, hosted or self-hosted, with accounts, OAuth authorization and remote MCP.

Agents connect over MCP, programs and connectors over HTTP, and you through the saveslot command.

Install

npm install -g @fluxvita/saveslot
saveslot setup

Node 24 (24.22.1 or later) or Node 26 (26.12.1 or later). The server's container image is ghcr.io/fluxvita/saveslot:0.1.0.

What this version has, and what it does not have yet

See What 0.1.0 provides. Not in 0.1.0, among others: privacy deletion, structure changes on a table that has been written to, and the recovery flow in local mode.

saveslot is before 1.0: a minor version may change interfaces. It does not make existing data unreadable.

Released on 2026-11-26. The changelog of each package is in packages/*/CHANGELOG.md at this tag.