
Rollbackplan
io.github.CloudCorpRecordsPublished by GitHub account CloudCorpRecordsv0.1.0Updated Nov 3, 2026
Plan a release rollback: flags first, then env changes, then migrations in reverse order.
Overview
Rollbackplan's local MCP server; no sign-in required; STDIO.
No AI overview yet: these facts come from the registry entry and the server itself.
Installation
In SourceWeft
- Open Rollbackplan in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
rollbackplan
Rolling a release back under pressure is where ordering mistakes happen: a migration is undone before the flag that depends on it is off, or a dropped column turns out to be the one nobody can reconstruct. rollbackplan takes the release diff you already have and turns it into an ordered plan before anyone touches anything — flags first, then env, then migrations backwards.
You supply three parts of the diff: the feature flags the release touched, the environment variable changes it made, and the migrations it applied, in application order. The plan walks them in the only order that is safe to undo a release in:
- Feature flags, in input order. A flag the release enabled is disabled, one it disabled is re-enabled, one it added is removed. A flag it removed cannot simply be flipped back, so that step is flagged manual: someone has to recreate it in its pre-release state.
- Environment changes, in input order. A variable the
release added is unset. For a changed or removed
variable, the step restores the recorded pre-release
value when there is one; when
previous_value_knownis false the step is flagged manual, because the old value has to be found by a person. - Migrations, in reverse input order — the last one
applied is the first one rolled back. A migration with a
compensating
down_idruns that migration (thedown_idwins, even overreversible: false), and a reversible migration runs its own down migration. An irreversible migration with no compensating migration is flagged blocked: manual data recovery is required, and the plan'ssafefield isfalseexactly while any blocked step exists.
Every step carries its position (order, 1-based), its
kind, the action to take, its target, an exact instruction
(detail), and its risk — normal, manual, or
blocked. The result also counts the steps overall and
per kind, and counts the manual and blocked steps by risk,
so a caller can gate on safe before a human starts
working through the list.
The plan is advice, not action: rollbackplan executes nothing. It does not run a migration, flip a flag, or touch an environment. The computation is pure and local — no network, no configuration, no files read beyond the input you pass in.
Malformed input — a missing, empty, or non-string
release, a list that is not an array, an entry that is
not an object, a missing, empty, or duplicated migration
id or variable / flag name, an action or change
outside its enum, a wrongly typed reversible or
previous_value_known, or an empty down_id — is a
validation error naming the offending path (for example
migrations[2].id duplicates migrations[0].id "add_orders"),
and no partial plan is produced.
CLI
args.json contains the full arguments object:
migrations, env_changes, and feature_flags are each
optional and default to []; reversible defaults to
true per migration and previous_value_known defaults
to false per env change. All three lists may be empty:
the plan then has no steps and safe is true. The plan
is printed as JSON:
Exit codes: 0 on success, 1 on a runtime error (including
an unreadable or invalid input file, or invalid input), 2
on a usage error.
MCP server
MCP client config:
Tools
-
plan_rollback— Plan a release rollback from its diff.release(string, required, non-empty) — the release identifier or version being rolled backmigrations(array, optional, default[]) — migrations in application order, as{id, reversible?, down_id?}objects;idis unique across the set andreversibledefaults totrueenv_changes(array, optional, default[]) — changes as{name, action, previous_value_known?}objects;actionis one ofadded,changed,removed, andprevious_value_knowndefaults tofalsefeature_flags(array, optional, default[]) — changes as{name, change}objects;changeis one ofenabled,disabled,added,removed
Returns
{release, steps, counts, safe}.
Docker
Development
License
MIT — Copyright (c) 2026 Rene Turcios
Source: README.md at commit 58c119c
Tools
0Version history
1- v0.1.0LatestNov 3, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts