mcp_update_plugin
Update a single WordPress plugin to its newest version, optionally forcing a fresh update check first. Keeps previously active plugins activated after the file swap.
Instructions
Update a single plugin to the latest version. refresh:true first runs a fresh update check for it (wp.org and Plugin Update Checker / GitHub releases), so a just-released update is seen without waiting 12 h. A plugin that was active before is reactivated after the file swap (reactivated / reactivate_error report it). updated:false means already up to date; a failed download or unpack is an error (502, cvrt-mcp-endpoints 1.16.0+). cvrt-mcp-endpoints itself is refused (409): update it via mcp_install_plugin_zip or wp-admin.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"site": "<site>",
"plugin": "<plugin>"
},
"name": "mcp_update_plugin"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | Yes | Site id (see list_sites) | |
| plugin | Yes | Plugin file path (e.g., akismet/akismet.php) | |
| refresh | No | Run a fresh update check for this plugin first (cvrt-mcp-endpoints 1.16.0+) |