hostinger-api-mcp 6.0.0 → 6.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/gemini-extension.json +1 -1
  3. package/package.json +1 -1
  4. package/server.json +2 -2
  5. package/skills/headless/SKILL.md +47 -0
  6. package/skills/headless/VERSION +3 -3
  7. package/skills/headless/push-content.mjs +8 -1
  8. package/skills/headless/run-log.mjs +43 -0
  9. package/skills/headless/steps/03-provision/ecommerce/SKILL.md +4 -9
  10. package/skills/headless/steps/03-provision/pocketbase/SKILL.md +8 -10
  11. package/skills/headless/steps/03-provision/wordpress/SKILL.md +6 -8
  12. package/skills/headless/steps/04-content-model/pocketbase/SKILL.md +3 -2
  13. package/skills/headless/steps/04-content-model/wordpress/SKILL.md +2 -1
  14. package/skills/headless/steps/08-deploy/SKILL.md +14 -14
  15. package/skills/headless/steps/09-done/SKILL.md +5 -2
  16. package/src/core/runtime.js +1 -1
  17. package/src/core/runtime.ts +1 -1
  18. package/src/core/skills.js +30 -30
  19. package/src/core/skills.ts +30 -30
  20. package/src/servers/agency-hosting.js +1 -1
  21. package/src/servers/agency-hosting.ts +1 -1
  22. package/src/servers/agent-readiness.js +1 -1
  23. package/src/servers/agent-readiness.ts +1 -1
  24. package/src/servers/all.js +1 -1
  25. package/src/servers/all.ts +1 -1
  26. package/src/servers/billing.js +1 -1
  27. package/src/servers/billing.ts +1 -1
  28. package/src/servers/dns.js +1 -1
  29. package/src/servers/dns.ts +1 -1
  30. package/src/servers/domains.js +1 -1
  31. package/src/servers/domains.ts +1 -1
  32. package/src/servers/ecommerce.js +1 -1
  33. package/src/servers/ecommerce.ts +1 -1
  34. package/src/servers/gpu.js +1 -1
  35. package/src/servers/gpu.ts +1 -1
  36. package/src/servers/hosting.js +1 -1
  37. package/src/servers/hosting.ts +1 -1
  38. package/src/servers/mail.js +1 -1
  39. package/src/servers/mail.ts +1 -1
  40. package/src/servers/reach.js +1 -1
  41. package/src/servers/reach.ts +1 -1
  42. package/src/servers/vps.js +1 -1
  43. package/src/servers/vps.ts +1 -1
  44. package/src/servers/wordpress.js +1 -1
  45. package/src/servers/wordpress.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -4,6 +4,20 @@ Generated at release time from the diff between the previous and current
4
4
  build. Tool changes are listed individually; everything else is summarised
5
5
  by area.
6
6
 
7
+ ## v6.2.0 — 2026-11-27
8
+
9
+ ### Also in this release
10
+
11
+ - Dependencies: `package-lock.json`
12
+ - Bundled agent skills: 11 files
13
+ - Other files: `src/core/skills.js`, `src/core/skills.ts`
14
+
15
+ ## v6.1.0 — 2026-11-26
16
+
17
+ ### Also in this release
18
+
19
+ - Request handling and authentication: `src/core/runtime.js`, `src/core/runtime.ts`
20
+
7
21
  ## v6.0.0 — 2026-11-26
8
22
 
9
23
  ### Also in this release
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-mcp",
3
- "version": "6.0.0",
3
+ "version": "6.2.0",
4
4
  "description": "Hostinger API — manage domains, DNS, hosting, VPS, billing and more from Gemini CLI.",
