hostinger-api-mcp 1.35.5 → 1.36.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/README.md +74 -33
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/src/core/runtime.js +3 -3
- package/src/core/runtime.ts +3 -3
- package/src/core/tools/agency-hosting.js +27 -27
- package/src/core/tools/agency-hosting.ts +27 -27
- package/src/core/tools/all.js +171 -32
- package/src/core/tools/all.ts +171 -32
- package/src/core/tools/ecommerce.js +37 -5
- package/src/core/tools/ecommerce.ts +37 -5
- package/src/core/tools/reach.js +107 -0
- package/src/core/tools/reach.ts +107 -0
- 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 +134 -32
package/types.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export interface APITools {
|
|
|
7
7
|
/**
|
|
8
8
|
* Deploy a node-static Agency Plan (h5g) website from an archive file. WARNING: this overwrites the website's existing contents and cannot be undone — always confirm with the user before proceeding. Use this for Agency Plan websites of type node-static (a Node.js-built static site that requires a build step or a plain simple static site). The tool resolves the website from its domain, uploads the archive to the website's file browser over TUS, and triggers the build-assets process which builds the site and deploys the result to public_html. This operation is synchronous: the build and deployment complete before the tool returns, so the website is live as soon as the tool finishes successfully — there is no separate asynchronous build to wait for or poll. For plain PHP applications that should be extracted as-is, use agencyHosting_deployPhpApplication instead. The website UID is automatically resolved from the domain.
|
|
9
9
|
*/
|
|
10
|
-
"
|
|
10
|
+
"agency-hosting_deployNodeStaticWebsite": {
|
|
11
11
|
params: {
|
|
12
12
|
/**
|
|
13
13
|
* Domain name of the Agency Plan website (e.g., example.com)
|
|
@@ -28,7 +28,7 @@ export interface APITools {
|
|
|
28
28
|
/**
|
|
29
29
|
* Deploy a PHP (or other non-build) Agency Plan (h5g) website from an archive file. WARNING: this overwrites the website's existing contents and cannot be undone — always confirm with the user before proceeding. Use this for Agency Plan websites where the archive contents should be extracted and served as-is with no build step (e.g., PHP applications). The tool resolves the website from its domain, uploads the archive to the website's file browser over TUS, and triggers the import-archive process which overwrites the website contents with the archive contents. This operation is synchronous: the archive is extracted and deployed before the tool returns, so the website is live as soon as the tool finishes successfully — there is no separate asynchronous build to wait for or poll. For node-static websites that require a build step, use agencyHosting_deployNodeStaticWebsite instead. The website UID is automatically resolved from the domain.
|
|
30
30
|
*/
|
|
31
|
-
"
|
|
31
|
+
"agency-hosting_deployPhpApplication": {
|
|
32
32
|
params: {
|
|
33
33
|
/**
|
|
34
34
|
* Domain name of the Agency Plan website (e.g., example.com)
|
|
@@ -209,7 +209,7 @@ Each datacenter includes a `pinger_url` you can ping from the client to measure
|
|
|
209
209
|
latency; comparing the results across datacenters lets you pick the nearest one (lowest
|
|
210
210
|
ping) before choosing its `code` as the `datacenter_code` when creating a website setup.
|
|
211
211
|
*/
|
|
212
|
-
"agency-
|
|
212
|
+
"agency-hosting_listAvailableDatacentersV1": {
|
|
213
213
|
params: {
|
|
214
214
|
/**
|
|
215
215
|
* Agency Plan order ID
|
|
@@ -225,7 +225,7 @@ ping) before choosing its `code` as the `datacenter_code` when creating a websit
|
|
|
225
225
|
Provide the current domain in the path and the new domain in the request body.
|
|
226
226
|
Set domain to null to revert to the temporary domain.
|
|
227
227
|
*/
|
|
228
|
-
"agency-
|
|
228
|
+
"agency-hosting_changeWebsiteDomainV1": {
|
|
229
229
|
params: {
|
|
230
230
|
/**
|
|
231
231
|
* Agency Plan website UID
|
|
@@ -246,7 +246,7 @@ Set domain to null to revert to the temporary domain.
|
|
|
246
246
|
/**
|
|
247
247
|
* Links a domain to the specified Agency Plan website so it can serve traffic for that domain.
|
|
248
248
|
*/
|
|
249
|
-
"agency-
|
|
249
|
+
"agency-hosting_linkDomainToWebsiteV1": {
|
|
250
250
|
params: {
|
|
251
251
|
/**
|
|
252
252
|
* Agency Plan website UID
|
|
@@ -265,7 +265,7 @@ Set domain to null to revert to the temporary domain.
|
|
|
265
265
|
|
|
266
266
|
Use the website_uuids filter to narrow results to specific websites.
|
|
267
267
|
*/
|
|
268
|
-
"agency-
|
|
268
|
+
"agency-hosting_listDomainsV1": {
|
|
269
269
|
params: {
|
|
270
270
|
/**
|
|
271
271
|
* Page number
|
|
@@ -292,7 +292,7 @@ Website files and database are preserved, and any other linked domains remain ac
|
|
|
292
292
|
|
|
293
293
|
If this is the only domain on the website, unlinking leaves the website without an accessible domain.
|
|
294
294
|
*/
|
|
295
|
-
"agency-
|
|
295
|
+
"agency-hosting_unlinkDomainFromWebsiteV1": {
|
|
296
296
|
params: {
|
|
297
297
|
/**
|
|
298
298
|
* Agency Plan website UID
|
|
@@ -313,7 +313,7 @@ Upload the archive to the website's root directory via file browser first, then
|
|
|
313
313
|
filename in this request. Website contents are overwritten by the archive contents. Supported
|
|
314
314
|
archive types: .zip, .tar, .tar.gz, .tgz.
|
|
315
315
|
*/
|
|
316
|
-
"agency-
|
|
316
|
+
"agency-hosting_importWebsiteFromArchiveV1": {
|
|
317
317
|
params: {
|
|
318
318
|
/**
|
|
319
319
|
* Agency Plan website UID
|
|
@@ -330,7 +330,7 @@ archive types: .zip, .tar, .tar.gz, .tgz.
|
|
|
330
330
|
/**
|
|
331
331
|
* Returns a paginated list of Agency Plan orders accessible to the authenticated client.
|
|
332
332
|
*/
|
|
333
|
-
"agency-
|
|
333
|
+
"agency-hosting_listOrdersV1": {
|
|
334
334
|
params: {
|
|
335
335
|
/**
|
|
336
336
|
* Page number
|
|
@@ -363,7 +363,7 @@ Common setups:
|
|
|
363
363
|
Provisioning runs in the background, so the response returns immediately with a setup UUID
|
|
364
364
|
that identifies the job. The new website becomes reachable once provisioning finishes.
|
|
365
365
|
*/
|
|
366
|
-
"agency-
|
|
366
|
+
"agency-hosting_createANewWebsiteV1": {
|
|
367
367
|
params: {
|
|
368
368
|
/**
|
|
369
369
|
* Agency Plan order ID
|
|
@@ -412,7 +412,7 @@ endpoint.
|
|
|
412
412
|
Poll this endpoint using the `setup_uuid` returned from the provisioning request until
|
|
413
413
|
`status` becomes `completed`, at which point `website_uid` identifies the new website.
|
|
414
414
|
*/
|
|
415
|
-
"agency-
|
|
415
|
+
"agency-hosting_getWebsiteSetupStatusV1": {
|
|
416
416
|
params: {
|
|
417
417
|
/**
|
|
418
418
|
* Agency Plan order ID
|
|
@@ -432,7 +432,7 @@ Poll this endpoint using the `setup_uuid` returned from the provisioning request
|
|
|
432
432
|
Upload the archive to file browser first, then provide its relative path from document root in this request.
|
|
433
433
|
Website contents are overwritten by the build result, which is deployed to public_html.
|
|
434
434
|
*/
|
|
435
|
-
"agency-
|
|
435
|
+
"agency-hosting_buildWebsiteNodeJSAssetsV1": {
|
|
436
436
|
params: {
|
|
437
437
|
/**
|
|
438
438
|
* Agency Plan website UID
|
|
@@ -451,7 +451,7 @@ Website contents are overwritten by the build result, which is deployed to publi
|
|
|
451
451
|
|
|
452
452
|
This operation clears all cache types for the website.
|
|
453
453
|
*/
|
|
454
|
-
"agency-
|
|
454
|
+
"agency-hosting_clearWebsiteCacheV1": {
|
|
455
455
|
params: {
|
|
456
456
|
/**
|
|
457
457
|
* Agency Plan website UID
|
|
@@ -466,7 +466,7 @@ This operation clears all cache types for the website.
|
|
|
466
466
|
|
|
467
467
|
Each entry includes the schedule expression and the command executed on that schedule.
|
|
468
468
|
*/
|
|
469
|
-
"agency-
|
|
469
|
+
"agency-hosting_listWebsiteCronJobsV1": {
|
|
470
470
|
params: {
|
|
471
471
|
/**
|
|
472
472
|
* Agency Plan website UID
|
|
@@ -489,7 +489,7 @@ Each entry includes the schedule expression and the command executed on that sch
|
|
|
489
489
|
|
|
490
490
|
Returns the created cron job, including its uuid, which is required to delete the cron job.
|
|
491
491
|
*/
|
|
492
|
-
"agency-
|
|
492
|
+
"agency-hosting_createWebsiteCronJobV1": {
|
|
493
493
|
params: {
|
|
494
494
|
/**
|
|
495
495
|
* Agency Plan website UID
|
|
@@ -512,7 +512,7 @@ Returns the created cron job, including its uuid, which is required to delete th
|
|
|
512
512
|
|
|
513
513
|
The operation is idempotent: deleting a cron job that does not exist succeeds without error.
|
|
514
514
|
*/
|
|
515
|
-
"agency-
|
|
515
|
+
"agency-hosting_deleteWebsiteCronJobV1": {
|
|
516
516
|
params: {
|
|
517
517
|
/**
|
|
518
518
|
* Agency Plan website UID
|
|
@@ -531,7 +531,7 @@ The operation is idempotent: deleting a cron job that does not exist succeeds wi
|
|
|
531
531
|
|
|
532
532
|
Each entry includes the database's non-system users.
|
|
533
533
|
*/
|
|
534
|
-
"agency-
|
|
534
|
+
"agency-hosting_listWebsiteDatabasesV1": {
|
|
535
535
|
params: {
|
|
536
536
|
/**
|
|
537
537
|
* Agency Plan website UID
|
|
@@ -554,7 +554,7 @@ Each entry includes the database's non-system users.
|
|
|
554
554
|
|
|
555
555
|
The database name, username, and password must all be provided by the caller.
|
|
556
556
|
*/
|
|
557
|
-
"agency-
|
|
557
|
+
"agency-hosting_createWebsiteDatabaseV1": {
|
|
558
558
|
params: {
|
|
559
559
|
/**
|
|
560
560
|
* Agency Plan website UID
|
|
@@ -581,7 +581,7 @@ The database name, username, and password must all be provided by the caller.
|
|
|
581
581
|
|
|
582
582
|
The operation is idempotent: deleting a database that does not exist succeeds without error.
|
|
583
583
|
*/
|
|
584
|
-
"agency-
|
|
584
|
+
"agency-hosting_deleteWebsiteDatabaseV1": {
|
|
585
585
|
params: {
|
|
586
586
|
/**
|
|
587
587
|
* Agency Plan website UID
|
|
@@ -600,7 +600,7 @@ The operation is idempotent: deleting a database that does not exist succeeds wi
|
|
|
600
600
|
|
|
601
601
|
Each database supports a single non-system user; creating a user for a database that already has one fails.
|
|
602
602
|
*/
|
|
603
|
-
"agency-
|
|
603
|
+
"agency-hosting_createWebsiteDatabaseUserV1": {
|
|
604
604
|
params: {
|
|
605
605
|
/**
|
|
606
606
|
* Agency Plan website UID
|
|
@@ -631,7 +631,7 @@ Each database supports a single non-system user; creating a user for a database
|
|
|
631
631
|
|
|
632
632
|
The operation is idempotent: deleting a user that does not exist succeeds without error.
|
|
633
633
|
*/
|
|
634
|
-
"agency-
|
|
634
|
+
"agency-hosting_deleteWebsiteDatabaseUserV1": {
|
|
635
635
|
params: {
|
|
636
636
|
/**
|
|
637
637
|
* Agency Plan website UID
|
|
@@ -653,7 +653,7 @@ The operation is idempotent: deleting a user that does not exist succeeds withou
|
|
|
653
653
|
* Retrieves detailed information about a specific Agency Plan website, including configuration,
|
|
654
654
|
status, metadata, hosting plan details, and resource quotas.
|
|
655
655
|
*/
|
|
656
|
-
"agency-
|
|
656
|
+
"agency-hosting_getWebsiteDetailsV1": {
|
|
657
657
|
params: {
|
|
658
658
|
/**
|
|
659
659
|
* Agency Plan website UID
|
|
@@ -668,7 +668,7 @@ status, metadata, hosting plan details, and resource quotas.
|
|
|
668
668
|
website is immediately transitioned to a deleting state and the underlying server
|
|
669
669
|
resources are removed in the background.
|
|
670
670
|
*/
|
|
671
|
-
"agency-
|
|
671
|
+
"agency-hosting_deleteWebsiteV1": {
|
|
672
672
|
params: {
|
|
673
673
|
/**
|
|
674
674
|
* Agency Plan website UID
|
|
@@ -684,7 +684,7 @@ resources are removed in the background.
|
|
|
684
684
|
Each process has a unique ID (for tracking), a type, and a status (running, completed, failed).
|
|
685
685
|
Poll this endpoint after initiating async operations (SSL setup, backups, cloning) to track progress.
|
|
686
686
|
*/
|
|
687
|
-
"agency-
|
|
687
|
+
"agency-hosting_listWebsiteProcessesV1": {
|
|
688
688
|
params: {
|
|
689
689
|
/**
|
|
690
690
|
* Agency Plan website UID
|
|
@@ -697,7 +697,7 @@ Poll this endpoint after initiating async operations (SSL setup, backups, clonin
|
|
|
697
697
|
/**
|
|
698
698
|
* Changes the installed WordPress core version on an Agency Plan website to one of the versions available for installation.
|
|
699
699
|
*/
|
|
700
|
-
"agency-
|
|
700
|
+
"agency-hosting_changeWordPressVersionV1": {
|
|
701
701
|
params: {
|
|
702
702
|
/**
|
|
703
703
|
* Agency Plan website UID
|
|
@@ -715,7 +715,7 @@ Poll this endpoint after initiating async operations (SSL setup, backups, clonin
|
|
|
715
715
|
* Returns the current WordPress settings for an Agency Plan website: installed core version,
|
|
716
716
|
LiteSpeed Cache plugin status, object cache status, and maintenance mode status.
|
|
717
717
|
*/
|
|
718
|
-
"agency-
|
|
718
|
+
"agency-hosting_getWordPressSettingsV1": {
|
|
719
719
|
params: {
|
|
720
720
|
/**
|
|
721
721
|
* Agency Plan website UID
|
|
@@ -728,7 +728,7 @@ LiteSpeed Cache plugin status, object cache status, and maintenance mode status.
|
|
|
728
728
|
/**
|
|
729
729
|
* Lists the WordPress core versions available for installation on an Agency Plan website.
|
|
730
730
|
*/
|
|
731
|
-
"agency-
|
|
731
|
+
"agency-hosting_listAvailableWordPressVersionsV1": {
|
|
732
732
|
params: {
|
|
733
733
|
/**
|
|
734
734
|
* Agency Plan website UID
|
|
@@ -1937,6 +1937,24 @@ the Ecommerce API.
|
|
|
1937
1937
|
response: any; // Response structure will depend on the API
|
|
1938
1938
|
};
|
|
1939
1939
|
|
|
1940
|
+
/**
|
|
1941
|
+
* Returns a signed URL to upload a product image to (multipart/form-data POST). Then call the
|
|
1942
|
+
attach-image endpoint with the returned object_name to scan and attach it to the product.
|
|
1943
|
+
*/
|
|
1944
|
+
"ecommerce_createAProductImageUploadURLV1": {
|
|
1945
|
+
params: {
|
|
1946
|
+
/**
|
|
1947
|
+
* The ID of the store the product belongs to.
|
|
1948
|
+
*/
|
|
1949
|
+
store_id: string;
|
|
1950
|
+
/**
|
|
1951
|
+
* The ID of the product the image will be attached to.
|
|
1952
|
+
*/
|
|
1953
|
+
product_id: string;
|
|
1954
|
+
};
|
|
1955
|
+
response: any; // Response structure will depend on the API
|
|
1956
|
+
};
|
|
1957
|
+
|
|
1940
1958
|
/**
|
|
1941
1959
|
* Create a published digital product with a single variant and an optional external download link.
|
|
1942
1960
|
*/
|
|
@@ -2000,9 +2018,9 @@ the Ecommerce API.
|
|
|
2000
2018
|
};
|
|
2001
2019
|
|
|
2002
2020
|
/**
|
|
2003
|
-
*
|
|
2004
|
-
The image is virus-scanned and validated by content, then stored on the CDN. Set
|
|
2005
|
-
it the product's primary image.
|
|
2021
|
+
* Fetch a raster image (JPEG, PNG, GIF or WebP, max 15MB) from a URL and attach it to a product in a
|
|
2022
|
+
single call. The image is virus-scanned and validated by content, then stored on the CDN. Set
|
|
2023
|
+
is_thumbnail to make it the product's primary image.
|
|
2006
2024
|
*/
|
|
2007
2025
|
"ecommerce_uploadAndAttachAProductImageV1": {
|
|
2008
2026
|
params: {
|
|
@@ -2015,9 +2033,15 @@ it the product's primary image.
|
|
|
2015
2033
|
*/
|
|
2016
2034
|
product_id: string;
|
|
2017
2035
|
/**
|
|
2018
|
-
*
|
|
2036
|
+
* Publicly reachable URL of the raster image (JPEG, PNG, GIF or WebP), maximum 15MB. The image is
|
|
2037
|
+
fetched, virus-scanned and validated by content, then stored on the CDN. SVG is not accepted.
|
|
2038
|
+
Provide either this or object_name.
|
|
2019
2039
|
*/
|
|
2020
|
-
|
|
2040
|
+
image_url?: string;
|
|
2041
|
+
/**
|
|
2042
|
+
* Key returned by the upload-url endpoint. Provide this instead of image_url to attach an uploaded image.
|
|
2043
|
+
*/
|
|
2044
|
+
object_name?: string;
|
|
2021
2045
|
/**
|
|
2022
2046
|
* When true, the image becomes the product's thumbnail (primary image). When omitted, it becomes the
|
|
2023
2047
|
thumbnail only if the product does not have one yet.
|
|
@@ -4322,6 +4346,84 @@ requests are rate limited upstream.
|
|
|
4322
4346
|
response: any; // Response structure will depend on the API
|
|
4323
4347
|
};
|
|
4324
4348
|
|
|
4349
|
+
/**
|
|
4350
|
+
* Get a single automation with the counts of contacts that entered it, are moving through it,
|
|
4351
|
+
finished it or failed on the way.
|
|
4352
|
+
|
|
4353
|
+
This describes the automation itself. To see the workflow it runs, use the steps endpoint.
|
|
4354
|
+
*/
|
|
4355
|
+
"reach_getAutomationDetailsV1": {
|
|
4356
|
+
params: {
|
|
4357
|
+
/**
|
|
4358
|
+
* Profile uuid parameter
|
|
4359
|
+
*/
|
|
4360
|
+
profileUuid: string;
|
|
4361
|
+
/**
|
|
4362
|
+
* Automation uuid parameter
|
|
4363
|
+
*/
|
|
4364
|
+
automationUuid: string;
|
|
4365
|
+
};
|
|
4366
|
+
response: any; // Response structure will depend on the API
|
|
4367
|
+
};
|
|
4368
|
+
|
|
4369
|
+
/**
|
|
4370
|
+
* Get a paginated list of the automations in a profile.
|
|
4371
|
+
|
|
4372
|
+
Every automation comes with the counts of contacts that entered it, are moving through it,
|
|
4373
|
+
finished it or failed on the way. Those counts describe the contact journey and are not
|
|
4374
|
+
email engagement metrics - for opens, clicks and unsubscribes use the campaign statistics
|
|
4375
|
+
endpoint instead.
|
|
4376
|
+
*/
|
|
4377
|
+
"reach_listAutomationsV1": {
|
|
4378
|
+
params: {
|
|
4379
|
+
/**
|
|
4380
|
+
* Profile uuid parameter
|
|
4381
|
+
*/
|
|
4382
|
+
profileUuid: string;
|
|
4383
|
+
/**
|
|
4384
|
+
* Filter automations by status.
|
|
4385
|
+
|
|
4386
|
+
There is no `completed` status. An automation that has finished for every contact still
|
|
4387
|
+
reports `active`.
|
|
4388
|
+
*/
|
|
4389
|
+
status?: string;
|
|
4390
|
+
/**
|
|
4391
|
+
* Order automations by creation date. Newest first unless set to `asc`.
|
|
4392
|
+
*/
|
|
4393
|
+
sort_direction?: string;
|
|
4394
|
+
/**
|
|
4395
|
+
* Page number
|
|
4396
|
+
*/
|
|
4397
|
+
page?: number;
|
|
4398
|
+
/**
|
|
4399
|
+
* Number of items per page
|
|
4400
|
+
*/
|
|
4401
|
+
per_page?: number;
|
|
4402
|
+
};
|
|
4403
|
+
response: any; // Response structure will depend on the API
|
|
4404
|
+
};
|
|
4405
|
+
|
|
4406
|
+
/**
|
|
4407
|
+
* Get the workflow of an automation as a flat list of steps.
|
|
4408
|
+
|
|
4409
|
+
The steps form a tree rather than a straight line: follow `parent_uuid` to reconstruct the
|
|
4410
|
+
branches, and use `step_order` to order the steps that share a parent. An automation with no
|
|
4411
|
+
steps yet returns an empty list.
|
|
4412
|
+
*/
|
|
4413
|
+
"reach_listAutomationStepsV1": {
|
|
4414
|
+
params: {
|
|
4415
|
+
/**
|
|
4416
|
+
* Profile uuid parameter
|
|
4417
|
+
*/
|
|
4418
|
+
profileUuid: string;
|
|
4419
|
+
/**
|
|
4420
|
+
* Automation uuid parameter
|
|
4421
|
+
*/
|
|
4422
|
+
automationUuid: string;
|
|
4423
|
+
};
|
|
4424
|
+
response: any; // Response structure will depend on the API
|
|
4425
|
+
};
|
|
4426
|
+
|
|
4325
4427
|
/**
|
|
4326
4428
|
* Delete a contact with the specified UUID.
|
|
4327
4429
|
|