deploy_app
Build a fresh app-baked OpenFactory variant and deploy it blue-green.
The exact Git revision is resolved with your connected GitHub account, dependencies and the app are built through OBS or a live-build hook, and a new live VM boots only after the ISO is complete. The VM receives runtime env, starts the packaged service, passes health checks, and then atomically replaces the old gateway route. No install/build work runs in the live VM.
To test an app hosted elsewhere (Vercel, AWS, …) you do NOT need this — pass the hosted URL straight to create_app_scenario.
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": "deploy_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | No | Port the app listens on (>=1024) | |
| wait | No | Wait for completion within wait_timeout_seconds; the deployment continues if the wait expires | |
| app_id | No | Deploy a registered app by id (uses its git_url/branch/slug) | |
| branch | No | Optional branch override | |
| api_key | No | MCP API key | |
| git_url | No | Git URL to deploy (omit if app_id is given) | |
| use_obs | No | Package through OBS when true; use the image-build hook when false; omit for automatic selection based on OBS health and stack support. | |
| base_image | No | Optional base-variant override; registered app default is debian-trixie | |
| visibility | No | Preview-URL visibility: 'public' (default) or 'private' (only the owner, gated by login). Defaults to the registered app's setting when app_id is given. | |
| run_command | No | Command to start the app, e.g. 'pnpm start' or 'python3 app.py'. Auto-detected for npm/pnpm/Yarn projects (port 3000) and static sites (python3 http.server, port 8080) if omitted. | |
| build_command | No | Optional production build command. For Node repos this is auto-detected from the package.json build script when omitted. | |
| session_token | No | Session token | |
| install_command | No | Optional deps install, e.g. 'npm install' or 'pip3 install -r requirements.txt' | |
| static_output_dir | No | Output directory for a built static site, e.g. dist or out | |
| wait_timeout_seconds | No | Maximum bounded wait when wait=true (1-540 seconds) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||