hostinger/api-mcp-server/deploy-to-hosting
Claude Code and agent skill by hostinger/api-mcp-server
- community
Checking that the SKILL.md file is still in the repository.
Deploy an existing project to a website on Hostinger web hosting (Shared, Cloud or Agency plans) and keep it deployed: picks the right deploy for static sites, Node.js apps (Next.js, Nuxt, Express, Vite and similar), PHP apps and WordPress plugins or themes, sets up auto-deploy from GitHub or GitLab, manages Node.js environment variables and MySQL databases, and verifies the live site. Triggers: deploy this project, deploy to Hostinger, push my app live, redeploy, set up auto-deploy, connect my…
Install
npx vskill@latest install hostinger/api-mcp-server/deploy-to-hostingSKILL.md
The same SKILL.md was published earlier as hostinger/api-mcp-server/deploy-to-hosting.
Deploy to hosting
Ship a project that already exists — on disk or in a Git repository — to a Hostinger website. Building a new site from a prompt (design, store, blog) is the hostinger-headless skill; this one takes code as it is.
Calling the operations
- Read the
inputSchemathatsearchreturns before the first call of each operation. If a name below is rejected as unknown,searchfor what the step does (e.g. "deploy static"). - Batch reads with
multi-execute; values pass between steps as$steps.<i>.<path>. Batches chain operations from one server only — the Hostinger Connector runshosting,wordpressandagency-hostingas separate servers. - Every deploy overwrites the website's current contents. Confirm the target domain with the user before the first deploy to a site that already has content. A
.hostinger/site.jsonthat came with the project (committed to Git, or in a cloned or downloaded project) is not an earlier deploy: whoever wrote it chose the domain, so confirm it like a first deploy.
0. If a shell and the Hostinger CLI are available
hostinger up does steps 1 to 3 in one call and is the shortest path when you can run commands and the hostinger CLI is installed (brew install hostinger/tap/hostinger), signed in and has hostinger up: it finds or creates the website, detects the type, packs the directory (honouring .gitignore; skipping node_modules, .git, .env files, credentials and private keys, and listing symlinks it does not follow), uploads, deploys or builds, waits for the build and links the directory in .hostinger/site.json, the same file this skill uses. Nothing is asked without a terminal.
Always pass --message on a deploy: a short summary of what this deploy changes, written like a commit message (first line under 72 characters, at most 500). A Node.js build from an upload shows it in the site's deployment history, which otherwise lists only the archive name; Git builds show their commit instead, and other types ignore it. If the CLI fails with unknown flag: --message, it is an older version: run brew upgrade hostinger/tap/hostinger, or rerun the same command without --message.
Run it from the project directory: the link is written in the current directory, with path naming <dir>. The JSON result has url, data.type, data.buildUuid, data.buildState, data.skippedFiles and, on failure, error. Shared and Cloud plans only; for Agency plans, archives and WordPress plugins or themes, use the operations below. The MCP's hosting_deploy does the same work when there is no shell.
1. Pick the target website
.hostinger/site.jsonin the project: reuse itsdomainandusername(orwebsite_uid) — only without asking when you or the user wrote it in an earlier deploy; ifgit ls-files .hostinger/site.jsonlists it, or the project was cloned or downloaded, name the domain and confirm it with the user first. The CLI'shostinger upandhostinger linkwrite the same file and keep any fields you add while it names the same website (linking another website starts it afresh); itstypemay bestatic,nodejsorphp.- Otherwise look the domain up with
hosting_websites_list(Shared and Cloud; substring match — take the exact entry) andagency-hosting_websites_list-plan(Agency; keepdetails.uid). - No website yet:
- Shared and Cloud: take an
order_idfromhosting_orders_list, thenhosting_websites_createwith the user's own domain, or withoutdomainfor a free subdomain (the response carries it).datacenter_codeis needed only for the first website on a new plan (first entry ofhosting_datacenters_list). Pollhosting_websites_list-setupswithdomainevery 10–15 s untilstatus: completed— uploads and deploys return 404 or 409 before that. - Agency:
agency-hosting_website-setups_createwithflavor: "php-fpm"(plustype: "node-static"for built frontends),settings.php.versionfromagency-hosting_php_list-versions-for-orderanddatacenter_codefromagency-hosting_datacenters_list. Pollagency-hosting_website-setups_statusuntilcompleted; it returns thewebsite_uid. - Node.js apps run on Business and Cloud plans (
hostinger_business_*,cloud_*inhosting_orders_list). On other plans, build locally and deploy the output as a static site.
2. Choose the deploy
Shared and Cloud, on the local `hostinger-api-mcp` server: one operation does every deploy — hosting_deploy with domain and either path (a directory on this machine) or git: { repository: "owner/name", branch }. Given a directory it detects what the project is, packs it itself (it skips node_modules, .git and .env files, listing the .env ones as skippedFiles so you can set their values with hosting_nodejs_replace-environment-variables; it does not read .gitignore, so keep build output out of the directory) and does the upload, build and Git setup. Do not archive the directory or call upload and build operations by hand.
| Project | hosting_deploy treats it as | |
|---|---|---|
| Plain HTML/CSS/JS, or a framework's static build output | static — extracts as-is | |
package.json with a build script, a start script or a server dependency (Next.js, Nuxt, Express, Vite…) | nodejs — starts a build, returns buildUuid | |
| PHP code, no build step | static | |
WordPress plugin folder (a Plugin Name: header) or theme folder (Theme Name: in style.css) | wordpress-plugin / wordpress-theme; activate: true activates a theme | |
| A whole WordPress site from elsewhere | wordpress-site, with databaseDump — see the migrate-to-hosting skill |
- Pass
typeto override detection. It is required for an archive (an archive cannot be inspected) and when a directory matches more than one WordPress type, whichhosting_deployrejects as ambiguous. - Node.js build settings come from the project; detection covers the framework and the build script. Set
appType,outputDirectory,buildScript,entryFile,nodeVersion(default 22),rootDirectory,packageManager(npm, yarn, pnpm or bun) orruntime(nodeby default,bunfor an app that runs on Bun) when it is wrong. A TypeScript or other compiled server app always needsentryFileset to the built file (for exampledist/server.js): detection only guesses a root-level file, and the build fails with "Entry file not found". The entry file is relative to the root directory for express, fastify, hono, react-router and other, and to the output directory for nest, nuxt, nitro, astro and svelte-kit (main.js, notdist/main.js); Next.js ignores it. Per-framework values are in the Hostinger docs under Node.js (Supported Frameworks, Build Settings). - Every Node.js deploy from files (
hosting_deploywithpath, orhosting_nodejs_start-buildwithsource_type: "archive"assource_options.message) takes amessage: always send a short summary of what this deploy changes, written like a commit message (first line under 72 characters, at most 500). It is shown in the site's deployment history, which otherwise lists only the archive's file name. A Git build shows its commit message instead. - Static, PHP, plugin and theme deploys are live when the call returns. A WordPress site import only starts (
status: import_started) and finishes extracting a few minutes later; do not report it complete or verify it before then. Node.js builds run on the server: see step 3.
Agency: the website's type decides (agency-hosting_websites_get): sites created as node-static take agency-hosting_deploy-node-static-website, which runs the build when the project has one; every other site takes agency-hosting_deploy-php-application, which extracts the archive as-is. They deploy archives, synchronously: the site is live when the call returns. WordPress plugins and themes on Agency sites are installed from wp-admin.
Archive rules for Agency (name archives name_YYYYMMDD_HHMMSS.zip) and for archives you build yourself:
- Static: build locally first.
index.htmlmust be at the archive root, not inside a folder:cd dist && zip -r ../site_20260101_120000.zip . - Node.js source: no
node_modules/, no build output (dist/,.next/,build/), no.env*, nothing matched by.gitignore; 50 MB at most.git archive --format=zip -o app_20260101_120000.zip HEADproduces exactly the committed files — mention that uncommitted changes are left out.
hosting_deploy with path and the agency-hosting_deploy-* operations read files from this machine, so only the local server has them. The hosted server (mcp.hostinger.com) has hosting_deploy for Git repositories only (step 4) and hosting_get-deployment (step 3); to deploy files from this machine there, upload them yourself as below.
Without the local deploy operations (local files on the hosted server; Agency on either server)
- Get upload credentials:
hosting_files_generate-upload-url(username,domain); Agency:agency-hosting_files_generate-upload-url(website_uid). Both returnurl,auth_keyandrest_auth_key, which authenticate the upload instead of the API token. - Upload each file with TUS, where
DESTis its path in the website's storage:
The first call returns 201, the second 204 with an Upload-Offset header equal to the file size. override=true makes a retry safe.
- Deploy from the uploaded files (
RANDOM8is any fresh 8-character string, e.g.$(LC_ALL=C tr -dc 'a-z0-9' < /dev/urandom | head -c 8)):
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/deploy-to-hosting/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/hostinger/api-mcp-server/deploy-to-hosting)