wp_switch_auth_method
Change the authentication method for a WordPress site during the current session, letting you switch between app-password, basic, or JWT without reconnecting.
Instructions
Switches the authentication method for a site for the current session.
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": {
"method": "<method>"
},
"name": "wp_switch_auth_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | The ID of the WordPress site to target (from mcp-wordpress.config.json). Required if multiple sites are configured. | |
| method | Yes | The new authentication method to use. | |
| password | No | The Application Password for 'app-password' or password for 'basic' auth. | |
| username | No | The username for 'app-password' or 'basic' authentication. | |
| jwt_token | No | The token for 'jwt' authentication. |