appcrane_create_managed_app
Create a new app using AppCrane's GitHub service-account without requiring a personal access token. Automatically repairs the repo if a prior attempt failed.
Instructions
Create a new app using AppCrane's GitHub service-account — the platform creates a repo on the configured org/user, owns it, and the agent works against it through github_* tools without the end user ever needing their own PAT. Use this when the user does not have a GitHub account or does not want to deal with GitHub at all. Requires the platform admin to have configured the service-account in Settings → GitHub. Returns the same shape as appcrane_create_app, plus the auto-created repo metadata. IDEMPOTENT RECOVERY: if the slug already exists as a managed app but its AMC_ repo was never created (a half-created app from an earlier failure — push then returns REPO_NOT_FOUND), calling this again re-provisions the missing repo and returns { repaired: true } instead of erroring. So if a create attempt half-failed, just call it again with the same slug. Owner-or-admin to repair an existing one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name (human-readable) | |
| slug | Yes | URL slug, lowercase-alphanumeric-with-dashes. Becomes the repo name. | |
| branch | No | Default branch for the new repo. Defaults to "main". | |
| domain | No | Optional custom domain. | |
| max_ram_mb | No | Per-container memory cap. Default: 512. | |
| description | No | Optional. Used as both app description and repo description. | |
| max_cpu_percent | No | Per-container CPU cap. Default: 50. |