Skip to content

Commit 2f1703d

Browse files
chore: sync with @hostinger/mcp 4.5.2 (#12)
Co-authored-by: hostingerbot-public[bot] <348809394+hostingerbot-public[bot]@users.noreply.github.com>
1 parent 2a3075a commit 2f1703d

29 files changed

Lines changed: 1875 additions & 339 deletions

File tree

‎.cursor-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "hostinger-connector",
33
"displayName": "Hostinger Connector",
4-
"version": "0.3.4",
4+
"version": "0.3.5",
55
"description": "MCP plugin to deploy and manage Hostinger websites, WordPress, domains, DNS, VPS, email, and subscriptions from inside Cursor.",
66
"author": "Hostinger",
77
"license": "MIT",

‎CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [0.3.5] - 2026-11-18
4+
5+
### Changed
6+
7+
- Synced with `@hostinger/mcp` 4.5.2: hostinger-headless
8+
39
## [0.3.4] - 2026-11-17
410

511
### Changed

‎mcp.json‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,52 +3,52 @@
33
"hostinger-hosting": {
44
"command": "npx",
55
"args": ["--yes", "--package=@hostinger/mcp@latest", "hostinger-hosting-mcp"],
6-
"env": { "USER_AGENT": "plugin;cursor;0.3.4" }
6+
"env": { "USER_AGENT": "plugin;cursor;0.3.5" }
77
},
88
"hostinger-wordpress": {
99
"command": "npx",
1010
"args": ["--yes", "--package=@hostinger/mcp@latest", "hostinger-wordpress-mcp"],
11-
"env": { "USER_AGENT": "plugin;cursor;0.3.4" }
11+
"env": { "USER_AGENT": "plugin;cursor;0.3.5" }
1212
},
1313
"hostinger-agency-hosting": {
1414
"command": "npx",
1515
"args": ["--yes", "--package=@hostinger/mcp@latest", "hostinger-agency-hosting-mcp"],
16-
"env": { "USER_AGENT": "plugin;cursor;0.3.4" }
16+
"env": { "USER_AGENT": "plugin;cursor;0.3.5" }
1717
},
1818
"hostinger-domains": {
1919
"command": "npx",
2020
"args": ["--yes", "--package=@hostinger/mcp@latest", "hostinger-domains-mcp"],
21-
"env": { "USER_AGENT": "plugin;cursor;0.3.4" }
21+
"env": { "USER_AGENT": "plugin;cursor;0.3.5" }
2222
},
2323
"hostinger-dns": {
2424
"command": "npx",
2525
"args": ["--yes", "--package=@hostinger/mcp@latest", "hostinger-dns-mcp"],
26-
"env": { "USER_AGENT": "plugin;cursor;0.3.4" }
26+
"env": { "USER_AGENT": "plugin;cursor;0.3.5" }
2727
},
2828
"hostinger-billing": {
2929
"command": "npx",
3030
"args": ["--yes", "--package=@hostinger/mcp@latest", "hostinger-billing-mcp"],
31-
"env": { "USER_AGENT": "plugin;cursor;0.3.4" }
31+
"env": { "USER_AGENT": "plugin;cursor;0.3.5" }
3232
},
3333
"hostinger-reach": {
3434
"command": "npx",
3535
"args": ["--yes", "--package=@hostinger/mcp@latest", "hostinger-reach-mcp"],
36-
"env": { "USER_AGENT": "plugin;cursor;0.3.4" }
36+
"env": { "USER_AGENT": "plugin;cursor;0.3.5" }
3737
},
3838
"hostinger-ecommerce": {
3939
"command": "npx",
4040
"args": ["--yes", "--package=@hostinger/mcp@latest", "hostinger-ecommerce-mcp"],
41-
"env": { "USER_AGENT": "plugin;cursor;0.3.4" }
41+
"env": { "USER_AGENT": "plugin;cursor;0.3.5" }
4242
},
4343
"hostinger-vps": {
4444
"command": "npx",
4545
"args": ["--yes", "--package=@hostinger/mcp@latest", "hostinger-vps-mcp"],
46-
"env": { "USER_AGENT": "plugin;cursor;0.3.4" }
46+
"env": { "USER_AGENT": "plugin;cursor;0.3.5" }
4747
},
4848
"hostinger-mail": {
4949
"command": "npx",
5050
"args": ["--yes", "--package=@hostinger/mcp@latest", "hostinger-mail-mcp"],
51-
"env": { "USER_AGENT": "plugin;cursor;0.3.4" }
51+
"env": { "USER_AGENT": "plugin;cursor;0.3.5" }
5252
}
5353
}
5454
}

