MCP tool · Applications
manage_wp_site
Get a WordPress site's status or run a site-wide maintenance action over WP-CLI.
manage_wp_site
Description
Get a WordPress site's status or run a site-wide maintenance action over WP-CLI. action=status (needs only read:hosting) returns status {version, updateAvailable, latestVersion, home, siteUrl, theme, plugins: {active, inactive, updates}, pages, posts, permalinkStructure, phpVersion}. The writes require write:hosting and return {changed, message} in WP-CLI's own words: update_core (WordPress itself, then its database), update_plugins and update_themes (all of them — one plugin is manage_wp_plugins, one theme manage_wp_themes), flush_cache (object cache and transients; the LiteSpeed page cache is purge_litespeed_cache), flush_rewrites (fixes permalink 404s), verify_checksums (compares the core files with WordPress.org), reinstall_core (re-downloads the same WordPress version's core files over the site after verify_checksums reports modified or missing files, or after a malware clean-up — keeps wp-content and wp-config.php, same language; answers {version, locale, checksumsVerified}). set_custom_css (css, ≤ 80 KB) replaces the customizer's Additional css — use it to give a built site a real design: fonts via @import, colours, spacing, a hero layout, responsive rules; the classes and ids you reference must exist in the block html you wrote with manage_wp_content.
Input
| Name | Type | Description |
|---|---|---|
input
required
|
string |
A domain, email address, website URL, numeric service id, or hosting-account username the customer actually owns. Resolved to the owning account automatically; the resolved target is echoed back in the response.
|
action
required
|
enum |
status (read) or one of the writes: update_core, update_plugins, update_themes, flush_cache, flush_rewrites, verify_checksums, reinstall_core (put the same version's core files back, keeping content and config), set_custom_css (needs css), search_replace (dry-run by default; a real run is confirmation-tier). One of status, update_core, update_plugins, update_themes, flush_cache, flush_rewrites, verify_checksums, reinstall_core, set_custom_css, search_replace.
|
css
|
string |
For set_custom_css: the complete stylesheet for the customizer's Additional css (plain css, ≤ 80 KB, no |