Deploy to Production
varity_deployDeploy apps from a Git repository or prebuilt container image, or submit a local project folder for Varity to detect the framework, provision hosting, build, and manage lifecycle state.
Instructions
Submit a Git repository, a local project folder, or a prebuilt container image to Varity's deployment owner. A folder with no public GitHub repository is tried as a direct upload, which Varity may not have switched on yet: never promise the upload or private code before it succeeds; if it answers UPLOAD_UNAVAILABLE, Varity can't take a folder from this computer yet. The control plane detects the framework, selects hosting, builds, and manages lifecycle state. Use this when a developer wants to deploy, publish, ship, or make their app live. If the developer wants to deploy a certified template rather than their own code, use varity_deploy_template instead. To ship new code for an app that is already deployed, push it and call varity_deploy again with the same app_name: the same owner and workload shape updates that app in place at the latest commit (varity_redeploy does not pick up new commits). For an uploaded folder, call varity_deploy again with the same path and app_name: it uploads the folder again. To stop a deployment and its billing, use varity_delete_deployment.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "varity_deploy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute path to the project directory (e.g. '/home/user/my-app'). Used to read the Git `origin` remote when repo_url and image are omitted, and as the folder to try uploading when the project has no public GitHub repository. If omitted, the MCP server's working directory is used (which is rarely the correct project root). | |
| port | No | Container listen port for an image deploy (default 80). | |
| image | No | Deploy a prebuilt Docker/OCI image directly (e.g. 'ghcr.io/you/app:latest') instead of building from source. Use when the developer has a container image rather than a repo/project. Mutually exclusive with repo_url. | |
| source | No | Set to "upload" to try sending the project folder at path straight to Varity. Tried automatically when the folder has no Git origin remote or its repository is private. Folder upload may not be switched on yet: then nothing is uploaded or charged and the answer says so. | |
| app_name | No | Custom app name that controls the deployment URL. A static site is served at https://varity.app/{app_name}/ and an app with a server at https://{app_name}.varity.app; the platform picks which, so read the live URL from varity_deploy_status. Must be URL-safe (lowercase letters, numbers, hyphens). If omitted, the repository or image name is used. Use a different app_name to create named environments (staging, canary, etc.). | |
| repo_url | No | GitHub repository URL for the app (e.g. 'https://github.com/user/my-app'). If omitted, auto-detected from .git/config. Use the repo_url returned by varity_create_repo as the value here. | |
| volume_path | No | Absolute container path to mount the persistent volume (e.g. '/data', '/home/node/.n8n'). Requires volume_size. | |
| volume_size | No | Persistent volume size in GB for the app container (survives restart/redeploy). Use for stateful apps (databases, n8n, Ghost, etc.). Requires volume_path. |