‎skills/hostinger-headless/SKILL.md‎

Lines changed: 55 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ Hostinger connector's OAuth token. **This recipe is not a security boundary.**
4848
## The flow stages - STEPS TO FOLLOW
4949

5050
Work through the steps in the order below, each reading its recipe and writing its artifact into the
51-
site workspace `~/.hostinger/<domain>/`.
52-
53-
54-
The order is sequencial run and check the whole headless flow:
51+
site workspace `~/.hostinger/<domain>/`. The one exception is content prepare (step 4) and design
52+
(step 5): with a subagent tool, run them at the same time, as *Content and design at the same time*
53+
says.
5554

5655
| # | Stage | Skill / source | Writes | Instance? |
5756
|---|--------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------|---|---|
@@ -79,8 +78,7 @@ The other 9 numbered steps live under `steps/` and are read from the installed s
7978
**One concurrency rule:** two *independent* stages in a single session may run at once, but never
8079
two writers of the same artifact, and never two agents/windows on the same domain — the `.lock`
8180
(Step 1) guards that. Parallelism is always *optional*: an agent that can't interleave work runs the
82-
steps serially and is still correct. Saying this, Always that you consider, you can run the steps
83-
in parallel using different threads or processes to save time, but always ensure the right output.
81+
steps serially and is still correct (see *Content and design at the same time*).
8482

8583
Steps can generate **State files** those files are only hints; the truth is what the Hostinger connector reports, so
8684
verify a "done" marker against reality before acting on it. If a step's `SKILL.md` is missing from the installed skill folder, stop and tell
@@ -144,7 +142,8 @@ keep the language you were using.
144142
### One instance per headless site (the core invariant)
145143

146144
> **A headless site is exactly one website.** The frontend is served at the site root and WordPress
147-
> lives at `/cms` **on the same domain** — one instance, one domain. There is **never** a second
145+
> lives at `/cms` **on the same domain** (a PocketBase backend at `/api` and `/_/` of the same domain) —
146+
> one instance, one domain. There is **never** a second
148147
> website for the same build and **never** a separate CMS domain: the CMS is always the `/cms` path of
149148
> the site's own domain (`https://<domain>/cms`), not `cms.<domain>` or any other host. Provision
150149
> therefore **adopts and swaps** an existing headless shell rather than creating another site, and a
@@ -165,13 +164,16 @@ but an instance existing does **not** mean provision is done or can be skipped.
165164
which of these cases applies and records it, then provision takes the matching path:
166165

167166
1. **An empty headless shell already exists for the domain (the common onboarding case).** Provision
168-
**adopts the shell and swaps it to the chosen backend** (the backend is picked in refine first).
169-
**Never skip provision for a shell, and never create a second site.** See the provision router's
170-
*Onboarding handoff*.
167+
**adopts the shell and swaps it to the chosen backend** (the backend is picked in refine first):
168+
WordPress into `/cms`, the shell as the Ecommerce storefront host, or a PocketBase backend created
169+
on it with `hosting_pocketbase_create-backend` (which turns the `headless_empty` site into
170+
`headless_pocketbase`). **Never skip provision for a shell, and never create a second site.** See
171+
the provision router's *Onboarding handoff*.
171172
2. **No instance exists at all.** Provision creates a fresh headless instance with
172-
`hosting_websites_create` using the chosen backend's own `type`.
173-
3. **User wants a webapp.** Provision is a plain Node.js app host, not headless — `webapp` ignores
174-
headless shells entirely and is only reached by experimental actions, never the onboarding flow.
173+
`hosting_websites_create` using the chosen backend's own `type` (`headless_wordpress`,
174+
`headless_ecommerce` or `headless_pocketbase`; a PocketBase site gets its backend at the join).
175+
176+
Every backend is a headless website: there is no plain Node.js app host in this flow.
175177

