Skip to main content
Glama

Deploy to Production

varity_deploy

Deploy 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

NameRequiredDescriptionDefault
pathNoAbsolute 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).
portNoContainer listen port for an image deploy (default 80).
imageNoDeploy 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.
sourceNoSet 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_nameNoCustom 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_urlNoGitHub 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_pathNoAbsolute container path to mount the persistent volume (e.g. '/data', '/home/node/.n8n'). Requires volume_size.
volume_sizeNoPersistent volume size in GB for the app container (survives restart/redeploy). Use for stateful apps (databases, n8n, Ghost, etc.). Requires volume_path.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.0.1
    • changedInput schema / properties / path / description
      Previous value: -"Absolute path to the project directory (e.g. '/home/user/my-app'). Used only to read the Git `origin` remote when repo_url and image are omitted. If omitted, the MCP server's working directory is used (which is rarely the correct project root)."New value: +"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)."
    • addedInput schema / properties / source
      Added value: +{
      +  "description": "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.",
      +  "enum": [
      +    "upload"
      +  ],
      +  "type": "string"
      +}
  2. Changed7 schema fields changedv2.0.0
    • changedInput schema / properties / app_name / description
      Previous value: -"Custom app name that controls the deployment URL: https://varity.app/{app_name}/. Must be URL-safe (lowercase letters, numbers, hyphens). If omitted, the project directory name is used. Use a different app_name than the directory to create named environments (staging, canary, etc.)."New value: +"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.)."
    • addedInput schema / properties / image
      Added value: +{
      +  "description": "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.",
      +  "type": "string"
      +}
    • changedInput schema / properties / path / description
      Previous value: -"Absolute path to the project directory (e.g. '/home/user/my-app'). IMPORTANT: always pass the full absolute path to the project root, the directory that contains package.json and varity.config.json. If omitted, the MCP server's working directory is used (which is rarely the correct project root). Use the project_path returned by varity_init as the value here."New value: +"Absolute path to the project directory (e.g. '/home/user/my-app'). Used only to read the Git `origin` remote when repo_url and image are omitted. If omitted, the MCP server's working directory is used (which is rarely the correct project root)."
    • addedInput schema / properties / port
      Added value: +{
      +  "description": "Container listen port for an image deploy (default 80).",
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • changedInput schema / properties / repo_url / description
      Previous value: -"GitHub repository URL for the app (e.g. 'https://github.com/user/my-app'). Required for dynamic deployments. If omitted, auto-detected from .git/config. Use the repo_url returned by varity_create_repo as the value here."New value: +"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."
    • addedInput schema / properties / volume_path
      Added value: +{
      +  "description": "Absolute container path to mount the persistent volume (e.g. '/data', '/home/node/.n8n'). Requires volume_size.",
      +  "type": "string"
      +}
    • addedInput schema / properties / volume_size
      Added value: +{
      +  "description": "Persistent volume size in GB for the app container (survives restart/redeploy). Use for stateful apps (databases, n8n, Ghost, etc.). Requires volume_path.",
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
  3. First observedv2.0.0-beta.24

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Beyond the annotations, the description discloses critical operational behavior: folder upload may be disabled, UPLOAD_UNAVAILABLE means the folder cannot be accepted, and the agent must not promise upload or private-code handling before success. It also explains framework detection, hosting selection, build/lifecycle management, in-place updates by app_name, re-upload behavior for folders, and that deletion stops billing.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is front-loaded with the core action and then layers caveats, alternatives, and update semantics in a mostly logical order. It is dense and somewhat run-on in places, but nearly every sentence carries decision-relevant information rather than filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a complex deployment tool with no output schema, it covers the major decision paths, failure mode, alternatives, and update behavior well. The main remaining gap is that it does not describe the immediate success response or deployment identifiers, relying instead on the schema's mention of varity_deploy_status for the live URL.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the per-parameter descriptions already carry the baseline. The description still adds cross-call meaning beyond the schema, especially that reusing the same app_name updates an existing app in place and that reusing path plus app_name re-uploads a folder. It does not add much new per-parameter syntax, but the lifecycle semantics are valuable.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a specific verb and resource set: submitting a Git repo, local folder, or prebuilt container image to Varity for deployment. It explicitly distinguishes this from varity_deploy_template, varity_redeploy, and varity_delete_deployment, so an agent can select it without opening sibling schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives explicit when-to-use language ('deploy, publish, ship, or make their app live') and names the relevant alternatives for templates, redeployment, and deletion. It also explains the non-obvious update path: push new code and call varity_deploy again with the same app_name, while noting varity_redeploy does not pick up new commits.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.