2026-11-27 16:42 UTC

Shipback adds guarded rollback for SFTP deployments; adoption remains unproven

state: expiredheat: lowuncertainty: mediumrelevance: lowagent-deployment durable-execution rollback sftp mcp-serverAldo Hushialdoh

What is this?

Shipback SFTP is a newly released, MIT-licensed Node.js tool by Aldo Hushi for deploying folders to SFTP hosts such as cPanel and Plesk. Its CLI and MCP server preview deployment plans, back up server files before overwriting them, and support restore with checks for intervening edits; the MCP tools omit options such as deleting server files or skipping backups. The author says the underlying deploy engine has been used in production, but restore and MCP are new in version 0.1. The supplied sources establish the feature set and early directory listings—not broad adoption or proven reliability at scale.

Why it matters

Shipback addresses a concrete gap for developers and agents deploying to shared hosting: it adds previewed SFTP deploys, server-side backups, drift checks and guarded restores where Git-based rollback may not be available. Its MCP interface is deliberately narrower than the CLI, reducing some risky actions. That makes it a useful example of adding reversibility around agent actions, but the evidence points to an early, niche tool—not an adopted deployment primitive. Backups are on the same host, and the author’s production-use claim covers the underlying deploy engine, not the new restore and MCP features.

Current assessment

Aldo Hushi’s Shipback SFTP is a Node.js, MIT-licensed tool for deploying local folders to SFTP hosts, including cPanel and Plesk. The supplied project description says each deploy backs up overwritten or deleted server files, and restore checks for intervening live edits, refusing conflicts unless forced. Its MCP tools operate on previewed plans and omit mirror/delete, backup bypass and backup pruning; drift checks and pulls can help preserve manual server changes. Search results corroborate the project’s feature descriptions and show directory listings, but do not establish independent adoption or reliability. The author reports 235 production deploys and 2,907 files for the existing deploy engine; restore and MCP were new in 0.1, so that history is not evidence those features are production-proven. Important limits: backups share the hosting account and do not protect against account loss; same-size files over 8 MB may be assumed unchanged when no manifest hash exists. Track release and user evidence before treating it as a dependable or widely adopted agent-deployment layer.

Measured heat

no measured readings yet — the hourly heat pass fills this in

How the heat travelled

10-18 11:48⭐ origin directly observedShow HN: Shipback – SFTP deploys your AI agent can undo
aldoh on hacker news
—
10-18 11:48amplified on hacker news 👑hn.story.50140229
aldoh
peak 4 · 0 comments · 98% of case engagement
10-18 12:20our radar first saw it · +0.5hdiscovery anchor: hn.story.50140229—

Evidence (1) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hn ⭐Show HN: Shipback – SFTP deploys your AI agent can undo
Retrieved article excerpt

Open article · Retrieved 2026-10-18T12:22:47.845332+00:00

# Shipback SFTP