176178
Either way the create/install is asynchronous and returns `queued` immediately, then it takes a few
177179
minutes; the backend's provision step names the `wait.mjs` command to run at the join, not at the fire.
@@ -182,6 +184,34 @@ makes the overlap safe:
182184
> moment a step must write to the live instance, it waits for provision to report ready (via the
183185
> backend step's readiness poll — see above). That wait is the *instance barrier*.**
184186
187+
### Content and design at the same time
188+
189+
Content prepare and design are the two slow prepare stages, and neither needs the other. **If you
190+
have a subagent tool** (Claude Code's Agent tool, for one), **launch content prepare in one background
191+
subagent as soon as provision fires and the user has answered the image-source question, before you
192+
do any content work yourself**, and design while it
193+
runs. A helper you use only to fetch pages doesn't count. **If you have none, run content prepare
194+
then design, one after the other**, as the table lists them. Either way the output is the same.
195+
196+
1. **Ask what the subagent can't.** A subagent can't talk to the user, so before you launch it, ask
197+
content's one question yourself: the image source (`steps/04-content-model/SKILL.md` → *Images*).
198+
2. **Launch the content subagent** with the instructions in `steps/04-content-model/SKILL.md` →
199+
*Prepare in a subagent*. It does all of content prepare; nothing else writes its files while it
200+
runs.
201+
3. **Do design yourself, meanwhile** (`steps/05-design/SKILL.md`): its one question to the user stays
202+
with you.
203+
4. **Wait for the subagent before the frontend step**, which reads `content-model.md`. When it
204+
reports, end its stage in the run log, check the files it names exist and note its gaps for the
205+
final report. Set `state.json` → `stage` to `frontend` only once both the subagent has reported and
206+
`design.md` is written, so a resume never skips either. The push, Hostinger AI images and
207+
every other write to the live site stay with you, after the instance barrier.
208+
5. **When the subagent's report resumes you, finish the whole flow**: the content push at the
209+
instance barrier, the frontend, validate, deploy, then done, whose final report must include the
210+
*Steps completed* table (`steps/09-done/SKILL.md`).
211+
212+
You alone write `state.json` and the run log; log the overlap as two open stages (see *Run log and
213+
build report*).
214+
185215
### Waiting on Hostinger: `wait.mjs`
186216

187217
`wait.mjs` (next to this file) waits for a slow Hostinger job in one command, so you don't spend a turn
@@ -194,6 +224,7 @@ cd "$HOME" && node <skill>/wait.mjs setup <domain> # a fresh site's
194224
cd "$HOME" && node <skill>/wait.mjs cms <domain> <username> # a shell swap's WordPress install at /cms → valid
195225
cd "$HOME" && node <skill>/wait.mjs build <domain> <buildUuid> # the deploy build → completed, then the root serves 200 (http:// while SSL is pending)
196226
cd "$HOME" && node <skill>/wait.mjs live <domain> # the root serves 200
227+
cd "$HOME" && node <skill>/wait.mjs pocketbase <domain> # a PocketBase backend's /api/health serves 200
197228
```
198229

199230
Run it in the foreground, with a `--timeout` just under your tool's command limit (e.g. `--timeout 9m`
@@ -235,6 +266,8 @@ took from it.
235266
| `site.json` | provision | chosen backend, username, install id, all URLs |
236267
| `content-model.md` | content model | entities, fields, pages, navigation |
237268
| `content.json` | content model (WordPress) | the drafted content `push-content.mjs` pushes |
269+
| `pocketbase/schema.json` | content model (PocketBase) | collections, access rules, indexes, rate limits, seed records |
270+
| `.pocketbase/credentials.json` | provision (PocketBase) | the backend's superuser email and one-time password; mode `600`, never deployed, never printed |
238271
| `design.md` (+ `brand/` logo files) | design | chosen design direction: tokens, type, logo, components, per-page composition, accessibility |
239272
| `src/` | frontend | the website source implementing `design.md`; framework choice is recorded in `state.json → frontend` |
240273
| `deploy.json` | deploy | build id, deployed at, live URLs |
@@ -304,6 +337,15 @@ to it, joined with `&&` (e.g. `node <skill>/run-log.mjs <domain> next deploy &&
304337
`ok` or needs a note, put its `stage-end` first in the same command. `next` refuses when two stages are
305338
open and names them; end them with `stage-end`.
306339

340+
**Content and design overlapping** (see *Content and design at the same time*) are two open stages.
341+
Start both when you launch the subagent, and end each when it finishes:
342+
343+
```bash
344+
node <skill>/run-log.mjs <domain> next content_model --phase prepare && node <skill>/run-log.mjs <domain> stage-start design
345+
node <skill>/run-log.mjs <domain> stage-end design ok # design.md written
346+
node <skill>/run-log.mjs <domain> stage-end content_model ok --phase prepare # the subagent finished
347+
```
348+
307349
**Follow-ups continue the run.** When the user asks for a change after the final report in the
308350
same session (a layout fix, a copy tweak, a redeploy), that work belongs to the run it follows:
309351
call `run-resume`, log the feedback and the stages it re-runs as usual, then `report` again. That

‎skills/hostinger-headless/VERSION‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
version=4.3.0
2-
commit=b9928dac0c54
3-
built=2026-11-16
1+
version=4.5.2
2+
commit=53f8601d8cc1
3+
built=2026-11-17

‎skills/hostinger-headless/run-log.mjs‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ function buildReport(ws, { outcome, tokens } = {}) {
339339
const stillOpen = resolvedOutcome !== 'abandoned' && history.some((h) => !h.ended_at);
340340
const endedAt = stillOpen ? now() : lastActivity;
341341
const stages = history.map((h) => ({ ...h, minutes: minutesBetween(h.started_at, h.ended_at ?? endedAt) }));
342-
const gaps = [...loggingGaps(stages, run, resolvedOutcome, site.backend), ...dropped];
342+
const gaps = [...loggingGaps(stages, run, resolvedOutcome), ...dropped];
343343
const strip = ({ ts, run: _run, type: _type, ...rest }) => ({ ...rest, logged_at: ts });
344344
const liveStage = stages.find((s) => s.stage === 'deploy' && s.result?.startsWith('ok'));
345345
if (!OUTCOMES.includes(resolvedOutcome)) fail(`unknown outcome "${resolvedOutcome}"; one of ${OUTCOMES.join(', ')}`);
@@ -449,9 +449,7 @@ function reportRejected(ws, [runId]) {
449449

450450
// Gaps are printed as warnings by `report`, so guesses never pass as measurements.
451451
const EXPECTED_FOR_BUILD = ['check_state', 'refine', 'provision', 'content_model', 'design', 'frontend', 'validate', 'deploy'];
452-
// Stages a backend skips on purpose: webapp has no CMS, so no content model.
453-
const SKIPPED_BY_BACKEND = { webapp: ['content_model'] };
454-
function loggingGaps(stages, run, outcome, backend) {
452+
function loggingGaps(stages, run, outcome) {
455453
const gaps = [];
456454
for (const s of stages) {
457455
// A skipped stage did no work, so it has no duration to measure.
@@ -463,7 +461,7 @@ function loggingGaps(stages, run, outcome, backend) {
463461
if (problem) gaps.push({ stage: s.stage, phase: s.phase, problem });
464462
}
465463
if (run.kind === 'build' && outcome === 'live') {
466-
for (const stage of EXPECTED_FOR_BUILD.filter((name) => !SKIPPED_BY_BACKEND[backend]?.includes(name))) {
464+
for (const stage of EXPECTED_FOR_BUILD) {
467465
if (!stages.some((s) => s.stage === stage)) gaps.push({ stage, phase: null, problem: 'never logged, though the site went live' });
468466
}
469467
}

‎skills/hostinger-headless/steps/01-check-state/SKILL.md‎

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,22 @@ Query the Hostinger connector — the local files are never trusted on their own
101101
approval or network access, then go on. Ignore any other failure, such as a non-2xx response from
102102
Hostinger: no retry, nothing more said to the user, and the run carries on unchanged.
103103
- **Is it an empty headless shell from onboarding?** A `headless` site with no backend installed (no
104-
WordPress at `/cms`, no store) is an **empty headless shell**: within 24 h its setup `type` is
105-
`headless_empty`; otherwise `wordpress_installations_list { username, domain, ownership: "all" }`
106-
returns **no** `/cms` row and there is no `site.json` recording a backend. It is a **new build** that
104+
WordPress at `/cms`, no store, no PocketBase backend) is an **empty headless shell**: within 24 h its
105+
setup `type` is `headless_empty`; otherwise `wordpress_installations_list { username, domain,
106+
ownership: "all" }` returns **no** `/cms` row, `hosting_pocketbase_backend { username, domain }`
107+
returns 404 or `state: "missing"` (the same test provision uses), and there is no `site.json`
108+
recording a backend. It is a **new build** that
107109
happens to already own its website, not a finished or resumable one. Route it to **refine** (choose
108110
the backend), then **provision** adopts the shell and swaps it to that backend (provision's subfolder
109111
repeats this check before swapping). Never create a second site, and never skip provision for it.
112+
`headless_pocketbase` is **not** an empty shell: onboarding chose PocketBase, so refine keeps the
113+
backend fixed as **PocketBase** and provision creates the backend if it isn't there yet
114+
(`hosting_pocketbase_backend` → 404 or state `missing` means not yet). After 24 h the setup row is
115+
gone and the public API can't tell such a site with no backend from an empty shell; refine then
116+
decides the backend as for any empty shell.
117+
- **A `site.json → backend: "webapp"`** is from an older flow that built a plain Node.js host, which
118+
this version no longer does. Tell the user in one line and point them at the `deploy-to-hosting`
119+
skill for that app; don't resume it as a headless build.
110120

111121
Reconcile with the local state. **When they disagree, reality wins** and the local `stage` is
112122
corrected.
@@ -124,6 +134,7 @@ yet** (`brief.md`, `site.json`, …).
124134
|---|---|---|
125135
| none (connect only) | free | **new build** — start from refine |
126136
| none (connect only) | empty headless shell (onboarding) | **new build on an existing shell** — start from refine; provision adopts the shell and swaps it to the chosen backend. Never create a second site, never skip provision |
137+
| none (connect only) | onboarding PocketBase site (setup `type` `headless_pocketbase`) | **new build on an existing PocketBase site** — start from refine with the backend fixed as PocketBase; provision creates the backend if it isn't there yet. Not something to resume, even when the backend already exists: nothing has been built on it |
127138
| none (connect only) | site exists with a real backend | **adopt / resume** — never create a second site; route to the first unfinished stage |
128139
| build artifacts present, incomplete | matches | **resume** at `state.json`'s `stage` |
129140
| build artifacts present | disagrees | **reality wins** — recompute the stage from what actually exists |
@@ -138,14 +149,14 @@ artifacts** (`brief.md`, `site.json`, …) or a **live site** for this domain. A
138149
connect-only files are *not* something to resume.
139150

140151
- **New build** (no build artifacts and either the domain is free **or** it holds only an empty
141-
headless shell from onboarding) → just proceed to refine. **Don't ask resume vs start over** —
152+
headless shell or a PocketBase site from onboarding) → just proceed to refine. **Don't ask resume vs start over** —
142153
there's nothing to resume; both would land in the same place. An empty headless shell is not
143154
"something to resume": it has no backend and no content yet, so it's a fresh build that already owns
144155
its website — provision will adopt and swap it. Mention it in one line ("Using the headless site
145156
onboarding already created for this domain."). If a leftover `.lock` is lying around, silently take
146157
it over and continue (optionally mention it in one line).
147158
- **Something to resume** (build artifacts exist, or a site exists for the domain **with a real backend
148-
installed** — WordPress at `/cms`, a store, or a deployed app) → tell the user plainly what's there
159+
installed** — WordPress at `/cms`, a store, a PocketBase backend with build artifacts, or a deployed app) → tell the user plainly what's there
149160
and **ask them to choose**, regardless of how old it is (don't guess from timestamps):
150161

151162
- **Resume** — pick up at the computed stage. (If a `.lock` is present in this case, also confirm no

0 commit comments

Comments
 (0)