MCPMate’s WP-CLI commands

Free core commands

Manage MCPMate from your terminal and scripts with wp mcpmate.

Manage sites from scripts

Check status, pause or resume AI access, manage Read mode, review connections and tools, and inspect the audit log from WP-CLI. The core management commands are Free; licence commands need Pro.

These are administrator terminal commands for managing MCPMate. The separate AI command allowlist describes commands an AI app may request through MCPMate.

Command reference

Reference for MCPMate 1.0.0. Plugin WP-CLI registration and command help.

CommandWhat it does
wp mcpmate status [--format=<format>]Show access, Read mode and connection status.
wp mcpmate pausePause every AI connection.
wp mcpmate resumeResume AI access.
wp mcpmate read-mode <on|off|status>Control site-wide read-only access.
wp mcpmate grants list [--format=<format>]List approved AI connections.
wp mcpmate grants revoke <grant-id>Revoke a connection and its tokens.
wp mcpmate tools list [--format=<format>]List tool switches.
wp mcpmate tools enable <name>Enable a named tool.
wp mcpmate tools disable <name>Disable a named tool.
wp mcpmate audit tail [--n=<count>] [--grant=<grant-id>] [--format=<format>]Read the most recent audit entries.
wp mcpmate license status [--format=<format>]Show the local Pro licence status.