Set Plugin Auto-Updates


Turns WordPress automatic updates on or off for one plugin, so WordPress keeps it current on its own. Reversible at any time by calling again with the opposite value.

Also known as: automatic updates, auto-update plugins, stop automatic updates.

Property Value
Ability slug mosmcp/plugin-set-auto-updates
Wire tool name mosmcp__plugin-set-auto-updates
Category Plugins (mosmcp-plugins)
Plan Free

 

Required access

Requirement Value
Capability update_plugins
Minimum default role Administrator
Annotations readOnly: false · destructive: false · idempotent: true · openWorld: false

 

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").
enabled boolean Yes — True to let WordPress update this plugin automatically, false to stop it.

 

Output schema

Field Type Required
plugin string Yes
name string
previous boolean Yes
current boolean Yes
changed boolean Yes
notes string[]

 

Example

Sample prompt
Turn on automatic updates for Akismet.

Example request (json)

{
  "jsonrpc": "2.0",
  "id": 231,
  "method": "tools/call",
  "params": {
    "name": "mosmcp__plugin-set-auto-updates",
    "arguments": {
      "input": {
        "plugin": "akismet",
        "enabled": true
      }
    }
  }
}

Example response (json)

{
  "jsonrpc": "2.0",
  "id": 231,
  "result": {
    "isError": false,
    "structuredContent": {
      "plugin": "akismet/akismet.php",
      "name": "Akismet Anti-spam: Spam Protection",
      "previous": false,
      "current": true,
      "changed": true,
      "notes": []
    }
  }
}

 

Edge cases / errors

  • enabled missing → refused with mosmcp_auto_update_missing_value.
  • Enabled while DISALLOW_FILE_MODS is set or plugin auto-updates are off site-wide → saved, but a note says it will have no effect.
  • Already in the requested state → changed is false with a note.

 


<< Previous Next >>
List Plugins Update Plugin

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.