@hostinger/mcp 4.0.0 → 4.0.2

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 (65) hide show
  1. package/.github/workflows/build-release.yaml +26 -14
  2. package/CHANGELOG.md +19 -0
  3. package/gemini-extension.json +1 -1
  4. package/package.json +1 -1
  5. package/server.json +2 -2
  6. package/skills/headless/VERSION +3 -3
  7. package/src/core/runtime.js +10 -2
  8. package/src/core/runtime.ts +13 -2
  9. package/src/core/tools/agency-hosting.js +58 -12
  10. package/src/core/tools/agency-hosting.ts +59 -12
  11. package/src/core/tools/agent-readiness.js +4 -1
  12. package/src/core/tools/agent-readiness.ts +5 -1
  13. package/src/core/tools/all.js +1002 -149
  14. package/src/core/tools/all.ts +1003 -149
  15. package/src/core/tools/billing.js +11 -2
  16. package/src/core/tools/billing.ts +12 -2
  17. package/src/core/tools/dns.js +56 -5
  18. package/src/core/tools/dns.ts +57 -5
  19. package/src/core/tools/domains.js +90 -15
  20. package/src/core/tools/domains.ts +91 -15
  21. package/src/core/tools/ecommerce.js +95 -14
  22. package/src/core/tools/ecommerce.ts +96 -14
  23. package/src/core/tools/gpu.js +14 -2
  24. package/src/core/tools/gpu.ts +15 -2
  25. package/src/core/tools/horizons.js +12 -3
  26. package/src/core/tools/horizons.ts +13 -3
  27. package/src/core/tools/hosting.js +148 -14
  28. package/src/core/tools/hosting.ts +149 -14
  29. package/src/core/tools/mail.js +59 -10
  30. package/src/core/tools/mail.ts +60 -10
  31. package/src/core/tools/reach.js +221 -32
  32. package/src/core/tools/reach.ts +222 -32
  33. package/src/core/tools/vps.js +119 -21
  34. package/src/core/tools/vps.ts +120 -21
  35. package/src/core/tools/wordpress.js +118 -21
  36. package/src/core/tools/wordpress.ts +119 -21
  37. package/src/servers/agency-hosting.js +1 -1
  38. package/src/servers/agency-hosting.ts +1 -1
  39. package/src/servers/agent-readiness.js +1 -1
  40. package/src/servers/agent-readiness.ts +1 -1
  41. package/src/servers/all.js +1 -1
  42. package/src/servers/all.ts +1 -1
  43. package/src/servers/billing.js +1 -1
  44. package/src/servers/billing.ts +1 -1
  45. package/src/servers/dns.js +1 -1
  46. package/src/servers/dns.ts +1 -1
  47. package/src/servers/domains.js +1 -1
  48. package/src/servers/domains.ts +1 -1
  49. package/src/servers/ecommerce.js +1 -1
  50. package/src/servers/ecommerce.ts +1 -1
  51. package/src/servers/gpu.js +1 -1
  52. package/src/servers/gpu.ts +1 -1
  53. package/src/servers/horizons.js +1 -1
  54. package/src/servers/horizons.ts +1 -1
  55. package/src/servers/hosting.js +1 -1
  56. package/src/servers/hosting.ts +1 -1
  57. package/src/servers/mail.js +1 -1
  58. package/src/servers/mail.ts +1 -1
  59. package/src/servers/reach.js +1 -1
  60. package/src/servers/reach.ts +1 -1
  61. package/src/servers/vps.js +1 -1
  62. package/src/servers/vps.ts +1 -1
  63. package/src/servers/wordpress.js +1 -1
  64. package/src/servers/wordpress.ts +1 -1
  65. package/types.d.ts +40 -0
@@ -151,30 +151,42 @@ jobs:
151
151
  tar xzf mcp-publisher.tar.gz mcp-publisher
152
152
  chmod +x ./mcp-publisher
153
153
 
