hostinger-api-mcp 1.43.1 → 1.45.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 +205 -6
- 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 +92 -0
- package/src/core/tools/agency-hosting.ts +92 -0
- package/src/core/tools/all.js +444 -6
- package/src/core/tools/all.ts +444 -6
- package/src/core/tools/hosting.js +229 -4
- package/src/core/tools/hosting.ts +229 -4
- package/src/core/tools/wordpress.js +123 -2
- package/src/core/tools/wordpress.ts +123 -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 +383 -6
|
@@ -170,6 +170,45 @@ export default [
|
|
|
170
170
|
],
|
|
171
171
|
"group": "wordpress"
|
|
172
172
|
},
|
|
173
|
+
{
|
|
174
|
+
"name": "hosting_importWordPressWebsiteV1",
|
|
175
|
+
"description": "Import WordPress website to the specified domain.\n\nWARNING: this overwrites the website's existing contents and cannot be undone —\nverify this is intended before calling this endpoint.\n\nThis endpoint allows you to import a WordPress website from archive and\ndatabase files that have been uploaded to the website's directory.",
|
|
176
|
+
"method": "POST",
|
|
177
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/import",
|
|
178
|
+
"inputSchema": {
|
|
179
|
+
"type": "object",
|
|
180
|
+
"properties": {
|
|
181
|
+
"username": {
|
|
182
|
+
"type": "string",
|
|
183
|
+
"description": "username parameter"
|
|
184
|
+
},
|
|
185
|
+
"domain": {
|
|
186
|
+
"type": "string",
|
|
187
|
+
"description": "Domain name"
|
|
188
|
+
},
|
|
189
|
+
"archive_path": {
|
|
190
|
+
"type": "string",
|
|
191
|
+
"description": "Path to the WordPress archive file (relative to website root)"
|
|
192
|
+
},
|
|
193
|
+
"sql_path": {
|
|
194
|
+
"type": "string",
|
|
195
|
+
"description": "Path to the database SQL file (relative to website root)"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"required": [
|
|
199
|
+
"username",
|
|
200
|
+
"domain",
|
|
201
|
+
"archive_path",
|
|
202
|
+
"sql_path"
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
"security": [
|
|
206
|
+
{
|
|
207
|
+
"apiToken": []
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
"group": "wordpress"
|
|
211
|
+
},
|
|
173
212
|
{
|
|
174
213
|
"name": "hosting_installWordPressV1",
|
|
175
214
|
"description": "Install WordPress on an existing website.\n\nThe website must already exist before calling this endpoint. To create a new\nwebsite first, use POST /api/hosting/v1/websites and poll\nGET /api/hosting/v1/websites until it appears.\n\nCall GET /api/hosting/v1/wordpress/installations filtered by username and\ndomain before proceeding to check whether WordPress is already installed on\nthe target domain/path. If WordPress already exists and `overwrite` is false\n(the default), the async job will fail.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that WordPress is ready. Installation typically\ntakes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered\nby username and domain to track progress. When the installation appears in\nthat list, WordPress is ready.",
|
|
@@ -281,7 +320,7 @@ export default [
|
|
|
281
320
|
},
|
|
282
321
|
"domain": {
|
|
283
322
|
"type": "string",
|
|
284
|
-
"description": "Filter by domain name (
|
|
323
|
+
"description": "Filter by domain name (case-insensitive substring match)"
|
|
285
324
|
},
|
|
286
325
|
"ownership": {
|
|
287
326
|
"type": "string",
|
|
@@ -707,6 +746,45 @@ export default [
|
|
|
707
746
|
],
|
|
708
747
|
"group": "wordpress"
|
|
709
748
|
},
|
|
749
|
+
{
|
|
750
|
+
"name": "hosting_deployWordPressPluginV1",
|
|
751
|
+
"description": "Deploy a WordPress plugin from an already uploaded directory.\n\nThis endpoint allows you to deploy a WordPress plugin that has been uploaded to the website's directory.\nThe plugin will be activated and made available in the WordPress admin panel.",
|
|
752
|
+
"method": "POST",
|
|
753
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/plugins/deploy",
|
|
754
|
+
"inputSchema": {
|
|
755
|
+
"type": "object",
|
|
756
|
+
"properties": {
|
|
757
|
+
"username": {
|
|
758
|
+
"type": "string",
|
|
759
|
+
"description": "username parameter"
|
|
760
|
+
},
|
|
761
|
+
"domain": {
|
|
762
|
+
"type": "string",
|
|
763
|
+
"description": "Domain name"
|
|
764
|
+
},
|
|
765
|
+
"slug": {
|
|
766
|
+
"type": "string",
|
|
767
|
+
"description": "Slug of the plugin"
|
|
768
|
+
},
|
|
769
|
+
"plugin_path": {
|
|
770
|
+
"type": "string",
|
|
771
|
+
"description": "Relative path to the plugin directory from wp-content/plugins"
|
|
772
|
+
}
|
|
773
|
+
},
|
|
774
|
+
"required": [
|
|
775
|
+
"username",
|
|
776
|
+
"domain",
|
|
777
|
+
"slug",
|
|
778
|
+
"plugin_path"
|
|
779
|
+
]
|
|
780
|
+
},
|
|
781
|
+
"security": [
|
|
782
|
+
{
|
|
783
|
+
"apiToken": []
|
|
784
|
+
}
|
|
785
|
+
],
|
|
786
|
+
"group": "wordpress"
|
|
787
|
+
},
|
|
710
788
|
{
|
|
711
789
|
"name": "hosting_installWordPressPluginsV1",
|
|
712
790
|
"description": "Install one or more plugins on an existing WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id`\nfield). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin\nslugs available for installation.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that the plugins are ready.",
|
|
@@ -866,7 +944,7 @@ export default [
|
|
|
866
944
|
"properties": {
|
|
867
945
|
"domain": {
|
|
868
946
|
"type": "string",
|
|
869
|
-
"description": "Filter by domain name (
|
|
947
|
+
"description": "Filter by domain name (case-insensitive substring match)"
|
|
870
948
|
}
|
|
871
949
|
},
|
|
872
950
|
"required": []
|
|
@@ -1029,6 +1107,49 @@ export default [
|
|
|
1029
1107
|
],
|
|
1030
1108
|
"group": "wordpress"
|
|
1031
1109
|
},
|
|
1110
|
+
{
|
|
1111
|
+
"name": "hosting_deployWordPressThemeV1",
|
|
1112
|
+
"description": "Deploy a WordPress theme from an already uploaded directory.\n\nThis endpoint allows you to deploy a WordPress theme that has been uploaded to the website's directory.\nThe theme can be optionally activated after deployment.",
|
|
1113
|
+
"method": "POST",
|
|
1114
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/themes/deploy",
|
|
1115
|
+
"inputSchema": {
|
|
1116
|
+
"type": "object",
|
|
1117
|
+
"properties": {
|
|
1118
|
+
"username": {
|
|
1119
|
+
"type": "string",
|
|
1120
|
+
"description": "username parameter"
|
|
1121
|
+
},
|
|
1122
|
+
"domain": {
|
|
1123
|
+
"type": "string",
|
|
1124
|
+
"description": "Domain name"
|
|
1125
|
+
},
|
|
1126
|
+
"slug": {
|
|
1127
|
+
"type": "string",
|
|
1128
|
+
"description": "Slug of the theme"
|
|
1129
|
+
},
|
|
1130
|
+
"theme_path": {
|
|
1131
|
+
"type": "string",
|
|
1132
|
+
"description": "Relative path to the theme directory from wp-content/themes"
|
|
1133
|
+
},
|
|
1134
|
+
"is_activated": {
|
|
1135
|
+
"type": "boolean",
|
|
1136
|
+
"description": "Whether to activate the theme after deployment"
|
|
1137
|
+
}
|
|
1138
|
+
},
|
|
1139
|
+
"required": [
|
|
1140
|
+
"username",
|
|
1141
|
+
"domain",
|
|
1142
|
+
"slug",
|
|
1143
|
+
"theme_path"
|
|
1144
|
+
]
|
|
1145
|
+
},
|
|
1146
|
+
"security": [
|
|
1147
|
+
{
|
|
1148
|
+
"apiToken": []
|
|
1149
|
+
}
|
|
1150
|
+
],
|
|
1151
|
+
"group": "wordpress"
|
|
1152
|
+
},
|
|
1032
1153
|
{
|
|
1033
1154
|
"name": "hosting_installWordPressThemeV1",
|
|
1034
1155
|
"description": "Install a theme on an existing WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id`\nfield).\n\nWhen the theme is one of the Hostinger themes (hostinger-blog,\nhostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`,\n`layout`, and `font` fields are forwarded to the custom installer (defaults:\npalette1, layout1, default). For any other theme they are ignored.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that the theme is ready.",
|
|
@@ -184,6 +184,45 @@ const tools: OpenApiTool[] = [
|
|
|
184
184
|
],
|
|
185
185
|
"group": "wordpress"
|
|
186
186
|
},
|
|
187
|
+
{
|
|
188
|
+
"name": "hosting_importWordPressWebsiteV1",
|
|
189
|
+
"description": "Import WordPress website to the specified domain.\n\nWARNING: this overwrites the website's existing contents and cannot be undone —\nverify this is intended before calling this endpoint.\n\nThis endpoint allows you to import a WordPress website from archive and\ndatabase files that have been uploaded to the website's directory.",
|
|
190
|
+
"method": "POST",
|
|
191
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/import",
|
|
192
|
+
"inputSchema": {
|
|
193
|
+
"type": "object",
|
|
194
|
+
"properties": {
|
|
195
|
+
"username": {
|
|
196
|
+
"type": "string",
|
|
197
|
+
"description": "username parameter"
|
|
198
|
+
},
|
|
199
|
+
"domain": {
|
|
200
|
+
"type": "string",
|
|
201
|
+
"description": "Domain name"
|
|
202
|
+
},
|
|
203
|
+
"archive_path": {
|
|
204
|
+
"type": "string",
|
|
205
|
+
"description": "Path to the WordPress archive file (relative to website root)"
|
|
206
|
+
},
|
|
207
|
+
"sql_path": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"description": "Path to the database SQL file (relative to website root)"
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"required": [
|
|
213
|
+
"username",
|
|
214
|
+
"domain",
|
|
215
|
+
"archive_path",
|
|
216
|
+
"sql_path"
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
"security": [
|
|
220
|
+
{
|
|
221
|
+
"apiToken": []
|
|
222
|
+
}
|
|
223
|
+
],
|
|
224
|
+
"group": "wordpress"
|
|
225
|
+
},
|
|
187
226
|
{
|
|
188
227
|
"name": "hosting_installWordPressV1",
|
|
189
228
|
"description": "Install WordPress on an existing website.\n\nThe website must already exist before calling this endpoint. To create a new\nwebsite first, use POST /api/hosting/v1/websites and poll\nGET /api/hosting/v1/websites until it appears.\n\nCall GET /api/hosting/v1/wordpress/installations filtered by username and\ndomain before proceeding to check whether WordPress is already installed on\nthe target domain/path. If WordPress already exists and `overwrite` is false\n(the default), the async job will fail.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that WordPress is ready. Installation typically\ntakes 1-2 minutes. Poll GET /api/hosting/v1/wordpress/installations filtered\nby username and domain to track progress. When the installation appears in\nthat list, WordPress is ready.",
|
|
@@ -295,7 +334,7 @@ const tools: OpenApiTool[] = [
|
|
|
295
334
|
},
|
|
296
335
|
"domain": {
|
|
297
336
|
"type": "string",
|
|
298
|
-
"description": "Filter by domain name (
|
|
337
|
+
"description": "Filter by domain name (case-insensitive substring match)"
|
|
299
338
|
},
|
|
300
339
|
"ownership": {
|
|
301
340
|
"type": "string",
|
|
@@ -721,6 +760,45 @@ const tools: OpenApiTool[] = [
|
|
|
721
760
|
],
|
|
722
761
|
"group": "wordpress"
|
|
723
762
|
},
|
|
763
|
+
{
|
|
764
|
+
"name": "hosting_deployWordPressPluginV1",
|
|
765
|
+
"description": "Deploy a WordPress plugin from an already uploaded directory.\n\nThis endpoint allows you to deploy a WordPress plugin that has been uploaded to the website's directory.\nThe plugin will be activated and made available in the WordPress admin panel.",
|
|
766
|
+
"method": "POST",
|
|
767
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/plugins/deploy",
|
|
768
|
+
"inputSchema": {
|
|
769
|
+
"type": "object",
|
|
770
|
+
"properties": {
|
|
771
|
+
"username": {
|
|
772
|
+
"type": "string",
|
|
773
|
+
"description": "username parameter"
|
|
774
|
+
},
|
|
775
|
+
"domain": {
|
|
776
|
+
"type": "string",
|
|
777
|
+
"description": "Domain name"
|
|
778
|
+
},
|
|
779
|
+
"slug": {
|
|
780
|
+
"type": "string",
|
|
781
|
+
"description": "Slug of the plugin"
|
|
782
|
+
},
|
|
783
|
+
"plugin_path": {
|
|
784
|
+
"type": "string",
|
|
785
|
+
"description": "Relative path to the plugin directory from wp-content/plugins"
|
|
786
|
+
}
|
|
787
|
+
},
|
|
788
|
+
"required": [
|
|
789
|
+
"username",
|
|
790
|
+
"domain",
|
|
791
|
+
"slug",
|
|
792
|
+
"plugin_path"
|
|
793
|
+
]
|
|
794
|
+
},
|
|
795
|
+
"security": [
|
|
796
|
+
{
|
|
797
|
+
"apiToken": []
|
|
798
|
+
}
|
|
799
|
+
],
|
|
800
|
+
"group": "wordpress"
|
|
801
|
+
},
|
|
724
802
|
{
|
|
725
803
|
"name": "hosting_installWordPressPluginsV1",
|
|
726
804
|
"description": "Install one or more plugins on an existing WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id`\nfield). Use GET /api/hosting/v1/wordpress/plugins to discover the plugin\nslugs available for installation.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that the plugins are ready.",
|
|
@@ -880,7 +958,7 @@ const tools: OpenApiTool[] = [
|
|
|
880
958
|
"properties": {
|
|
881
959
|
"domain": {
|
|
882
960
|
"type": "string",
|
|
883
|
-
"description": "Filter by domain name (
|
|
961
|
+
"description": "Filter by domain name (case-insensitive substring match)"
|
|
884
962
|
}
|
|
885
963
|
},
|
|
886
964
|
"required": []
|
|
@@ -1043,6 +1121,49 @@ const tools: OpenApiTool[] = [
|
|
|
1043
1121
|
],
|
|
1044
1122
|
"group": "wordpress"
|
|
1045
1123
|
},
|
|
1124
|
+
{
|
|
1125
|
+
"name": "hosting_deployWordPressThemeV1",
|
|
1126
|
+
"description": "Deploy a WordPress theme from an already uploaded directory.\n\nThis endpoint allows you to deploy a WordPress theme that has been uploaded to the website's directory.\nThe theme can be optionally activated after deployment.",
|
|
1127
|
+
"method": "POST",
|
|
1128
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/wordpress/themes/deploy",
|
|
1129
|
+
"inputSchema": {
|
|
1130
|
+
"type": "object",
|
|
1131
|
+
"properties": {
|
|
1132
|
+
"username": {
|
|
1133
|
+
"type": "string",
|
|
1134
|
+
"description": "username parameter"
|
|
1135
|
+
},
|
|
1136
|
+
"domain": {
|
|
1137
|
+
"type": "string",
|
|
1138
|
+
"description": "Domain name"
|
|
1139
|
+
},
|
|
1140
|
+
"slug": {
|
|
1141
|
+
"type": "string",
|
|
1142
|
+
"description": "Slug of the theme"
|
|
1143
|
+
},
|
|
1144
|
+
"theme_path": {
|
|
1145
|
+
"type": "string",
|
|
1146
|
+
"description": "Relative path to the theme directory from wp-content/themes"
|
|
1147
|
+
},
|
|
1148
|
+
"is_activated": {
|
|
1149
|
+
"type": "boolean",
|
|
1150
|
+
"description": "Whether to activate the theme after deployment"
|
|
1151
|
+
}
|
|
1152
|
+
},
|
|
1153
|
+
"required": [
|
|
1154
|
+
"username",
|
|
1155
|
+
"domain",
|
|
1156
|
+
"slug",
|
|
1157
|
+
"theme_path"
|
|
1158
|
+
]
|
|
1159
|
+
},
|
|
1160
|
+
"security": [
|
|
1161
|
+
{
|
|
1162
|
+
"apiToken": []
|
|
1163
|
+
}
|
|
1164
|
+
],
|
|
1165
|
+
"group": "wordpress"
|
|
1166
|
+
},
|
|
1046
1167
|
{
|
|
1047
1168
|
"name": "hosting_installWordPressThemeV1",
|
|
1048
1169
|
"description": "Install a theme on an existing WordPress installation.\n\nProvide the WordPress installation (software) identifier in the path. It can\nbe obtained from GET /api/hosting/v1/wordpress/installations (the `id`\nfield).\n\nWhen the theme is one of the Hostinger themes (hostinger-blog,\nhostinger-affiliate-theme, hostinger-ai-theme), the optional `palette`,\n`layout`, and `font` fields are forwarded to the custom installer (defaults:\npalette1, layout1, default). For any other theme they are ignored.\n\nThis operation is asynchronous: a successful response only means the install\njob has been queued, not that the theme is ready.",
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
import { startServer } from '../core/runtime.js';
|
|
4
4
|
import tools from '../core/tools/agency-hosting.js';
|
|
5
5
|
|
|
6
|
-
startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.
|
|
6
|
+
startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.45.0', tools });
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
import { startServer } from '../core/runtime.js';
|
|
4
4
|
import tools from '../core/tools/agency-hosting.js';
|
|
5
5
|
|
|
6
|
-
startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.
|
|
6
|
+
startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.45.0', tools });
|
package/src/servers/all.js
CHANGED
package/src/servers/all.ts
CHANGED
package/src/servers/billing.js
CHANGED
package/src/servers/billing.ts
CHANGED
package/src/servers/dns.js
CHANGED
package/src/servers/dns.ts
CHANGED
package/src/servers/domains.js
CHANGED
package/src/servers/domains.ts
CHANGED
package/src/servers/ecommerce.js
CHANGED
package/src/servers/ecommerce.ts
CHANGED
package/src/servers/horizons.js
CHANGED
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