Create project from repository
create_projectCreate a new kad.dev project from a git repository URL and trigger its first build. Tracks the repo's default branch (or a given ref) and auto-detects the framework when not specified. Returns the new project_id plus the first build's job_id. When the plan has no free permanent slot the project is created as a temporary 72h one, and the reply then carries expires_at and a notice stating the deadline and how the project is kept. If the first build fails to start, the project_id is still returned (the project exists) — retry with deploy_project; whole-project deletion is dashboard/API only, not available over MCP. Requires a read-write token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | branch or tag to track; defaults to the repo's default branch | |
| envs | No | initial environment variables (name/value) | |
| name | No | project name; defaults to the repo name | |
| port | No | container port the app listens on; framework default when omitted | |
| sub_path | No | sub-directory within the repo to build (monorepos) | |
| build_cmd | No | override the build command | |
| framework | No | framework preset (e.g. nextjs, astro, go); auto-detected when omitted | |
| repository_url | Yes | the git repository URL (e.g. https://github.com/owner/repo) | |
| provision_needs | No | backend kinds to provision before the first build: postgres, storage | |
| runtime_version | No | runtime version (e.g. node 20) | |
| dependencies_cmd | No | override the install-dependencies command | |
| output_directory | No | build output directory for static frameworks |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | ||
| commit | Yes | ||
| job_id | No | ||
| notice | No | ||
| message | Yes | ||
| framework | Yes | ||
| attempt_id | No | ||
| expires_at | No | ||
| project_id | Yes |