154
+ # The registry validates the npm version in server.json by fetching
155
+ # registry.npmjs.org/<package>/<version>, and a fresh npm publish takes
156
+ # minutes to show up there. Poll that same URL ourselves instead of
157
+ # retrying the publish: the registry login token expires after ~5 minutes,
158
+ # so logging in before the wait made late retries fail with 401.
159
+ - name: Wait for the npm version to be available
160
+ run: |
161
+ PKG=$(jq -r '.packages[] | select(.registryType == "npm") | .identifier' server.json)
162
+ VERSION=$(jq -r '.packages[] | select(.registryType == "npm") | .version' server.json)
163
+ URL="https://registry.npmjs.org/${PKG/\//%2F}/$VERSION"
164
+ for _ in $(seq 1 60); do
165
+ if curl -fsS -o /dev/null "$URL"; then
166
+ echo "$PKG@$VERSION is available on npm."
167
+ exit 0
168
+ fi
169
+ echo "$PKG@$VERSION not on npm yet. Checking again in 15s."
170
+ sleep 15
171
+ done
172
+ echo "$PKG@$VERSION still not on npm after 15 minutes."
173
+ exit 1
174
+
154
175
  - name: Login to MCP Registry using GitHub OIDC
155
176
  run: ./mcp-publisher login github-oidc
156
177
 
157
- # The registry validates that the npm version in server.json actually
158
- # exists, and npm says a fresh publish "may take a few minutes to become
159
- # available" — so this job reliably loses the race with the publish-npmjs
160
- # job it depends on and 400s with "version was not found (status: 404)".
161
- # Retry until npm catches up. The backoff totals ~7.5 minutes, well past
162
- # the propagation delays seen in practice (~3 minutes); if it is still
163
- # failing by then it is not a propagation problem and notify-failure
164
- # should page.
178
+ # npm is served from a CDN, so the registry's edge can lag the one we
179
+ # polled by a little. Retry briefly, well inside the login token lifetime.
165
180
  - name: Publish to MCP Registry
166
181
  run: |
167
- for delay in 30 60 120 240 0; do
182
+ for delay in 30 30 0; do
168
183
  if ./mcp-publisher publish; then
169
184
  exit 0
170
185
  fi
171
- if [ "$delay" -eq 0 ]; then
172
- break
173
- fi
174
- echo "Publish failed — npm may not have propagated yet. Retrying in ${delay}s."
186
+ [ "$delay" -eq 0 ] && break
187
+ echo "Publish failed. Retrying in ${delay}s."
175
188
  sleep "$delay"
176
189
  done
177
- echo "MCP registry publish still failing after all retries."
178
190
  exit 1
179
191
 
180
192
  notify-failure:
package/CHANGELOG.md CHANGED
@@ -4,6 +4,25 @@ 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.0.2 — 2026-11-16
8
+
9
+ ### Operations
10
+
11
+ - Updated the bodyParameters of 160 tools (of 465)
12
+
13
+ ### Also in this release
14
+
15
+ - Bundled agent skills: `skills/headless/VERSION`
16
+ - Request handling and authentication: `src/core/runtime.js`, `src/core/runtime.ts`
17
+ - Build and packaging: `types.d.ts`
18
+
19
+ ## v4.0.1 — 2026-11-13
20
+
21
+ ### Also in this release
22
+
23
+ - Release automation: `.github/workflows/build-release.yaml`
24
+ - Bundled agent skills: `skills/headless/VERSION`
25
+
7
26
  ## v4.0.0 — 2026-11-13
8
27
 
