Update Plugin
Updates one installed plugin to the newest version available. Replaces the plugin files, which cannot be undone from here, so it needs confirm set to true. A plugin that was active stays active, and the result is verified by reading the version back from disk rather than assuming the update worked. Check mosmcp/plugin-list-updates first to see what is on offer.
Also known as: upgrade a plugin, update to the latest version.
| Property | Value |
|---|---|
| Ability slug | mosmcp/plugin-update |
| Wire tool name | mosmcp__plugin-update |
| Category | Plugins (mosmcp-plugins) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | update_plugins |
| Minimum default role | Administrator |
| Annotations | readOnly: false · destructive: false · idempotent: false · openWorld: true |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| plugin | string | Yes | — | Which plugin. Accepts the folder name ("wordpress-seo"), the plugin file ("wordpress-seo/wp-seo.php"), or the display name ("Yoast SEO"). |
| confirm | boolean | false |
Must be true. Replacing plugin files cannot be undone from here, so tell the person which plugin and which version change first. | |
| expect_version | string | — | Optional. The version you expect to install. If a different version is on offer, the update is refused rather than installing something nobody reviewed. |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| plugin | string | Yes | |
| name | string | ||
| previous_version | string | Yes | |
| current_version | string | Yes | Version now on disk, read back after the update. |
| updated | boolean | Yes | True only when the version on disk actually changed. |
| was_active | boolean | ||
| is_active | boolean | Active state after the update, checked rather than assumed. | |
| notes | string[] |
Example
Sample prompt
Update Yoast SEO to the latest version.
Example request (json)
{
"jsonrpc": "2.0",
"id": 232,
"method": "tools/call",
"params": {
"name": "mosmcp__plugin-update",
"arguments": {
"input": {
"plugin": "wordpress-seo",
"confirm": true,
"expect_version": "23.5"
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 232,
"result": {
"isError": false,
"structuredContent": {
"plugin": "wordpress-seo/wp-seo.php",
"name": "Yoast SEO",
"previous_version": "23.4",
"current_version": "23.5",
"updated": true,
"was_active": true,
"is_active": true,
"notes": []
}
}
}
Edge cases / errors
- confirm not true → refused with mosmcp_confirmation_required; tell the person which plugin and version first.
- expect_version differs from the version now offered → refused with mosmcp_plugin_version_mismatch.
- DISALLOW_FILE_MODS set → mosmcp_file_mods_disabled; on multisite → mosmcp_multisite_network_action; targeting the host plugin → mosmcp_self_protected.
- No update available → updated false with a note; if WordPress left an active plugin switched off, it is re-activated and the outcome is reported in notes.
| << Previous | Next >> |
|---|---|
| Set Plugin Auto-Updates | Get Active Theme |
For more information about the Secure MCP Server for WordPress plugin, explore the following resources:
Product Overview | Pricing | Try for Free | Documentation
If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.