create_app
Register an app (a git repo to deploy) on OpenFactory.
This creates the App record (name, source, slug, visibility). Deploy it with deploy_app(app_id=…) to build a fresh immutable variant and get a URL at https://.apps.openfactory.tech (web-service apps). To test an app that's ALREADY hosted elsewhere (Vercel, etc.), you don't need this — just point a scenario at its URL with create_app_scenario.
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>",
"git_url": "<git_url>"
},
"name": "create_app"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human name for the app, e.g. 'my-shop' | |
| port | No | Port the app listens on (e.g. 3000) | |
| slug | No | Optional DNS-safe slug for the app's URL; auto-derived from the name if omitted | |
| branch | No | Branch to deploy (default main) | main |
| api_key | No | MCP API key | |
| git_url | Yes | HTTPS git URL of the app's repository | |
| base_image | No | Base variant for deployments (default: debian-trixie) | debian-trixie |
| visibility | No | 'public' (anyone with the URL can view) or 'private' (only you — the preview URL is gated by your OpenFactory login). | public |
| session_token | No | Session token | |
| deployment_type | No | web-service (long-running server), static-site, or scheduled-job | web-service |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||