MCP for StageIt is a free add-on for MCP for J that drives your StageIt staging environment from your AI client. Eleven tools cover status and prechecks, the backup snapshots StageIt takes on your behalf, and the four operations that actually move things โ deploy, sync, remove and restore. Each of those four is chunked and hands back a resume token, so an operation too big to finish inside your server's PHP time limit can be driven to the end across several calls instead of stopping halfway. On a big site or a tight shared host an operation can still run out of time, so there's an honest section on that below. Read it before you point this at anything you care about.
Why this exists
StageIt's deploy and sync only exist while a browser tab is open on them. The admin screen runs them from a JavaScript loop that posts the previous response back as the next request, over and over, until the operation reports it's finished โ which works, but it means the whole thing lives in a page you have to sit and watch, and there's no way to ask for it from anywhere else. This add-on runs StageIt's own steps the way StageIt's command line runs them, so an MCP client can drive them without a browser tab, from the same folder and with the same settings StageIt's admin uses, and the end state matches StageIt's own buttons.
What Claude can do
Eleven tools. The four operations are each a pair: one to start, one to continue.
| Area | Tools | What you can do |
|---|---|---|
| Status | 3 | Whether a staging copy exists and when it was built, the last backup and push, whether a push or a remove would be allowed right now and why not, StageIt's own pre-checks (disk space, memory, PHP timeout, permissions, required extensions), and the list of backup snapshots you could restore from. |
| Deploy | 2 | Copy the live site into the staging mirror and clone the database into staging-prefixed tables. Start it, then continue until it reports done. |
| Sync | 2 | Promote the changes you made in staging back to live, snapshotting the current live site first so you can roll back if it goes wrong. |
| Remove staging | 2 | Delete the staging mirror and its database tables. Your backup snapshots aren't touched. |
| Restore a backup | 2 | Rebuild live from a named snapshot. This is the rollback path for a sync you regret. |
Installing it
You'll need Joomla 5 or 6, PHP 8.2 or later, MCP for J, and StageIt itself, which is a separate commercial product from PHP Web Design. Building, pushing, removing and restoring need StageIt 6.4.0 or later on Joomla 6, or 5.8.0 or later on Joomla 5. With an older StageIt those tools say so, and status, prechecks and the backup list still work.
- Open Components โ MCP for J โ Browse MCP Add-Ons and click Install on this add-on. You can also download the ZIP above and install it through System โ Install โ Extensions.
- That's the whole install. The plugin enables itself, and the tools show up in your connected AI client the next time it lists them.
There's no admin screen for this plugin, by design โ it adds tools to MCP for J rather than a place to click. On a site without StageIt every tool says so plainly instead of failing in a confusing way.
Using it
Ask for what you want in plain language. "Is my staging site up to date, and what did the prechecks say?" answers both in one go. "Push live to staging so I can try the template change there" starts a deploy and keeps continuing it until it's finished. "That sync was a mistake โ put back the snapshot from this morning" finds the snapshot by name and restores it.
Three of the four operations overwrite things that exist. Sync overwrites live from staging, remove deletes the staging environment outright, and restore overwrites live from a snapshot. Run the prechecks before any of them โ they're the same battery StageIt's own dashboard runs, and if they fail there, the operation will fail too. Sync takes a snapshot of live before it touches anything, so the rollback path is already there when you need it.
The add-on also refuses what StageIt's command line refuses. A push is refused when the staging copy is incomplete or an earlier run didn't finish, and a remove or a rebuild is refused while the staging copy holds work that hasn't been pushed. A force option overrides those checks, and every operation started through MCP goes into StageIt's audit log.
Permissions
Every tool needs StageIt's Access Administration Interface permission for the Joomla account the AI acts for. Build, push, restore and remove also need Configure ACL & Options, which Super Users have, because they replace the whole site or the stage. With Joomla's default permissions, Super Users can use every tool, Administrators the three status tools, and Managers none.
How the resume token works
StageIt already breaks each operation into ordered stages and keeps its own position within them, so the chunking isn't something this add-on invented. What doesn't survive is the PHP request: StageIt holds that position in memory, which is empty by the time the next call arrives. So each tool call runs stages under a time budget โ by default a little under whatever your server allows โ and if the budget runs out before the operation is done, the state is written to a file on disk and you get a resume token back with a progress figure. Passing that token to the matching continue tool restores the state and picks up at exactly the stage it stopped on.
In practice you don't manage any of that yourself. Your AI client gets a token and a "not finished" flag, calls the continue tool, and repeats until the operation reports done. On a small site the first call often finishes on its own and there's no token at all.
What it can't do for you
Chunking is the design response to the timeout problem. It isn't a cure for it, and it would be dishonest to sell it as one. Each individual call still runs under your server's PHP execution limit, and there are stages โ a large database clone, a big file copy โ where a single chunk can be the thing that runs long. On a large site, or on shared hosting with a tight time limit, an operation driven through MCP can still time out mid-flight, and when it does, the cause is your site size and your host's configuration rather than anything this add-on can fix.
Two things soften that. The last stretch of a push or a restore, while live's files and database are being swapped, runs in a single call that carries on even if your AI client stops waiting (unless the host itself kills long PHP processes), so a client timeout doesn't leave live half-swapped; afterwards the status tool reports how that operation ended. And an operation that stopped between calls can be picked up again with its resume token. If something did go wrong, StageIt's own log has the details, and the backup it took before the push is there to restore.
This is version 1.1.2. Version 1.1.1 was tested on Joomla 6.1 with StageIt 6.6.4 and on Joomla 5.4 with StageIt 5.9.4: build, push, restore (including a database with linked tables) and remove, ending in the same state as StageIt's own buttons, with the permission checks run as Super User, Administrator and Manager. Those were small sites, so try it on a non-production site first if yours is large. If you do hit a timeout, a report is genuinely useful: github.com/cybersalt/cs-mcp-for-j-addons-free/issues.
The full manual, with every tool and real responses, is at docs.cybersalt.com/extensions/mcp-for-stageit.
One more thing worth knowing: it covers status and the four operations, and nothing else yet. StageIt's settings, its logs, and deleting individual backup snapshots are all still admin-screen jobs.
Open source
GPL-2.0-or-later, the same license as Joomla itself. Source lives on GitHub.

Add comment