Set run config
set_run_configReplace .mythex/run.json (the whole file: resend every service and its deploy) and start the preview; long-lived app servers belong here, never in bash. Frontend + API: services: [{ name, command, port, web: true, deploy }, { name: "api", command, port, web: false, deploy }]. Commands run at the project root: write cd server && node index.js (a service cwd is folded into its command the same way). port = the port the dev server already uses (the starter's Vite: 5173); no host/port flags needed. Every service needs its own deploy: static site { build, static, runtime: "static" }, server { dockerfile, context? } (a Dockerfile in a subfolder may COPY paths relative to its own folder; set context to be explicit). The frontend reaches the API at relative /api, proxied by the dev server, so the build carries no absolute API URL. database/storage flags here do not provision: call attach_database / enable_storage. If the preview stays unhealthy, read get_logs and fix the code rather than calling this again and again.
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": {
"config": "<config>"
},
"name": "set_run_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | Run manifest: services[] (name, command, port, web, setup, deploy) or command / port / deploy, plus database / storage | |
| project_id | No | Project id (or use session from use_project) |