hostinger-api-mcp 1.2.0 → 1.3.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 +198 -4
- 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/all.js +569 -1
- package/src/core/tools/all.ts +569 -1
- package/src/core/tools/ecommerce.js +62 -1
- package/src/core/tools/ecommerce.ts +62 -1
- package/src/core/tools/wordpress.js +507 -0
- package/src/core/tools/wordpress.ts +507 -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 +407 -1
package/types.d.ts
CHANGED
|
@@ -904,7 +904,7 @@ the Ecommerce API.
|
|
|
904
904
|
* Create a custom sales channel for a store. Build your own frontend and keep your catalog,
|
|
905
905
|
orders, shipping and payments in sync through the Ecommerce API.
|
|
906
906
|
*/
|
|
907
|
-
"
|
|
907
|
+
"ecommerce_createCustomSalesChannelV1": {
|
|
908
908
|
params: {
|
|
909
909
|
/**
|
|
910
910
|
* The ID of the store to create the sales channel for.
|
|
@@ -926,6 +926,32 @@ orders, shipping and payments in sync through the Ecommerce API.
|
|
|
926
926
|
response: any; // Response structure will depend on the API
|
|
927
927
|
};
|
|
928
928
|
|
|
929
|
+
/**
|
|
930
|
+
* Update a custom sales channel. The merchant-facing `name` and the public `url`
|
|
931
|
+
(returned as the channel `domain`) can be changed. Pass `null` to clear a value.
|
|
932
|
+
*/
|
|
933
|
+
"ecommerce_updateSalesChannelV1": {
|
|
934
|
+
params: {
|
|
935
|
+
/**
|
|
936
|
+
* The ID of the store that owns the sales channel.
|
|
937
|
+
*/
|
|
938
|
+
store_id: string;
|
|
939
|
+
/**
|
|
940
|
+
* The ID of the sales channel to update.
|
|
941
|
+
*/
|
|
942
|
+
sales_channel_id: string;
|
|
943
|
+
/**
|
|
944
|
+
* Merchant-facing custom name shown in the sales channels list. Pass null to clear it.
|
|
945
|
+
*/
|
|
946
|
+
name?: string;
|
|
947
|
+
/**
|
|
948
|
+
* Public address where the custom sales channel lives. Pass null to clear it.
|
|
949
|
+
*/
|
|
950
|
+
url?: string;
|
|
951
|
+
};
|
|
952
|
+
response: any; // Response structure will depend on the API
|
|
953
|
+
};
|
|
954
|
+
|
|
929
955
|
/**
|
|
930
956
|
* Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
|
|
931
957
|
*/
|
|
@@ -1006,6 +1032,20 @@ A primary sales channel is created alongside the store.
|
|
|
1006
1032
|
response: any; // Response structure will depend on the API
|
|
1007
1033
|
};
|
|
1008
1034
|
|
|
1035
|
+
/**
|
|
1036
|
+
* Get a store's readiness metadata: whether payment methods and shipping are configured,
|
|
1037
|
+
plus its default currency. Useful to verify prerequisites before building a storefront.
|
|
1038
|
+
*/
|
|
1039
|
+
"ecommerce_getStoreMetadataV1": {
|
|
1040
|
+
params: {
|
|
1041
|
+
/**
|
|
1042
|
+
* The ID of the store to read metadata for.
|
|
1043
|
+
*/
|
|
1044
|
+
store_id: string;
|
|
1045
|
+
};
|
|
1046
|
+
response: any; // Response structure will depend on the API
|
|
1047
|
+
};
|
|
1048
|
+
|
|
1009
1049
|
/**
|
|
1010
1050
|
* Create new Hostinger Horizons website from the given message.\n
|
|
1011
1051
|
Use this tool when user asks you to create a website, landing page, blog
|
|
@@ -3501,6 +3541,127 @@ Use this endpoint to power off running VPS instances.
|
|
|
3501
3541
|
response: any; // Response structure will depend on the API
|
|
3502
3542
|
};
|
|
3503
3543
|
|
|
3544
|
+
/**
|
|
3545
|
+
* Show the current AI option status for the Hostinger Tools plugin on the
|
|
3546
|
+
specified WordPress installation. Filter by `option` to return a single
|
|
3547
|
+
option, or omit it to return all options.
|
|
3548
|
+
|
|
3549
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3550
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3551
|
+
*/
|
|
3552
|
+
"hosting_showAIOptionStatusV1": {
|
|
3553
|
+
params: {
|
|
3554
|
+
/**
|
|
3555
|
+
* username parameter
|
|
3556
|
+
*/
|
|
3557
|
+
username: string;
|
|
3558
|
+
/**
|
|
3559
|
+
* WordPress installation (software) identifier
|
|
3560
|
+
*/
|
|
3561
|
+
software: string;
|
|
3562
|
+
/**
|
|
3563
|
+
* Filter the status by a single AI option.
|
|
3564
|
+
*/
|
|
3565
|
+
option?: string;
|
|
3566
|
+
};
|
|
3567
|
+
response: any; // Response structure will depend on the API
|
|
3568
|
+
};
|
|
3569
|
+
|
|
3570
|
+
/**
|
|
3571
|
+
* Enable or disable an AI option for the Hostinger Tools plugin on the specified
|
|
3572
|
+
WordPress installation.
|
|
3573
|
+
|
|
3574
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3575
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3576
|
+
*/
|
|
3577
|
+
"hosting_setAIOptionStatusV1": {
|
|
3578
|
+
params: {
|
|
3579
|
+
/**
|
|
3580
|
+
* username parameter
|
|
3581
|
+
*/
|
|
3582
|
+
username: string;
|
|
3583
|
+
/**
|
|
3584
|
+
* WordPress installation (software) identifier
|
|
3585
|
+
*/
|
|
3586
|
+
software: string;
|
|
3587
|
+
/**
|
|
3588
|
+
* AI option name
|
|
3589
|
+
*/
|
|
3590
|
+
option: string;
|
|
3591
|
+
/**
|
|
3592
|
+
* Enable (true) or disable (false) the AI option.
|
|
3593
|
+
*/
|
|
3594
|
+
enable: boolean;
|
|
3595
|
+
};
|
|
3596
|
+
response: any; // Response structure will depend on the API
|
|
3597
|
+
};
|
|
3598
|
+
|
|
3599
|
+
/**
|
|
3600
|
+
* Check whether one or more WordPress installations are valid and working
|
|
3601
|
+
correctly. Detects broken installations caused by missing files, broken
|
|
3602
|
+
plugins, themes and similar issues.
|
|
3603
|
+
|
|
3604
|
+
Provide the WordPress installation (software) identifiers in the body. They
|
|
3605
|
+
can be obtained from GET /api/hosting/v1/wordpress/installations (the `id`
|
|
3606
|
+
field).
|
|
3607
|
+
*/
|
|
3608
|
+
"hosting_checkIfWordPressInstallationsAreValidV1": {
|
|
3609
|
+
params: {
|
|
3610
|
+
/**
|
|
3611
|
+
* username parameter
|
|
3612
|
+
*/
|
|
3613
|
+
username: string;
|
|
3614
|
+
/**
|
|
3615
|
+
* WordPress installation (software) identifiers to validate.
|
|
3616
|
+
*/
|
|
3617
|
+
software_ids: array;
|
|
3618
|
+
/**
|
|
3619
|
+
* Force fresh validation without cache. Preferable for troubleshooting purposes.
|
|
3620
|
+
*/
|
|
3621
|
+
force?: boolean;
|
|
3622
|
+
};
|
|
3623
|
+
response: any; // Response structure will depend on the API
|
|
3624
|
+
};
|
|
3625
|
+
|
|
3626
|
+
/**
|
|
3627
|
+
* Delete the specified WordPress installation, with optional file and database
|
|
3628
|
+
removal. This removes all associated components including plugins, themes,
|
|
3629
|
+
staging websites and any other related data.
|
|
3630
|
+
|
|
3631
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3632
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3633
|
+
*/
|
|
3634
|
+
"hosting_deleteWordPressInstallationV1": {
|
|
3635
|
+
params: {
|
|
3636
|
+
/**
|
|
3637
|
+
* username parameter
|
|
3638
|
+
*/
|
|
3639
|
+
username: string;
|
|
3640
|
+
/**
|
|
3641
|
+
* WordPress installation (software) identifier
|
|
3642
|
+
*/
|
|
3643
|
+
software: string;
|
|
3644
|
+
};
|
|
3645
|
+
response: any; // Response structure will depend on the API
|
|
3646
|
+
};
|
|
3647
|
+
|
|
3648
|
+
/**
|
|
3649
|
+
* Trigger a background scan to detect WordPress installations for the account.
|
|
3650
|
+
|
|
3651
|
+
This operation is asynchronous: a successful response only means the scan has
|
|
3652
|
+
been queued. Poll GET /api/hosting/v1/wordpress/installations to fetch the
|
|
3653
|
+
detected installations once the scan completes.
|
|
3654
|
+
*/
|
|
3655
|
+
"hosting_detectWordPressInstallationsV1": {
|
|
3656
|
+
params: {
|
|
3657
|
+
/**
|
|
3658
|
+
* username parameter
|
|
3659
|
+
*/
|
|
3660
|
+
username: string;
|
|
3661
|
+
};
|
|
3662
|
+
response: any; // Response structure will depend on the API
|
|
3663
|
+
};
|
|
3664
|
+
|
|
3504
3665
|
/**
|
|
3505
3666
|
* Install WordPress on an existing website.
|
|
3506
3667
|
|
|
@@ -3594,6 +3755,251 @@ Each installation includes a `valid` flag and, when invalid, a
|
|
|
3594
3755
|
response: any; // Response structure will depend on the API
|
|
3595
3756
|
};
|
|
3596
3757
|
|
|
3758
|
+
/**
|
|
3759
|
+
* List available WordPress core updates for the specified installation.
|
|
3760
|
+
|
|
3761
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3762
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3763
|
+
*/
|
|
3764
|
+
"hosting_listAvailableWordPressCoreUpdatesV1": {
|
|
3765
|
+
params: {
|
|
3766
|
+
/**
|
|
3767
|
+
* username parameter
|
|
3768
|
+
*/
|
|
3769
|
+
username: string;
|
|
3770
|
+
/**
|
|
3771
|
+
* WordPress installation (software) identifier
|
|
3772
|
+
*/
|
|
3773
|
+
software: string;
|
|
3774
|
+
};
|
|
3775
|
+
response: any; // Response structure will depend on the API
|
|
3776
|
+
};
|
|
3777
|
+
|
|
3778
|
+
/**
|
|
3779
|
+
* Return a JWT token used to authenticate requests against the specified
|
|
3780
|
+
WordPress installation, including its MCP (Model Context Protocol) endpoint.
|
|
3781
|
+
|
|
3782
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3783
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3784
|
+
*/
|
|
3785
|
+
"hosting_getInstallationJWTTokenV1": {
|
|
3786
|
+
params: {
|
|
3787
|
+
/**
|
|
3788
|
+
* username parameter
|
|
3789
|
+
*/
|
|
3790
|
+
username: string;
|
|
3791
|
+
/**
|
|
3792
|
+
* WordPress installation (software) identifier
|
|
3793
|
+
*/
|
|
3794
|
+
software: string;
|
|
3795
|
+
};
|
|
3796
|
+
response: any; // Response structure will depend on the API
|
|
3797
|
+
};
|
|
3798
|
+
|
|
3799
|
+
/**
|
|
3800
|
+
* Show the WordPress core version for the specified installation, along with
|
|
3801
|
+
known vulnerabilities affecting it.
|
|
3802
|
+
|
|
3803
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3804
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3805
|
+
*/
|
|
3806
|
+
"hosting_showWordPressCoreVersionV1": {
|
|
3807
|
+
params: {
|
|
3808
|
+
/**
|
|
3809
|
+
* username parameter
|
|
3810
|
+
*/
|
|
3811
|
+
username: string;
|
|
3812
|
+
/**
|
|
3813
|
+
* WordPress installation (software) identifier
|
|
3814
|
+
*/
|
|
3815
|
+
software: string;
|
|
3816
|
+
};
|
|
3817
|
+
response: any; // Response structure will depend on the API
|
|
3818
|
+
};
|
|
3819
|
+
|
|
3820
|
+
/**
|
|
3821
|
+
* Update the WordPress core for the specified installation (minor update or a
|
|
3822
|
+
specific version).
|
|
3823
|
+
|
|
3824
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3825
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3826
|
+
|
|
3827
|
+
This operation is asynchronous: a successful response only means the update
|
|
3828
|
+
job has been queued.
|
|
3829
|
+
*/
|
|
3830
|
+
"hosting_updateWordPressCoreV1": {
|
|
3831
|
+
params: {
|
|
3832
|
+
/**
|
|
3833
|
+
* username parameter
|
|
3834
|
+
*/
|
|
3835
|
+
username: string;
|
|
3836
|
+
/**
|
|
3837
|
+
* WordPress installation (software) identifier
|
|
3838
|
+
*/
|
|
3839
|
+
software: string;
|
|
3840
|
+
/**
|
|
3841
|
+
* Update the minor version only.
|
|
3842
|
+
*/
|
|
3843
|
+
minor?: boolean;
|
|
3844
|
+
/**
|
|
3845
|
+
* Update to a specific WordPress core version.
|
|
3846
|
+
*/
|
|
3847
|
+
version?: string;
|
|
3848
|
+
};
|
|
3849
|
+
response: any; // Response structure will depend on the API
|
|
3850
|
+
};
|
|
3851
|
+
|
|
3852
|
+
/**
|
|
3853
|
+
* Purge the LiteSpeed Cache for the specified WordPress installation.
|
|
3854
|
+
|
|
3855
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3856
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3857
|
+
*/
|
|
3858
|
+
"hosting_purgeLiteSpeedCacheV1": {
|
|
3859
|
+
params: {
|
|
3860
|
+
/**
|
|
3861
|
+
* username parameter
|
|
3862
|
+
*/
|
|
3863
|
+
username: string;
|
|
3864
|
+
/**
|
|
3865
|
+
* WordPress installation (software) identifier
|
|
3866
|
+
*/
|
|
3867
|
+
software: string;
|
|
3868
|
+
};
|
|
3869
|
+
response: any; // Response structure will depend on the API
|
|
3870
|
+
};
|
|
3871
|
+
|
|
3872
|
+
/**
|
|
3873
|
+
* Show the LiteSpeed Cache status for the specified WordPress installation.
|
|
3874
|
+
|
|
3875
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3876
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3877
|
+
*/
|
|
3878
|
+
"hosting_showLiteSpeedCacheStatusV1": {
|
|
3879
|
+
params: {
|
|
3880
|
+
/**
|
|
3881
|
+
* username parameter
|
|
3882
|
+
*/
|
|
3883
|
+
username: string;
|
|
3884
|
+
/**
|
|
3885
|
+
* WordPress installation (software) identifier
|
|
3886
|
+
*/
|
|
3887
|
+
software: string;
|
|
3888
|
+
};
|
|
3889
|
+
response: any; // Response structure will depend on the API
|
|
3890
|
+
};
|
|
3891
|
+
|
|
3892
|
+
/**
|
|
3893
|
+
* Create temporary auto-login links for the specified WordPress installation.
|
|
3894
|
+
|
|
3895
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3896
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3897
|
+
*/
|
|
3898
|
+
"hosting_createLoginLinksV1": {
|
|
3899
|
+
params: {
|
|
3900
|
+
/**
|
|
3901
|
+
* username parameter
|
|
3902
|
+
*/
|
|
3903
|
+
username: string;
|
|
3904
|
+
/**
|
|
3905
|
+
* WordPress installation (software) identifier
|
|
3906
|
+
*/
|
|
3907
|
+
software: string;
|
|
3908
|
+
};
|
|
3909
|
+
response: any; // Response structure will depend on the API
|
|
3910
|
+
};
|
|
3911
|
+
|
|
3912
|
+
/**
|
|
3913
|
+
* Show the maintenance mode status for the specified WordPress installation.
|
|
3914
|
+
|
|
3915
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3916
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3917
|
+
*/
|
|
3918
|
+
"hosting_showMaintenanceStatusV1": {
|
|
3919
|
+
params: {
|
|
3920
|
+
/**
|
|
3921
|
+
* username parameter
|
|
3922
|
+
*/
|
|
3923
|
+
username: string;
|
|
3924
|
+
/**
|
|
3925
|
+
* WordPress installation (software) identifier
|
|
3926
|
+
*/
|
|
3927
|
+
software: string;
|
|
3928
|
+
};
|
|
3929
|
+
response: any; // Response structure will depend on the API
|
|
3930
|
+
};
|
|
3931
|
+
|
|
3932
|
+
/**
|
|
3933
|
+
* Enable or disable maintenance mode for the specified WordPress installation,
|
|
3934
|
+
based on the `enabled` flag.
|
|
3935
|
+
|
|
3936
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3937
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3938
|
+
*/
|
|
3939
|
+
"hosting_toggleMaintenanceModeV1": {
|
|
3940
|
+
params: {
|
|
3941
|
+
/**
|
|
3942
|
+
* username parameter
|
|
3943
|
+
*/
|
|
3944
|
+
username: string;
|
|
3945
|
+
/**
|
|
3946
|
+
* WordPress installation (software) identifier
|
|
3947
|
+
*/
|
|
3948
|
+
software: string;
|
|
3949
|
+
/**
|
|
3950
|
+
* Enable (true) or disable (false) maintenance mode for the WordPress installation.
|
|
3951
|
+
*/
|
|
3952
|
+
enabled: boolean;
|
|
3953
|
+
};
|
|
3954
|
+
response: any; // Response structure will depend on the API
|
|
3955
|
+
};
|
|
3956
|
+
|
|
3957
|
+
/**
|
|
3958
|
+
* Show the Memcached object cache status for the specified WordPress
|
|
3959
|
+
installation.
|
|
3960
|
+
|
|
3961
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3962
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3963
|
+
*/
|
|
3964
|
+
"hosting_showMemcachedObjectCacheStatusV1": {
|
|
3965
|
+
params: {
|
|
3966
|
+
/**
|
|
3967
|
+
* username parameter
|
|
3968
|
+
*/
|
|
3969
|
+
username: string;
|
|
3970
|
+
/**
|
|
3971
|
+
* WordPress installation (software) identifier
|
|
3972
|
+
*/
|
|
3973
|
+
software: string;
|
|
3974
|
+
};
|
|
3975
|
+
response: any; // Response structure will depend on the API
|
|
3976
|
+
};
|
|
3977
|
+
|
|
3978
|
+
/**
|
|
3979
|
+
* Activate or deactivate the Memcached object cache for the specified WordPress
|
|
3980
|
+
installation, based on the `enabled` flag.
|
|
3981
|
+
|
|
3982
|
+
Provide the WordPress installation (software) identifier in the path. It can
|
|
3983
|
+
be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
|
|
3984
|
+
*/
|
|
3985
|
+
"hosting_toggleMemcachedObjectCacheV1": {
|
|
3986
|
+
params: {
|
|
3987
|
+
/**
|
|
3988
|
+
* username parameter
|
|
3989
|
+
*/
|
|
3990
|
+
username: string;
|
|
3991
|
+
/**
|
|
3992
|
+
* WordPress installation (software) identifier
|
|
3993
|
+
*/
|
|
3994
|
+
software: string;
|
|
3995
|
+
/**
|
|
3996
|
+
* Activate (true) or deactivate (false) the Memcached object cache for the WordPress installation.
|
|
3997
|
+
*/
|
|
3998
|
+
enabled: boolean;
|
|
3999
|
+
};
|
|
4000
|
+
response: any; // Response structure will depend on the API
|
|
4001
|
+
};
|
|
4002
|
+
|
|
3597
4003
|
/**
|
|
3598
4004
|
* Activate an installed plugin on a WordPress installation.
|
|
3599
4005
|
|