deploy
Builds the current commit and swaps traffic to it once health checks pass. The previous deployment is kept and can be restored with deployment_rollback. Returns immediately with a deployment id; poll deployment_get for progress. Through MCP a build from a repository is built on your own machine by default, so it never waits in Helm7's build queue: nothing builds until you run the local_build.command in the response (the CLI builds, uploads and starts it) in a shell with Docker and the repository. If you have no shell or Docker, call deploy again with build: "remote", which replaces it and builds on Helm7 (use build_queue_get to see how long the queue is).
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": {
"productId": "<productId>"
},
"name": "deploy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Wait for the build and the swap to finish before returning. Off by default: a build can take minutes, and deployment_get follows it as it runs. | |
| build | No | Where the image is built. `remote` waits its turn in Helm7's build queue. `local` is built on your own machine and uploaded, so it never waits: the response names the image to build and deployment_image_upload takes it (the CLI does all of this). Omit it to use the default: local through MCP, otherwise the workspace setting (which falls back to remote when the caller cannot build locally). | |
| commit | No | Git SHA. Defaults to the branch tip. | |
| confirm | No | Required for destructive operations. Without it a destructive call returns its plan and refuses, exactly as dry_run would. | |
| dry_run | No | Return the plan without applying it: the resources it would create, change or destroy, and an estimated monthly cost. Free, and has no side effects. Call this before any change you have not made before. | |
| productId | Yes | Product identifier, e.g. prd_7k2m9x4qw1nv8bz3ct6d. | |
| service_id | No | Omit to deploy every service in the environment. | |
| environment | No | Environment within a Product. Every Product has production; preview and development are optional. pr-<number> is the preview of an open pull request, made and removed by the GitHub integration on Pro. | |
| idempotency_key | No | Replaying the same key returns the original result instead of acting twice. Strongly recommended for anything that creates a resource or spends money. | |
| can_build_locally | No | Set by clients that have Docker and the source to hand (the CLI does). With `build` omitted, the workspace default of local only applies when this is true. |