Create app
create_appDeploys an app from a Git repository or local archive and starts its first build; configure instance size, replicas, port, and environment variables.
Instructions
Creates an app (deployment) from a Git repository or a local archive and starts its first build. Defaults: instance small.m, 1 replica, port 80. Check get_environment_usage first if the environment may be near its quota.
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": {
"name": "<name>"
},
"name": "create_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dir | No | Sub-folder of the repository to build. | |
| env | No | Environment variables KEY → value. | |
| name | Yes | App name: 3-40 lowercase letters, digits or dashes. Becomes part of the public URL. | |
| port | No | Container port the app listens on. | |
| repo | No | Git repository: https URL (GitHub, GitLab, Bitbucket) or owner/repo for GitHub. The account must have the Git provider connected in the portal for private repos. | |
| branch | No | Git branch (default main). | |
| archive | No | Instead of Git: absolute path to a local .zip/.tar of the source on the machine running this MCP server. | |
| project | No | Project name or ID. Defaults to NIMBUZ_PROJECT, the `nimbuz use` context, or the only project. | |
| secrets | No | Secret variables KEY → value (stored encrypted, never shown back). | |
| storage | No | Persistent volume size, e.g. 1Gi. | |
| instance | No | Instance type, e.g. nano.m, small.m, medium.m (see get_pricing_catalog). | |
| replicas | No | Fixed number of replicas (ignored when autoscale is on). | |
| autoscale | No | Autoscaling bounds {min, max}, or false to turn autoscaling off. | |
| autoDeploy | No | Redeploy automatically on every push (Git only). | |
| dockerfile | No | Dockerfile name (default: auto-detect / buildpacks). | |
| healthPath | No | HTTP health-check path, e.g. /health. | |
| environment | No | Environment name (e.g. production) or ID (env-…). Defaults to NIMBUZ_ENV, the `nimbuz use` context, or the only environment. | |
| waitSeconds | No | Wait up to this many seconds for the rollout to finish (default 0 = return immediately). Builds usually take 1-5 minutes; check later with get_app_status. | |
| buildCommand | No | Command that builds the app, e.g. npm run build (default: auto-detect). | |
| startCommand | No | Command that starts the app, e.g. node server.js (default: auto-detect). | |
| installCommand | No | Command that installs dependencies, e.g. npm ci (default: auto-detect). |