hostinger-api-mcp 3.14.0 → 3.15.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.
- package/CHANGELOG.md +28 -0
- package/README.md +32 -3
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/skills/headless/steps/01-check-state/SKILL.md +3 -3
- package/src/core/runtime.js +51 -1
- package/src/core/runtime.ts +51 -1
- package/src/core/skills.js +3 -3
- package/src/core/skills.ts +3 -3
- package/src/core/tools/all.js +107 -2
- package/src/core/tools/all.ts +107 -2
- package/src/core/tools/hosting.js +107 -2
- package/src/core/tools/hosting.ts +107 -2
- 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/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/types.d.ts +54 -1
package/types.d.ts
CHANGED
|
@@ -287,6 +287,27 @@ export interface APITools {
|
|
|
287
287
|
response: any; // Response structure will depend on the API
|
|
288
288
|
};
|
|
289
289
|
|
|
290
|
+
/**
|
|
291
|
+
* Tell Hostinger that something happened on this website, so Hostinger services such as hPanel can react to it. `event.name` picks the event and decides which `event.params` it takes. The call changes nothing on the website.
|
|
292
|
+
*/
|
|
293
|
+
"hosting_websites_trigger-event": {
|
|
294
|
+
params: {
|
|
295
|
+
/**
|
|
296
|
+
* Username of the hosting account that owns the website, as hosting_websites_list returns it
|
|
297
|
+
*/
|
|
298
|
+
username: string;
|
|
299
|
+
/**
|
|
300
|
+
* Domain name of the website (e.g., example.com)
|
|
301
|
+
*/
|
|
302
|
+
domain: string;
|
|
303
|
+
/**
|
|
304
|
+
* Event to trigger; `name` decides which `params` it takes
|
|
305
|
+
*/
|
|
306
|
+
event: object;
|
|
307
|
+
};
|
|
308
|
+
response: any; // Response structure will depend on the API
|
|
309
|
+
};
|
|
310
|
+
|
|
290
311
|
/**
|
|
291
312
|
* Lists the datacenters available for provisioning a new website on the given Agency Plan
|
|
292
313
|
hosting order.
|
|
@@ -3410,11 +3431,42 @@ Defaults to the website root.
|
|
|
3410
3431
|
response: any; // Response structure will depend on the API
|
|
3411
3432
|
};
|
|
3412
3433
|
|
|
3434
|
+
/**
|
|
3435
|
+
* Returns the caching state of the website: whether server-side caching is enabled and whether
|
|
3436
|
+
development (cacheless) mode is on. Works for the main domain, addon websites, parked domains
|
|
3437
|
+
and subdomains of the account; each reports its own settings and does not inherit them from
|
|
3438
|
+
its parent website.
|
|
3439
|
+
|
|
3440
|
+
`is_enabled` is the setting changed by `Toggle website cache` and reflects a toggle
|
|
3441
|
+
immediately. `is_cacheless_mode_enabled` is true while development mode is on; caching is then
|
|
3442
|
+
bypassed even when `is_enabled` is true. `Toggle cacheless mode` is applied in the background,
|
|
3443
|
+
so this flag can take a few minutes to follow it.
|
|
3444
|
+
|
|
3445
|
+
The domain must be the exact website name as listed on the account, without a `www.` prefix.
|
|
3446
|
+
Returns 404 when the domain is not a website on the account.
|
|
3447
|
+
*/
|
|
3448
|
+
"hosting_cache_status": {
|
|
3449
|
+
params: {
|
|
3450
|
+
/**
|
|
3451
|
+
* username parameter
|
|
3452
|
+
*/
|
|
3453
|
+
username: string;
|
|
3454
|
+
/**
|
|
3455
|
+
* Domain name
|
|
3456
|
+
*/
|
|
3457
|
+
domain: string;
|
|
3458
|
+
};
|
|
3459
|
+
response: any; // Response structure will depend on the API
|
|
3460
|
+
};
|
|
3461
|
+
|
|
3413
3462
|
/**
|
|
3414
3463
|
* Turns development (cacheless) mode on or off, based on the enabled flag. When enabled, nothing
|
|
3415
3464
|
is cached, effectively turning off all caching for the website; use it while actively developing,
|
|
3416
3465
|
testing changes, debugging issues, or when real-time updates must be visible. Disable it after
|
|
3417
3466
|
finishing development work to restore the performance benefits of caching.
|
|
3467
|
+
|
|
3468
|
+
The change is applied in the background and can take a few minutes. Use `Get cache status` to
|
|
3469
|
+
check the current state.
|
|
3418
3470
|
*/
|
|
3419
3471
|
"hosting_cache_toggle-cacheless": {
|
|
3420
3472
|
params: {
|
|
@@ -3440,7 +3492,8 @@ faster page loads, reduced server load, and improved user experience; recommende
|
|
|
3440
3492
|
websites. Disabling may impact performance; to temporarily bypass caching while developing or
|
|
3441
3493
|
debugging, prefer toggling cacheless mode instead.
|
|
3442
3494
|
|
|
3443
|
-
Does nothing if caching is already in the requested state.
|
|
3495
|
+
Does nothing if caching is already in the requested state. Use `Get cache status` to check the
|
|
3496
|
+
current state.
|
|
3444
3497
|
*/
|
|
3445
3498
|
"hosting_cache_toggle-website": {
|
|
3446
3499
|
params: {
|