Skip to content
MCP Servers
Skill

/08-deploy

Step 8 (deploy) of the Hostinger Headless flow. Archives the frontend source, then deploys through the connector's one-shot hosting_deploy (type nodejs — it uploads the source, runs npm install and the build on the server) with the chosen framework's build settings (appType +

From plugin
api-mcp-server
17220 skills

Claude Code

$ npx -y skills add hostinger/api-mcp-server --skill 08-deploy --agent claude-code

SKILL.md

08-deploy.SKILL.md
name: headless-step-deploy
description: "Step 8 (deploy) of the Hostinger Headless flow. Archives the frontend source, then deploys through the connector's one-shot hosting_deploy (type nodejs — it uploads the source, runs npm install and the build on the server) with the chosen framework's build settings (appType + output dir) passed explicitly, polls to completion with hosting_get-deployment, verifies the live site and that the backend survived, then writes deploy.json."

headless-step-deploy

Ship the frontend to the live domain through the Hostinger connector. You hand the connector a zip of the project **source** and it uploads it, runs `npm install` + the build script on the server, and serves the result. **Out:** `deploy.json`.

This is an **instance-barrier** step: run it only after `provision.status == "completed"` and validate has passed (on a first deploy that includes its dependency audit, even when the rest of validate is skipped). All operations go through the connector (`execute`).

> **Connected to the hosted server (`mcp.hostinger.com`)?** Its `hosting_deploy` deploys Git > repositories only and cannot read a local `path`. Run this step through the local > `hostinger-api-mcp` server instead (see the connect step: > `<command> <launcher>`).

> **With a shell and the Hostinger CLI installed**, the same deploy is one command, with the build > settings passed exactly as the table below says. Run it from the project, since it links the current directory: > `cd ~/.hostinger/<domain>/src && hostinger up --domain <domain> --type nodejs --app-type <appType> --output-directory <dir> --build-script build --node-version 22 --package-manager npm --message "<what this deploy changes, like a commit message>" --yes --format json`. > If it fails with `unknown flag: --message` (an older CLI), run `brew upgrade hostinger/tap/hostinger` or rerun it without `--message`. > It uploads, builds, waits and returns `data.buildUuid` and `data.buildState`; add `--no-wait` to > return at once and wait with `cd "$HOME" && node <skill>/wait.mjs build <domain> <uuid>`. Then continue at > "Verify" below. Recent CLI versions see that the site is headless (`data.headless: true`) and > deploy only its Node.js frontend, leaving `/cms` alone; still pass the settings above.

**In:** the project in `~/.hostinger/<domain>/src/`, `site.json` (`username`, `urls`), `state.json` (`frontend.framework`, `frontend.rendering`).

> ## ⚠️ The one rule that makes this work: pass build settings explicitly > If you let `hosting_deploy` **auto-detect** build settings, for a headless site that detection returns > **null** (`appType:null`, `outputDirectory:null`, Node 20) — the build "completes" but the **root > serves 403** (no `appType`/output → the vhost serves a directory with no entry). This is reproducible. > **Always pass `appType`, `outputDirectory`, `nodeVersion`, `buildScript`, `packageManager` and > `rootDirectory` on the `hosting_deploy` call** with the framework's values; the deploy then resolves > them and serves correctly, and `/cms` is preserved.

Build configurations

Map `frontend.framework` (from `state.json`) to its `appType` + build output directory, and pass those on the `hosting_deploy` call. `appType` is the framework's value, e.g. `next`, `nuxt`, `astro`, `svelte-kit`, `nest`, `express`, `fastify`, `react`, `create-react-app`, `gatsby`, `vite`, `vue`, `angular`, `parcel`, `svelte`, `other`.

Common cases (all `nodeVersion: 22`, `buildScript: "build"`, `packageManager: "npm"`, `rootDirectory: "."`):

| Framework / mode | Local config | `appType` | `outputDirectory` | |---|---|---|---| | **Next.js — SSR** *(default)* | `output: 'standalone'` | `next` | `.next` | | **Nuxt — SSR** | default | `nuxt` | `.output` | | **SvelteKit — SSR** | node adapter | `svelte-kit` | `build` | | **Astro — static** | `output: 'static'` | `astro` | `dist` | | **Vite / React / Vue — static (SPA)** | — | `vite` (or `react`/`vue`) | `dist` | | **Express / NestJS / Fastify — server** | — | `express`/`nest`/`fastify` | build output dir |

SSR/server frameworks run a persistent Node process (root sends `x-powered-by` / `cache-control: no-store`); static frameworks serve their output dir as files. If unsure of a framework's output dir, check the framework's own build output.

Step 1 — Pre-flight

1. **Instance live (the deploy gate).** `provision.status == "completed"`, re-verified with `hosting_websites_list-setups { "domain": "<domain>" }`: deploy overwrites the site root, so it never trusts `state.json` alone. 2. **Build output exists locally** (the framework's output dir — e.g. `.next/`, `dist/`, `.output/`) and the project builds clean (frontend/validate already did this). If not, go back.

  • **Next.js 16+:** `package.json`'s `build` script is `next build --webpack`, not plain `next build` —

the server's glibc can't run Turbopack's native compiler, and Turbopack doesn't fall back to webpack (see `../06-frontend/SKILL.md` Step 3). On Next.js 15.x leave it as plain `next build`. Fix it here if it isn't. 3. **PocketBase: nothing under `/api` or `/_`.** The app serves no route under those prefixes, whatever its framework (Next.js `app/api/` or `pages/api/`, Nuxt `server/api/`, SvelteKit `src/routes/api/`, Astro `src/pages/api/`, an Express or Fastify route), and `src/` holds no `.pocketbase/` folder or `credentials.json`. Fix it here if it does. 4. **Env vars (only if used).** Build-time vars (e.g. `NEXT_PUBLIC_*`) must be set **before** the build with `hosting_nodejs_replace-environment-variables` (full replace: list the current keys first and send the complete set). Never put secrets in the repo or the archive. On PocketBase, server-side superuser work reads `PB_URL`, `PB_SUPERUSER_EMAIL` and `PB_SUPERUSER_PASSWORD` from here (the values come from `~/.hostinger/<domain>/.pocketbase/credentials.json`, never from the archive).

Step 2 — Archive the source

Zip the project

Read more
@hostinger
Ships withapi-mcp-server

Model Context Protocol (MCP) server for Hostinger API.

Stars on GitHub

Momentum

stars in total
172
Star history of hostinger/api-mcp-server on GitHub, a chart by star-history.com

Other skills on api-mcp-server.

audit-hosting

audit-hosting

Audit a Hostinger web hosting account (Shared, Cloud and Agency plans) and report what needs attention: every plan and website,…

connect-domain

connect-domain

Connect a custom domain to a website on Hostinger web hosting (Shared, Cloud or Agency plans) end to end: attach the domain to…

headless

headless

Orchestrator for the Hostinger Headless build flow — build and deploy a real website on the user's Hostinger account from a…

connect

connect

Connect step for the Hostinger Headless flow — verify Node, run the bootstrap (reach the Hostinger MCP server + OAuth sign-in),…

01-check-state

01-check-state

First build step of the Hostinger Headless flow, run right after connect. Works out where a given domain's build stands — is a…

More skills from other plugins.

gitnexus-cli

gitnexus-cli

Use when the user needs to run GitNexus CLI commands like analyze/index a repo, check status, clean the index, generate a wiki,…

@abhigyanpatwari@abhigyanpatwariInstall Skill
fastmcp-client-cli

fastmcp-client-cli

Query and invoke tools on MCP servers using fastmcp list and fastmcp call. Use when you need to discover what tools a server…

fastmcp3d29k
@prefecthq@prefecthqInstall Skill
n8n-agents

n8n-agents

Design n8n AI agents the right way. Use when building or editing any @n8n/n8n-nodes-langchain.* AI node — an AI Agent, LLM chain,…

n8n-mcp3d23k
@czlonkowski@czlonkowskiInstall Skill
post-to-xhs

post-to-xhs

小红书内容发布技能。支持两种发布模式:(1) 上传图文模式 - 图片+短文;(2) 写长文模式 - 长篇文章+排版模板。 支持两种输入方式:用户提供完整内容和图片/图片URL,直接发布;或提供网页URL,自动提取内容和图片。…

@xpzouying@xpzouyingInstall Skill

Questions about 08-deploy.

Which coding agents can use 08-deploy?
08-deploy installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.