Skip to content
View as Markdown

POST Toggle MCP Tools​

POST
/mcp/toggle

Flip the MCP kill-switch, stored as the FluentCRM option mcp_enabled.

With it off, the adapter stops reporting FluentCRM abilities — the endpoint stays reachable but advertises nothing. The change takes effect on the next request, because the guard that reads it runs during ability registration.

mcp_enabled is permissive about types: the strings yes, true, and 1 all enable, any other string disables, and a non-string is cast to boolean.

Required capability: fcrm_manage_settings

Enforced by SettingsPolicy::verifyRequest(), the policy default for this route group.

Authorizations​

ApplicationPasswords

WordPress Application Passwords — use Basic auth with your WordPress username and an application password in the format: username:application_password

Type
API Key (header: Authorization)

Request Body​

application/json
JSON
{
"mcp_enabled": "string"
}

Responses​

Kill-switch updated.

application/json
JSON
{
"ok": true,
"mcp_enabled": true,
"message": "string"
}

Playground​

Authorization
Body

Samples​

Powered by VitePress OpenAPI