Home / Servers / Cloudflare API / worker_versions_upload_version

Upload Version

An MCP tool from the Cloudflare API server, hosted on mcp.hjlabs.in.

Upload Version Upload a Worker Version without deploying to Cloudflare's network. You can find more about the… [POST /accounts/{account_id}/workers/scripts/{script_name}/versions]

Name on the gateway: cloudflare_api__worker_versions_upload_version · may change things.

Parameters

NameTypeDescription
account_id requiredstringaccount_id parameter
script_name requiredstringscript_name parameter
bindings_inheritstrictWhen set to "strict", the upload will fail with…
filesarrayAn array of modules (often JavaScript files)…
metadata requiredobjectJSON-encoded metadata about the uploaded parts…

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:

call_tool arguments
{
  "name": "cloudflare_api__worker_versions_upload_version",
  "arguments": {
    "account_id": "…",
    "script_name": "…",
    "metadata": "…"
  }
}

Or connect the Cloudflare API server directly, which lists 3,127 tools including this one:

Run in your terminal
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 upload version tool with account_id set to ….

More from Cloudflare API