cloudflare_worker_deploy_project
Deploy a multi-file Cloudflare Workers project by running wrangler deploy in the specified project directory, with optional environment.
Instructions
Deploy a multi-file Workers project using wrangler. Runs 'npx wrangler deploy' in the given project directory. Requires wrangler installed in the project (devDependency) and a wrangler.toml config file. Uses the CLOUDFLARE_API_TOKEN from the MCP server environment.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_path": "<project_path>"
},
"name": "cloudflare_worker_deploy_project"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| environment | No | Optional wrangler environment name (e.g., 'uat', 'production'). Maps to [env.<name>] in wrangler.toml | |
| project_path | Yes | Absolute path to the Workers project directory containing wrangler.toml |