hostinger-api-mcp 1.5.0 → 1.5.3
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/README.md +140 -32
- package/gemini-extension.json +1 -1
- package/package.json +3 -2
- package/server.json +2 -2
- package/src/core/runtime.js +1 -1
- package/src/core/runtime.ts +1 -1
- package/src/core/tools/agency-hosting.js +434 -0
- package/src/core/tools/agency-hosting.ts +445 -0
- package/src/core/tools/all.js +448 -65
- package/src/core/tools/all.ts +448 -65
- package/src/core/tools/hosting.js +17 -65
- package/src/core/tools/hosting.ts +17 -65
- package/src/servers/agency-hosting.js +6 -0
- package/src/servers/agency-hosting.ts +6 -0
- 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/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/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/types.d.ts +268 -45
package/README.md
CHANGED
|
@@ -49,13 +49,14 @@ pnpm update -g hostinger-api-mcp
|
|
|
49
49
|
|
|
50
50
|
This package installs the following MCP server commands:
|
|
51
51
|
|
|
52
|
-
- `hostinger-api-mcp` — unified server with every tool (
|
|
52
|
+
- `hostinger-api-mcp` — unified server with every tool (212 total)
|
|
53
|
+
- `hostinger-agency-hosting-mcp` — 11 tools for agency-hosting
|
|
53
54
|
- `hostinger-billing-mcp` — 7 tools for billing
|
|
54
55
|
- `hostinger-dns-mcp` — 8 tools for dns
|
|
55
56
|
- `hostinger-domains-mcp` — 18 tools for domains
|
|
56
57
|
- `hostinger-ecommerce-mcp` — 12 tools for ecommerce
|
|
57
58
|
- `hostinger-horizons-mcp` — 2 tools for horizons
|
|
58
|
-
- `hostinger-hosting-mcp` —
|
|
59
|
+
- `hostinger-hosting-mcp` — 45 tools for hosting
|
|
59
60
|
- `hostinger-reach-mcp` — 12 tools for reach
|
|
60
61
|
- `hostinger-vps-mcp` — 62 tools for vps
|
|
61
62
|
- `hostinger-wordpress-mcp` — 35 tools for wordpress
|
|
@@ -200,6 +201,130 @@ console.log("Tool result:", result);
|
|
|
200
201
|
|
|
201
202
|
This MCP server provides the following tools:
|
|
202
203
|
|
|
204
|
+
### `hostinger-agency-hosting-mcp`
|
|
205
|
+
|
|
206
|
+
#### agency-hosting_listAvailableDatacentersForAnAgencyPlanOrderV1
|
|
207
|
+
|
|
208
|
+
Lists the datacenters available for provisioning a new website on the given Agency Plan
|
|
209
|
+
hosting order.
|
|
210
|
+
|
|
211
|
+
Each datacenter includes a `pinger_url` you can ping from the client to measure round-trip
|
|
212
|
+
latency; comparing the results across datacenters lets you pick the nearest one (lowest
|
|
213
|
+
ping) before choosing its `code` as the `datacenter_code` when creating a website setup.
|
|
214
|
+
|
|
215
|
+
- **Method**: `GET`
|
|
216
|
+
- **Path**: `/api/agency-hosting/v1/orders/{order_id}/datacenters`
|
|
217
|
+
|
|
218
|
+
#### agency-hosting_changeAgencyPlanWebsiteDomainV1
|
|
219
|
+
|
|
220
|
+
Changes the primary domain for an Agency Plan website.
|
|
221
|
+
|
|
222
|
+
Provide the current domain in the path and the new domain in the request body.
|
|
223
|
+
Set domain to null to revert to the temporary domain.
|
|
224
|
+
|
|
225
|
+
- **Method**: `PUT`
|
|
226
|
+
- **Path**: `/api/agency-hosting/v1/websites/{website_uid}/domains/{from_domain}`
|
|
227
|
+
|
|
228
|
+
#### agency-hosting_linkDomainToAgencyPlanWebsiteV1
|
|
229
|
+
|
|
230
|
+
Links a domain to the specified Agency Plan website so it can serve traffic for that domain.
|
|
231
|
+
|
|
232
|
+
- **Method**: `POST`
|
|
233
|
+
- **Path**: `/api/agency-hosting/v1/websites/{website_uid}/domains`
|
|
234
|
+
|
|
235
|
+
#### agency-hosting_listAgencyPlanDomainsV1
|
|
236
|
+
|
|
237
|
+
Returns a paginated list of domains associated with Agency Plan websites accessible to the authenticated client.
|
|
238
|
+
|
|
239
|
+
Use the website_uuids filter to narrow results to specific websites.
|
|
240
|
+
|
|
241
|
+
- **Method**: `GET`
|
|
242
|
+
- **Path**: `/api/agency-hosting/v1/domains`
|
|
243
|
+
|
|
244
|
+
#### agency-hosting_unlinkDomainFromAgencyPlanWebsiteV1
|
|
245
|
+
|
|
246
|
+
Unlinks a domain from the specified Agency Plan website.
|
|
247
|
+
|
|
248
|
+
The website stops serving traffic on this domain immediately.
|
|
249
|
+
|
|
250
|
+
Website files and database are preserved, and any other linked domains remain accessible.
|
|
251
|
+
|
|
252
|
+
If this is the only domain on the website, unlinking leaves the website without an accessible domain.
|
|
253
|
+
|
|
254
|
+
- **Method**: `DELETE`
|
|
255
|
+
- **Path**: `/api/agency-hosting/v1/websites/{website_uid}/domains/{domain}`
|
|
256
|
+
|
|
257
|
+
#### agency-hosting_provisionANewAgencyPlanWebsiteV1
|
|
258
|
+
|
|
259
|
+
Provisions a new website on one of your Agency Plan hosting orders.
|
|
260
|
+
|
|
261
|
+
Choose the datacenter, stack (`flavor`), and PHP version for the site. Optionally attach
|
|
262
|
+
your own `domain` — omit it, set it to `null`, or leave it unavailable and a free
|
|
263
|
+
`*.hostingersite.com` subdomain is generated instead — and/or install WordPress by
|
|
264
|
+
supplying the `wordpress` details (admin account, site title, and language).
|
|
265
|
+
|
|
266
|
+
Common setups:
|
|
267
|
+
- **Plain PHP site**: `flavor` set to `php-fpm`, with `settings.php.version`; omit
|
|
268
|
+
`wordpress` and `type`.
|
|
269
|
+
- **WordPress site**: `flavor` set to the desired WordPress version (e.g. `wp-7.0`), plus
|
|
270
|
+
the `wordpress` block (admin account, title, language).
|
|
271
|
+
- **Static/Node.js frontend app**: `flavor` set to `php-fpm` and `type` set to
|
|
272
|
+
`node-static`.
|
|
273
|
+
|
|
274
|
+
Provisioning runs in the background, so the response returns immediately with a setup UUID
|
|
275
|
+
that identifies the job. The new website becomes reachable once provisioning finishes.
|
|
276
|
+
|
|
277
|
+
- **Method**: `POST`
|
|
278
|
+
- **Path**: `/api/agency-hosting/v1/orders/{order_id}/websites/setups`
|
|
279
|
+
|
|
280
|
+
#### agency-hosting_getAgencyPlanWebsiteSetupStatusV1
|
|
281
|
+
|
|
282
|
+
Returns the current status of an Agency Plan website setup started via the setups
|
|
283
|
+
endpoint.
|
|
284
|
+
|
|
285
|
+
Poll this endpoint using the `setup_uuid` returned from the provisioning request until
|
|
286
|
+
`status` becomes `completed`, at which point `website_uid` identifies the new website.
|
|
287
|
+
|
|
288
|
+
- **Method**: `GET`
|
|
289
|
+
- **Path**: `/api/agency-hosting/v1/orders/{order_id}/websites/setups/{setup_uuid}`
|
|
290
|
+
|
|
291
|
+
#### agency-hosting_buildAgencyPlanWebsiteNodeJSAssetsV1
|
|
292
|
+
|
|
293
|
+
Builds and deploys a Node.js application for an Agency Plan website from an already-uploaded archive.
|
|
294
|
+
|
|
295
|
+
Upload the archive to file browser first, then provide its relative path from document root in this request.
|
|
296
|
+
Website contents are overwritten by the build result, which is deployed to public_html.
|
|
297
|
+
|
|
298
|
+
- **Method**: `POST`
|
|
299
|
+
- **Path**: `/api/agency-hosting/v1/websites/{website_uid}/build-assets`
|
|
300
|
+
|
|
301
|
+
#### agency-hosting_getAgencyPlanWebsiteDetailsV1
|
|
302
|
+
|
|
303
|
+
Retrieves detailed information about a specific Agency Plan website, including configuration,
|
|
304
|
+
status, metadata, hosting plan details, and resource quotas.
|
|
305
|
+
|
|
306
|
+
- **Method**: `GET`
|
|
307
|
+
- **Path**: `/api/agency-hosting/v1/websites/{website_uid}`
|
|
308
|
+
|
|
309
|
+
#### agency-hosting_deleteAgencyPlanWebsiteV1
|
|
310
|
+
|
|
311
|
+
Deletes an Agency Plan website and schedules cleanup of its resources.
|
|
312
|
+
|
|
313
|
+
This action is irreversible. Website files, databases, and linked domains are removed.
|
|
314
|
+
|
|
315
|
+
- **Method**: `DELETE`
|
|
316
|
+
- **Path**: `/api/agency-hosting/v1/websites/{website_uid}`
|
|
317
|
+
|
|
318
|
+
#### agency-hosting_listRunningAgencyPlanWebsiteProcessesV1
|
|
319
|
+
|
|
320
|
+
Lists active and recently completed asynchronous processes for an Agency Plan website.
|
|
321
|
+
|
|
322
|
+
Each process has a unique ID (for tracking), a type, and a status (running, completed, failed).
|
|
323
|
+
Poll this endpoint after initiating async operations (SSL setup, backups, cloning) to track progress.
|
|
324
|
+
|
|
325
|
+
- **Method**: `GET`
|
|
326
|
+
- **Path**: `/api/agency-hosting/v1/websites/{website_uid}/processes`
|
|
327
|
+
|
|
203
328
|
### `hostinger-billing-mcp`
|
|
204
329
|
|
|
205
330
|
#### billing_getCatalogItemListV1
|
|
@@ -754,44 +879,27 @@ installation living in a subdirectory, pass the directory query parameter to cle
|
|
|
754
879
|
- **Method**: `DELETE`
|
|
755
880
|
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/cache/clear`
|
|
756
881
|
|
|
757
|
-
####
|
|
882
|
+
#### hosting_toggleCachelessModeV1
|
|
758
883
|
|
|
759
|
-
Turns
|
|
884
|
+
Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing
|
|
885
|
+
is cached, effectively turning off all caching for the website; use it while actively developing,
|
|
886
|
+
testing changes, debugging issues, or when real-time updates must be visible. Disable it after
|
|
760
887
|
finishing development work to restore the performance benefits of caching.
|
|
761
888
|
|
|
762
889
|
- **Method**: `PATCH`
|
|
763
|
-
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/
|
|
764
|
-
|
|
765
|
-
#### hosting_disableWebsiteCacheV1
|
|
766
|
-
|
|
767
|
-
Turns off server-side caching for the website until it is enabled again. May impact performance.
|
|
768
|
-
Use it when experiencing cache-related issues; to temporarily bypass caching while developing
|
|
769
|
-
or debugging, prefer enabling cacheless mode instead.
|
|
770
|
-
|
|
771
|
-
Does nothing if caching is already disabled.
|
|
772
|
-
|
|
773
|
-
- **Method**: `PATCH`
|
|
774
|
-
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/cache/disable`
|
|
775
|
-
|
|
776
|
-
#### hosting_enableCachelessModeV1
|
|
777
|
-
|
|
778
|
-
Enables development (cacheless) mode where nothing is cached, effectively turning off all
|
|
779
|
-
caching for the website. Use it while actively developing, testing changes, debugging issues,
|
|
780
|
-
or when real-time updates must be visible. Disable cacheless mode afterwards to restore
|
|
781
|
-
normal caching.
|
|
782
|
-
|
|
783
|
-
- **Method**: `PATCH`
|
|
784
|
-
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/enable`
|
|
890
|
+
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/toggle`
|
|
785
891
|
|
|
786
|
-
####
|
|
892
|
+
#### hosting_toggleWebsiteCacheV1
|
|
787
893
|
|
|
788
|
-
Turns
|
|
789
|
-
loads, reduced server load,
|
|
894
|
+
Turns server-side caching for the website on or off, based on the enabled flag. Enable it for
|
|
895
|
+
faster page loads, reduced server load, and improved user experience; recommended for production
|
|
896
|
+
websites. Disabling may impact performance; to temporarily bypass caching while developing or
|
|
897
|
+
debugging, prefer toggling cacheless mode instead.
|
|
790
898
|
|
|
791
|
-
Does nothing if caching is already
|
|
899
|
+
Does nothing if caching is already in the requested state.
|
|
792
900
|
|
|
793
901
|
- **Method**: `PATCH`
|
|
794
|
-
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/cache/
|
|
902
|
+
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/cache/toggle`
|
|
795
903
|
|
|
796
904
|
#### hosting_listAccountCronJobsV1
|
|
797
905
|
|
|
@@ -1055,7 +1163,7 @@ Log content may contain ANSI escape sequences (color codes).
|
|
|
1055
1163
|
- **Method**: `GET`
|
|
1056
1164
|
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid}/logs`
|
|
1057
1165
|
|
|
1058
|
-
####
|
|
1166
|
+
#### hosting_restartNode_jsApplicationV1
|
|
1059
1167
|
|
|
1060
1168
|
Restarts the Node.js server process for the website. Does not rebuild or redeploy the
|
|
1061
1169
|
application. Use it to apply environment or configuration changes, or to recover a hung
|
package/gemini-extension.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hostinger-api-mcp",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"mcpName": "io.github.hostinger/hostinger-api-mcp",
|
|
5
5
|
"description": "MCP server for Hostinger API",
|
|
6
6
|
"repository": {
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"main": "./src/servers/all.js",
|
|
20
20
|
"bin": {
|
|
21
21
|
"hostinger-api-mcp": "./src/servers/all.js",
|
|
22
|
+
"hostinger-agency-hosting-mcp": "./src/servers/agency-hosting.js",
|
|
22
23
|
"hostinger-billing-mcp": "./src/servers/billing.js",
|
|
23
24
|
"hostinger-dns-mcp": "./src/servers/dns.js",
|
|
24
25
|
"hostinger-domains-mcp": "./src/servers/domains.js",
|
|
@@ -44,7 +45,7 @@
|
|
|
44
45
|
"tus-js-client": "^4.1.0"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
|
-
"@types/node": "^
|
|
48
|
+
"@types/node": "^26.1.1",
|
|
48
49
|
"@types/express": "^5.0.0",
|
|
49
50
|
"@types/cors": "^2.8.17",
|
|
50
51
|
"@types/minimist": "^1.2.5",
|
package/server.json
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"url": "https://github.com/hostinger/api-mcp-server",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "1.5.
|
|
9
|
+
"version": "1.5.3",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "hostinger-api-mcp",
|
|
14
|
-
"version": "1.5.
|
|
14
|
+
"version": "1.5.3",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
},
|
package/src/core/runtime.js
CHANGED
package/src/core/runtime.ts
CHANGED