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.
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": {
"repository_url": "<repository_url>"
},
"name": "create_project"
}
}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 | |
| start_cmd | No | override the command that starts the app (presets fastapi, flask, django, node). A shell command run as /bin/sh -c with PORT set, e.g. 'cd app && exec uvicorn main:app --host 0.0.0.0 --port ${PORT:-8000}'. Leave empty to use the preset's own command. Auto-detected from the code 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 | ||
| port | No | ||
| commit | Yes | ||
| job_id | No | ||
| notice | No | ||
| message | Yes | ||
| sub_path | No | ||
| warnings | No | ||
| framework | Yes | ||
| start_cmd | No | ||
| attempt_id | No | ||
| expires_at | No | ||
| project_id | Yes |