hostinger-api-mcp 1.44.0 → 1.45.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/README.md +26 -33
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
- 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 +68 -0
- package/src/core/tools/agency-hosting.ts +68 -0
- package/src/core/tools/all.js +88 -99
- package/src/core/tools/all.ts +88 -99
- package/src/core/tools/hosting.js +18 -97
- package/src/core/tools/hosting.ts +18 -97
- package/src/core/tools/wordpress.js +2 -2
- package/src/core/tools/wordpress.ts +2 -2
- package/src/servers/agency-hosting.js +1 -1
- package/src/servers/agency-hosting.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 +58 -77
package/src/servers/horizons.ts
CHANGED
package/src/servers/hosting.js
CHANGED
package/src/servers/hosting.ts
CHANGED
package/src/servers/mail.js
CHANGED
package/src/servers/mail.ts
CHANGED
package/src/servers/reach.js
CHANGED
package/src/servers/reach.ts
CHANGED
package/src/servers/vps.js
CHANGED
package/src/servers/vps.ts
CHANGED
package/src/servers/wordpress.js
CHANGED
package/src/servers/wordpress.ts
CHANGED
package/types.d.ts
CHANGED
|
@@ -872,6 +872,51 @@ resources are removed in the background.
|
|
|
872
872
|
response: any; // Response structure will depend on the API
|
|
873
873
|
};
|
|
874
874
|
|
|
875
|
+
/**
|
|
876
|
+
* Retrieve a paginated list of Agency Plan websites (H5G, Builder, and Horizons) accessible to
|
|
877
|
+
the authenticated client.
|
|
878
|
+
|
|
879
|
+
This endpoint returns websites from your hosting accounts as well as
|
|
880
|
+
websites from other client hosting accounts that have shared access
|
|
881
|
+
with you.
|
|
882
|
+
|
|
883
|
+
The response shape differs per platform — see the `platform` field on each item.
|
|
884
|
+
|
|
885
|
+
Use `website_types` to list only websites of a given detected type, e.g. only
|
|
886
|
+
WordPress websites (`website_types=wordpress`) or only Node.js websites
|
|
887
|
+
(`website_types=nodejs`). Combine with `order_ids`, `states`, or `domain` for more
|
|
888
|
+
targeted results.
|
|
889
|
+
*/
|
|
890
|
+
"agency-hosting_listAgencyPlanWebsitesV1": {
|
|
891
|
+
params: {
|
|
892
|
+
/**
|
|
893
|
+
* Page number
|
|
894
|
+
*/
|
|
895
|
+
page?: number;
|
|
896
|
+
/**
|
|
897
|
+
* Number of items per page
|
|
898
|
+
*/
|
|
899
|
+
per_page?: number;
|
|
900
|
+
/**
|
|
901
|
+
* Filter by order IDs. Accepts a comma-separated list.
|
|
902
|
+
*/
|
|
903
|
+
order_ids?: array;
|
|
904
|
+
/**
|
|
905
|
+
* Filter by website state. Accepts a comma-separated list.
|
|
906
|
+
*/
|
|
907
|
+
states?: array;
|
|
908
|
+
/**
|
|
909
|
+
* Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list.
|
|
910
|
+
*/
|
|
911
|
+
website_types?: array;
|
|
912
|
+
/**
|
|
913
|
+
* Filter by domain name (case-insensitive substring match)
|
|
914
|
+
*/
|
|
915
|
+
domain?: string;
|
|
916
|
+
};
|
|
917
|
+
response: any; // Response structure will depend on the API
|
|
918
|
+
};
|
|
919
|
+
|
|
875
920
|
/**
|
|
876
921
|
* Lists active and recently completed asynchronous processes for an Agency Plan website.
|
|
877
922
|
|
|
@@ -2660,7 +2705,7 @@ Use the domain and is_assigned filters to find databases assigned to a specific
|
|
|
2660
2705
|
*/
|
|
2661
2706
|
per_page?: number;
|
|
2662
2707
|
/**
|
|
2663
|
-
* Filter by domain name (
|
|
2708
|
+
* Filter by domain name (case-insensitive substring match)
|
|
2664
2709
|
*/
|
|
2665
2710
|
domain?: string;
|
|
2666
2711
|
/**
|
|
@@ -3251,77 +3296,6 @@ the `Get Node.js Build Logs` endpoint.
|
|
|
3251
3296
|
response: any; // Response structure will depend on the API
|
|
3252
3297
|
};
|
|
3253
3298
|
|
|
3254
|
-
/**
|
|
3255
|
-
* Upload a project archive, auto-detect build settings, and immediately start a Node.js build.
|
|
3256
|
-
|
|
3257
|
-
WARNING: on success this overwrites the website's existing contents and cannot be
|
|
3258
|
-
undone — verify this is intended before calling this endpoint.
|
|
3259
|
-
|
|
3260
|
-
This is the recommended single-step approach for deploying a Node.js application.
|
|
3261
|
-
The archive is uploaded to the website's file storage, build settings are auto-detected
|
|
3262
|
-
from the package.json inside the archive, and the build process starts automatically.
|
|
3263
|
-
Optional override fields take precedence over auto-detected values.
|
|
3264
|
-
Maximum archive size is 50MB.
|
|
3265
|
-
|
|
3266
|
-
Before archiving, exclude `node_modules/` and any build output directories
|
|
3267
|
-
(e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build
|
|
3268
|
-
process runs the install step automatically, and including them unnecessarily
|
|
3269
|
-
increases the archive size. This also helps keep the archive well under the 50MB limit.
|
|
3270
|
-
|
|
3271
|
-
Example (zip):
|
|
3272
|
-
```
|
|
3273
|
-
zip -r archive.zip . --exclude "node_modules/*" --exclude "dist/*"
|
|
3274
|
-
```
|
|
3275
|
-
|
|
3276
|
-
The returned build `uuid` can be used to poll progress and retrieve logs via
|
|
3277
|
-
the `Get Node.js Build Logs` endpoint.
|
|
3278
|
-
*/
|
|
3279
|
-
"hosting_createNodeJSBuildFromArchiveV1": {
|
|
3280
|
-
params: {
|
|
3281
|
-
/**
|
|
3282
|
-
* username parameter
|
|
3283
|
-
*/
|
|
3284
|
-
username: string;
|
|
3285
|
-
/**
|
|
3286
|
-
* Domain name
|
|
3287
|
-
*/
|
|
3288
|
-
domain: string;
|
|
3289
|
-
/**
|
|
3290
|
-
* Project archive file (.zip, .tar.gz, or .tgz), maximum 50MB
|
|
3291
|
-
*/
|
|
3292
|
-
archive: string;
|
|
3293
|
-
/**
|
|
3294
|
-
* Node.js version override (auto-detected from package.json if omitted)
|
|
3295
|
-
*/
|
|
3296
|
-
node_version?: number;
|
|
3297
|
-
/**
|
|
3298
|
-
* Node.js application type override
|
|
3299
|
-
*/
|
|
3300
|
-
app_type?: string;
|
|
3301
|
-
/**
|
|
3302
|
-
* Application root directory override (where package.json is located) relative to public_html
|
|
3303
|
-
*/
|
|
3304
|
-
root_directory?: string;
|
|
3305
|
-
/**
|
|
3306
|
-
* Build output directory override relative to the root directory
|
|
3307
|
-
*/
|
|
3308
|
-
output_directory?: string;
|
|
3309
|
-
/**
|
|
3310
|
-
* Build script override
|
|
3311
|
-
*/
|
|
3312
|
-
build_script?: string;
|
|
3313
|
-
/**
|
|
3314
|
-
* Main entry point file override
|
|
3315
|
-
*/
|
|
3316
|
-
entry_file?: string;
|
|
3317
|
-
/**
|
|
3318
|
-
* Package manager override
|
|
3319
|
-
*/
|
|
3320
|
-
package_manager?: string;
|
|
3321
|
-
};
|
|
3322
|
-
response: any; // Response structure will depend on the API
|
|
3323
|
-
};
|
|
3324
|
-
|
|
3325
3299
|
/**
|
|
3326
3300
|
* Auto-detect Node.js build settings from a package.json inside an archive already on the server.
|
|
3327
3301
|
|
|
@@ -3728,8 +3702,11 @@ website detected on the underlying platform (`wordpress`, `builder`,
|
|
|
3728
3702
|
`vhost_type`, `username`, and `root_directory`, only apply to
|
|
3729
3703
|
CloudLinux websites and are null for other platforms.
|
|
3730
3704
|
|
|
3731
|
-
Use
|
|
3732
|
-
|
|
3705
|
+
Use `website_types` to list only websites of a given detected type, e.g. only
|
|
3706
|
+
WordPress websites (`website_types=wordpress`) or only Node.js websites
|
|
3707
|
+
(`website_types=nodejs`). Combine with the other available query parameters to
|
|
3708
|
+
filter by username, order ID, enabled status, or domain name for more targeted
|
|
3709
|
+
results.
|
|
3733
3710
|
*/
|
|
3734
3711
|
"hosting_listWebsitesV1": {
|
|
3735
3712
|
params: {
|
|
@@ -3754,9 +3731,13 @@ order ID, enabled status, or domain name for more targeted results.
|
|
|
3754
3731
|
*/
|
|
3755
3732
|
is_enabled?: boolean;
|
|
3756
3733
|
/**
|
|
3757
|
-
* Filter by domain name (
|
|
3734
|
+
* Filter by domain name (case-insensitive substring match)
|
|
3758
3735
|
*/
|
|
3759
3736
|
domain?: string;
|
|
3737
|
+
/**
|
|
3738
|
+
* Filter by detected website type, e.g. wordpress,nodejs. Accepts a comma-separated list.
|
|
3739
|
+
*/
|
|
3740
|
+
website_types?: array;
|
|
3760
3741
|
};
|
|
3761
3742
|
response: any; // Response structure will depend on the API
|
|
3762
3743
|
};
|
|
@@ -7476,7 +7457,7 @@ Each installation includes a `valid` flag and, when invalid, a
|
|
|
7476
7457
|
*/
|
|
7477
7458
|
username?: string;
|
|
7478
7459
|
/**
|
|
7479
|
-
* Filter by domain name (
|
|
7460
|
+
* Filter by domain name (case-insensitive substring match)
|
|
7480
7461
|
*/
|
|
7481
7462
|
domain?: string;
|
|
7482
7463
|
/**
|
|
@@ -7928,7 +7909,7 @@ domain. Optionally filter by domain to scope the check.
|
|
|
7928
7909
|
"hosting_checkIfWooCommerceIsInstalledV1": {
|
|
7929
7910
|
params: {
|
|
7930
7911
|
/**
|
|
7931
|
-
* Filter by domain name (
|
|
7912
|
+
* Filter by domain name (case-insensitive substring match)
|
|
7932
7913
|
*/
|
|
7933
7914
|
domain?: string;
|
|
7934
7915
|
};
|