Home / Servers / Cloudflare API / worker_script_post_subdomain
Update Worker Script Subdomain
An MCP tool from the Cloudflare API server, hosted on mcp.hjlabs.in.
Update Worker Script Subdomain Enable or disable a Worker script on the workers.dev subdomain. [POST /accounts/{account_id}/workers/scripts/{script_name}/subdomain]
Name on the gateway: cloudflare_api__worker_script_post_subdomain · may change things.
Parameters
| Name | Type | Description |
|---|---|---|
account_id required | string | account_id parameter |
script_name required | string | script_name parameter |
enabled required | boolean | Whether the Worker should be available on the… |
previews_enabled | boolean | Whether the Worker's Preview URLs should be… |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "cloudflare_api__worker_script_post_subdomain",
"arguments": {
"account_id": "…",
"script_name": "…",
"enabled": true
}
}Or connect the Cloudflare API server directly, which lists 3,127 tools including this one:
claude mcp add --transport http hj-cloudflare-api https://mcp.hjlabs.in/mcp/cloudflare-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the update worker script subdomain tool with account_id set to ….