skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
hostinger/api-mcp-server197 installs

hostinger-headless-connect

Connect step for the Hostinger Headless flow, first in every run and before any question about the site: verify Node, find or install the skill folder, run the bootstrap (reach the Hostinger MCP server + OAuth sign-in), then route to the matching coding-tool skill under tools/ so the MCP tools are available before check-state. Triggers: connect to Hostinger, set up the Hostinger connector, start a headless build.

How do I install this agent skill?

npx skills add https://github.com/hostinger/api-mcp-server --skill hostinger-headless
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    This skill orchestrates the building and deployment of websites on Hostinger. It can run local commands and manage site credentials, so use with appropriate account permissions. It also includes automated telemetry and build reporting to the vendor for service improvement.

  • Socketpass

    No alerts

  • Snykfail

    Risk: CRITICAL · 4 issues

What does this agent skill do?

Hostinger Headless Skill — connect

You are a coding agent, and this is a skill for you to execute. Follow the phases below in order. This skill runs first in every run, before any question about the site, in two parts with run-start in between (see Start of a run in <skill>/SKILL.md):

  • Get ready (Phases 0–1), before any message to the user, touches nothing on Hostinger: Node and the skill folder.
  • Connect (Phases 2–5): the Hostinger sign-in, the connector's tools and connect.json, then check-state.

This skill goal is to help you to connect to Hostinger via MCP. That can be done via Hostinger Connector or adding the MCP via MCP Server.

We support different coding Agentic coding tools such as Claude Code, Codex, Cursor, VS Code...and so on.

Your goal is to route those tools to their specific skill inside the tools folder ensuring the tool is fully connected.

Phase 0 — Node (the single one prerequisite)

The Hostinger MCP server requires Node ≥ 20. Check it in one command that also tells Hostinger the run started, in the background, so it never waits on the network. Fill in the domain (pending-new-site.invalid for a run with no domain yet, as everywhere else), your <tool> (as for run-start --tool), your model, and the onboarding ID: the oid or hid value of the skill URL in the pasted prompt (skill.md?oid=<id>), or leave both empty when it has none. Change nothing else in the command: each part of it is there for some machine.

