hostinger-api-mcp 1.5.7 → 1.6.1

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 CHANGED
@@ -49,14 +49,14 @@ pnpm update -g hostinger-api-mcp
49
49
 
50
50
  This package installs the following MCP server commands:
51
51
 
52
- - `hostinger-api-mcp` — unified server with every tool (213 total)
52
+ - `hostinger-api-mcp` — unified server with every tool (214 total)
53
53
  - `hostinger-agency-hosting-mcp` — 12 tools for agency-hosting
54
54
  - `hostinger-billing-mcp` — 7 tools for billing
55
55
  - `hostinger-dns-mcp` — 8 tools for dns
56
56
  - `hostinger-domains-mcp` — 18 tools for domains
57
57
  - `hostinger-ecommerce-mcp` — 12 tools for ecommerce
58
58
  - `hostinger-horizons-mcp` — 2 tools for horizons
59
- - `hostinger-hosting-mcp` — 45 tools for hosting
59
+ - `hostinger-hosting-mcp` — 46 tools for hosting
60
60
  - `hostinger-reach-mcp` — 12 tools for reach
61
61
  - `hostinger-vps-mcp` — 62 tools for vps
62
62
  - `hostinger-wordpress-mcp` — 35 tools for wordpress
@@ -1289,6 +1289,31 @@ websites list endpoint to see when your new website becomes available.
1289
1289
  - **Method**: `POST`
1290
1290
  - **Path**: `/api/hosting/v1/websites`
1291
1291
 
1292
+ #### hosting_deleteWebsiteV1
1293
+
1294
+ Permanently deletes a website and all of its data. This action is destructive
1295
+ and cannot be undone. Always ask the user for explicit confirmation before
1296
+ calling this endpoint.
1297
+
1298
+ All website files, databases and related configuration will be removed.
1299
+ The hosting plan itself is kept, so a new website can be created on it afterwards.
1300
+
1301
+ The confirm field must be boolean true, otherwise the request is rejected.
1302
+
1303
+ Supported websites: main and addon domain websites on web hosting plans, and
1304
+ Website Builder websites. Parked domains and subdomains cannot be deleted with
1305
+ this endpoint. The domain must be the exact website domain, not a preview
1306
+ domain or an alias.
1307
+
1308
+ Returns 404 when the domain does not exist or does not belong to the
1309
+ authenticated client.
1310
+
1311
+ Website removal is processed asynchronously and can take a few minutes to
1312
+ complete. The response returns before the removal finishes.
1313
+
1314
+ - **Method**: `DELETE`
1315
+ - **Path**: `/api/hosting/v1/websites/{domain}`
1316
+
1292
1317
  ### `hostinger-reach-mcp`
1293
1318
 
1294
1319
  #### reach_deleteAContactV1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-mcp",
3
- "version": "1.5.7",
3
+ "version": "1.6.1",
4
4
  "description": "Hostinger API — manage domains, DNS, hosting, VPS, billing and more from Gemini CLI.",
5
5
  "mcpServers": {
6
6
  "hostinger": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-mcp",
3
- "version": "1.5.7",
3
+ "version": "1.6.1",
4
4
  "mcpName": "io.github.hostinger/hostinger-api-mcp",
5
5
  "description": "MCP server for Hostinger API",
6
6
  "repository": {
@@ -39,7 +39,7 @@
39
39
  "@modelcontextprotocol/sdk": "^1.10.0",
40
40
  "axios": "^1.8.0",
41
41
  "cors": "^2.8.5",
42
- "dotenv": "^16.4.7",
42
+ "dotenv": "^17.4.2",
43
43
  "express": "^4.21.2",
44
44
  "minimist": "^1.2.8",
45
45
  "tus-js-client": "^4.1.0"
package/server.json CHANGED
@@ -6,12 +6,12 @@
6
6
  "url": "https://github.com/hostinger/api-mcp-server",
7
7
  "source": "github"
8
8
  },
9
- "version": "1.5.7",
9
+ "version": "1.6.1",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "hostinger-api-mcp",
14
- "version": "1.5.7",
14
+ "version": "1.6.1",
15
15
  "transport": {
16
16
  "type": "stdio"
17
17
  },
@@ -17,7 +17,7 @@ import fs from "fs";
17
17
  import path from "path";
18
18
 
19
19
  // Load environment variables
20
- dotenvConfig();
20
+ dotenvConfig({ quiet: true });
21
21
 
22
22
  const SECURITY_SCHEMES = {
23
23
  "apiToken": {
@@ -29,7 +29,7 @@ const SECURITY_SCHEMES = {
29
29
 
30
30
  /**
31
31
  * MCP Server for Hostinger API
32
- * Generated from OpenAPI spec version 1.6.2
32
+ * Generated from OpenAPI spec version 1.7.0
33
33
  */
34
34
  class MCPServer {
35
35
  constructor({ name, version, tools }) {
@@ -19,7 +19,7 @@ import fs from "fs";
19
19
  import path from "path";
20
20
 
21
21
  // Load environment variables
22
- dotenvConfig();
22
+ dotenvConfig({ quiet: true });
23
23
 
24
24
  // Define tool and security scheme types
25
25
  interface OpenApiTool extends Tool {
@@ -52,7 +52,7 @@ const SECURITY_SCHEMES: Record<string, SecurityScheme> = {
52
52
 
53
53
  /**
54
54
  * MCP Server for Hostinger API
55
- * Generated from OpenAPI spec version 1.6.2
55
+ * Generated from OpenAPI spec version 1.7.0
56
56
  */
57
57
  class MCPServer {
58
58
  private readonly name: string;
@@ -3520,6 +3520,30 @@ export default [
3520
3520
  ],
3521
3521
  "group": "hosting"
3522
3522
  },
3523
+ {
3524
+ "name": "hosting_deleteWebsiteV1",
3525
+ "description": "Permanently deletes a website and all of its data. This action is destructive\nand cannot be undone. Always ask the user for explicit confirmation before\ncalling this endpoint.\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\nThe confirm field must be boolean true, otherwise the request is rejected.\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.",
3526
+ "method": "DELETE",
3527
+ "path": "/api/hosting/v1/websites/{domain}",
3528
+ "inputSchema": {
3529
+ "type": "object",
3530
+ "properties": {
3531
+ "domain": {
3532
+ "type": "string",
3533
+ "description": "Domain name"
3534
+ }
3535
+ },
3536
+ "required": [
3537
+ "domain"
3538
+ ]
3539
+ },
3540
+ "security": [
3541
+ {
3542
+ "apiToken": []
3543
+ }
3544
+ ],
3545
+ "group": "hosting"
3546
+ },
3523
3547
  {
3524
3548
  "name": "reach_deleteAContactV1",
3525
3549
  "description": "Delete a contact with the specified UUID.\n\nThis endpoint permanently removes a contact from the email marketing system.",
@@ -3534,6 +3534,30 @@ const tools: OpenApiTool[] = [
3534
3534
  ],
3535
3535
  "group": "hosting"
3536
3536
  },
3537
+ {
3538
+ "name": "hosting_deleteWebsiteV1",
3539
+ "description": "Permanently deletes a website and all of its data. This action is destructive\nand cannot be undone. Always ask the user for explicit confirmation before\ncalling this endpoint.\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\nThe confirm field must be boolean true, otherwise the request is rejected.\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.",
3540
+ "method": "DELETE",
3541
+ "path": "/api/hosting/v1/websites/{domain}",
3542
+ "inputSchema": {
3543
+ "type": "object",
3544
+ "properties": {
3545
+ "domain": {
3546
+ "type": "string",
3547
+ "description": "Domain name"
3548
+ }
3549
+ },
3550
+ "required": [
3551
+ "domain"
3552
+ ]
3553
+ },
3554
+ "security": [
3555
+ {
3556
+ "apiToken": []
3557
+ }
3558
+ ],
3559
+ "group": "hosting"
3560
+ },
3537
3561
  {
3538
3562
  "name": "reach_deleteAContactV1",
3539
3563
  "description": "Delete a contact with the specified UUID.\n\nThis endpoint permanently removes a contact from the email marketing system.",
@@ -1571,5 +1571,29 @@ export default [
1571
1571
  }
1572
1572
  ],
1573
1573
  "group": "hosting"
1574
+ },
1575
+ {
1576
+ "name": "hosting_deleteWebsiteV1",
1577
+ "description": "Permanently deletes a website and all of its data. This action is destructive\nand cannot be undone. Always ask the user for explicit confirmation before\ncalling this endpoint.\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\nThe confirm field must be boolean true, otherwise the request is rejected.\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.",
1578
+ "method": "DELETE",
1579
+ "path": "/api/hosting/v1/websites/{domain}",
1580
+ "inputSchema": {
1581
+ "type": "object",
1582
+ "properties": {
1583
+ "domain": {
1584
+ "type": "string",
1585
+ "description": "Domain name"
1586
+ }
1587
+ },
1588
+ "required": [
1589
+ "domain"
1590
+ ]
1591
+ },
1592
+ "security": [
1593
+ {
1594
+ "apiToken": []
1595
+ }
1596
+ ],
1597
+ "group": "hosting"
1574
1598
  }
1575
1599
  ];
@@ -1585,6 +1585,30 @@ const tools: OpenApiTool[] = [
1585
1585
  }
1586
1586
  ],
1587
1587
  "group": "hosting"
1588
+ },
1589
+ {
1590
+ "name": "hosting_deleteWebsiteV1",
1591
+ "description": "Permanently deletes a website and all of its data. This action is destructive\nand cannot be undone. Always ask the user for explicit confirmation before\ncalling this endpoint.\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\nThe confirm field must be boolean true, otherwise the request is rejected.\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.",
1592
+ "method": "DELETE",
1593
+ "path": "/api/hosting/v1/websites/{domain}",
1594
+ "inputSchema": {
1595
+ "type": "object",
1596
+ "properties": {
1597
+ "domain": {
1598
+ "type": "string",
1599
+ "description": "Domain name"
1600
+ }
1601
+ },
1602
+ "required": [
1603
+ "domain"
1604
+ ]
1605
+ },
1606
+ "security": [
1607
+ {
1608
+ "apiToken": []
1609
+ }
1610
+ ],
1611
+ "group": "hosting"
1588
1612
  }
1589
1613
  ];
1590
1614
  export default 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.5.7', tools });
6
+ startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.6.1', 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.5.7', tools });
6
+ startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.6.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/all.js';
5
5
 
6
- startServer({ name: 'hostinger-api-mcp', version: '1.5.7', tools });
6
+ startServer({ name: 'hostinger-api-mcp', version: '1.6.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/all.js';
5
5
 
6
- startServer({ name: 'hostinger-api-mcp', version: '1.5.7', tools });
6
+ startServer({ name: 'hostinger-api-mcp', version: '1.6.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/billing.js';
5
5
 
6
- startServer({ name: 'hostinger-billing-mcp', version: '1.5.7', tools });
6
+ startServer({ name: 'hostinger-billing-mcp', version: '1.6.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/billing.js';
5
5
 
6
- startServer({ name: 'hostinger-billing-mcp', version: '1.5.7', tools });
6
+ startServer({ name: 'hostinger-billing-mcp', version: '1.6.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/dns.js';
5
5
 
6
- startServer({ name: 'hostinger-dns-mcp', version: '1.5.7', tools });
6
+ startServer({ name: 'hostinger-dns-mcp', version: '1.6.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/dns.js';
5
5
 
6
- startServer({ name: 'hostinger-dns-mcp', version: '1.5.7', tools });
6
+ startServer({ name: 'hostinger-dns-mcp', version: '1.6.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/domains.js';
5
5
 
6
- startServer({ name: 'hostinger-domains-mcp', version: '1.5.7', tools });
6
+ startServer({ name: 'hostinger-domains-mcp', version: '1.6.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/domains.js';
5
5
 
6
- startServer({ name: 'hostinger-domains-mcp', version: '1.5.7', tools });
6
+ startServer({ name: 'hostinger-domains-mcp', version: '1.6.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/ecommerce.js';
5
5
 
6
- startServer({ name: 'hostinger-ecommerce-mcp', version: '1.5.7', tools });
6
+ startServer({ name: 'hostinger-ecommerce-mcp', version: '1.6.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/ecommerce.js';
5
5
 
6
- startServer({ name: 'hostinger-ecommerce-mcp', version: '1.5.7', tools });
6
+ startServer({ name: 'hostinger-ecommerce-mcp', version: '1.6.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/horizons.js';
5
5
 
6
- startServer({ name: 'hostinger-horizons-mcp', version: '1.5.7', tools });
6
+ startServer({ name: 'hostinger-horizons-mcp', version: '1.6.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/horizons.js';
5
5
 
6
- startServer({ name: 'hostinger-horizons-mcp', version: '1.5.7', tools });
6
+ startServer({ name: 'hostinger-horizons-mcp', version: '1.6.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/hosting.js';
5
5
 
6
- startServer({ name: 'hostinger-hosting-mcp', version: '1.5.7', tools });
6
+ startServer({ name: 'hostinger-hosting-mcp', version: '1.6.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/hosting.js';
5
5
 
6
- startServer({ name: 'hostinger-hosting-mcp', version: '1.5.7', tools });
6
+ startServer({ name: 'hostinger-hosting-mcp', version: '1.6.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/reach.js';
5
5
 
6
- startServer({ name: 'hostinger-reach-mcp', version: '1.5.7', tools });
6
+ startServer({ name: 'hostinger-reach-mcp', version: '1.6.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/reach.js';
5
5
 
6
- startServer({ name: 'hostinger-reach-mcp', version: '1.5.7', tools });
6
+ startServer({ name: 'hostinger-reach-mcp', version: '1.6.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/vps.js';
5
5
 
6
- startServer({ name: 'hostinger-vps-mcp', version: '1.5.7', tools });
6
+ startServer({ name: 'hostinger-vps-mcp', version: '1.6.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/vps.js';
5
5
 
6
- startServer({ name: 'hostinger-vps-mcp', version: '1.5.7', tools });
6
+ startServer({ name: 'hostinger-vps-mcp', version: '1.6.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/wordpress.js';
5
5
 
6
- startServer({ name: 'hostinger-wordpress-mcp', version: '1.5.7', tools });
6
+ startServer({ name: 'hostinger-wordpress-mcp', version: '1.6.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/wordpress.js';
5
5
 
6
- startServer({ name: 'hostinger-wordpress-mcp', version: '1.5.7', tools });
6
+ startServer({ name: 'hostinger-wordpress-mcp', version: '1.6.1', tools });
package/types.d.ts CHANGED
@@ -2331,6 +2331,37 @@ websites list endpoint to see when your new website becomes available.
2331
2331
  response: any; // Response structure will depend on the API
2332
2332
  };
2333
2333
 
2334
+ /**
2335
+ * Permanently deletes a website and all of its data. This action is destructive
2336
+ and cannot be undone. Always ask the user for explicit confirmation before
2337
+ calling this endpoint.
2338
+
2339
+ All website files, databases and related configuration will be removed.
2340
+ The hosting plan itself is kept, so a new website can be created on it afterwards.
2341
+
2342
+ The confirm field must be boolean true, otherwise the request is rejected.
2343
+
2344
+ Supported websites: main and addon domain websites on web hosting plans, and
2345
+ Website Builder websites. Parked domains and subdomains cannot be deleted with
2346
+ this endpoint. The domain must be the exact website domain, not a preview
2347
+ domain or an alias.
2348
+
2349
+ Returns 404 when the domain does not exist or does not belong to the
2350
+ authenticated client.
2351
+
2352
+ Website removal is processed asynchronously and can take a few minutes to
2353
+ complete. The response returns before the removal finishes.
2354
+ */
2355
+ "hosting_deleteWebsiteV1": {
2356
+ params: {
2357
+ /**
2358
+ * Domain name
2359
+ */
2360
+ domain: string;
2361
+ };
2362
+ response: any; // Response structure will depend on the API
2363
+ };
2364
+
2334
2365
  /**
2335
2366
  * Delete a contact with the specified UUID.
2336
2367