9
28
  ### Operations
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-mcp",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
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/mcp",
3
- "version": "4.0.0",
3
+ "version": "4.0.2",
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": "4.0.0",
20
+ "version": "4.0.2",
21
21
  "packages": [
22
22
  {
23
23
  "registryType": "npm",
24
24
  "identifier": "@hostinger/mcp",
25
- "version": "4.0.0",
25
+ "version": "4.0.2",
26
26
  "transport": {
27
27
  "type": "stdio"
28
28
  },
@@ -1,3 +1,3 @@
1
- version=4.0.0
2
- commit=1ce0eee3ab97
3
- built=2026-11-13
1
+ version=4.0.2
2
+ commit=8ff450b98545
3
+ built=2026-11-16
@@ -2513,9 +2513,17 @@ class MCPServer {
2513
2513
  config.headers['Authorization'] = `Bearer ${bearerToken}`;
2514
2514
 
2515
2515
  // Add parameters based on request method
2516
- if (["GET", "DELETE"].includes(method)) {
2517
- // For GET/DELETE, send params as query string
2516
+ if (method === "GET") {
2518
2517
  config.params = { ...(config.params || {}), ...requestParams };
2518
+ } else if (method === "DELETE") {
2519
+ const bodyNames = tool.bodyParameters || [];
2520
+ const body = Object.fromEntries(Object.entries(requestParams).filter(([key]) => bodyNames.includes(key)));
2521
+ const query = Object.fromEntries(Object.entries(requestParams).filter(([key]) => !bodyNames.includes(key)));
2522
+ config.params = { ...(config.params || {}), ...query };
2523
+ if (Object.keys(body).length > 0) {
2524
+ config.data = body;
2525
+ config.headers["Content-Type"] = "application/json";
2526
+ }
2519
2527
  } else {
2520
2528
  // For POST/PUT/PATCH, send params as JSON body
2521
2529
  config.data = requestParams;
@@ -42,6 +42,7 @@ interface OpenApiTool extends Tool {
42
42
  handlerMethod?: string;
43
43
  templateFile?: string;
44
44
  templateFileTS?: string;
45
+ bodyParameters?: string[];
45
46
  }
46
47
 
47
48
  interface SecurityScheme {
@@ -2571,9 +2572,19 @@ class MCPServer {
2571
2572
  }
2572
2573
 
2573
2574
  // Add parameters based on request method
2574
- if (["GET", "DELETE"].includes(method)) {
2575
- // For GET/DELETE, send params as query string
2575
+ if (method === "GET") {
2576
2576
  config.params = { ...(config.params || {}), ...requestParams };
2577
+ } else if (method === "DELETE") {
2578
+ const bodyNames = tool.bodyParameters ?? [];
2579
+ const body = Object.fromEntries(Object.entries(requestParams).filter(([key]) => bodyNames.includes(key)));
2580
+ const query = Object.fromEntries(Object.entries(requestParams).filter(([key]) => !bodyNames.includes(key)));
2581
+ config.params = { ...(config.params || {}), ...query };
2582
+ if (Object.keys(body).length > 0) {
2583
+ config.data = body;
2584
+ if (config.headers) {
2585
+ config.headers["Content-Type"] = "application/json";
2586
+ }
2587
+ }
2577
2588
  } else {
2578
2589
  // For POST/PUT/PATCH, send params as JSON body
2579
2590
  config.data = requestParams;
@@ -200,7 +200,10 @@ export default [
200
200
  "apiToken": []
201
201
  }
202
202
  ],
203
- "group": "agency-hosting"
203
+ "group": "agency-hosting",
204
+ "bodyParameters": [
205
+ "domain"
206
+ ]
204
207
  },
205
208
  {
206
209
  "name": "agency-hosting_domains_link-to-website",
@@ -235,7 +238,10 @@ export default [
235
238
  "apiToken": []
236
239
  }
237
240
  ],
238
- "group": "agency-hosting"
241
+ "group": "agency-hosting",
242
+ "bodyParameters": [
243
+ "domain"
244
+ ]
239
245
  },
240
246
  {
241
247
  "name": "agency-hosting_domains_list",
@@ -376,7 +382,10 @@ export default [
376
382
  "apiToken": []
377
383
  }
378
384
  ],
379
- "group": "agency-hosting"
385
+ "group": "agency-hosting",
386
+ "bodyParameters": [
387
+ "archive_name"
388
+ ]
380
389
  },
381
390
  {
382
391
  "name": "agency-hosting_metrics_list-plan-order-disk-usage",
@@ -559,7 +568,10 @@ export default [
559
568
  "apiToken": []
560
569
  }
561
570
  ],
562
- "group": "agency-hosting"
571
+ "group": "agency-hosting",
572
+ "bodyParameters": [
573
+ "extensions"
574
+ ]
563
575
  },
564
576
  {
565
577
  "name": "agency-hosting_php_list-options-for-website",
@@ -643,7 +655,10 @@ export default [
643
655
  "apiToken": []
644
656
  }
645
657
  ],
646
- "group": "agency-hosting"
658
+ "group": "agency-hosting",
659
+ "bodyParameters": [
660
+ "options"
661
+ ]
647
662
  },
648
663
  {
649
664
  "name": "agency-hosting_php_list-versions-for-order",
@@ -739,7 +754,10 @@ export default [
739
754
  "apiToken": []
740
755
  }
741
756
  ],
742
- "group": "agency-hosting"
757
+ "group": "agency-hosting",
758
+ "bodyParameters": [
759
+ "version"
760
+ ]
743
761
  },
744
762
  {
745
763
  "name": "agency-hosting_website-setups_create",
@@ -855,7 +873,15 @@ export default [
855
873
  "apiToken": []
856
874
  }
857
875
  ],
858
- "group": "agency-hosting"
876
+ "group": "agency-hosting",
877
+ "bodyParameters": [
878
+ "datacenter_code",
879
+ "flavor",
880
+ "settings",
881
+ "domain",
882
+ "type",
883
+ "wordpress"
884
+ ]
859
885
  },