[test](https://github.com/aldohushi1-stack/shipback-sftp/actions/workflows/test.yml)

**Let the agent deploy. Keep the undo.**

It's late, and the agent says "Deployed ✓". Then the client's contact form is gone. The agent overwrote a
file someone had fixed by hand in cPanel last week, and shared hosting has no `git revert`.

Shipback deploys a folder to any SFTP host: cPanel, Plesk, DirectAdmin, a plain VPS. Every deploy
can be undone with one command. You can run it yourself, script it, or hand it to Claude Code, Cursor or
any MCP client.

- **Backup before every overwrite.** The server's copy of each file a deploy replaces is saved into
  `_backup-<time>/` on the server, before the upload starts.
- **One-command undo.** `--restore` puts those files back and removes the files that deploy added.
- **It won't undo over a live edit.** If someone changed a file on the server after the deploy, restore
  stops and names the file. Nothing is touched unless you pass `--force`, and even then the edited copy is
  backed up first.
- **Restores can be undone too.** A restore backs up what it replaces, the same way a deploy does.
- **Safe for agents.** The MCP server has no switch to delete server files or skip the backup. A deploy
  only runs the exact plan the agent previewed: if a file changed in between, it refuses.
- **Spots the drift.** `--pull --dry-run` shows what changed on the server since your last deploy, so
  edits made live in cPanel don't get overwritten by accident.

No git or SSH shell is needed on the server, just SFTP. It needs Node 18+. The tests run on Windows, macOS
and Linux with Node 18, 20 and 22 on every push. Passwords are kept in the OS keychain and never
pass through the model.

**It has run in production.** The deploy engine underneath has shipped [aldo.today](https://aldo.today) 235 times
since September 2026 (2,907 files to a cPanel host). Restore and the MCP server are new in 0.1.

## Quick start

```
npm install -g shipback-sftp          # installs the shipback and shipback-mcp commands
cd ~/sites                            # any folder with a sites.json in it (format below)
shipback mysite --dry-run             # see the plan; asks for the password once and stores it
shipback mysite                       # deploy
shipback mysite --restore             # changed your mind? undo it
```

No global install? `npx -p shipback-sftp shipback mysite --dry-run` works the same way. `--sites <file>`
points at a `sites.json` in another folder.

From source: `git clone https://github.com/aldohushi1-stack/shipback-sftp.git`, `npm install`, then
`node bin/cli.js` wherever these docs say `shipback`.

`sites.json`, one entry per site:

```
{
  "sites": [
    {
      "name": "mysite",
      "host": "server123.example-host.com",
      "port": 22,
      "username": "cpaneluser",
      "remoteRoot": "/home/cpaneluser/public_html",
      "localDir": "/Users/you/sites/mysite",
      "ignore": ["drafts/", "*.psd"]
    }
  ]
}
```

Many shared hosts run SFTP on their own port rather than 22 (check *SSH Access* in your control panel),
and some only accept connections from allow-listed IPs. If a connection times out, check those two
first. Use `"privateKeyPath"` instead of a password if your host has your key.

## Commands

```
shipback <site> --dry-run                 # what a deploy would upload
shipback <site>                           # deploy: backup, upload, record
shipback <site> --local <folder>          # deploy a different folder than localDir
shipback <site> --pull --dry-run          # what changed on the server since the last deploy?
shipback <site> --pull                    # bring those changes down (local copies backed up first)
shipback <site> --backups                 # list backups: what each run overwrote, added, deleted
shipback <site> --restore --dry-run       # what an undo of the latest deploy would do
shipback <site> --restore [<backup>]      # undo it (or name an older _backup-… folder)
shipback <site> --prune --keep 10         # tidy old backups; refuses any holding the only copy of a file
shipback --history [site]                 # what went up, when, from where
```

Add `--json` to any command for machine-readable output. A refused restore exits with code 4.

`--mirror` (delete server files that aren't in the local folder) and `--no-backup` exist for humans who
know they want them. The agent tools don't offer them, and the [guard hook](https://github.com/aldohushi1-stack/shipback-sftp#claude-code-guard-hook)
blocks Claude from typing them.

## How the undo works

Each deploy writes `_backup-YYYY-MM-DD-HHMM/` in the remote root. It holds:

- the server's copy of every file the deploy **overwrote** or **deleted**
- `.backup.json`, a record of what the deploy **added**, and a SHA-256 of every file it left on the server

`--restore` reads that record and checks each live file first:

| Live file now | Restore does |
| --- | --- |
| exactly what the deploy uploaded | puts the old copy back (or removes it, if the deploy added it) |
| already the old copy | nothing; it counts as already right |
| different from both | **conflict**: stops, names the file, changes nothing (`--force` overrides) |

Before writing anything, restore saves the current live files into a new `_backup-…` folder with its own
record, so `--restore` on that folder takes you forward again. It also clears the restored paths from
`.deploy-manifest.json`, so the next deploy compares them by content instead of trusting stale hashes.

Backup folders are skipped by deploys and pulls, and are never deleted except by `--prune`.

## Use it from an AI agent (MCP)

`shipback-mcp` (`bin/mcp.js`) is an MCP server over stdio.

**Claude Code**

```
claude mcp add shipback-sftp -- npx -y -p shipback-sftp shipback-mcp --sites /path/to/sites.json
```

**Cursor, Claude Desktop, and others** (`mcp.json` / `claude_desktop_config.json`):

```
{
  "mcpServers": {
    "shipback-sftp": {
      "command": "npx",
      "args": ["-y", "-p", "shipback-sftp", "shipback-mcp", "--sites", "/path/to/sites.json"]
    }
  }
}
```

On Windows, if the client can't start `npx`, use `"command": "cmd"` with `"/c", "npx"` at the front of
`args`. After a global install, `"command": "shipback-mcp"` works too, and from a clone it's `node` with
`bin/mcp.js` as the first arg.

Run any CLI command for a site once first (for example `shipback mysite --backups`). That stores
the password in the OS keychain, where the MCP server reads it. The model never sees it. For CI you can set
`SFTP_PASSWORD` in the server's environment instead.

| Tool | Does |
| --- | --- |
| `list_sites` | the configured sites (no passwords) |
| `preview_deploy` | what would upload; returns a `planId` |
| `deploy` | uploads that plan; refuses if anything changed since the preview |
| `check_server_changes` | files edited or added on the live server since the last deploy |
| `pull` | brings those down into the local folder (local copies backed up) |
| `list_backups` | backups, newest first, with what each run changed |
| `preview_restore` | what an undo would put back and remove, plus any conflicts; returns a `planId` |
| `restore` | runs that undo; refuses on conflicts unless `force` |
| `history` | recent deploys, pulls and restores |

What the tools leave out is deliberate: there is no mirror/delete, no way to skip the backup, and no
pruning of backups.

## Agents without a shell: the drop-box queue

Some agent setups can write files but can't run commands. While the local app is running
(`npm start`, or `start.bat` on Windows), anything that can write a file can queue a job:

```
queue/<name>.request.json   { "action": "deploy", "site": "mysite", "dryRun": true, "note": "new homepage" }
queue/<name>.result.json    ← written when it finishes, with a .log.txt beside it
```

Actions: `deploy`, `preview`, `pull`, `restore`, `backups`, `prune`.

## The local app

`npm start` opens a small UI on `http://127.0.0.1:4646`: add sites, preview, deploy, pull, drag in
one-off uploads, browse the server, and see history. It only answers requests from your own machine.

## Claude Code guard hook

If Claude also runs the CLI directly, add `bin/claude-guard.js` as a PreToolUse hook. It blocks
`--mirror` and `--no-backup` in shell commands, queue files and API calls, and tells Claude why. You can
still run them yourself in a terminal. After `npm install -g shipback-sftp`, the file is in the folder
`npm root -g` prints, under `shipback-sftp/bin/`.

```
{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Bash|PowerShell|Write|Edit|MultiEdit",
        "hooks": [{ "type": "command", "command": "node /path/to/shipback-sftp/bin/claude-guard.js" }]
      }
    ]
  }
}
```

## Tests

```
npm test
```

The suite uses `node:test` and needs no network. Deploy, restore, the CLI and the MCP server are each
also exercised end to end against a real SFTP server started inside the test run.

## Limits

- It compares by size and SHA-256. The first deploy to a site that already has files reads the server
  copies of any same-size files to compare them.
- Backups live on the same server as the site. They protect against bad deploys, not against losing the
  hosting account. Keep your host's own backups too.
- Files over 8 MB with the same size on both sides are assumed unchanged when there is no manifest hash
  to compare.

## License

MIT © 2026 Aldo Hushi

Runs aldo.today. Made at [BlueprintAU](https://blueprintau.com).
aldoh40

Interpretation history

Decision trace