hostinger-api-mcp 1.2.1 → 1.4.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/types.d.ts CHANGED
@@ -1108,6 +1108,111 @@ Websites can only be edited in Hostinger Horizons interface in the provided webs
1108
1108
  response: any; // Response structure will depend on the API
1109
1109
  };
1110
1110
 
1111
+ /**
1112
+ * Permanently clears all server-side cache for the website at once. Use it when content was
1113
+ updated and needs to be visible immediately, or after making major changes.
1114
+
1115
+ Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress
1116
+ installation living in a subdirectory, pass the directory query parameter to clear its cache.
1117
+ */
1118
+ "hosting_clearWebsiteCacheV1": {
1119
+ params: {
1120
+ /**
1121
+ * username parameter
1122
+ */
1123
+ username: string;
1124
+ /**
1125
+ * Domain name
1126
+ */
1127
+ domain: string;
1128
+ /**
1129
+ * Directory of the website installation to clear, relative to the website root.
1130
+ Defaults to the website root.
1131
+ */
1132
+ directory?: string;
1133
+ };
1134
+ response: any; // Response structure will depend on the API
1135
+ };
1136
+
1137
+ /**
1138
+ * Turns off development (cacheless) mode and returns the website to normal caching. Use it after
1139
+ finishing development work to restore the performance benefits of caching.
1140
+ */
1141
+ "hosting_disableCachelessModeV1": {
1142
+ params: {
1143
+ /**
1144
+ * username parameter
1145
+ */
1146
+ username: string;
1147
+ /**
1148
+ * Domain name
1149
+ */
1150
+ domain: string;
1151
+ };
1152
+ response: any; // Response structure will depend on the API
1153
+ };
1154
+
1155
+ /**
1156
+ * Turns off server-side caching for the website until it is enabled again. May impact performance.
1157
+ Use it when experiencing cache-related issues; to temporarily bypass caching while developing
1158
+ or debugging, prefer enabling cacheless mode instead.
1159
+
1160
+ Does nothing if caching is already disabled.
1161
+ */
1162
+ "hosting_disableWebsiteCacheV1": {
1163
+ params: {
1164
+ /**
1165
+ * username parameter
1166
+ */
1167
+ username: string;
1168
+ /**
1169
+ * Domain name
1170
+ */
1171
+ domain: string;
1172
+ };
1173
+ response: any; // Response structure will depend on the API
1174
+ };
1175
+
1176
+ /**
1177
+ * Enables development (cacheless) mode where nothing is cached, effectively turning off all
1178
+ caching for the website. Use it while actively developing, testing changes, debugging issues,
1179
+ or when real-time updates must be visible. Disable cacheless mode afterwards to restore
1180
+ normal caching.
1181
+ */
1182
+ "hosting_enableCachelessModeV1": {
1183
+ params: {
1184
+ /**
1185
+ * username parameter
1186
+ */
1187
+ username: string;
1188
+ /**
1189
+ * Domain name
1190
+ */
1191
+ domain: string;
1192
+ };
1193
+ response: any; // Response structure will depend on the API
1194
+ };
1195
+
1196
+ /**
1197
+ * Turns on server-side caching for the website for better performance. Use it for faster page
1198
+ loads, reduced server load, or improved user experience. Recommended for production websites.
1199
+
1200
+ Does nothing if caching is already enabled.
1201
+ */
1202
+ "hosting_enableWebsiteCacheV1": {
1203
+ params: {
1204
+ /**
1205
+ * username parameter
1206
+ */
1207
+ username: string;
1208
+ /**
1209
+ * Domain name
1210
+ */
1211
+ domain: string;
1212
+ };
1213
+ response: any; // Response structure will depend on the API
1214
+ };
1215
+
1111
1216
  /**
1112
1217
  * Returns the list of cron jobs configured for the specified account, including their schedule and command.
1113
1218
  */
@@ -3541,6 +3646,127 @@ Use this endpoint to power off running VPS instances.
3541
3646
  response: any; // Response structure will depend on the API
3542
3647
  };