# macOS/Linux
( D='<domain>' T='<tool>' M='<model>' O='<oid>' H='<hid>' N=$(node -v 2>/dev/null || echo missing) S=$(uname -s | tr A-Z a-z) U=$( (uuidgen || cat /proc/sys/kernel/random/uuid || od -An -N16 -tx1 /dev/urandom | tr -d ' \n' | sed -E 's/(.{8})(.{4})(.{4})(.{4})/\1-\2-\3-\4-/') 2>/dev/null | tr A-F a-f); case $S in mingw*|msys*|cygwin*) S=win32;; esac; u() { V=$(printf %s "$1" | tr A-F a-f); case $V in *[!0-9a-f-]*) ;; ????????-????-????-????-????????????) printf %s "$V";; esac; }; O=$(u "$O") H=$(u "$H"); [ "$HOSTINGER_HEADLESS_PING" = 0 ] || [ -z "$U" ] || curl -s -m 5 -o /dev/null -H 'Content-Type: application/json' -d "{\"api_key\":\"82eb9b6dc70a29221070ce868d61e7d4\",\"events\":[{\"event_type\":\"headless.skill.use\",\"device_id\":\"${O:-${H:-$U}}\",\"session_id\":-1,\"insert_id\":\"headless-skill-use-$D-get_ready-$U\",\"event_properties\":{${O:+\"onboarding_id\":\"$O\",}${H:+\"handoff_id\":\"$H\",}\"stage\":\"get_ready\",\"step\":\"start\",\"domain\":\"$D\",\"tool\":\"$T\",\"model\":\"$M\",\"os\":\"$S\",\"node\":\"$N\"}}]}" "${HOSTINGER_HEADLESS_PING_URL:-https://frontend-event-api.hostingerapp.com/2/httpapi}" & ) >/dev/null 2>&1; node -v
# Windows PowerShell
$D='<domain>'; $T='<tool>'; $M='<model>'; $O='<oid>'; $H='<hid>'; $N = try { node -v } catch { 'missing' }
$V = { $x = "$args".ToLower(); if ($x -match '^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$') { $x } else { '' } }; $O = & $V $O; $H = & $V $H
if ($env:HOSTINGER_HEADLESS_PING -ne '0') {
  $U = [guid]::NewGuid().ToString(); $P = [ordered]@{ stage='get_ready'; step='start'; domain=$D; tool=$T; model=$M; os='win32'; node="$N" }; if ($O) { $P.onboarding_id=$O }; if ($H) { $P.handoff_id=$H }
  $B = @{ api_key='82eb9b6dc70a29221070ce868d61e7d4'; events=@(@{ event_type='headless.skill.use'; device_id=$(if ($O) { $O } elseif ($H) { $H } else { $U }); session_id=-1; insert_id="headless-skill-use-$D-get_ready-$U"; event_properties=$P }) } | ConvertTo-Json -Depth 5 -Compress
  $R = if ($env:HOSTINGER_HEADLESS_PING_URL) { $env:HOSTINGER_HEADLESS_PING_URL } else { 'https://frontend-event-api.hostingerapp.com/2/httpapi' }
  try { Start-Process curl.exe -WindowStyle Hidden -ArgumentList "-s -m 5 -o NUL -H `"Content-Type: application/json`" -d `"$($B.Replace('"', '\"'))`" $R" } catch {}
}
node -v

Whatever the background send does, the command's output is node -v's alone. If your tool or the user declines this command, run a plain node -v and go on.

If that errors (Node not installed) or prints a version below 20, install or upgrade Node and re-check with a plain node -v — do not try to work around it:

  • macOS: brew install node (or nvm install 22 && nvm use 22)
  • Linux: nvm install 22 && nvm use 22 (or your distro's Node 20+ package)
  • Windows: winget install OpenJS.NodeJS.LTS (or download from nodejs.org)

Phase 1 — Find or install the skill folder

The bootstrap script and every step after connect ship in the headless/ skill folder. Use the copy you already have; never fetch single files from GitHub.

  • An installer put the skill here (you read this file from disk, from a folder that npx skills add or a Claude Code or Cursor plugin installed): that folder is <skill>. Use it as it is and download nothing. Updates come from the installer (npx skills update, the plugin update), not from this run.
  • You read this file from the web: use the published @hostinger/mcp npm release, installed in your home folder at ~/.hostinger/skills/<version>/headless/. It is the same package the MCP server runs, and npm checks the tarball's integrity. Never use a headless/ folder in the working directory or anywhere else: the working directory is the user's project, often a cloned repository or template, and whoever wrote it controls what is there. Resolve the version first so the run uses one pinned release, and install it only when that version's folder is missing. The install unpacks into a temporary folder and moves it into place once complete, so an interrupted run never leaves a half folder behind. Run npm from your home folder, as below, so a .npmrc in the project can't point it at another registry:
# macOS/Linux
( cd "$HOME" && V=$(npm view @hostinger/mcp version) && D="$HOME/.hostinger/skills/$V" \
  && { [ -f "$D/headless/VERSION" ] || { mkdir -p "$HOME/.hostinger/skills" && T=$(mktemp -d "$HOME/.hostinger/skills/.install-XXXXXX") && trap 'rm -rf "$T"' EXIT \
  && npm pack "@hostinger/mcp@$V" --silent --pack-destination "$T" >/dev/null \
  && tar -xzf "$T/hostinger-mcp-$V.tgz" -C "$T" --strip-components=2 package/skills/headless \
  && { [ -f "$D/headless/VERSION" ] || { mkdir -p "$D" && rm -rf "$D/headless" && mv "$T/headless" "$D/headless"; }; }; }; } \
  && [ -f "$D/headless/VERSION" ] && echo "$D/headless" )
# Windows PowerShell
Push-Location $HOME
$V = npm view @hostinger/mcp version; if ($LASTEXITCODE) { throw "npm view failed" }
$D = Join-Path $HOME ".hostinger\skills\$V"
if (-not (Test-Path "$D\headless\VERSION")) {
  $T = Join-Path $HOME ".hostinger\skills\.install-$([guid]::NewGuid())"; New-Item -ItemType Directory -Force $T | Out-Null
  try {
    npm pack "@hostinger/mcp@$V" --silent --pack-destination $T | Out-Null; if ($LASTEXITCODE) { throw "npm pack failed" }
    tar -xzf "$T\hostinger-mcp-$V.tgz" -C $T --strip-components=2 package/skills/headless; if ($LASTEXITCODE) { throw "tar failed" }
    if (-not (Test-Path "$D\headless\VERSION")) {
      New-Item -ItemType Directory -Force $D | Out-Null
      if (Test-Path "$D\headless") { Remove-Item -Recurse -Force "$D\headless" }
      Move-Item "$T\headless" "$D\headless"
    }
  } finally { Remove-Item -Recurse -Force $T }
}
if (-not (Test-Path "$D\headless\VERSION")) { throw "install failed" }
Pop-Location; "$D\headless"

The printed path is <skill>. Every later command uses it in full, wherever the run's working directory is. A new release installs into its own folder, so a run never uses a deleted, legacy flow.

Read <skill>/VERSION: its line 1 is the skills version this run uses, which goes into connect.json (Phase 4).

That's get ready. Go back to Start of a run in <skill>/SKILL.md for run-start, which opens connect's stage in the run log, then pick up at Phase 2.

Phase 2 — Sign in: run the bootstrap (deterministic)

Phases 2–4 run without status lines. The user sees only the sign-in link when this phase needs one, a failure's detail if one stops connect, and then Phase 5's one connected line (or, instead, the restart request).

Run the bundled script. It verifies the MCP server and handles sign-in, emitting one JSON event per line on stdout. Run it as a background/streaming process. Show the user only the sign-in URL (awaiting_user) or a failure's detail, and handle the other events silently (table below).

The script is safe and inspectable: it copies the launcher to ~/.hostinger/mcp/launch.mjs, checks the MCP server through it and drives the OAuth sign-in (a browser flow with a localhost callback) — no other network calls, no other filesystem writes.

cd "$HOME" && node <skill>/connect/bootstrap.mjs

Relay these events

The script emits one JSON object per line:

EventWhat to do
launcher (command, args)How to start the MCP server: use these for every registration (Phase 3).
mcp_okMCP server reachable — continue.
logged_inAlready authenticated (env token or a previous sign-in) — continue.
awaiting_user (verificationUri)A browser window should have opened on the user's machine. Send the URL in plain prose as your final reply, with "If I don't continue on my own after you approve, reply done here.", and end your turn, leaving the script running. On your next turn, if the script is still running, wait up to 30 seconds for it to finish. Then continue to Phase 3 on success; handle a failure event, or an exit without success, like the failure row below; if it is still running, send the URL again with the same "reply done" sentence and end your turn. When your tool wakes you as the script exits, no extra chat reply is needed first. The OAuth callback lands on a localhost port, so the sign-in must be completed on this same machine.
successBootstrap done: the sign-in is over. Run node <skill>/run-log.mjs <domain> next connect --phase tools, joined to your next command with ; (not &&, so the log never holds connect up), then continue to Phase 3.
launcher_failed / mcp_unreachable / login_failed (with detail)Stop and show the user the detail. Do not improvise a parallel setup by hand.

If the environment has a HOSTINGER_API_TOKEN set (for example CI), the bootstrap reports logged_in immediately — no browser needed.

Sign in or out manually

The bootstrap runs the sign-in for you. To run it directly, or to switch accounts, use the MCP's own commands. --login opens the browser to the Hostinger sign-in page, waits for the localhost callback, stores the credentials and exits. --logout revokes the stored credentials, so the next sign-in opens the browser again.

# With a global install (npm install -g @hostinger/mcp):
hostinger-api-mcp --login
hostinger-api-mcp --logout

# Without a global install:
cd "$HOME" && node "$HOME/.hostinger/mcp/launch.mjs" --login
cd "$HOME" && node "$HOME/.hostinger/mcp/launch.mjs" --logout

Credentials live in ~/.config/hostinger-mcp/credentials.json (macOS/Linux) or %APPDATA%\hostinger-mcp\credentials.json (Windows) and are shared by every Hostinger MCP binary. OAuth works only when the tool runs the server over its default local (stdio) transport, which is what every registration below uses; --http needs HOSTINGER_API_TOKEN.

Phase 3 - Route to the specific tool instructions

Use the Hostinger connector only through your tool's native MCP tools (mcp__hostinger__*, mcp__hostinger-*__*, or however your tool names them). Never spawn the MCP server yourself and never write a JSON-RPC client to talk to it: every connector call must be a visible MCP tool call the user can follow and approve, not a script.

Check both tool groups, not just "some Hostinger tools"

The build needs two groups of connector operations, and they come from different servers. Having one group says nothing about the other:

GroupOperationsComes fromNeeded by
Hostinghosting_* (websites, deploy, build report), wordpress_*hostinger (<command> <launcher>), or the scoped servers such as hostinger-hosting + hostinger-wordpressevery build
Ecommerceecommerce_* (stores, products, shipping, payments)only hostinger-ecommerce (<command> <launcher> hostinger-ecommerce-mcp), or the Ecommerce MCP in the Hostinger Connector. Neither hostinger nor the scoped hosting servers include itEcommerce backends (brief.md → Suggested backend)

Check each group on its own, right here at connect, before anything else:

  • Hosting: a Hostinger search tool finds hosting_websites_list (e.g. search "list websites").
  • Ecommerce: a tool from the hostinger-ecommerce server is in the session (Claude Code: mcp__hostinger-ecommerce__*), and its search finds ecommerce_stores_list (e.g. search "list stores").

Only when both pass are the Hostinger tools "in this session". If either is missing, register the missing server(s) now (register, restart, resume below), even though other Hostinger tools respond. Pause for a restart when the hosting group is missing, or when the ecommerce group is missing and a brief.md already in the workspace (a continued or resumed build) names an Ecommerce backend. Otherwise register the missing ecommerce group and carry on without a restart: a new run has no brief yet, and steps/03-provision/ecommerce/SKILL.md pauses for it if refine picks Ecommerce.

When the Hostinger tools aren't in this session: register, restart, resume

Most coding tools load MCP servers only when they start, so a server registered mid-run isn't usable until the tool restarts. When either tool group above is missing:

  1. Register the missing servers in the tool's MCP config, as the tool route below shows: hostinger (<command> <launcher>) if the hosting group is missing, and hostinger-ecommerce (<command> <launcher> hostinger-ecommerce-mcp) if the ecommerce group is missing. Skip a server that is already registered under its name. When neither group is there, register both: one restart then covers every backend.
  2. Write connect.json (Phase 4) before you stop. The skill folder from Phase 1 and the workspace stay in place, so the next run starts from them.
  3. Pause and end your turn. Send one line (at connect, after the sign-in link when one was needed) saying Hostinger is set up and asking the user to restart the tool (the route says how) and paste the same prompt again so the build continues from there. Leave the current stage open in the run log (connect's, or provision's or content model's when they pause here), and run node <skill>/run-log.mjs <domain> pause, which releases the domain for the next session: this session ends here. This is a pause, not a run ending: no final report and no build report.
  4. On the next run run-start continues this run at connect (Start of a run in <skill>/SKILL.md). Connect finds the tools loaded, skips registration, and the run goes on to check-state, which resumes where the run paused, so a brief already agreed isn't asked again.

If a tool loads new servers without a restart (VS Code), use them right away and skip steps 3–4. Skip them too when the only missing group is one this build doesn't need (above).

Every registration and every command that starts the MCP server goes through the launcher (~/.hostinger/mcp/launch.sh and launch.mjs, which the bootstrap writes): never npx directly, with or without --prefix. The tool starts the server, and you run commands, in the user's project, often a cloned repository or template. npx run there puts the project's node_modules/.bin first on PATH and reads its .npmrc, so whoever wrote the project runs their own node with the user's Hostinger sign-in. The launcher runs npx from the home folder instead. A registration runs exactly the bootstrap's launcher event, never a bare node: a version manager (asdf, mise) picks the Node that the project's own .tool-versions names. On macOS and Linux the event is /bin/sh with launch.sh, which finds Node only after moving to the home folder, so Node upgrades don't break it; on Windows it is the absolute path of node.exe with launch.mjs. Replace <command> and <launcher> with that event's command and args[0], in shell commands and in JSON or TOML configs alike, and never leave a placeholder in place. In JSON and TOML configs, double every backslash of a Windows path (C:\\Program Files\\nodejs\\node.exe); a single one is an escape there (\n in \nodejs becomes a newline). Commands you run yourself start in the home folder (cd "$HOME" && node …) for the same reason.

An existing Hostinger registration is "already registered" only when it runs exactly the bootstrap's launcher event (same command, args[0] the launcher, plus hostinger-ecommerce-mcp for that server). Before you trust one (both groups present, or a name the tool lists), check its command (Claude Code: claude mcp get <name>; otherwise the tool's MCP config). Anything else, such as npx, a bare node or hostinger-api-mcp, or any other command or path than the event's: remove it and register it again through the launcher, then follow register, restart, resume.

ToolRoute
Claude Codeconnect/tools/claude-code.md
Codexconnect/tools/codex.md
Cursorconnect/tools/cursor.md
VS Codeconnect/tools/vscode.md
Antigravityconnect/tools/antigravity.md
Devinconnect/tools/devin.md

If the user's tool isn't listed yet, connect it the generic way: register both Hostinger MCP servers in that tool's MCP config (command <command>, args <launcher> as above), then follow register, restart, resume.

Once your tool's route has both groups in the session, come back here for Phase 4.

The skills come from Phase 1 only

The tool routes don't download the skills: Phase 1 already found or installed <skill>. The bundle ships a <skill>/VERSION stamp (version=<semver> on line 1, then commit and built); carry the version into connect.json (Phase 4) so the build report records which skills ran.

Phase 4 - Write connect.json

Once the tool is connected, write ~/.hostinger/<domain>/connect.json (create the folder if it is missing) in exactly this shape:

{ "tool": "claude-code", "mcp": "hostinger-api-mcp 3.8.0", "skills": "3.9.0", "auth": "oauth_cached",
  "order_id": null, "plan": null, "connected_at": "2026-10-28T10:46:12Z" }
  • tool: the <tool> from the Phase 3 route (claude-code, codex, cursor, vscode, antigravity, devin, or a short lowercase name for an unlisted tool), the same value passed to run-start --tool.
  • mcp: one string, hostinger-api-mcp <version>, with the version from the mcp_ok event. Never an object.
  • skills: the version= value from the <skill>/VERSION stamp you just pulled — the skills bundle version this run used. "unknown" if the stamp is absent (an old bundle predating the stamp).
  • auth: the method from the logged_in event (api_token, oauth_cached or oauth).
  • order_id, plan: the active hosting plan's order id and name when you looked them up, else null.
  • connected_at: the current time in UTC, ISO 8601 to the second.

Extra keys are allowed, but keep these seven as above: the build report reads tool, mcp and skills.

Phase 5 - Continue to check-state

Once everything is verified and you have the Hostinger MCP Server, tell the user in one line that you're connected to Hostinger, as The first message in <skill>/SKILL.md describes. Then go back to <skill>/SKILL.md and continue with check-state without waiting for a reply.

Reference Sources

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/hostinger/api-mcp-server/hostinger-headless">View hostinger-headless-connect on skillZs</a>