WordPress migration

MCP Abilities – Site Migration Bridge

Move a WordPress site to a new host or bring a copy into a test environment. Run All-in-One WP Migration exports and imports from your MCP client, choose what goes into the backup and check the result before moving on.
An archive case on a bridge between a stack of pages and a destination marked with a tick

Take the files you’ll need on the other side

Moving the whole site? Choose a full export for the database and supported site files. The native defaults include post revisions and spam comments.

Already have the files? A database-only export leaves out the media library, themes, plugins and must-use plugins. Keep those files separately if the destination needs them.

Two archive cases. The left holds the database alone, the right also holds media, themes and plugins.

Left: database only. Right: the database and supported site files.

Check the source, the archive and the destination

1. Check the source

Start with ai1wm/status. It reports the site address, whether migration is available and the backups it can see. When you start an export, set confirm: true and supply expected_home to check you are on the intended site.

2. Verify the archive

For an export in the background, keep the job ID returned by ai1wm/export-start and read it with ai1wm/export-status. A completed result gives the archive name and byte count. Verify you can access the archive and that it covers what you intend to restore. A running result is the last saved state. Interrupted jobs are not retried automatically.

3. Back up the destination

An import can overwrite data on the target site. Back it up, approve the exact archive and set confirm: true. Check the target address with expected_target_home. For a large .wpress archive, ai1wm/import-start accepts an allowed URL or an approved local source. It can verify the byte count and SHA-256 and keeps the source file by default.

Connect the bridge to WordPress

Install the ZIP on WordPress 6.9 or later with PHP 8.0 or later and an active, configured All-in-One WP Migration installation. The migration plugin handles archives and cleanup. Its extensions and licensing still apply.

Connect an authenticated MCP client with access to the WordPress Abilities API. The account must have manage_options to use these seven operations.

  • Inspect: ai1wm/status.
  • Export: ai1wm/export runs in the request. ai1wm/export-start runs in the background and ai1wm/export-status reads its saved result.
  • Import: ai1wm/import-url runs from an allowed address in the request. ai1wm/import-start runs in the background and ai1wm/import-status reads its saved result.

Version 0.1.7 · GPLv2 or later · basicus

An archive case on a bridge between a stack of pages and a destination marked with a tick

Run a first export on a test site

Install the bridge on a test copy with All-in-One WP Migration active. Read the site status, export the scope you need and check that the archive is accessible.