Deploy app
apps.deployAnalyze a GitHub repository, enforce one owner per stable branch within the logical app, resolve or create its environment instance, apply plan-aware defaults, and start a linked deployment.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "tanda-api",
"branch": "dev",
"template": "web-service",
"project_id": "project-id",
"target_port": 8080,
"health_checks": {
"startup_path": "/healthz",
"liveness_path": "/healthz",
"readiness_path": "/readyz"
},
"build_contexts": [
{
"name": "biometric-sdk",
"branch": "main",
"repository_url": "https://github.com/DataInfosec/biometric-sdk"
}
],
"build_strategy": "dockerfile",
"environment_id": "environment-id",
"repository_url": "https://github.com/DataInfosec/tanda-campus",
"dockerfile_path": "deployments/Dockerfile",
"idempotency_key": "tanda-api-staging-v1"
},
"name": "apps.deploy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | app display name; defaults to the analyzed repository name | |
| branch | No | stable branch; defaults to the repository default branch and must not already target another environment in the same logical app | |
| replicas | No | stable replica count; defaults to 1 | |
| template | No | web-service or static-site; omitted values are detected from the repository | |
| cpu_limit | No | Kubernetes CPU quantity such as 500m | |
| build_args | No | Docker build arguments; values are treated as sensitive in returned deployment data | |
| project_id | No | project in the selected organization; omit only when the organization has one project | |
| static_spa | No | enable conservative single-page-app fallback for extensionless routes | |
| technology | No | framework or runtime; omitted values are detected | |
| description | No | optional app description | |
| region_code | No | target region; omit for plan-aware recommendation | |
| target_port | No | explicit container port from 1 to 65535; omit for runtime discovery | |
| memory_limit | No | Kubernetes memory quantity such as 512Mi | |
| runtime_mode | No | container or shared; shared is opt-in for paid plans and the default for eligible free-plan apps | |
| build_command | No | optional build command override | |
| health_checks | No | optional HTTP health probes; target_port is required | |
| resource_type | No | service, web_application, static_website, or function; omitted values are detected | |
| start_command | No | optional start command override | |
| workload_path | No | directory inside a monorepo; defaults to repository root | |
| build_contexts | No | named BuildKit contexts backed by GitHub repositories | |
| build_strategy | No | railpack or dockerfile; omitted values are detected | |
| environment_id | Yes | target environment identifier belonging to the project | |
| repository_url | Yes | GitHub repository URL; repository identity and access are resolved server-side | |
| dockerfile_path | No | Dockerfile path relative to workload_path | |
| idempotency_key | Yes | unique caller-generated key for safe retries of this exact request | |
| install_command | No | optional dependency installation command override | |
| organization_id | No | organization membership to use for this call; omit only when the account has one current membership | |
| previews_enabled | No | create previews only for pull requests targeting this stable branch; previews inherit this environment configuration | |
| preferred_regions | No | ordered preferred region codes | |
| deployment_strategy | No | single-region or multi-region | |
| sensitive_variables | No | environment variable keys whose values must be encrypted and redacted | |
| environment_variables | No | runtime environment variables | |
| static_output_directory | No | optional compatibility override for the static-site build output directory relative to workload_path; omit for automatic detection | |
| inherit_environment_variables | No | also inherit environment variables and secrets from the configuration source | |
| configuration_source_instance_id | No | existing app instance whose stable configuration should be inherited |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |