hostinger-api-mcp 1.43.1 → 1.44.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 +181 -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/agency-hosting.js +24 -0
- package/src/core/tools/agency-hosting.ts +24 -0
- package/src/core/tools/all.js +356 -1
- package/src/core/tools/all.ts +356 -1
- package/src/core/tools/hosting.js +211 -1
- package/src/core/tools/hosting.ts +211 -1
- package/src/core/tools/wordpress.js +121 -0
- package/src/core/tools/wordpress.ts +121 -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 +325 -0
|
@@ -1060,6 +1060,35 @@ const tools: OpenApiTool[] = [
|
|
|
1060
1060
|
],
|
|
1061
1061
|
"group": "hosting"
|
|
1062
1062
|
},
|
|
1063
|
+
{
|
|
1064
|
+
"name": "hosting_generateUploadURLV1",
|
|
1065
|
+
"description": "Generate a file browser upload URL with authentication credentials\nfor uploading files directly to a website's file storage.\n\nReturns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the\nwebsite's `public_html` directory via the TUS resumable upload protocol (TUS 1.0.0).\nSend `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request\nbelow.\n\n1. Create the upload: `POST` to `{url}/{relative_file_path}?override=true` with headers\n `upload-length: {file size in bytes}` and `upload-offset: 0`. Expect `201 Created`.\n2. Upload the file: send the file bytes to the same location (any TUS 1.0.0 client, or\n `PATCH` requests with an `upload-offset` header tracking progress) until complete.\n\n`relative_file_path` is the destination path inside `public_html`, e.g. `app.zip`.\n\nInstead of a TUS client, plain `curl` also works:\n```\nFILE=app.zip\nSIZE=$(stat -f%z \"$FILE\") # stat -c%s on Linux\n\ncurl -i -X POST \"{url}/${FILE}?override=true\" \\\n -H \"X-Auth: {auth_key}\" \\\n -H \"X-Auth-Rest: {rest_auth_key}\" \\\n -H \"Tus-Resumable: 1.0.0\" \\\n -H \"Upload-Length: ${SIZE}\" \\\n -H \"Upload-Offset: 0\"\n# -> 201 Created\n\ncurl -i -X PATCH \"{url}/${FILE}?override=true\" \\\n -H \"X-Auth: {auth_key}\" \\\n -H \"X-Auth-Rest: {rest_auth_key}\" \\\n -H \"Tus-Resumable: 1.0.0\" \\\n -H \"Content-Type: application/offset+octet-stream\" \\\n -H \"Upload-Offset: 0\" \\\n --data-binary \"@${FILE}\"\n# -> 204 No Content, Upload-Offset response header equals SIZE when done\n```",
|
|
1066
|
+
"method": "POST",
|
|
1067
|
+
"path": "/api/hosting/v1/files/upload-urls",
|
|
1068
|
+
"inputSchema": {
|
|
1069
|
+
"type": "object",
|
|
1070
|
+
"properties": {
|
|
1071
|
+
"username": {
|
|
1072
|
+
"type": "string",
|
|
1073
|
+
"description": "Account username"
|
|
1074
|
+
},
|
|
1075
|
+
"domain": {
|
|
1076
|
+
"type": "string",
|
|
1077
|
+
"description": "Website domain"
|
|
1078
|
+
}
|
|
1079
|
+
},
|
|
1080
|
+
"required": [
|
|
1081
|
+
"username",
|
|
1082
|
+
"domain"
|
|
1083
|
+
]
|
|
1084
|
+
},
|
|
1085
|
+
"security": [
|
|
1086
|
+
{
|
|
1087
|
+
"apiToken": []
|
|
1088
|
+
}
|
|
1089
|
+
],
|
|
1090
|
+
"group": "hosting"
|
|
1091
|
+
},
|
|
1063
1092
|
{
|
|
1064
1093
|
"name": "hosting_listWebsiteFilesAndDirectoriesV1",
|
|
1065
1094
|
"description": "List files and directories under a website's document root.\n\nUse `directory` to browse a subdirectory relative to the document root. Symlinked entries\nare listed but never traversed into or resolved.",
|
|
@@ -1212,9 +1241,122 @@ const tools: OpenApiTool[] = [
|
|
|
1212
1241
|
],
|
|
1213
1242
|
"group": "hosting"
|
|
1214
1243
|
},
|
|
1244
|
+
{
|
|
1245
|
+
"name": "hosting_startNode_jsBuildV1",
|
|
1246
|
+
"description": "Start a Node.js build process using files already present on the website's file storage.\n\nWARNING: on success this overwrites the website's existing contents and cannot be\nundone — verify this is intended before calling this endpoint.\n\nThe `source_type` must be `archive` and `source_options.archive_path` must point to an\nexisting archive file on the server (relative to the website document root).\nUse the `Generate Upload URL` endpoint to obtain credentials and upload the archive first.\n\nTo auto-detect build settings from an archive before starting, first call the\n`Get Node.js Build Settings from Archive` endpoint. To upload an archive and start\na build in one step, use the `Create Node.js Build from Archive` endpoint instead.\n\nThe returned build `uuid` can be used to poll progress and retrieve logs via\nthe `Get Node.js Build Logs` endpoint.",
|
|
1247
|
+
"method": "POST",
|
|
1248
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds",
|
|
1249
|
+
"inputSchema": {
|
|
1250
|
+
"type": "object",
|
|
1251
|
+
"properties": {
|
|
1252
|
+
"username": {
|
|
1253
|
+
"type": "string",
|
|
1254
|
+
"description": "username parameter"
|
|
1255
|
+
},
|
|
1256
|
+
"domain": {
|
|
1257
|
+
"type": "string",
|
|
1258
|
+
"description": "Domain name"
|
|
1259
|
+
},
|
|
1260
|
+
"node_version": {
|
|
1261
|
+
"type": "integer",
|
|
1262
|
+
"description": "Node.js version",
|
|
1263
|
+
"enum": [
|
|
1264
|
+
18,
|
|
1265
|
+
20,
|
|
1266
|
+
22,
|
|
1267
|
+
24
|
|
1268
|
+
]
|
|
1269
|
+
},
|
|
1270
|
+
"app_type": {
|
|
1271
|
+
"type": "string",
|
|
1272
|
+
"description": "Node.js application type",
|
|
1273
|
+
"enum": [
|
|
1274
|
+
"create-react-app",
|
|
1275
|
+
"gatsby",
|
|
1276
|
+
"vite",
|
|
1277
|
+
"angular",
|
|
1278
|
+
"react",
|
|
1279
|
+
"vue",
|
|
1280
|
+
"parcel",
|
|
1281
|
+
"next",
|
|
1282
|
+
"nuxt",
|
|
1283
|
+
"nest",
|
|
1284
|
+
"express",
|
|
1285
|
+
"fastify",
|
|
1286
|
+
"astro",
|
|
1287
|
+
"svelte",
|
|
1288
|
+
"svelte-kit",
|
|
1289
|
+
"hono",
|
|
1290
|
+
"react-router",
|
|
1291
|
+
"nitro",
|
|
1292
|
+
"other"
|
|
1293
|
+
]
|
|
1294
|
+
},
|
|
1295
|
+
"root_directory": {
|
|
1296
|
+
"type": "string",
|
|
1297
|
+
"description": "Application root directory (where package.json is located) relative to public_html"
|
|
1298
|
+
},
|
|
1299
|
+
"output_directory": {
|
|
1300
|
+
"type": "string",
|
|
1301
|
+
"description": "Build output directory relative to the root directory"
|
|
1302
|
+
},
|
|
1303
|
+
"build_script": {
|
|
1304
|
+
"type": "string",
|
|
1305
|
+
"description": "Build script that will be ran to build the application"
|
|
1306
|
+
},
|
|
1307
|
+
"entry_file": {
|
|
1308
|
+
"type": "string",
|
|
1309
|
+
"description": "The main entry point file for the application"
|
|
1310
|
+
},
|
|
1311
|
+
"package_manager": {
|
|
1312
|
+
"type": "string",
|
|
1313
|
+
"description": "Package manager",
|
|
1314
|
+
"enum": [
|
|
1315
|
+
"npm",
|
|
1316
|
+
"yarn",
|
|
1317
|
+
"pnpm"
|
|
1318
|
+
]
|
|
1319
|
+
},
|
|
1320
|
+
"source_type": {
|
|
1321
|
+
"type": "string",
|
|
1322
|
+
"description": "The source type of the files",
|
|
1323
|
+
"enum": [
|
|
1324
|
+
"archive"
|
|
1325
|
+
]
|
|
1326
|
+
},
|
|
1327
|
+
"source_options": {
|
|
1328
|
+
"type": "object",
|
|
1329
|
+
"description": "Source-specific options",
|
|
1330
|
+
"properties": {
|
|
1331
|
+
"archive_path": {
|
|
1332
|
+
"type": "string",
|
|
1333
|
+
"description": "The path to the archive file relative to the document root of the vhost (required if source is \"archive\")"
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
},
|
|
1338
|
+
"required": [
|
|
1339
|
+
"username",
|
|
1340
|
+
"domain",
|
|
1341
|
+
"node_version",
|
|
1342
|
+
"app_type",
|
|
1343
|
+
"root_directory",
|
|
1344
|
+
"output_directory",
|
|
1345
|
+
"build_script",
|
|
1346
|
+
"source_type",
|
|
1347
|
+
"source_options"
|
|
1348
|
+
]
|
|
1349
|
+
},
|
|
1350
|
+
"security": [
|
|
1351
|
+
{
|
|
1352
|
+
"apiToken": []
|
|
1353
|
+
}
|
|
1354
|
+
],
|
|
1355
|
+
"group": "hosting"
|
|
1356
|
+
},
|
|
1215
1357
|
{
|
|
1216
1358
|
"name": "hosting_createNodeJSBuildFromArchiveV1",
|
|
1217
|
-
"description": "Upload a project archive, auto-detect build settings, and immediately start a Node.js build.\n\nThis is the recommended single-step approach for deploying a Node.js application.\nThe archive is uploaded to the website's file storage, build settings are auto-detected\nfrom the package.json inside the archive, and the build process starts automatically.\nOptional override fields take precedence over auto-detected values.\nMaximum archive size is 50MB.\n\nBefore archiving, exclude `node_modules/` and any build output directories\n(e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build\nprocess runs the install step automatically, and including them unnecessarily\nincreases the archive size. This also helps keep the archive well under the 50MB limit.\n\nExample (zip):\n```\nzip -r archive.zip . --exclude \"node_modules/*\" --exclude \"dist/*\"\n```\n\nThe returned build `uuid` can be used to poll progress and retrieve logs via\nthe `Get Node.js Build Logs` endpoint.",
|
|
1359
|
+
"description": "Upload a project archive, auto-detect build settings, and immediately start a Node.js build.\n\nWARNING: on success this overwrites the website's existing contents and cannot be\nundone — verify this is intended before calling this endpoint.\n\nThis is the recommended single-step approach for deploying a Node.js application.\nThe archive is uploaded to the website's file storage, build settings are auto-detected\nfrom the package.json inside the archive, and the build process starts automatically.\nOptional override fields take precedence over auto-detected values.\nMaximum archive size is 50MB.\n\nBefore archiving, exclude `node_modules/` and any build output directories\n(e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build\nprocess runs the install step automatically, and including them unnecessarily\nincreases the archive size. This also helps keep the archive well under the 50MB limit.\n\nExample (zip):\n```\nzip -r archive.zip . --exclude \"node_modules/*\" --exclude \"dist/*\"\n```\n\nThe returned build `uuid` can be used to poll progress and retrieve logs via\nthe `Get Node.js Build Logs` endpoint.",
|
|
1218
1360
|
"method": "POST",
|
|
1219
1361
|
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/from-archive",
|
|
1220
1362
|
"inputSchema": {
|
|
@@ -1306,6 +1448,40 @@ const tools: OpenApiTool[] = [
|
|
|
1306
1448
|
],
|
|
1307
1449
|
"group": "hosting"
|
|
1308
1450
|
},
|
|
1451
|
+
{
|
|
1452
|
+
"name": "hosting_getNode_jsBuildSettingsFromArchiveV1",
|
|
1453
|
+
"description": "Auto-detect Node.js build settings from a package.json inside an archive already on the server.\n\nUse this before calling `Start Node.js Build` to preview what settings will be used,\nor to let the user review and override values (framework, node version, root directory,\noutput directory, build script) before committing to a build.\n\nThe archive must already be present on the website's file storage. Use the\n`Generate Upload URL` endpoint to obtain credentials and upload the archive first.\nTo upload an archive and start a build in one step without inspecting settings first,\nuse the `Create Node.js Build from Archive` endpoint instead.",
|
|
1454
|
+
"method": "GET",
|
|
1455
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-archive",
|
|
1456
|
+
"inputSchema": {
|
|
1457
|
+
"type": "object",
|
|
1458
|
+
"properties": {
|
|
1459
|
+
"username": {
|
|
1460
|
+
"type": "string",
|
|
1461
|
+
"description": "username parameter"
|
|
1462
|
+
},
|
|
1463
|
+
"domain": {
|
|
1464
|
+
"type": "string",
|
|
1465
|
+
"description": "Domain name"
|
|
1466
|
+
},
|
|
1467
|
+
"archive_path": {
|
|
1468
|
+
"type": "string",
|
|
1469
|
+
"description": "The path to the archive file relative to the document root of the vhost"
|
|
1470
|
+
}
|
|
1471
|
+
},
|
|
1472
|
+
"required": [
|
|
1473
|
+
"username",
|
|
1474
|
+
"domain",
|
|
1475
|
+
"archive_path"
|
|
1476
|
+
]
|
|
1477
|
+
},
|
|
1478
|
+
"security": [
|
|
1479
|
+
{
|
|
1480
|
+
"apiToken": []
|
|
1481
|
+
}
|
|
1482
|
+
],
|
|
1483
|
+
"group": "hosting"
|
|
1484
|
+
},
|
|
1309
1485
|
{
|
|
1310
1486
|
"name": "hosting_getNodeJSBuildLogsV1",
|
|
1311
1487
|
"description": "Retrieve logs from a specific Node.js build process.\n\nTo stream live output while a build is running, poll this endpoint repeatedly\nwhile the build state is `running`, passing the previously returned `lines` count\nas `from_line` to fetch only new output since the last call.\nLog content may contain ANSI escape sequences (color codes).",
|
|
@@ -1889,6 +2065,40 @@ const tools: OpenApiTool[] = [
|
|
|
1889
2065
|
],
|
|
1890
2066
|
"group": "hosting"
|
|
1891
2067
|
},
|
|
2068
|
+
{
|
|
2069
|
+
"name": "hosting_deployStaticSiteArchiveV1",
|
|
2070
|
+
"description": "Deploy a static application from an archive file.\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 deploy a static application from an archive\nfile that has been uploaded to the website's directory.\n\nThis only works for static sites (pre-built HTML/CSS/JS with no build step). For\nNode.js applications, use `Create NodeJS build from archive` instead, or\n`Start Node.js build` if the archive is already uploaded. For WordPress sites,\nuse `Import WordPress website`.",
|
|
2071
|
+
"method": "POST",
|
|
2072
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/deploy",
|
|
2073
|
+
"inputSchema": {
|
|
2074
|
+
"type": "object",
|
|
2075
|
+
"properties": {
|
|
2076
|
+
"username": {
|
|
2077
|
+
"type": "string",
|
|
2078
|
+
"description": "username parameter"
|
|
2079
|
+
},
|
|
2080
|
+
"domain": {
|
|
2081
|
+
"type": "string",
|
|
2082
|
+
"description": "Domain name"
|
|
2083
|
+
},
|
|
2084
|
+
"archive_path": {
|
|
2085
|
+
"type": "string",
|
|
2086
|
+
"description": "Relative path to the archive file from website root directory"
|
|
2087
|
+
}
|
|
2088
|
+
},
|
|
2089
|
+
"required": [
|
|
2090
|
+
"username",
|
|
2091
|
+
"domain",
|
|
2092
|
+
"archive_path"
|
|
2093
|
+
]
|
|
2094
|
+
},
|
|
2095
|
+
"security": [
|
|
2096
|
+
{
|
|
2097
|
+
"apiToken": []
|
|
2098
|
+
}
|
|
2099
|
+
],
|
|
2100
|
+
"group": "hosting"
|
|
2101
|
+
},
|
|
1892
2102
|
{
|
|
1893
2103
|
"name": "hosting_deleteWebsiteV1",
|
|
1894
2104
|
"description": "This endpoint permanently removes a website and all of its data. This action\ncannot be undone. Before calling it, make sure the user understands the\nconsequences and explicitly confirms that they want to proceed.\n\nAll website files, databases and related configuration will be removed.\nThe hosting plan itself is kept, so a new website can be created on it afterwards.\n\nSupported websites: main and addon domain websites on web hosting plans, and\nWebsite Builder websites. Parked domains and subdomains cannot be deleted with\nthis endpoint. The domain must be the exact website domain, not a preview\ndomain or an alias.\n\nReturns 404 when the domain does not exist or does not belong to the\nauthenticated client.\n\nWebsite removal is processed asynchronously and can take a few minutes to\ncomplete. The response returns before the removal finishes.",
|
|
@@ -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.",
|
|
@@ -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.",
|
|
@@ -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.",
|
|
@@ -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.",
|
|
@@ -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.44.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.44.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