3543
3648
 
3649
+ /**
3650
+ * Show the current AI option status for the Hostinger Tools plugin on the
3651
+ specified WordPress installation. Filter by `option` to return a single
3652
+ option, or omit it to return all options.
3653
+
3654
+ Provide the WordPress installation (software) identifier in the path. It can
3655
+ be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
3656
+ */
3657
+ "hosting_showAIOptionStatusV1": {
3658
+ params: {
3659
+ /**
3660
+ * username parameter
3661
+ */
3662
+ username: string;
3663
+ /**
3664
+ * WordPress installation (software) identifier
3665
+ */
3666
+ software: string;
3667
+ /**
3668
+ * Filter the status by a single AI option.
3669
+ */
3670
+ option?: string;
3671
+ };
3672
+ response: any; // Response structure will depend on the API
3673
+ };
3674
+
3675
+ /**
3676
+ * Enable or disable an AI option for the Hostinger Tools plugin on the specified
3677
+ WordPress installation.
3678
+
3679
+ Provide the WordPress installation (software) identifier in the path. It can
3680
+ be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
3681
+ */
3682
+ "hosting_setAIOptionStatusV1": {
3683
+ params: {
3684
+ /**
3685
+ * username parameter
3686
+ */
3687
+ username: string;
3688
+ /**
3689
+ * WordPress installation (software) identifier
3690
+ */
3691
+ software: string;
3692
+ /**
3693
+ * AI option name
3694
+ */
3695
+ option: string;
3696
+ /**
3697
+ * Enable (true) or disable (false) the AI option.
3698
+ */
3699
+ enable: boolean;
3700
+ };
3701
+ response: any; // Response structure will depend on the API
3702
+ };
3703
+
3704
+ /**
3705
+ * Check whether one or more WordPress installations are valid and working
3706
+ correctly. Detects broken installations caused by missing files, broken
3707
+ plugins, themes and similar issues.
3708
+
3709
+ Provide the WordPress installation (software) identifiers in the body. They
3710
+ can be obtained from GET /api/hosting/v1/wordpress/installations (the `id`
3711
+ field).
3712
+ */
3713
+ "hosting_checkIfWordPressInstallationsAreValidV1": {
3714
+ params: {
3715
+ /**
3716
+ * username parameter
3717
+ */
3718
+ username: string;
3719
+ /**
3720
+ * WordPress installation (software) identifiers to validate.
3721
+ */
3722
+ software_ids: array;
3723
+ /**
3724
+ * Force fresh validation without cache. Preferable for troubleshooting purposes.
3725
+ */
3726
+ force?: boolean;
3727
+ };
3728
+ response: any; // Response structure will depend on the API
3729
+ };
3730
+
3731
+ /**
3732
+ * Delete the specified WordPress installation, with optional file and database
3733
+ removal. This removes all associated components including plugins, themes,
3734
+ staging websites and any other related data.
3735
+
3736
+ Provide the WordPress installation (software) identifier in the path. It can
3737
+ be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
3738
+ */
3739
+ "hosting_deleteWordPressInstallationV1": {
3740
+ params: {
3741
+ /**
3742
+ * username parameter
3743
+ */
3744
+ username: string;
3745
+ /**
3746
+ * WordPress installation (software) identifier
3747
+ */
3748
+ software: string;
3749
+ };
3750
+ response: any; // Response structure will depend on the API
3751
+ };
3752
+
3753
+ /**
3754
+ * Trigger a background scan to detect WordPress installations for the account.
3755
+
3756
+ This operation is asynchronous: a successful response only means the scan has
3757
+ been queued. Poll GET /api/hosting/v1/wordpress/installations to fetch the
3758
+ detected installations once the scan completes.
3759
+ */
3760
+ "hosting_detectWordPressInstallationsV1": {
3761
+ params: {
3762
+ /**
3763
+ * username parameter
3764
+ */
3765
+ username: string;
3766
+ };
3767
+ response: any; // Response structure will depend on the API
3768
+ };
3769
+
3544
3770
  /**
3545
3771
  * Install WordPress on an existing website.
3546
3772
 
@@ -3634,6 +3860,251 @@ Each installation includes a `valid` flag and, when invalid, a
3634
3860
  response: any; // Response structure will depend on the API
3635
3861
  };
3636
3862
 
3863
+ /**
3864
+ * List available WordPress core updates for the specified installation.
3865
+
3866
+ Provide the WordPress installation (software) identifier in the path. It can
3867
+ be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
3868
+ */
3869
+ "hosting_listAvailableWordPressCoreUpdatesV1": {
3870
+ params: {
3871
+ /**
3872
+ * username parameter
3873
+ */
3874
+ username: string;
3875
+ /**
3876
+ * WordPress installation (software) identifier
3877
+ */
3878
+ software: string;
3879
+ };
3880
+ response: any; // Response structure will depend on the API
3881
+ };
3882
+
3883
+ /**
3884
+ * Return a JWT token used to authenticate requests against the specified
3885
+ WordPress installation, including its MCP (Model Context Protocol) endpoint.
3886
+
3887
+ Provide the WordPress installation (software) identifier in the path. It can
3888
+ be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
3889
+ */
3890
+ "hosting_getInstallationJWTTokenV1": {
3891
+ params: {
3892
+ /**
3893
+ * username parameter
3894
+ */
3895
+ username: string;
3896
+ /**
3897
+ * WordPress installation (software) identifier
3898
+ */
3899
+ software: string;
3900
+ };
3901
+ response: any; // Response structure will depend on the API
3902
+ };
3903
+
3904
+ /**
3905
+ * Show the WordPress core version for the specified installation, along with
3906
+ known vulnerabilities affecting it.
3907
+
3908
+ Provide the WordPress installation (software) identifier in the path. It can
3909
+ be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
3910
+ */
3911
+ "hosting_showWordPressCoreVersionV1": {
3912
+ params: {
3913
+ /**
3914
+ * username parameter
3915
+ */
3916
+ username: string;
3917
+ /**
3918
+ * WordPress installation (software) identifier
3919
+ */
3920
+ software: string;
3921
+ };
3922
+ response: any; // Response structure will depend on the API
3923
+ };
3924
+
3925
+ /**
3926
+ * Update the WordPress core for the specified installation (minor update or a
3927
+ specific version).
3928
+
3929
+ Provide the WordPress installation (software) identifier in the path. It can
3930
+ be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
3931
+
3932
+ This operation is asynchronous: a successful response only means the update
3933
+ job has been queued.
3934
+ */
3935
+ "hosting_updateWordPressCoreV1": {
3936
+ params: {
3937
+ /**
3938
+ * username parameter
3939
+ */
3940
+ username: string;
3941
+ /**
3942
+ * WordPress installation (software) identifier
3943
+ */
3944
+ software: string;
3945
+ /**
3946
+ * Update the minor version only.
3947
+ */
3948
+ minor?: boolean;
3949
+ /**
3950
+ * Update to a specific WordPress core version.
3951
+ */
3952
+ version?: string;
3953
+ };
3954
+ response: any; // Response structure will depend on the API
3955
+ };
3956
+
3957
+ /**
3958
+ * Purge the LiteSpeed Cache for the specified WordPress installation.
3959
+
3960
+ Provide the WordPress installation (software) identifier in the path. It can
3961
+ be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
3962
+ */
3963
+ "hosting_purgeLiteSpeedCacheV1": {
3964
+ params: {
3965
+ /**
3966
+ * username parameter
3967
+ */
3968
+ username: string;
3969
+ /**
3970
+ * WordPress installation (software) identifier
3971
+ */
3972
+ software: string;
3973
+ };
3974
+ response: any; // Response structure will depend on the API
3975
+ };
3976
+
3977
+ /**
3978
+ * Show the LiteSpeed Cache status for the specified WordPress installation.
3979
+
3980
+ Provide the WordPress installation (software) identifier in the path. It can
3981
+ be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
3982
+ */
3983
+ "hosting_showLiteSpeedCacheStatusV1": {
3984
+ params: {
3985
+ /**
3986
+ * username parameter
3987
+ */
3988
+ username: string;
3989
+ /**
3990
+ * WordPress installation (software) identifier
3991
+ */
3992
+ software: string;
3993
+ };
3994
+ response: any; // Response structure will depend on the API
3995
+ };
3996
+
3997
+ /**
3998
+ * Create temporary auto-login links for the specified WordPress installation.
3999
+
4000
+ Provide the WordPress installation (software) identifier in the path. It can
4001
+ be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
4002
+ */
4003
+ "hosting_createLoginLinksV1": {
4004
+ params: {
4005
+ /**
4006
+ * username parameter
4007
+ */
4008
+ username: string;
4009
+ /**
4010
+ * WordPress installation (software) identifier
4011
+ */
4012
+ software: string;
4013
+ };
4014
+ response: any; // Response structure will depend on the API
4015
+ };
4016
+
4017
+ /**
4018
+ * Show the maintenance mode status for the specified WordPress installation.
4019
+
4020
+ Provide the WordPress installation (software) identifier in the path. It can
4021
+ be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
4022
+ */
4023
+ "hosting_showMaintenanceStatusV1": {
4024
+ params: {
4025
+ /**
4026
+ * username parameter
4027
+ */
4028
+ username: string;
4029
+ /**
4030
+ * WordPress installation (software) identifier
4031
+ */
4032
+ software: string;
4033
+ };
4034
+ response: any; // Response structure will depend on the API
4035
+ };
4036
+
4037
+ /**
4038
+ * Enable or disable maintenance mode for the specified WordPress installation,
4039
+ based on the `enabled` flag.
4040
+
4041
+ Provide the WordPress installation (software) identifier in the path. It can
4042
+ be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
4043
+ */
4044
+ "hosting_toggleMaintenanceModeV1": {
4045
+ params: {
4046
+ /**
4047
+ * username parameter
4048
+ */
4049
+ username: string;
4050
+ /**
4051
+ * WordPress installation (software) identifier
4052
+ */
4053
+ software: string;
4054
+ /**
4055
+ * Enable (true) or disable (false) maintenance mode for the WordPress installation.
4056
+ */
4057
+ enabled: boolean;
4058
+ };
4059
+ response: any; // Response structure will depend on the API
4060
+ };
4061
+
4062
+ /**
4063
+ * Show the Memcached object cache status for the specified WordPress
4064
+ installation.
4065
+
4066
+ Provide the WordPress installation (software) identifier in the path. It can
4067
+ be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
4068
+ */
4069
+ "hosting_showMemcachedObjectCacheStatusV1": {
4070
+ params: {
4071
+ /**
4072
+ * username parameter
4073
+ */
4074
+ username: string;
4075
+ /**
4076
+ * WordPress installation (software) identifier
4077
+ */
4078
+ software: string;
4079
+ };
4080
+ response: any; // Response structure will depend on the API
4081
+ };
4082
+
4083
+ /**
4084
+ * Activate or deactivate the Memcached object cache for the specified WordPress
4085
+ installation, based on the `enabled` flag.
4086
+
4087
+ Provide the WordPress installation (software) identifier in the path. It can
4088
+ be obtained from GET /api/hosting/v1/wordpress/installations (the `id` field).
4089
+ */
4090
+ "hosting_toggleMemcachedObjectCacheV1": {
4091
+ params: {
4092
+ /**
4093
+ * username parameter
4094
+ */
4095
+ username: string;
4096
+ /**
4097
+ * WordPress installation (software) identifier
4098
+ */
4099
+ software: string;
4100
+ /**
4101
+ * Activate (true) or deactivate (false) the Memcached object cache for the WordPress installation.
4102
+ */
4103
+ enabled: boolean;
4104
+ };
4105
+ response: any; // Response structure will depend on the API
4106
+ };
4107
+
3637
4108
  /**
3638
4109
  * Activate an installed plugin on a WordPress installation.
3639
4110