5
5
  "mcpServers": {
6
6
  "hostinger": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-mcp",
3
- "version": "6.0.0",
3
+ "version": "6.2.0",
4
4
  "mcpName": "io.github.hostinger/hostinger-api-mcp",
5
5
  "description": "MCP server for Hostinger API",
6
6
  "repository": {
package/server.json CHANGED
@@ -17,12 +17,12 @@
17
17
  "url": "https://github.com/hostinger/api-mcp-server",
18
18
  "source": "github"
19
19
  },
20
- "version": "6.0.0",
20
+ "version": "6.2.0",
21
21
  "packages": [
22
22
  {
23
23
  "registryType": "npm",
24
24
  "identifier": "@hostinger/mcp",
25
- "version": "6.0.0",
25
+ "version": "6.2.0",
26
26
  "transport": {
27
27
  "type": "stdio"
28
28
  },
@@ -255,6 +255,53 @@ exits 0 with `ok: true` and what it waited for; 1 with `ok: false` when the job
255
255
  the local Hostinger MCP, with `fallback` naming the connector operation to poll yourself, every ~15 s.
256
256
  Never write your own `sleep` loops.
257
257
 
258
+ ### Known Hostinger quirks
259
+
260
+ Hostinger behaviors the steps meet and expect. When one shows up, do what its row says, once; the
261
+ steps name the quirk and point here. A quirk's retry is not a fix (*Stop a fix loop after two fixes*).
262
+
263
+ | Quirk | Symptom | What to do |
264
+ |---|---|---|
265
+ | Install list lags | `wordpress_installations_list` returns `[]` for a few seconds after the setup is `completed` | Retry it briefly before failing |
266
+ | Install URL says http | The WordPress install record's `url` starts with `http://` | Use `https://<domain>/cms` URLs anyway |
267
+ | `jwt-token` 500 that succeeded | `wordpress_installations_jwt-token` returns HTTP 500 | Call it once more before failing |
268
+ | `mcp_url` says http | The `jwt-token` reply's `mcp_url` starts with `http://`, and the WP MCP's `initialize` answers 405 (the https redirect turns the POST into a GET) | `push-content.mjs` switches it to `https://` itself; by hand, use the `https://` URL |
269
+ | Plugin install 500 that succeeded | `wordpress_plugins_install` returns HTTP 500 | Go straight to the poll; never send a second install blindly |
270
+ | Root 403 before the first deploy | `GET https://<domain>/` returns 403 or the Hostinger default page until the frontend is deployed | Expected, not a failure |
271
+ | PocketBase `failed` | `hosting_pocketbase_backend` says `state: failed` | Hostinger retries it on its own after `retry_after_seconds`: wait that long and read again. The data is intact; never delete the backend |
272
+ | PocketBase 503 after idle | The first request after about 5 idle minutes returns 503 | A wake-up: send it again |
273
+ | Ecommerce 402 on payment | `ecommerce_payments_enable-manual-method` returns HTTP 402 (a free account), and checkout later fails with `400 payment_provider_not_configured` | A normal outcome: record `payment_enabled: false`, tell the user in one line that checkout needs a paid Ecommerce plan, and carry on. Never retry |
274
+ | SSL pending | `wait.mjs` returns `ok: true` with `https_pending: true`: a new domain's certificate is still installing, for up to about an hour | The deploy worked: check over `http://`, tell the user HTTPS follows on its own, and don't wait for it |
275
+ | Root 403 after a completed build | The build is `completed` but the root serves 403 (`wait.mjs` says `build settings missing`, or times out on the root) | The deploy call went without its build settings: pass them (`steps/08-deploy/SKILL.md`) and redeploy. This one is a real fix |
276
+ | SSR app hangs | The build is `completed` but an SSR root never answers (`wait.mjs build` `timed_out` on the root) | `hosting_nodejs_restart-application { username, domain }`, no rebuild |
277
+ | Stale root after deploy | The root still serves the previous build right after a `completed` one | Check again after about 30 s |
278
+
279
+ ### Stop a fix loop after two fixes
280
+
281
+ Three checks can keep failing while you fix and retry: the Hostinger deploy build (`wait.mjs build`
282
+ says `failed`), deploy verification (`steps/08-deploy/SKILL.md` Step 5), and the content push. When the
283
+ same check fails again after **two real fixes**, stop: no third fix, no further redeploy or push. The
284
+ first attempt isn't a fix, so you stop at its third failure: the first attempt, then one after each fix.
285
+
286
+ A real fix is a change to the source, config or deploy call aimed at that failure. The retry or
287
+ workaround of a *Known Hostinger quirks* row doesn't count, and neither does running `wait.mjs` again
288
+ after `timed_out`. The local `npm run build` while you write the frontend isn't one of these checks.
289
+
290
+ When you stop:
291
+
292
+ 1. End the stage `failed` and log one unresolved `issue` naming both fixes, in one command (add
293
+ `--phase push` on the `stage-end` for the content push):
294
+ ```bash
295
+ node <skill>/run-log.mjs <domain> stage-end <stage> failed --note "<check>: stopped after 2 fixes" && node <skill>/run-log.mjs <domain> event issue '{"stage":"<stage>","symptom":"<what failed>","workaround":"fix 1: <…>; fix 2: <…>","severity":"high","resolved":false}'
296
+ ```
297
+ 2. Tell the user through the done step's final report, not a summary of your own: read
298
+ `steps/09-done/SKILL.md` now and write the final report it describes (`--outcome failed`). Its
299
+ outcome paragraph names the check that stopped, its *Steps completed* table ends at that stage, and
300
+ the failure with the two fixes you tried is one item of its *Gaps / follow-ups* list: `report
301
+ --outcome failed` prints that item, so copy it as written. Don't ask
302
+ whether to keep trying. If the user asks to, that continues the run as a follow-up (*Follow-ups
303
+ continue the run*).
304
+
258
305
  ### Local servers: `local-server.mjs`
259
306
 
260
307
  Start every local dev or preview server (frontend's visual check, validate's sign-off preview) through
@@ -1,3 +1,3 @@
1
- version=6.0.0
2
- commit=9615a5aa66cb
3
- built=2026-11-26
1
+ version=6.2.0
2
+ commit=374b76eeb130
3
+ built=2026-11-27
@@ -194,11 +194,18 @@ const restApi = site.urls?.rest_api ?? `https://${domain}/cms/wp-json/wp/v2`;
194
194
  const storeApi = site.urls?.store_api ?? `https://${domain}/cms/wp-json/wc/store/v1`;
195
195
  const store = content.store;
196
196
 
197
+ // jwt-token has returned the site's mcp_url as http://, and the https redirect turns the POST into a GET (405).
198
+ function overHttps(url) {
199
+ const u = new URL(url);
200
+ if (u.protocol === 'http:' && u.hostname === domain) u.protocol = 'https:';
201
+ return u.href;
202
+ }
203
+
197
204
  localMcp = connect('headless-push-content');
198
205
  const mint = async () => {
199
206
  const { data, error } = await localMcp.execute('wordpress_installations_jwt-token', { username, software });
200
207
  if (error || !data?.token) throw new Error(`couldn't mint the installation token: ${error ?? 'no token in the reply'}`);
201
- return { token: data.token, url: data.mcp_url ?? site.urls?.wp_mcp };
208
+ return { token: data.token, url: overHttps(data.mcp_url ?? site.urls?.wp_mcp) };
202
209
  };
203
210
  const wp = await openSite(mint).catch((e) => finish(2, { ok: false, error: `couldn't open the site's WP MCP: ${e.message}`, fallback: FALLBACK }));
204
211
 
@@ -507,6 +507,9 @@ function buildReport(ws, { outcome, tokens } = {}) {
507
507
  const endedAt = stillOpen ? now() : lastActivity(run, history, events);
508
508
  const stages = history.map((h) => ({ ...h, minutes: minutesBetween(h.started_at, h.ended_at ?? endedAt) }));
509
509
  const gaps = [...loggingGaps(stages, run, resolvedOutcome), ...dropped];
510
+ if (resolvedOutcome === 'failed' && !events.some((e) => e.type === 'issue' && !e.resolved)) {
511
+ gaps.push({ stage: stoppedAt(stages, state.stage) ?? 'done', phase: null, problem: 'the run failed but no unresolved issue says what failed; log one with `event issue` ("resolved":false), then run report again' });
512
+ }
510
513
  const strip = ({ ts, run: _run, type: _type, ...rest }) => ({ ...rest, logged_at: ts });
511
514
  const liveStage = stages.find((s) => s.stage === 'deploy' && s.result?.startsWith('ok'));
512
515
  const servers = serversSince(ws.dir, run.started_at);
@@ -854,6 +857,46 @@ async function report(ws, flags) {
854
857
  console.log(`report written: ${buildReport(ws, { outcome: flags.outcome, tokens })}`);
855
858
  const { id, file } = reportFile(ws);
856
859
  console.log(`send it: pass ${file} unchanged to hosting_headless_submit-build-report, then run report-sent ${id} (or report-rejected ${id} on a 422)`);
860
+ const written = readJson(file, {});
861
+ if (written.info?.outcome === 'failed') for (const line of gapsToCopy(written.issues)) console.log(line);
862
+ }
863
+
864
+ // Agents left to remember the done step's format write their own sections instead, so a failed run
865
+ // prints its required Gaps / follow-ups items as text to copy. Agents log an issue per attempt, so
866
+ // it's one item per stage: the stage's latest symptom, and every distinct fix its issues name.
867
+ function gapsToCopy(issues) {
868
+ const byStage = new Map();
869
+ for (const i of issues.filter((i) => !i.resolved)) byStage.set(i.stage, [...(byStage.get(i.stage) ?? []), i]);
870
+ if (!byStage.size) return [];
871
+ return [
872
+ 'Copy into your final report, as written, as items of its *Gaps / follow-ups* list:',
873
+ ...[...byStage].map(([stage, open], n) => {
874
+ const tried = distinctFixes(open);
875
+ return `${n + 1}. ${label(stage)}: ${forReport(open.at(-1).symptom)}.${tried.length ? ` Tried: ${tried.join('; ')}.` : ''} Still failing.`;
876
+ }),
877
+ ];
878
+ }
879
+
880
+ // An issue's workaround often lists several fixes ("fix 1: …; fix 2: …", as the stop rule logs them),
881
+ // and the stop's issue repeats fixes logged earlier in other words, so split on ';' and keep each fix
882
+ // once, by its number when it has one, in the order and wording first logged.
883
+ function distinctFixes(issues) {
884
+ const fixes = issues.flatMap((i) => String(i.workaround ?? '').split(';')).map((f) => forReport(f)).filter(Boolean);
885
+ const seen = new Map();
886
+ for (const f of fixes) {
887
+ const number = f.match(/^fix\s*(\d+)\b/i)?.[1];
888
+ const key = number ? `fix ${number}` : f.toLowerCase().replace(/\s+/g, ' ');
889
+ if (!seen.has(key)) seen.set(key, f);
890
+ }
891
+ return [...seen.values()];
892
+ }
893
+
894
+ // Short, and with anything shaped like a credential masked: the final report never shows secrets.
895
+ const SECRET = /\beyJ[\w-]+\.[\w-]+\.[\w-]+|\b(Bearer|Basic)\s+\S+|\b(password|passwd|token|secret|api[_-]?key|authorization)(["']?\s*[:=]\s*["']?)[^\s"',;]+/gi;
896
+ function forReport(text, max = 240) {
897
+ const masked = String(text).trim().replace(SECRET, (m, scheme, key, sep) => (scheme ? `${scheme} [redacted]` : key ? `${key}${sep}[redacted]` : '[redacted]'));
898
+ const clipped = masked.length > max ? `${masked.slice(0, max - 1)}…` : masked;
899
+ return clipped.trim().replace(/[.\s]+$/, '');
857
900
  }
858
901
 
859
902
  // What each command does with the domain's lock: check it (refuse if another live session holds it,
@@ -89,15 +89,10 @@ A store needs ≥1 shipping zone and ≥1 payment method to check out.
89
89
  - **Shipping:** `ecommerce_shipping_set-store { store_id, price }` (minor units; 0 = free).
90
90
  - **Payment:** `ecommerce_payments_enable-manual-method { store_id, title }`.
91
91
 
92
- > **Known gate — free accounts have no payment method, and therefore no checkout.** On a **free
93
- > account** (and any account/store without a paid Hostinger Ecommerce plan), `enable-manual-method`
94
- > returns **HTTP 402**, and checkout later fails with `400 payment_provider_not_configured`. This is
95
- > **expected, not an error** — payment, and therefore checkout, is simply unavailable on the plan. The
96
- > catalog and the storefront still work fully. **Never block, stop, loop or retry the build on this:**
97
- > - Record `payment_enabled: false` in `site.json` (set `shipping_enabled` as usual).
98
- > - Tell the user in one line that checkout needs a paid Ecommerce plan, and carry straight on.
99
- > - Treat the 402 as a normal outcome — don't surface it as a failure or re-attempt the call.
100
- > - Never ask the user for payment credentials.
92
+ > **Free accounts have no payment method, and therefore no checkout.** On a free account (or any store
93
+ > without a paid Hostinger Ecommerce plan), `enable-manual-method` returns HTTP 402: the *Ecommerce 402
94
+ > on payment* quirk under *Known Hostinger quirks* in the top-level `SKILL.md` says what to do. Set
95
+ > `shipping_enabled` as usual, and never ask the user for payment credentials.
101
96
  >
102
97
  > Every downstream stage reads `site.json → ecommerce.payment_enabled` and, when it is `false`, skips
103
98
  > all checkout wiring and verification (see content-model Step 5, frontend, deploy). A store with
@@ -119,13 +119,11 @@ it runs at the join.
119
119
  - Any other message → stop and show it to the user. Never retry a 422 blindly.
120
120
  4. **Wait for it.** `state` may be `null` right after creation; that's normal.
121
121
  `cd "$HOME" && node <skill>/wait.mjs pocketbase <domain>` returns once `https://<domain>/api/health`
122
- answers 200 (over `http://` with `https_pending: true` while a new domain's certificate is still
123
- installing — fine, go on). If it times out, re-read `hosting_pocketbase_backend`: `failed` means
124
- the last start didn't succeed and Hostinger retries it on its own after `retry_after_seconds`
125
- (the data is intact — wait that long and read again, never delete the backend); `unregistered`
126
- means it's broken → stop and show the user; `missing` means its files are gone → point 2 creates
127
- a new, empty one. The backend sleeps after about 5 idle minutes, so one 503 on a first request is
128
- a wake-up.
122
+ answers 200 (over `http://` with `https_pending: true`: the *SSL pending* quirk, so go on). If it
123
+ times out, re-read `hosting_pocketbase_backend`: `failed` is the *PocketBase `failed`* quirk;
124
+ `unregistered` means it's broken → stop and show the user; `missing` means its files are gone →
125
+ point 2 creates a new, empty one. A 503 on a first request is the *PocketBase 503 after idle*
126
+ quirk. The quirks are under *Known Hostinger quirks* in the top-level `SKILL.md`.
129
127
 
130
128
  PocketBase owns `/api` and `/_` on this domain; the app's own server routes use another prefix (e.g.
131
129
  `/server`). The owner sets outgoing mail (SMTP), backups and social sign-in in the dashboard: they
@@ -142,9 +140,9 @@ it in this flow.
142
140
  | PocketBase answers | `GET https://<domain>/api/health` and `GET https://<domain>/_/` | 200 and 200 |
143
141
  | Credentials saved | `~/.hostinger/<domain>/.pocketbase/credentials.json` | present, mode `600`, `domain` matches |
144
142
 
145
- `GET https://<domain>/` returns the Hostinger default page (or 403) until the frontend is deployed —
146
- expected, not a failure. There is **no `/cms`** on this domain; the app itself serves every route but
147
- `/api` and `/_` once it is deployed (Step 8).
143
+ `GET https://<domain>/` serving the default page or 403 is the *root 403 before the first deploy*
144
+ quirk (*Known Hostinger quirks* in the top-level `SKILL.md`). There is **no `/cms`** on this domain;
145
+ the app itself serves every route but `/api` and `/_` once it is deployed (Step 8).
148
146
 
149
147
  If a check fails: retry once after ~30 s; if it still fails, stop and point the user at hPanel.
150
148
 
@@ -102,12 +102,10 @@ install WordPress straight into its `/cms` directory. This is the onboarding han
102
102
 
103
103
  Notes:
104
104
 
105
- - `wordpress_installations_list` can lag a few seconds behind `completed` and return `[]` — retry
106
- briefly before failing. Its `domain` filter is a substring match, so exact-match the row.
107
- - The install record's `url` may say `http://`; always use `https://` URLs.
108
- - `GET https://<domain>/` returns 403 until the frontend is deployed — expected, not a failure.
109
- - A `jwt-token` HTTP 500 can still have succeeded (a known quirk of the `hostinger-wordpress` MCP):
110
- call it again before failing.
105
+ - `wordpress_installations_list`'s `domain` filter is a substring match, so exact-match the row.
106
+ - Four quirks can show up here: *Install list lags*, *Install URL says http*, *Root 403 before the
107
+ first deploy* and *`jwt-token` 500 that succeeded*. Each has its one action under *Known Hostinger
108
+ quirks* in the top-level `SKILL.md`.
111
109
  - **Never print, log or store the JWT.** It is minted on demand (24 h lifetime) by whichever stage
112
110
  needs the per-site WP MCP; only `mcp_url` is recorded.
113
111
 
@@ -131,8 +129,8 @@ which plugins you're installing; drop `wordpress-seo` if they say they don't wan
131
129
 
132
130
  1. **Install all of them in one call** (management MCP, async):
133
131
  `wordpress_plugins_install { username, software: <install_id>, plugins: [<every slug from the table>] }`.
134
- An HTTP 500 doesn't mean it failed (a known quirk of the `hostinger-wordpress` MCP): go straight to
135
- the poll, and never send a second install blindly.
132
+ An HTTP 500 is the *plugin install 500 that succeeded* quirk (*Known Hostinger quirks* in the
133
+ top-level `SKILL.md`).
136
134
  2. **Poll** `wordpress_plugins_list-installed { username, software }` until every slug shows `active`
137
135
  (install and activate usually complete together). Activate a slug that is installed but inactive with
138
136
  `wordpress_plugins_activate { username, software, plugin: "<slug>" }`.
@@ -70,8 +70,9 @@ Only once `provision.status == "completed"`.
70
70
  node <here>/scripts/pb-apply-schema.mjs ~/.hostinger/<domain>/pocketbase/schema.json ~/.hostinger/<domain>/.pocketbase/credentials.json
71
71
  ```
72
72
 
73
- Fix every reported problem and run it again until it prints `DONE`. It is idempotent: it never
74
- deletes fields or data, adds `created` and `updated` timestamps, inserts `seed` records into empty
73
+ Fix every reported problem and run it again until it prints `DONE`; when it still fails after two real
74
+ fixes, stop as *Stop a fix loop after two fixes* in the top-level `SKILL.md` says. It is idempotent: it
75
+ never deletes fields or data, adds `created` and `updated` timestamps, inserts `seed` records into empty
75
76
  collections and merges `rateLimits`. Re-run it after every schema change; a schema change needs no
76
77
  redeploy.
77
78
 
@@ -96,7 +96,8 @@ stderr; stdout is one JSON line with `counts`, `verify` and `ids`.
96
96
  | `1` with `failed` | Those items failed; the rest is in | Fix the cause the `error` names and re-run. If the same item fails twice, create just that item with [`by-hand.md`](by-hand.md) |
97
97
  | `2` | It couldn't reach the site (sign-in, the site's MCP, a missing ability); `error` says why | Push with [`by-hand.md`](by-hand.md) |
98
98
 
99
- A run cut short (a tool timeout, a kill) is safe to repeat: just run it again.
99
+ A run cut short (a tool timeout, a kill) is safe to repeat: just run it again. A push that still fails
100
+ after two real fixes stops as *Stop a fix loop after two fixes* in the top-level `SKILL.md` says.
100
101
 
101
102
  ## Step 3 — Hand off
102
103
 
@@ -164,21 +164,20 @@ cd "$HOME" && node <skill>/wait.mjs build <domain> <buildUuid>
164
164
  ```
165
165
 
166
166
  It waits for `hosting_get-deployment` to report the build `completed`, then up to 5 minutes for
167
- `https://<domain>/` (or `http://` while the certificate is pending) to serve 200. What its result means here:
167
+ `https://<domain>/` (or `http://` while the certificate is pending) to serve 200. What its result means
168
+ here (the quirks named are under *Known Hostinger quirks* in the top-level `SKILL.md`):
168
169
 
169
170
  - `ok: true`: the build is done and the root serves 200. Go on to Step 5.
170
- - `ok: true` with `https_pending: true`: the build is done and `http://<domain>/` serves 200, but the
171
- new domain's SSL certificate is still installing (this can take the better part of an hour). The
172
- deploy worked: tell the user HTTPS will follow on its own, run Step 5 over `http://`, and don't
173
- wait for the certificate.
171
+ - `ok: true` with `https_pending: true`: the *SSL pending* quirk. Run Step 5 over `http://`.
174
172
  - `ok: false` with `build.state: failed`: read `log_tail` (the end of the build log) and `analysis`, fix
175
173
  locally, re-archive and redeploy (pass `fromLine` to `hosting_get-deployment` to read only new log
176
- output).
177
- - `ok: false` with `build settings missing`: the settings didn't take (the root would 403 for good). Fix
178
- the deploy call and redeploy.
179
- - `ok: false` with `timed_out`: `last_status` says whether the build was still running or the root
180
- wasn't serving 200 yet (see Step 5's note on a 403). For an SSR app that built but hangs,
181
- `hosting_nodejs_restart-application { username, domain }` recovers the server without a rebuild.
174
+ output). After two fixes that don't take, stop as *Stop a fix loop after two fixes* in the
175
+ top-level `SKILL.md` says.
176
+ - `ok: false` with `build settings missing`: the *root 403 after a completed build* quirk.
177
+ - `ok: false` with `timed_out`: `last_status` says whether the build was still running (run the same
178
+ command again) or the root wasn't serving 200 yet. A root that 403s or serves the previous build is
179
+ the *root 403 after a completed build* or *stale root after deploy* quirk; an SSR root that never
180
+ answers is the *SSR app hangs* quirk.
182
181
 
183
182
  ## Step 5 — Verify the live site (all must pass)
184
183
 
@@ -215,9 +214,10 @@ It waits for `hosting_get-deployment` to report the build `completed`, then up t
215
214
  > redeploy without the file.
216
215
 
217
216
  The root check is already done when `wait.mjs build` returned `ok: true`; check the rest in one shell
218
- command (`curl` each URL). A `completed` build whose root 403s almost always means the build settings
219
- weren't passed to `hosting_deploy` (null settings) — pass them and redeploy. Caching can briefly serve a
220
- stale root; re-check after ~30 s.
217
+ command (`curl` each URL). A root that 403s or serves the previous build is the *root 403 after a
218
+ completed build* or *stale root after deploy* quirk (*Known Hostinger quirks* in the top-level
219
+ `SKILL.md`). A check that still fails after two real fixes stops the deploy as *Stop a fix loop after
220
+ two fixes* in the top-level `SKILL.md` says.
221
221
 
222
222
  ## Step 6 — Record `deploy.json`
223
223
 
@@ -112,7 +112,10 @@ Write it in this order:
112
112
  resumed run will start from, and the build report `~/.hostinger/<domain>/report.html`.
113
113
 
114
114
  6. **Gaps / follow-ups** (only if any) — a short numbered list of anything skipped, approximated or
115
- left for the user (e.g. no images generated, default WordPress content left in place).
115
+ left for the user (e.g. no images generated, default WordPress content left in place), and any check
116
+ stopped after two fixes: what failed and the two fixes tried. On a failed run, run the *Build report*
117
+ command before writing this report: `report --outcome failed` prints one item per stage, with every
118
+ fix its unresolved issues name. Copy those items into this list as written.
116
119
 
117
120
  Never include passwords, JWTs or other secrets in the report. For wp-admin access, give the URL and
118
121
  offer a one-click login link (`wordpress_login_create-links`), not credentials.
@@ -182,7 +185,7 @@ open "$URL" # macOS
182
185
 
183
186
  ## Build report
184
187
 
185
- Right after the final report, save the build report for this run. It turns the run log (stage times
188
+ Right after the final report (before it, on a failed run), save the build report for this run. It turns the run log (stage times
186
189
  from `run-log.json`, events from `events.jsonl`) into `reports/<run>.json` and `.html`, and copies the
187
190
  HTML to `report.html` in the workspace:
188
191
 
@@ -62,7 +62,7 @@ const GetSkillRequestSchema = z.object({
62
62
 
63
63
  /**
64
64
  * MCP Server for Hostinger API
65
- * Generated from OpenAPI spec version 5.0.0
65
+ * Generated from OpenAPI spec version 5.1.0
66
66
  */
67
67
  class MCPServer {
68
68
  constructor({ name, version, tools, instructions, skills = [] }) {
@@ -97,7 +97,7 @@ interface Skill { uri: string; frontmatter: Record<string, unknown>; resources:
97
97
 
98
98
  /**
99
99
  * MCP Server for Hostinger API
100
- * Generated from OpenAPI spec version 5.0.0
100
+ * Generated from OpenAPI spec version 5.1.0
101
101
  */
102
102
  class MCPServer {
103
103
  private readonly name: string;