860
886
  {
861
887
  "name": "agency-hosting_website-setups_status",
@@ -1066,7 +1092,10 @@ export default [
1066
1092
  "apiToken": []
1067
1093
  }
1068
1094
  ],
1069
- "group": "agency-hosting"
1095
+ "group": "agency-hosting",
1096
+ "bodyParameters": [
1097
+ "archive_path"
1098
+ ]
1070
1099
  },
1071
1100
  {
1072
1101
  "name": "agency-hosting_cache_clear-website",
@@ -1175,7 +1204,11 @@ export default [
1175
1204
  "apiToken": []
1176
1205
  }
1177
1206
  ],
1178
- "group": "agency-hosting"
1207
+ "group": "agency-hosting",
1208
+ "bodyParameters": [
1209
+ "time",
1210
+ "command"
1211
+ ]
1179
1212
  },
1180
1213
  {
1181
1214
  "name": "agency-hosting_cron-jobs_delete-website",
@@ -1294,7 +1327,12 @@ export default [
1294
1327
  "apiToken": []
1295
1328
  }
1296
1329
  ],
1297
- "group": "agency-hosting"
1330
+ "group": "agency-hosting",
1331
+ "bodyParameters": [
1332
+ "database_name",
1333
+ "database_user",
1334
+ "password"
1335
+ ]
1298
1336
  },
1299
1337
  {
1300
1338
  "name": "agency-hosting_databases_delete-website",
@@ -1379,7 +1417,12 @@ export default [
1379
1417
  "apiToken": []
1380
1418
  }
1381
1419
  ],
1382
- "group": "agency-hosting"
1420
+ "group": "agency-hosting",
1421
+ "bodyParameters": [
1422
+ "database_user",
1423
+ "password",
1424
+ "host"
1425
+ ]
1383
1426
  },
1384
1427
  {
1385
1428
  "name": "agency-hosting_databases_delete-website-user",
@@ -1621,7 +1664,10 @@ export default [
1621
1664
  "apiToken": []
1622
1665
  }
1623
1666
  ],
1624
- "group": "agency-hosting"
1667
+ "group": "agency-hosting",
1668
+ "bodyParameters": [
1669
+ "version"
1670
+ ]
1625
1671
  },
1626
1672
  {
1627
1673
  "name": "agency-hosting_wordpress_settings",
@@ -16,6 +16,7 @@ export interface OpenApiTool extends Tool {
16
16
  handlerMethod?: string;
17
17
  templateFile?: string;
18
18
  templateFileTS?: string;
19
+ bodyParameters?: string[];
19
20
  }
20
21
 
21
22
  const tools: OpenApiTool[] = [
@@ -219,7 +220,10 @@ const tools: OpenApiTool[] = [
219
220
  "apiToken": []
220
221
  }
221
222
  ],
222
- "group": "agency-hosting"
223
+ "group": "agency-hosting",
224
+ "bodyParameters": [
225
+ "domain"
226
+ ]
223
227
  },
224
228
  {
225
229
  "name": "agency-hosting_domains_link-to-website",
@@ -254,7 +258,10 @@ const tools: OpenApiTool[] = [
254
258
  "apiToken": []
255
259
  }
256
260
  ],
257
- "group": "agency-hosting"
261
+ "group": "agency-hosting",
262
+ "bodyParameters": [
263
+ "domain"
264
+ ]
258
265
  },
259
266
  {
260
267
  "name": "agency-hosting_domains_list",
@@ -395,7 +402,10 @@ const tools: OpenApiTool[] = [
395
402
  "apiToken": []
396
403
  }
397
404
  ],
398
- "group": "agency-hosting"
405
+ "group": "agency-hosting",
406
+ "bodyParameters": [
407
+ "archive_name"
408
+ ]
399
409
  },
400
410
  {
401
411
  "name": "agency-hosting_metrics_list-plan-order-disk-usage",
@@ -578,7 +588,10 @@ const tools: OpenApiTool[] = [
578
588
  "apiToken": []
579
589
  }
580
590
  ],
581
- "group": "agency-hosting"
591
+ "group": "agency-hosting",
592
+ "bodyParameters": [
593
+ "extensions"
594
+ ]
582
595
  },
583
596
  {
584
597
  "name": "agency-hosting_php_list-options-for-website",
@@ -662,7 +675,10 @@ const tools: OpenApiTool[] = [
662
675
  "apiToken": []
663
676
  }
664
677
  ],
665
- "group": "agency-hosting"
678
+ "group": "agency-hosting",
679
+ "bodyParameters": [
680
+ "options"
681
+ ]
666
682
  },
