girishlade111/agentic-os-personal-main/hostinger-deploy

Claude Code and agent skill by girishlade111/agentic-os-personal-main

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Deploy and troubleshoot Node.js apps on Hostinger Managed Node.js Hosting via the official hostinger-api-mcp server. Use when the user asks to deploy to Hostinger, fix Hostinger build failures, configure Hostinger MCP, read Hostinger build logs, or set up Node.js hosting on brown-lion / hostingersite.com domains.

Install

npx vskill@latest install girishlade111/agentic-os-personal-main/hostinger-deploy

SKILL.md

The same SKILL.md was published earlier as girishlade111/agentic-os-personal-main/hostinger-deploy.

Hostinger Deploy

Portable workflow for any Node.js project on Hostinger Managed Node.js Hosting. Uses the official `hostinger-api-mcp` MCP server.

Before you start

Task Progress:
- [ ] MCP connected (see mcp-setup.md)
- [ ] OAuth signed in OR API token in Cursor MCP env (not a placeholder string)
- [ ] Read MCP tool schema before each CallMcpTool
- [ ] Project passes local preflight (below)
- [ ] Deploy → poll build → verify HTTP

1 — MCP setup (once per machine)

Copy mcp.json.example into the target project as .cursor/mcp.json, or merge the hostinger block into ~/.cursor/mcp.json for global use.

Then authenticate (pick one):

MethodWhenHow
OAuth (recommended)Interactive devnpx -y hostinger-api-mcp --login
API tokenCI / headlesshPanel → Profile → API → create token → paste into Cursor Settings → MCP → hostinger → Environment as HOSTINGER_API_TOKEN

Never put "HOSTINGER_API_TOKEN": "${HOSTINGER_API_TOKEN}" in mcp.json — Cursor does not expand shell vars; MCP stays unauthenticated.

Restart or refresh MCP in Cursor after config changes.

Full details: mcp-setup.md

2 — Project preflight (any Node app)

Run before first deploy:

  1. `package.json` scripts — must include:
  • "build" — even a syntax-check is fine: node --check server.js && echo BUILD_OK
  • "start" — must listen on process.env.PORT and bind 0.0.0.0
  1. Entry file — Hostinger auto-detects `server.js`. If your app uses app.js / index.js, add a one-line shim:

``js // server.js import "./app.js"; // or require("./app.js") ``

  1. No native npm modules on shared hosting (no make, old glibc). Replace e.g. better-sqlite3 → node-sqlite3-wasm or hosted DB.
  2. Secrets — never commit .env. Ship .env.example; user adds vars in hPanel → Deployments → Environment.
  3. Monorepo — set hPanel application root to the subfolder with package.json, or add root server.js + postinstall: npm install --prefix <app>.

Local smoke test:

bash
npm install && npm run build && PORT=3000 npm start
curl -s -o /dev/null -w "%{http_code}" http://localhost:3000/

3 — hPanel settings (Git-connected app)

SettingTypical value
FrameworkExpress.js or Other
Application root. or subfolder (e.g. api/)
Node.js20
Installnpm install
Buildnpm run build
Startnpm start
Entry fileserver.js
Output directoryempty (no static build unless SPA)

Required env vars in hPanel (not in git): NODE_ENV=production, PUBLIC_BASE_URL=https://YOUR-DOMAIN, plus API keys.

4 — Deploy via MCP (agent workflow)

Discover site
hosting_listWebsitesV1 → note domain + username

Filter by domain if known: { "domain": "yoursite.hostingersite.com" }

Option A — Git push (already connected)

Push to main → Hostinger auto-builds. Poll:

hosting_listNodeJSBuildsV1 { username, domain, per_page: 3 }
Option B — Archive upload
hosting_createNodeJSBuildFromArchiveV1
username, domain, archive (path to .zip)
node_version: 20
app_type: express | vite | next | …
entry_file: server.js
build_script: npm run build
root_directory: (subdir if needed)

Zip rules: exclude node_modules/, .env, data/, build output (dist/, .next/). Max 50 MB.

zip -r deploy.zip . -x "node_modules/*" -x ".env" -x "data/*" -x "dist/*"
Diagnose failures
hosting_getNodeJSBuildLogsV1 { username, domain, uuid, from_line }

Or legacy: hosting_showJsDeploymentLogs / hosting_listJsDeployments

Reading logs: npm warn deprecated and added N packages mean install succeeded. Scroll for BUILD_OK, ERROR, or missing entry file.

5 — Common failures → fixes

SymptomCauseFix
Unauthenticated MCPBad token / ${VAR} in mcp.jsonOAuth login or real token in Cursor MCP UI
better-sqlite3 / GLIBC_2.29 / not found: makeNative module on shared hostPure-JS/WASM alternative
Build log stops after npm installWrong entry_fileAdd server.js shim
Site 502 / connection refusedApp listens on wrong port/hostprocess.env.PORT, 0.0.0.0
package.json not foundWrong application rootSet root in hPanel or archive root_directory
User thinks warnings = failurenpm deprecation warningsExplain install succeeded; check build/start

6 — Verify live

bash
curl -s -o /dev/null -w "home:%{http_code}\n" https://DOMAIN/
curl -s -o /dev/null -w "health:%{http_code}\n" https://DOMAIN/api/health

Adjust health path to the project's actual endpoint.

7 — Helper scripts

Run from any project (OAuth creds at ~/.config/hostinger-mcp/credentials.json):

bash
~/.cursor/skills/hostinger-deploy/scripts/hostinger-auth.sh # OAuth sign-in
~/.cursor/skills/hostinger-deploy/scripts/hostinger-sites.sh # list websites
~/.cursor/skills/hostinger-deploy/scripts/hostinger-builds.sh DOMAIN [username]
~/.cursor/skills/hostinger-deploy/scripts/hostinger-logs.sh DOMAIN UUID [username]

Additional resources

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/girishlade111/agentic-os-personal-main/hostinger-deploy/badge)](https://verified-skill.com/skills/girishlade111/agentic-os-personal-main/hostinger-deploy)

Something wrong with this skill or its page? Tell us.