post_v1_projects_fork
ForkProject creates a project seeded from a PUBLISHED EXAMPLE — either a starter-kit template from the ONE embedded gallery catalog, or any live project on the platform (an example a seeded creator…
ForkProject creates a project seeded from a PUBLISHED EXAMPLE — either a starter-kit template from the ONE embedded gallery catalog, or any live project on the platform (an example a seeded creator published, or another org's app serving at <slug>.hanzo.app). Answers 201 with the new project.
slug names the PARENT to fork and is required. Templates resolve first, and
the caller org's own private templates ahead of the public gallery, so a
curated template slug keeps meaning the same thing even if someone later
publishes a live project under it; variant picks that template's
format/page/theme. If no template matches, the slug resolves to the UNIQUE
live project that owns it across all orgs — the same resolution the site edge
uses to serve <slug>.hanzo.app, so what you can browse is what you can fork.
name and target override the derived project name and slug; everything
else is inherited from the parent. A live parent contributes its REPO, so the
child builds from the same source — the parent's deployed bytes are never
copied, because releases are per-tenant by design and the fork publishes its
own. The parent it actually resolved is stamped on the child as forkedFrom,
so attribution is a fact recorded at fork time rather than a claim
reconstructed later.
It funnels through the SAME create path POST /v1/projects uses, so slug validation, org scoping, ID minting and the 409 on a slug the caller's own org already uses are identical.
Scope: a validated principal is required (403 without one) and the child is created in THAT principal's org.
| Tool | post_v1_projects_fork |
| Door | https://api.hanzo.ai/v1/mcp |
| Method | tools/call (JSON-RPC 2.0) |
| Arguments | 4 |
| Operation | POST /v1/projects/fork |
| Product | projects |
Arguments
| Field | Type | Required | Default | Values | Description |
|---|---|---|---|---|---|
name | string | — | — | — | target project name (optional; defaults to the parent's title) |
slug | string | — | — | — | parent slug to fork — catalog template or published project (required) |
target | string | — | — | — | Target overrides the derived project slug (optional; defaults to the parent slug). Kept distinct from Slug so callers can rename on fork. |
variant | string | — | — | — | Variant picks a template's format/page/theme (optional; defaults to the template's first shape). This is the axis the catalog used to spend sibling slugs on, so it is expressed here, where the user's preference is. |
tools/list declares a type and a description for each field and nothing further. A — means neither the door nor that operation constrains the field.
Call it
A tools/call carries every argument in one flat object — nothing binds to a path or a query string. Nothing above is required, so every declared argument is shown rather than a guess at which matter.
curl -X POST https://api.hanzo.ai/v1/mcp \
-H "Authorization: Bearer $HANZO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "post_v1_projects_fork",
"arguments": {
"name": "<name>",
"slug": "<slug>",
"target": "<target>",
"variant": "<variant>"
}
}
}'Values are the operation's own defaults and enumerated values where it declares them, and a <placeholder> where neither source declares one. tools/list needs no credential; tools/call does — called without one the door answers HTTP 200 with a JSON-RPC result whose isError is set and whose text says what was missing. How to get a key →
The operation behind it
| Operation | Route | Product | Summary |
|---|---|---|---|
post_v1_projects_fork | POST /v1/projects/fork | projects | Creates a project seeded from a PUBLISHED EXAMPLE — either a starter-kit template from… |
The same capability over plain HTTP is in the projects API reference, on https://api.hanzo.ai.
All 755 tools · The door · API reference
Generated from tools/list on https://api.hanzo.ai/v1/mcp — 833 tools captured 2026-08-01, of which 755 are documented here (the operator surface is not published) (this build read the vendored copy; the door was unreachable).
How is this guide?
post_v1_projects
CreateProject creates a project — the handle a site is deployed and served under — and answers 201 with it in `draft`.
post_v1_projects_slug_deployments_id_complete
CompleteDeployment is the CI completion hook that flips a queued git deployment to live (or error) once CI has synced the built site to S3. `status` must be `live` or `error`.