Repository navigation
Releases
v0.2.2
-
ad58e29: Every MCP tool states
readOnlyHint,destructiveHintandopenWorldHint, and the tools that change data (saveslot_write,saveslot_resolve,saveslot_schema_draft) are markeddestructiveHint: true, so a host asks before calling them. -
8752616: Server mode: when a client starts OAuth without a
scopeparameter (as ChatGPT does), the authorization page now offers all four scopes,saveslot.read,saveslot.write,saveslot.schemaandsaveslot.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
-
3324024:
saveslot <command> --helpprints that command's own usage lines and the options, instead of every command;saveslot --helpstill prints them all, and now lists theserver …commands too.saveslot config setof a key this version does not use (such ashttp.loopback) says it cannot be set and names the keys that can, instead of telling you to remove it from the file;saveslot config --helpnames every keyconfig settakes, now includingupgrade.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 thehttpsaddress 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
httpsclient: added status badges, the handheldOKscreen 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_historyadvertises a flat input schema, with nooneOfbymodeat 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 butmode, 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 withinvalid_argument(missingormode_mismatch). -
6206f87: A 401 from
/mcpnames the MCP endpoint's own protected resource metadata (/.well-known/oauth-protected-resource/mcp, whoseresourceis the/mcpaddress) instead of the root one, so a client that compares the metadata'sresourcewith 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
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_CONNECTIONStenants open (default 50), closes the one idle longest to open another, and answersunavailable(busy) to retry when none is idle, instead of failing once PostgreSQL runs out of connections. How long an idle tenant stays open isSAVESLOT_TENANT_IDLE(default 300 seconds). - Readiness and shutdown.
GET /readyanswers 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 ofinternal(a drop duringCOMMITstill answersinternal). - 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/v1answer to an authenticated request carries its call's ID in theSaveslot-Callheader. - 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_unavailablewithRetry-Afterwhen a tenant is unavailable for now, andsaveslot server restorecan name the tenant by its local account (--user).
Signing in from hosts
- Dynamic client registration (
POST /oauth/register, on by default;SAVESLOT_OAUTH_DCR=offturns 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 initrefuses a data directory that is not empty. saveslot --versionand--helpwork 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
undoof 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_catalogwith no slot to see, refusals with their bound and count, and theschema_updatednotice as a sentence. saveslot doctorreminds 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'scurrentand a flagged item'smatched_values. Each carriespartially_deleted, a new optional field ofConflictDetail.effective,AwaitingDetail.currentandFlaggedDetail; 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
previousleaves out a value a pending deletion removed, and carriespartially_deleted, a new optional field ofConflictDetail.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 asregistration_endpointin 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 withSAVESLOT_OAUTH_DCR=off.saveslot connect cursor --profile <server>now gives the address-only entry. -
d5d9c8f:
TimelineResultCodegainsremoved, for ahistorytimeline 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 loginchecks 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 showwrites when an item was opened as "opened 3 h ago", no longer "open 3 h" right after its state.saveslot connecton a server profile with--name,--scopeor--slotsends its usage error with one full stop instead of two. -
f1fe62e:
saveslot doctorasks 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 holdsdoctorfor a minute at the hosts' step. -
deabb94:
saveslot doctorgives 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; withclaude -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 --helplistsprofile list | use <name>, the options--home <dir>and--profile <name>, andvscodeamong the hosts ofconnect. All of them worked already; the help did not say so. -
4e30bbc:
saveslot_historywithchanges, andsaveslot history changes, no longer show a side withheld for deleted content as an empty value. In a change markedpartially_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...
v0.2.0-rc.2
-
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 asresource_documentationandservice_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
-
a56780a: Server mode takes dynamic client registration (RFC 7591) at
POST /oauth/register, named asregistration_endpointin 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 withSAVESLOT_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 startandserver initupgrade 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_failedwith the step and the SQLSTATE).tenantsgains animport_holdercolumn, written by nothing yet.server startrecords 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 logsconfig_fingerprint_changedwith 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.clusterIdentityand the fingerprint functions are added;LocalIdentitytakesformKeys.
v0.2.0-rc.0
-
12c23c6: A closed item's details leave out a value a pending deletion removed: a conflict's
effective, an awaiting item'scurrentand a flagged item'smatched_values. Each carriespartially_deleted, a new optional field ofConflictDetail.effective,AwaitingDetail.currentandFlaggedDetail; 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
previousleaves out a value a pending deletion removed, and carriespartially_deleted, a new optional field ofConflictDetail.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:
TimelineResultCodegainsremoved, for ahistorytimeline 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 cursoron a server profile says to issue a static token withsaveslot connect httpand 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 loginchecks 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 showwrites when an item was opened as "opened 3 h ago", no longer "open 3 h" right after its state.saveslot connecton a server profile with--name,--scopeor--slotsends its usage error with one full stop instead of two. -
f1fe62e:
saveslot doctorasks 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 holdsdoctorfor a minute at the hosts' step. -
deabb94:
saveslot doctorgives 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; withclaude -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 --helplistsprofile list | use <name>, the options--home <dir>and--profile <name>, andvscodeamong the hosts ofconnect. All of them worked already; the help did not say so. -
4e30bbc:
saveslot_historywithchanges, andsaveslot history changes, no longer show a side withheld for deleted content as an empty value. In a change markedpartially_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_targetrefusal is said the same way. In the CLI,saveslot pendingmarks the item,pending showsays the same, a refused decision says it too, andpending resolveon 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, reasondeletion_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
sourcesreads givetotal: 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, nototalis 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, andsaveslot startsays what to do. It can be skipped withupgrade.backup = falseorsaveslot 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/v1request 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/v1answer to an authenticated call on a route gives the call's ID in theSaveslot-Callheader, 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 acall_record_failedwarning 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/healthsaysstartingwith the step,saveslot mcpanswers each callunavailablenaming it, and a failed upgrade isupgrade_failedwith its step, after whichsaveslot startexits with code 5. -
d5d9c8f:
saveslot initrefuses 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/healthstill answers 200 in every state. On SIGTERM or SIGINT the server keeps serving forSAVESLOT_SHUTDOWN_DRAINseconds (default 10) with/readyat 503, then takes no new connections and waits at mostSAVESLOT_SHUTDOWN_TIMEOUTseconds (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 setsstop_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
internaluntil 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 answeredunavailable(busy,retry_after1) and the next use tries once more. Each reopen is logged as the warningtenant_reopenedwith the tenant and the reason (connectionordatabase). -
6b8cf09:
saveslot server restorecan 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--userwith 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_failedwith the tenant's database, the step (such as5->6) and the SQLSTATE;server restore,server userandserver initwrite the same to standard error, with what to do, and exit 5, whereserver restoreused to let the database's message, which may quote stored values, reach standard error.server restoreandserver usernow log a tenant's upgrade step by step, asserver startdoes. The MCP bridge no longer logsautostart_exit_7when the service it started is upgrading its store: that is said asservice_upgrading. -
01e6898: A local service that is stopping answers
/v1withunavailablereasonstoppingand aretry_after, and one that has failed with `s...
v0.1.0
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 setupNode 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.