667
683
  {
668
684
  "name": "agency-hosting_php_list-versions-for-order",
@@ -758,7 +774,10 @@ const tools: OpenApiTool[] = [
758
774
  "apiToken": []
759
775
  }
760
776
  ],
761
- "group": "agency-hosting"
777
+ "group": "agency-hosting",
778
+ "bodyParameters": [
779
+ "version"
780
+ ]
762
781
  },
763
782
  {
764
783
  "name": "agency-hosting_website-setups_create",
@@ -874,7 +893,15 @@ const tools: OpenApiTool[] = [
874
893
  "apiToken": []
875
894
  }
876
895
  ],
877
- "group": "agency-hosting"
896
+ "group": "agency-hosting",
897
+ "bodyParameters": [
898
+ "datacenter_code",
899
+ "flavor",
900
+ "settings",
901
+ "domain",
902
+ "type",
903
+ "wordpress"
904
+ ]
878
905
  },
879
906
  {
880
907
  "name": "agency-hosting_website-setups_status",
@@ -1085,7 +1112,10 @@ const tools: OpenApiTool[] = [
1085
1112
  "apiToken": []
1086
1113
  }
1087
1114
  ],
1088
- "group": "agency-hosting"
1115
+ "group": "agency-hosting",
1116
+ "bodyParameters": [
1117
+ "archive_path"
1118
+ ]
1089
1119
  },
1090
1120
  {
1091
1121
  "name": "agency-hosting_cache_clear-website",
@@ -1194,7 +1224,11 @@ const tools: OpenApiTool[] = [
1194
1224
  "apiToken": []
1195
1225
  }
1196
1226
  ],
1197
- "group": "agency-hosting"
1227
+ "group": "agency-hosting",
1228
+ "bodyParameters": [
1229
+ "time",
1230
+ "command"
1231
+ ]
1198
1232
  },
1199
1233
  {
1200
1234
  "name": "agency-hosting_cron-jobs_delete-website",
@@ -1313,7 +1347,12 @@ const tools: OpenApiTool[] = [
1313
1347
  "apiToken": []
1314
1348
  }
1315
1349
  ],
1316
- "group": "agency-hosting"
1350
+ "group": "agency-hosting",
1351
+ "bodyParameters": [
1352
+ "database_name",
1353
+ "database_user",
1354
+ "password"
1355
+ ]
1317
1356
  },
1318
1357
  {
1319
1358
  "name": "agency-hosting_databases_delete-website",
@@ -1398,7 +1437,12 @@ const tools: OpenApiTool[] = [
1398
1437
  "apiToken": []
1399
1438
  }
1400
1439
  ],
1401
- "group": "agency-hosting"
1440
+ "group": "agency-hosting",
1441
+ "bodyParameters": [
1442
+ "database_user",
1443
+ "password",
1444
+ "host"
1445
+ ]
1402
1446
  },
1403
1447
  {
1404
1448
  "name": "agency-hosting_databases_delete-website-user",
@@ -1640,7 +1684,10 @@ const tools: OpenApiTool[] = [
1640
1684
  "apiToken": []
1641
1685
  }
1642
1686
  ],
1643
- "group": "agency-hosting"
1687
+ "group": "agency-hosting",
1688
+ "bodyParameters": [
1689
+ "version"
1690
+ ]
1644
1691
  },
1645
1692
  {
1646
1693
  "name": "agency-hosting_wordpress_settings",
@@ -102,7 +102,10 @@ export default [
102
102
  "apiToken": []
103
103
  }
104
104
  ],
105
- "group": "agent-readiness"
105
+ "group": "agent-readiness",
106
+ "bodyParameters": [
107
+ "domain"
108
+ ]
106
109
  },
107
110
  {
108
111
  "name": "agent-readiness_scans_get",
@@ -16,6 +16,7 @@ export interface OpenApiTool extends Tool {
16
16
  handlerMethod?: string;
17
17
  templateFile?: string;
18
18
  templateFileTS?: string;
19
+ bodyParameters?: string[];
19
20
  }
20
21
 
21
22
  const tools: OpenApiTool[] = [
@@ -121,7 +122,10 @@ const tools: OpenApiTool[] = [
121
122
  "apiToken": []
122
123
  }
123
124
  ],
124
- "group": "agent-readiness"
125
+ "group": "agent-readiness",
126
+ "bodyParameters": [
127
+ "domain"
128
+ ]
125
129
  },
126
130
  {
127
131
  "name": "agent-readiness_scans_get",