hostinger-api-mcp 4.11.0 → 4.12.1
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.
- package/CHANGELOG.md +14 -0
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/skills/audit-vps/SKILL.md +10 -6
- package/skills/deploy-to-vps/SKILL.md +1 -0
- package/skills/headless/VERSION +2 -2
- package/skills/headless/steps/07-validate/SKILL.md +44 -8
- package/skills/headless/steps/08-deploy/SKILL.md +2 -1
- package/skills/headless/steps/09-done/SKILL.md +1 -1
- package/skills/provision-vps/SKILL.md +1 -0
- package/skills/secure-vps/SKILL.md +5 -3
- package/skills/troubleshoot-vps/SKILL.md +1 -0
- package/src/core/skills.js +24 -24
- package/src/core/skills.ts +24 -24
- package/src/servers/agency-hosting.js +1 -1
- package/src/servers/agency-hosting.ts +1 -1
- package/src/servers/agent-readiness.js +1 -1
- package/src/servers/agent-readiness.ts +1 -1
- package/src/servers/all.js +1 -1
- package/src/servers/all.ts +1 -1
- package/src/servers/billing.js +1 -1
- package/src/servers/billing.ts +1 -1
- package/src/servers/dns.js +1 -1
- package/src/servers/dns.ts +1 -1
- package/src/servers/domains.js +1 -1
- package/src/servers/domains.ts +1 -1
- package/src/servers/ecommerce.js +1 -1
- package/src/servers/ecommerce.ts +1 -1
- package/src/servers/gpu.js +1 -1
- package/src/servers/gpu.ts +1 -1
- package/src/servers/horizons.js +1 -1
- package/src/servers/horizons.ts +1 -1
- package/src/servers/hosting.js +1 -1
- package/src/servers/hosting.ts +1 -1
- package/src/servers/mail.js +1 -1
- package/src/servers/mail.ts +1 -1
- package/src/servers/reach.js +1 -1
- package/src/servers/reach.ts +1 -1
- package/src/servers/vps.js +1 -1
- package/src/servers/vps.ts +1 -1
- package/src/servers/wordpress.js +1 -1
- 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
|
+
## v4.12.1 — 2026-11-19
|
|
8
|
+
|
|
9
|
+
### Also in this release
|
|
10
|
+
|
|
11
|
+
- Bundled agent skills: 6 files
|
|
12
|
+
- Other files: `src/core/skills.js`, `src/core/skills.ts`
|
|
13
|
+
|
|
14
|
+
## v4.12.0 — 2026-11-19
|
|
15
|
+
|
|
16
|
+
### Also in this release
|
|
17
|
+
|
|
18
|
+
- Bundled agent skills: 4 files
|
|
19
|
+
- Other files: `src/core/skills.js`, `src/core/skills.ts`
|
|
20
|
+
|
|
7
21
|
## v4.11.0 — 2026-11-19
|
|
8
22
|
|
|
9
23
|
### Operations
|
package/gemini-extension.json
CHANGED
package/package.json
CHANGED
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": "4.
|
|
20
|
+
"version": "4.12.1",
|
|
21
21
|
"packages": [
|
|
22
22
|
{
|
|
23
23
|
"registryType": "npm",
|
|
24
24
|
"identifier": "@hostinger/mcp",
|
|
25
|
-
"version": "4.
|
|
25
|
+
"version": "4.12.1",
|
|
26
26
|
"transport": {
|
|
27
27
|
"type": "stdio"
|
|
28
28
|
},
|
|
@@ -12,6 +12,7 @@ Read-only from start to finish. The output is a report; every fix is a separate,
|
|
|
12
12
|
- Read the `inputSchema` that `search` returns before the first call of each operation. If a name below is rejected as unknown, `search` for what the step does (e.g. "virtual machine metrics").
|
|
13
13
|
- Batch reads with `multi-execute`, up to 20 steps a batch. Batches chain operations from one server only — the Hostinger Connector runs `vps` and `billing` as separate servers. When a product group is switched off, skip its checks and say which were skipped.
|
|
14
14
|
- `vps_virtual-machines_list` returns a plain array; paged lists (`vps_actions_list`, `vps_backups_list`, `vps_firewall_list`) return `data` and `meta`.
|
|
15
|
+
- `Too Many Attempts` is the API rate limit: wait about a minute, then retry that call once, and send no other calls meanwhile. `[VPS:9999] Request failed` (HTTP 500) is usually temporary: retry once later, and if it fails again, report that server as not checked.
|
|
15
16
|
- Call only read operations. Do not take a snapshot, sync a firewall, install Monarx or restart anything during the audit.
|
|
16
17
|
|
|
17
18
|
## 1. Inventory
|
|
@@ -30,9 +31,9 @@ Per server, one batch for every read below except `vps_monarx_scan-metrics` and
|
|
|
30
31
|
- **State.** `running` is normal; `stopped` may be the user's own stop or a Hostinger stop after malware was found; `suspended` is non-payment or abuse; `error` needs Hostinger support; `initial` is bought and waiting for setup. Any other state with `actions_lock: locked` is an action in progress. Expired plans can still show `running` — use the subscription.
|
|
31
32
|
- **Actions.** `vps_actions_list` (first page): an `error` in the last 7 days, or an action still `sent` after 12 hours (stuck — Hostinger support).
|
|
32
33
|
- **Usage.** `vps_virtual-machines_metrics` for the last 24 h. `disk_space` and `ram_usage` are in bytes, while `disk` and `memory` are in MB, so convert before comparing: `disk_space` above 85 % of `disk`, `ram_usage` above 90 % of `memory` most of the day, `cpu_usage` above 90 % most of the day. Sustained high CPU leads Hostinger to limit the server's CPU; whether a limit is active shows only in hPanel.
|
|
33
|
-
- **Traffic.** The same metrics from the 1st of the month: inbound plus outbound traffic near the plan's monthly `bandwidth` means the server will be throttled for the rest of the month.
|
|
34
|
+
- **Traffic.** The same metrics from the 1st of the month: inbound plus outbound traffic near the plan's monthly `bandwidth` means the server will be throttled for the rest of the month. By mid-month the result is over 100 KB per server, too large to read whole. When it comes back saved to a file, add up `incoming_traffic` and `outgoing_traffic` with a short script on that file. If the script cannot run, use the last 7 days, scale them to the month and say the figure is an estimate.
|
|
34
35
|
- **Backups.** `vps_backups_list`: no backup newer than 8 days on a server older than 7 days means the weekly schedule is probably off. The API cannot show the schedule; the user checks hPanel → VPS → Snapshots & Backups, where Auto-backups shows it.
|
|
35
|
-
- **SSH keys.** `vps_ssh-keys_list-virtual-machine
|
|
36
|
+
- **SSH keys.** `vps_ssh-keys_list-virtual-machine` shows only keys added through Hostinger (hPanel or the API). Keys added on the server by hand do not appear, so an empty list means "no SSH key added through Hostinger", not that login is password-only. secure-vps checks password login over SSH.
|
|
36
37
|
- **Malware.** `vps_monarx_scan-metrics`: `[VPS:2042] Monarx is not installed` means it is not installed; counts mean it is. `malicious` or `compromised` above 0 is a finding.
|
|
37
38
|
- **Docker Manager.** `vps_docker_list` on every server; an empty list means no projects. `[VPS:2044]` means this server has no Docker Manager, so skip it. Availability does not follow the template name. For each project, flag any container not `running`, or with `health` other than `healthy`.
|
|
38
39
|
- **OpenVZ.** A plan named `KVM n` is KVM and is never flagged. Flag a server whose plan name does not start with `KVM`. Only when the plan name is missing or unclear, use `created_at` before 18 April 2023 as a hint, because VPS bought on hostinger.com before then were usually OpenVZ. For a flagged server, the user checks hPanel and follows Hostinger's OpenVZ-to-KVM migration guide.
|
|
@@ -50,10 +51,13 @@ Plans: auto-renew off (`is_auto_renewed: false`, status `non_renewing`) **and**
|
|
|
50
51
|
From outside, per server:
|
|
51
52
|
|
|
52
53
|
```bash
|
|
53
|
-
nc -
|
|
54
|
-
|
|
54
|
+
nc -zv -w 3 IP 22
|
|
55
|
+
curl -s -o /dev/null -w "%{http_code}\n" --max-time 10 http://IP/
|
|
56
|
+
nc -zv -w 3 IP 3306; nc -zv -w 3 IP 5432; nc -zv -w 3 IP 6379; nc -zv -w 3 IP 27017
|
|
55
57
|
```
|
|
56
58
|
|
|
59
|
+
Run each port as its own `nc`, with the IP written out. A loop or a shell variable makes Claude Code ask for approval every time, and macOS `nc` stops after the first port when given a list.
|
|
60
|
+
|
|
57
61
|
Before trusting the scan, run the same check against `192.0.2.1`, a reserved address with no server. Any port that answers there is faked by the local network (a VPN or proxy; 80, 443 and 8080 are common), so check it with `curl` instead. On macOS add `-G 3` to `nc`; without it a port that drops traffic hangs for over a minute.
|
|
58
62
|
|
|
59
63
|
A database port answering from outside is a finding whatever the rules say.
|
|
@@ -75,7 +79,7 @@ A database port answering from outside is a finding whatever the rules say.
|
|
|
75
79
|
- srv100 — no backup in the last 30 days → hPanel → Snapshots & Backups → Manage schedule
|
|
76
80
|
|
|
77
81
|
## Worth knowing
|
|
78
|
-
- srv102 —
|
|
82
|
+
- srv102 — no SSH key added through Hostinger → secure-vps
|
|
79
83
|
- srv103 — firewall group "web" not synced → secure-vps
|
|
80
84
|
|
|
81
85
|
## Healthy
|
|
@@ -84,7 +88,7 @@ srv104
|
|
|
84
88
|
|
|
85
89
|
- **Fix now:** state `error`, `suspended`, or `stopped` without the user's knowledge; a failed or stuck action; malware counts above 0; disk above 95 %; a Docker project down; a plan already lapsed; an OpenVZ server.
|
|
86
90
|
- **Soon:** no firewall group, or a database port open to the internet; no backup in 8 days; a plan lapsing within 30 days; disk above 85 %; CPU or memory saturated most of the day; monthly traffic near the quota.
|
|
87
|
-
- **Worth knowing:** no SSH key; firewall group not synced; Monarx not installed.
|
|
91
|
+
- **Worth knowing:** no SSH key added through Hostinger; firewall group not synced; Monarx not installed.
|
|
88
92
|
|
|
89
93
|
Each item names the evidence and what fixes it: `troubleshoot-vps`, `secure-vps`, `deploy-to-vps`, `provision-vps`, Hostinger support, or the hPanel page. Hand back without fixing anything.
|
|
90
94
|
|
|
@@ -14,6 +14,7 @@ The public API cannot run a command on the server. Packages, services, web serve
|
|
|
14
14
|
- Read the `inputSchema` that `search` returns before the first call of each operation. If a name below is rejected as unknown, `search` for what the step does (e.g. "add ssh key to virtual machine").
|
|
15
15
|
- Only the public operations that `search` returns can be called. Hostinger Agent tools in hPanel (running commands, resetting SSH or the guest firewall, disk cleanup) are not available here; when a step needs them, send the user to hPanel.
|
|
16
16
|
- Batch reads with `multi-execute`; values pass between steps as `$steps.<i>.<path>`. A batch stops at its first failure. The Hostinger Connector runs `vps` and `dns` as separate servers, so a batch chains operations from one of them only.
|
|
17
|
+
- `Too Many Attempts` is the API rate limit: wait about a minute, then retry that call once, and send no other calls meanwhile. `[VPS:9999] Request failed` (HTTP 500) is usually temporary: retry a read once later. Never resend a change that failed with 500 straight away: it may have gone through, so check the outcome with the matching read or `vps_actions_list` first, and tell the user what you found.
|
|
17
18
|
- A VPS runs one action at a time. Most operations that change it return an action (firewall sync and delete answer `Request accepted` instead; check those with the matching read operation): poll `vps_actions_get` with its `id`, waiting longer between checks, until `state` is `success` or `error` (`created`, `sent`, `delayed`, `started` are still running). Do not send another change while `vps_virtual-machines_get` shows `actions_lock: locked`. An action in `error` keeps the VPS locked and needs Hostinger support.
|
|
18
19
|
- Confirm with the user before: `vps_snapshots_create` (it replaces the existing snapshot), `vps_docker_create` on a project name that already exists (it replaces the project), `vps_docker_stop`, `vps_docker_delete` (removes containers, networks, volumes and images), and `dns_records_update` with `overwrite: true`. Reinstalling is never part of a deploy — hand over to `provision-vps`.
|
|
19
20
|
- SSH keys: use `vps_ssh-keys_*`; the account-level `vps_public-keys_*` operations are deprecated. Firewall sync: use `vps_firewall_sync-to-all-assigned-v-ms`; the single-VM `vps_firewall_sync` is deprecated.
|
package/skills/headless/VERSION
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
version=4.
|
|
2
|
-
commit=
|
|
1
|
+
version=4.12.1
|
|
2
|
+
commit=dd171a2383cf
|
|
3
3
|
built=2026-11-19
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: headless-step-validate
|
|
3
|
-
description: "Step 7 (validate) of the Hostinger Headless flow.
|
|
3
|
+
description: "Step 7 (validate) of the Hostinger Headless flow. Quick gate before deploy: every prior stage already self-verifies, so this is a fast confirmation (instance live + backend API answers with seeded content), an npm audit of the frontend before the first deploy (fix high/critical advisories, rebuild clean), plus optional local preview and user sign-off. Skip the heavy parts when nobody needs to approve."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# headless-step-validate
|
|
7
7
|
|
|
8
|
-
> **
|
|
8
|
+
> **Fast.** Every stage before this one already verifies its own work (provision checks the
|
|
9
9
|
> backend, content-model push checks the REST counts, frontend builds clean and looks right at desktop
|
|
10
10
|
> and phone width), and **deploy verifies the live result**. So validate is **not** a re-run of all
|
|
11
|
-
> that — it's
|
|
12
|
-
>
|
|
13
|
-
> time here only when a person wants to see it before it goes live.
|
|
11
|
+
> that — it's two quick checks, an npm audit before the first deploy, and the optional human
|
|
12
|
+
> preview/sign-off. **Skip Steps 4–5 (rebuild + approval) entirely** on an autonomous or temp-domain run
|
|
13
|
+
> where no one is signing off. Spend time here only when a person wants to see it before it goes live.
|
|
14
14
|
|
|
15
15
|
**In:** project in `~/.hostinger/<domain>/src/`, `site.json`, `state.json`.
|
|
16
16
|
|
|
@@ -45,7 +45,43 @@ with an empty catalog means the push didn't land:
|
|
|
45
45
|
|
|
46
46
|
Fail or counts off → fix content-model push before building against live data.
|
|
47
47
|
|
|
48
|
-
## 3 —
|
|
48
|
+
## 3 — Dependency audit (first deploy only, even when nobody signs off)
|
|
49
|
+
|
|
50
|
+
Run this only when `~/.hostinger/<domain>/deploy.json` doesn't exist yet: deploy writes it after the
|
|
51
|
+
first passing deploy, so iterate and redeploy runs skip this step and don't report the skip. Deploy
|
|
52
|
+
ships `package-lock.json` and the server installs from it, so the fix lands in the lockfile here. In
|
|
53
|
+
`~/.hostinger/<domain>/src/`:
|
|
54
|
+
|
|
55
|
+
1. **Audit.** `npm audit`. No vulnerabilities → note "npm audit clean" in validate's *Steps completed*
|
|
56
|
+
row of the final report and go on to Step 4. If it can't run (no `package-lock.json`, registry
|
|
57
|
+
unreachable), log an `issue` event
|
|
58
|
+
`{"stage":"validate","symptom":"npm audit could not run","cause":"<error>","severity":"medium","resolved":false}`,
|
|
59
|
+
list it under *Gaps / follow-ups*, and go on.
|
|
60
|
+
2. **Back up.** Copy `package.json` and `package-lock.json` to `~/.hostinger/<domain>/audit-backup/`
|
|
61
|
+
(outside `src/`, so the deploy archive doesn't pick them up). This is the last working pair. Delete
|
|
62
|
+
`audit-backup/` when this step ends.
|
|
63
|
+
3. **Safe fixes.** `npm audit fix`, then rebuild clean: delete the build output (`.next` for Next.js,
|
|
64
|
+
`.output` for Nuxt, `build` for SvelteKit, `dist` for Astro and Vite/React/Vue; for any
|
|
65
|
+
other framework, the folder `npm run build` writes), run `npm run build`, and run the project's `check` or
|
|
66
|
+
`check:dist` script if it has one. Passes → copy the pair to the backup again. Fails → restore the
|
|
67
|
+
backup and `npm ci`. Never run `npm audit fix --force`: it takes breaking major upgrades across the
|
|
68
|
+
whole tree. Low and moderate advisories this can't fix stay.
|
|
69
|
+
4. **High and critical.** If `npm audit --audit-level=high` still fails, run `npm audit --json`. For
|
|
70
|
+
each entry under `vulnerabilities` whose `severity` is `high` or `critical` and whose `fixAvailable`
|
|
71
|
+
is an object, run `npm install <fixAvailable.name>@<fixAvailable.version>`. Rebuild clean as in
|
|
72
|
+
item 3. Fails → restore the backup, `npm ci`, and treat those advisories as leftovers.
|
|
73
|
+
`fixAvailable: false` means no dependency upgrade fixes it.
|
|
74
|
+
|
|
75
|
+
**Leftovers.** A high or critical advisory that no upgrade fixes, or whose upgrade breaks the build,
|
|
76
|
+
doesn't block the deploy: deploy the last working pair, log one event for all of them, and list each
|
|
77
|
+
(package, severity, advisory ID, why it stays) under *Gaps / follow-ups* in the final report
|
|
78
|
+
([`../09-done/SKILL.md`](../09-done/SKILL.md)):
|
|
79
|
+
|
|
80
|
+
```bash
|
|
81
|
+
node <skill>/run-log.mjs <domain> event issue '{"stage":"validate","symptom":"npm audit: <n> high/critical advisories left","cause":"<package>@<version> <advisory ID>: no fix through an upgrade | upgrade breaks the build; …","severity":"high","resolved":false}'
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
## 4 — Clean rebuild against the live API (optional — skip unless signing off)
|
|
49
85
|
|
|
50
86
|
Frontend already produced a clean build; only redo this if you want a from-scratch guarantee before a
|
|
51
87
|
human sign-off. Remove the build output and rebuild; a failed or incomplete build is a stop (no
|
|
@@ -54,7 +90,7 @@ fixtures, placeholder copy or `.htaccess` in the output).
|
|
|
54
90
|
- **Astro (SSG):** `rm -rf dist && npm run build && npm run check:dist`.
|
|
55
91
|
- **Next.js (SSR):** `rm -rf .next && npm run check && npm run build`.
|
|
56
92
|
|
|
57
|
-
##
|
|
93
|
+
## 5 — Preview & approval (optional — only when a person is signing off)
|
|
58
94
|
|
|
59
95
|
When someone wants to see it first: start the local preview (Astro: `npm run preview`; Next.js:
|
|
60
96
|
`npx next start`), show the user a couple of key routes at desktop and phone width (capture phone width
|
|
@@ -62,5 +98,5 @@ as in frontend's *Visual check*; frontend already caught the layout bugs, so thi
|
|
|
62
98
|
re-review) and navigation, and present it for **explicit approval**. If preview tooling is unavailable,
|
|
63
99
|
give the user the command and URL. On an autonomous or temp-domain run, skip this — deploy will verify the live result anyway.
|
|
64
100
|
|
|
65
|
-
Then (after approval, or immediately if
|
|
101
|
+
Then (after approval, or immediately if 4–5 were skipped): `state.json` → `stage: "deploy"`, fresh
|
|
66
102
|
`updated_at`; leave `provision` unchanged.
|
|
@@ -10,7 +10,8 @@ the project **source** and it uploads it, runs `npm install` + the build script
|
|
|
10
10
|
serves the result. **Out:** `deploy.json`.
|
|
11
11
|
|
|
12
12
|
This is an **instance-barrier** step: run it only after `provision.status == "completed"` and validate
|
|
13
|
-
(
|
|
13
|
+
has passed (on a first deploy that includes its dependency audit, even when the rest of validate is
|
|
14
|
+
skipped). All operations go through the connector (`execute`).
|
|
14
15
|
|
|
15
16
|
> **Connected to the hosted server (`mcp.hostinger.com`)?** Its `hosting_deploy` deploys Git
|
|
16
17
|
> repositories only and cannot read a local `path`. Run this step through the local
|
|
@@ -37,7 +37,7 @@ Write it in this order:
|
|
|
37
37
|
| 4 content model | 5 pages, 8 posts, 6 categories, 1 menu, 14 images (Hostinger AI), SEO titles on every page; counts re-read from the REST API. |
|
|
38
38
|
| 5 design | "Salt & Ink" direction: serif headings, sea-blue accents; `design.md` and logo icon written. |
|
|
39
39
|
| 6 frontend | Next.js SSR with home, blog, post, category and contact pages wired to the REST API; local build passed. |
|
|
40
|
-
| 7 validate | Instance setup completed; REST API returned the 8 pushed posts; no preview (nobody signing off). |
|
|
40
|
+
| 7 validate | Instance setup completed; REST API returned the 8 pushed posts; npm audit clean; no preview (nobody signing off). |
|
|
41
41
|
| 8 deploy | Source uploaded, build finished in 3 min; site root returns 200. |
|
|
42
42
|
| 9 done | Main site, wp-admin and REST API re-checked live: all returned 200. |
|
|
43
43
|
|
|
@@ -11,6 +11,7 @@ From a need ("a small server for n8n in Europe") to a running server the agent c
|
|
|
11
11
|
|
|
12
12
|
- Read the `inputSchema` that `search` returns before the first call of each operation. If a name below is rejected as unknown, `search` for what the step does (e.g. "list vps templates").
|
|
13
13
|
- Batch reads with `multi-execute`; values pass between steps as `$steps.<i>.<path>`. A batch stops at its first failure. The Hostinger Connector runs `vps` and `billing` as separate servers, so a batch chains operations from one of them only.
|
|
14
|
+
- `Too Many Attempts` is the API rate limit: wait about a minute, then retry that call once, and send no other calls meanwhile. `[VPS:9999] Request failed` (HTTP 500) is usually temporary: retry a read once later. After a purchase, setup or reinstall fails with 500, do not resend it: the request may have gone through, so check `vps_virtual-machines_list` and `vps_actions_list` first, and tell the user what you found.
|
|
14
15
|
- Purchase and reinstall need the user's explicit "yes" in the conversation, after you have shown what is described in step 2 or step 5. Never infer consent from the request itself.
|
|
15
16
|
- Setup, reinstall and restart return an action (firewall sync answers `Request accepted` instead; check it with `vps_firewall_get`): poll `vps_actions_get` with its `id`, waiting longer between checks, until `state` is `success` or `error`, and `vps_virtual-machines_get` until `state` is `running` and `actions_lock` is `unlocked`. Setup usually finishes within minutes (control-panel templates take longer); a reinstall takes about 5–20 minutes. An action still `sent` after 12 hours is stuck — the user contacts Hostinger support.
|
|
16
17
|
- Root `password`: Hostinger rejects passwords found in public leak databases. 12–50 characters, no spaces, at least one upper-case letter, one lower-case letter, one digit and one of `-().&@?'#,/;+`, using only latin letters, digits and those symbols. `panel_password` (control-panel templates only) allows only the symbols `#%+:?@`. Generate strong ones, give them to the user once, and never store them in the project.
|
|
@@ -12,6 +12,7 @@ Baseline hardening for one server. Read and report first; each change is propose
|
|
|
12
12
|
- Read the `inputSchema` that `search` returns before the first call of each operation. If a name below is rejected as unknown, `search` for what the step does (e.g. "firewall rule").
|
|
13
13
|
- Only the public operations that `search` returns can be called. The backup schedule, the Monarx file list and the SSH and firewall resets live in hPanel; say where when a step needs them.
|
|
14
14
|
- Batch reads with `multi-execute`; values pass between steps as `$steps.<i>.<path>`. A batch stops at its first failure.
|
|
15
|
+
- `Too Many Attempts` is the API rate limit: wait about a minute, then retry that call once, and send no other calls meanwhile. `[VPS:9999] Request failed` (HTTP 500) is usually temporary: retry a read once later. Never resend a change that failed with 500 straight away: it may have gone through, so check the outcome with the matching read or `vps_actions_list` first, and tell the user what you found.
|
|
15
16
|
- A VPS runs one action at a time. Most changes return an action: poll `vps_actions_get`, waiting longer between checks, until `state` is `success` or `error`. Firewall sync and delete answer `Request accepted` instead; check the result with the matching read operation.
|
|
16
17
|
- Confirm with the user before each of these, listing exactly what changes: `vps_firewall_activate` (closes every port without an accept rule), `vps_firewall_replace-all-rules-in-group`, `vps_firewall_delete-rule`, `vps_firewall_update-rule`, `vps_firewall_deactivate`, `vps_firewall_delete`, `vps_ssh-keys_remove-virtual-machine`, turning off password login, `vps_monarx_install` (locks the VPS for up to an hour), `vps_monarx_uninstall`, and `vps_snapshots_create` (replaces the snapshot).
|
|
17
18
|
- SSH keys: `vps_ssh-keys_*`; the `vps_public-keys_*` operations are deprecated. Firewall sync: `vps_firewall_sync-to-all-assigned-v-ms`; `vps_firewall_sync` is deprecated.
|
|
@@ -25,17 +26,18 @@ Baseline hardening for one server. Read and report first; each change is propose
|
|
|
25
26
|
One batch:
|
|
26
27
|
|
|
27
28
|
- `vps_firewall_get` with `firewall_group_id`: rules (`protocol`, `port`, `source`, `source_detail`) and `is_synced`. `vps_firewall_list` and `vps_virtual-machines_list` show which other servers share the group.
|
|
28
|
-
- `vps_ssh-keys_list-virtual-machine`: keys on `root
|
|
29
|
+
- `vps_ssh-keys_list-virtual-machine`: keys on `root` added through Hostinger. Keys added on the server by hand do not appear, so an empty list does not prove password-only login. The SSH check below shows it.
|
|
29
30
|
- `vps_backups_list`: the newest backup. Backups are weekly by default; on the weekly schedule the first one appears after a full 7-day cycle (on daily, within a day). The API cannot show or change the schedule.
|
|
30
31
|
- `vps_monarx_scan-metrics`, alone or last in the batch: `[VPS:2042] Monarx is not installed` means it is not installed, and the error stops the batch; otherwise it returns the `malicious` and `compromised` counts.
|
|
31
32
|
|
|
32
33
|
From outside, which ports actually answer:
|
|
33
34
|
|
|
34
35
|
```bash
|
|
35
|
-
|
|
36
|
+
nc -zv -w 3 IP 21; nc -zv -w 3 IP 22; nc -zv -w 3 IP 25; nc -zv -w 3 IP 80; nc -zv -w 3 IP 443; nc -zv -w 3 IP 3306
|
|
37
|
+
nc -zv -w 3 IP 5432; nc -zv -w 3 IP 6379; nc -zv -w 3 IP 8080; nc -zv -w 3 IP 9200; nc -zv -w 3 IP 11211; nc -zv -w 3 IP 27017
|
|
36
38
|
```
|
|
37
39
|
|
|
38
|
-
Run the
|
|
40
|
+
Run each port as its own `nc`, with the IP written out: a loop or a shell variable makes Claude Code ask for approval every time, and macOS `nc` stops after the first port when given a list. Run the same commands against `192.0.2.1`, a reserved address with no server, first. Any port that answers there is faked by the local network (a VPN or proxy; 80, 443 and 8080 are common), so judge it with `curl` instead. On macOS add `-G 3` to `nc`; without it a port that drops traffic hangs for over a minute.
|
|
39
41
|
|
|
40
42
|
Over SSH, what listens and how SSH is set up:
|
|
41
43
|
|
|
@@ -12,6 +12,7 @@ One server and one symptom in; a named cause, the evidence for it, and a fix out
|
|
|
12
12
|
- Read the `inputSchema` that `search` returns before the first call of each operation. If a name below is rejected as unknown, `search` for what the step does (e.g. "virtual machine metrics").
|
|
13
13
|
- Only the public operations that `search` returns can be called. Several fixes exist only in hPanel or Hostinger Agent — resetting SSH or the guest firewall, removing a CPU limit, cleaning the disk, running commands without SSH. When the fix needs one, tell the user where it is in hPanel.
|
|
14
14
|
- Batch reads with `multi-execute`; values pass between steps as `$steps.<i>.<path>`. A batch stops at its first failure. The Hostinger Connector runs `vps` and `dns` as separate servers.
|
|
15
|
+
- `Too Many Attempts` is the API rate limit: wait about a minute, then retry that call once, and send no other calls meanwhile. `[VPS:9999] Request failed` (HTTP 500) is usually temporary: retry a read once later. Never resend a change that failed with 500 straight away: it may have gone through, so check the outcome with the matching read or `vps_actions_list` first, and tell the user what you found.
|
|
15
16
|
- A VPS runs one action at a time. Most changes return an action: poll `vps_actions_get`, waiting longer between checks, until `state` is `success` or `error` (`created`, `sent`, `delayed`, `started` are still running). Firewall sync and delete answer `Request accepted` instead; check the result with the matching read operation. Typical durations: start and stop up to 5 minutes, restart up to 10, emergency mode up to 20, a backup restore from 10 minutes to a few hours.
|
|
16
17
|
- Confirm with the user before each of these, naming the server and what happens: `vps_virtual-machines_restart` and `vps_virtual-machines_stop` (downtime), `vps_virtual-machines_set-root-password`, `vps_recovery_start` and `vps_recovery_stop` (reboots), `vps_snapshots_restore` and `vps_backups_restore` (overwrite the disk), `vps_snapshots_create` (replaces the snapshot). A request to fix the server is not consent to any of them.
|
|
17
18
|
|