wp_switch_auth_method
Change the authentication method for a WordPress site for the current session. Select from app-password, JWT, basic, API key, or cookie.
Instructions
Switches the authentication method for a site for the current session.
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. | |
| username | No | The username for 'app-password' or 'basic' authentication. | |
| password | No | The Application Password for 'app-password' or password for 'basic' auth. | |
| jwt_token | No | The token for 'jwt' authentication. |