Skip to main content

Droost: Config Set

droost_config_set Write (gated)

Module: Droost core

Sets one config key by dotted path — the precision screwdriver for existing config (site name, view filter values, theme settings). For new config entities prefer the dedicated composers; for content use the entity tools. Gated.

Example call
{
    "tool": "droost_config_set",
    "arguments": {
        "name": "system.site",
        "key": "slogan",
        "value": "Boost your AI coding agent on Drupal"
    }
}
Example response — captured live on this site
{
    "success": false,
    "message": "This tool is disabled. Enable it with: drush config:set droost.settings allow_destructive true (or via Admin → Configuration → Development → Droost), then reload the MCP server in your editor — the running server caches this flag at startup and will keep refusing until it is restarted. (To disable later, use --input-format=yaml false so the value is stored as a real boolean.)",
    "data": null
}

Sets a single value on an existing configuration object (equivalent to "drush config:set"). Disabled by default; requires droost.settings.allow_destructive. Returns the previous and new values.

Input schema (JSON Schema)
{
    "type": "object",
    "properties": {
        "name": {
            "type": "string",
            "description": "Config object name, e.g. \"system.site\"."
        },
        "key": {
            "type": "string",
            "description": "Dot-delimited key within the object, e.g. \"page.front\"."
        },
        "value": {
            "description": "The new value (string, number, boolean, or nested structure)."
        }
    },
    "required": [
        "name",
        "key",
        "value"
    ]
}