Activate Plugin
Switches on a plugin that is already installed. Confirms afterwards that it really is active, because a plugin can fail during activation and WordPress does not always say so. Does nothing and reports no change if it was already active. This cannot install a plugin that is not on the site yet.
Also known as: turn on a plugin, enable a plugin, switch a plugin on.
| Property | Value |
|---|---|
| Ability slug | mosmcp/plugin-activate |
| Wire tool name | mosmcp__plugin-activate |
| Category | Plugins (mosmcp-plugins) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | activate_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"). |
Output schema
| Field | Type | Required | Description |
|---|---|---|---|
| plugin | string | Yes | |
| name | string | ||
| previous | string | Yes | Status before the call: "active" or "inactive". |
| current | string | Yes | Status afterwards, checked against the site rather than assumed. |
| changed | boolean | Yes | |
| notes | string[] |
Example
Sample prompt
Turn on the WooCommerce plugin.
Example request (json)
{
"jsonrpc": "2.0",
"id": 225,
"method": "tools/call",
"params": {
"name": "mosmcp__plugin-activate",
"arguments": {
"input": {
"plugin": "woocommerce"
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 225,
"result": {
"isError": false,
"structuredContent": {
"plugin": "woocommerce/woocommerce.php",
"name": "WooCommerce",
"previous": "inactive",
"current": "active",
"changed": true,
"notes": []
}
}
}
Edge cases / errors
- Already active → nothing changes, changed is false with a note.
- WordPress refuses activation (e.g. fatal error or unmet requirement) → mosmcp_plugin_activation_failed with WordPress's reason; the site is unchanged.
- No error but the plugin is still inactive afterwards → current stays "inactive" and a note says it likely deactivated itself during startup.
- Plugin not installed → mosmcp_plugin_not_found; this ability cannot install plugins.
| << Previous | Next >> |
|---|---|
| Update Site Title | Count Plugins by Status |
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.