hostinger-api-mcp 0.2.11 → 0.2.12

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,10 +49,11 @@ 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 (135 total)
52
+ - `hostinger-api-mcp` — unified server with every tool (137 total)
53
53
  - `hostinger-billing-mcp` — 7 tools for billing
54
54
  - `hostinger-dns-mcp` — 8 tools for dns
55
55
  - `hostinger-domains-mcp` — 18 tools for domains
56
+ - `hostinger-ecommerce-mcp` — 2 tools for ecommerce
56
57
  - `hostinger-hosting-mcp` — 30 tools for hosting
57
58
  - `hostinger-reach-mcp` — 10 tools for reach
58
59
  - `hostinger-vps-mcp` — 62 tools for vps
@@ -542,6 +543,24 @@ Use this endpoint to view which domains use specific contact profiles.
542
543
  - **Method**: `GET`
543
544
  - **Path**: `/api/domains/v1/whois/{whoisId}/usage`
544
545
 
546
+ ### `hostinger-ecommerce-mcp`
547
+
548
+ #### ecommerce_getStoresV1
549
+
550
+ Retrieve the stores associated with your account.
551
+
552
+ - **Method**: `GET`
553
+ - **Path**: `/api/ecommerce/v1/stores`
554
+
555
+ #### ecommerce_createStoreV1
556
+
557
+ Create a new store for your account.
558
+
559
+ A primary sales channel is created alongside the store.
560
+
561
+ - **Method**: `POST`
562
+ - **Path**: `/api/ecommerce/v1/stores`
563
+
545
564
  ### `hostinger-hosting-mcp`
546
565
 
547
566
  #### hosting_importWordpressWebsite
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-mcp",
3
- "version": "0.2.11",
3
+ "version": "0.2.12",
4
4
  "mcpName": "io.github.hostinger/hostinger-api-mcp",
5
5
  "description": "MCP server for Hostinger API",
6
6
  "repository": {
@@ -22,6 +22,7 @@
22
22
  "hostinger-billing-mcp": "./src/servers/billing.js",
23
23
  "hostinger-dns-mcp": "./src/servers/dns.js",
24
24
  "hostinger-domains-mcp": "./src/servers/domains.js",
25
+ "hostinger-ecommerce-mcp": "./src/servers/ecommerce.js",
25
26
  "hostinger-hosting-mcp": "./src/servers/hosting.js",
26
27
  "hostinger-reach-mcp": "./src/servers/reach.js",
27
28
  "hostinger-vps-mcp": "./src/servers/vps.js"
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": "0.2.11",
9
+ "version": "0.2.12",
10
10
  "packages": [
11
11
  {
12
12
  "registryType": "npm",
13
13
  "identifier": "hostinger-api-mcp",
14
- "version": "0.2.11",
14
+ "version": "0.2.12",
15
15
  "transport": {
16
16
  "type": "stdio"
17
17
  },
@@ -29,7 +29,7 @@ const SECURITY_SCHEMES = {
29
29
 
30
30
  /**
31
31
  * MCP Server for Hostinger API
32
- * Generated from OpenAPI spec version 0.18.1
32
+ * Generated from OpenAPI spec version 0.18.2
33
33
  */
34
34
  class MCPServer {
35
35
  constructor({ name, version, tools }) {
@@ -47,7 +47,7 @@ const SECURITY_SCHEMES: Record<string, SecurityScheme> = {
47
47
 
48
48
  /**
49
49
  * MCP Server for Hostinger API
50
- * Generated from OpenAPI spec version 0.18.1
50
+ * Generated from OpenAPI spec version 0.18.2
51
51
  */
52
52
  class MCPServer {
53
53
  private readonly name: string;
@@ -1287,6 +1287,83 @@ export default [
1287
1287
  ],
1288
1288
  "group": "domains"
1289
1289
  },
1290
+ {
1291
+ "name": "ecommerce_getStoresV1",
1292
+ "description": "Retrieve the stores associated with your account.",
1293
+ "method": "GET",
1294
+ "path": "/api/ecommerce/v1/stores",
1295
+ "inputSchema": {
1296
+ "type": "object",
1297
+ "properties": {
1298
+ "page": {
1299
+ "type": "integer",
1300
+ "description": "Page number"
1301
+ }
1302
+ },
1303
+ "required": []
1304
+ },
1305
+ "security": [
1306
+ {
1307
+ "apiToken": []
1308
+ }
1309
+ ],
1310
+ "group": "ecommerce"
1311
+ },
1312
+ {
1313
+ "name": "ecommerce_createStoreV1",
1314
+ "description": "Create a new store for your account.\n\nA primary sales channel is created alongside the store.",
1315
+ "method": "POST",
1316
+ "path": "/api/ecommerce/v1/stores",
1317
+ "inputSchema": {
1318
+ "type": "object",
1319
+ "properties": {
1320
+ "name": {
1321
+ "type": "string",
1322
+ "description": "name parameter"
1323
+ },
1324
+ "country_code": {
1325
+ "type": "string",
1326
+ "description": "ISO 3166-1 alpha-2 country code."
1327
+ },
1328
+ "company_email": {
1329
+ "type": "string",
1330
+ "description": "company_email parameter"
1331
+ },
1332
+ "company_name": {
1333
+ "type": "string",
1334
+ "description": "company_name parameter"
1335
+ },
1336
+ "language": {
1337
+ "type": "string",
1338
+ "description": "ISO 639-1 language code."
1339
+ },
1340
+ "sales_channel": {
1341
+ "type": "object",
1342
+ "description": "sales_channel parameter",
1343
+ "properties": {
1344
+ "type": {
1345
+ "type": "string",
1346
+ "description": "Sales channel type. Only \"custom\" channels can be created via the API.",
1347
+ "enum": [
1348
+ "custom"
1349
+ ]
1350
+ },
1351
+ "external_id": {
1352
+ "type": "string",
1353
+ "description": "External identifier for the sales channel."
1354
+ }
1355
+ }
1356
+ }
1357
+ },
1358
+ "required": []
1359
+ },
1360
+ "security": [
1361
+ {
1362
+ "apiToken": []
1363
+ }
1364
+ ],
1365
+ "group": "ecommerce"
1366
+ },
1290
1367
  {
1291
1368
  "name": "hosting_changeDatabasePasswordV1",
1292
1369
  "description": "Changes the password for the specified database user.\n\nThe database name must be the full name returned by the list databases endpoint.\nThe password must also be updated in any website configuration that uses this database.",
@@ -1297,6 +1297,83 @@ const tools: OpenApiTool[] = [
1297
1297
  ],
1298
1298
  "group": "domains"
1299
1299
  },
1300
+ {
1301
+ "name": "ecommerce_getStoresV1",
1302
+ "description": "Retrieve the stores associated with your account.",
1303
+ "method": "GET",
1304
+ "path": "/api/ecommerce/v1/stores",
1305
+ "inputSchema": {
1306
+ "type": "object",
1307
+ "properties": {
1308
+ "page": {
1309
+ "type": "integer",
1310
+ "description": "Page number"
1311
+ }
1312
+ },
1313
+ "required": []
1314
+ },
1315
+ "security": [
1316
+ {
1317
+ "apiToken": []
1318
+ }
1319
+ ],
1320
+ "group": "ecommerce"
1321
+ },
1322
+ {
1323
+ "name": "ecommerce_createStoreV1",
1324
+ "description": "Create a new store for your account.\n\nA primary sales channel is created alongside the store.",
1325
+ "method": "POST",
1326
+ "path": "/api/ecommerce/v1/stores",
1327
+ "inputSchema": {
1328
+ "type": "object",
1329
+ "properties": {
1330
+ "name": {
1331
+ "type": "string",
1332
+ "description": "name parameter"
1333
+ },
1334
+ "country_code": {
1335
+ "type": "string",
1336
+ "description": "ISO 3166-1 alpha-2 country code."
1337
+ },
1338
+ "company_email": {
1339
+ "type": "string",
1340
+ "description": "company_email parameter"
1341
+ },
1342
+ "company_name": {
1343
+ "type": "string",
1344
+ "description": "company_name parameter"
1345
+ },
1346
+ "language": {
1347
+ "type": "string",
1348
+ "description": "ISO 639-1 language code."
1349
+ },
1350
+ "sales_channel": {
1351
+ "type": "object",
1352
+ "description": "sales_channel parameter",
1353
+ "properties": {
1354
+ "type": {
1355
+ "type": "string",
1356
+ "description": "Sales channel type. Only \"custom\" channels can be created via the API.",
1357
+ "enum": [
1358
+ "custom"
1359
+ ]
1360
+ },
1361
+ "external_id": {
1362
+ "type": "string",
1363
+ "description": "External identifier for the sales channel."
1364
+ }
1365
+ }
1366
+ }
1367
+ },
1368
+ "required": []
1369
+ },
1370
+ "security": [
1371
+ {
1372
+ "apiToken": []
1373
+ }
1374
+ ],
1375
+ "group": "ecommerce"
1376
+ },
1300
1377
  {
1301
1378
  "name": "hosting_changeDatabasePasswordV1",
1302
1379
  "description": "Changes the password for the specified database user.\n\nThe database name must be the full name returned by the list databases endpoint.\nThe password must also be updated in any website configuration that uses this database.",
@@ -0,0 +1,80 @@
1
+ // Auto-generated tool list for group: ecommerce
2
+ export default [
3
+ {
4
+ "name": "ecommerce_getStoresV1",
5
+ "description": "Retrieve the stores associated with your account.",
6
+ "method": "GET",
7
+ "path": "/api/ecommerce/v1/stores",
8
+ "inputSchema": {
9
+ "type": "object",
10
+ "properties": {
11
+ "page": {
12
+ "type": "integer",
13
+ "description": "Page number"
14
+ }
15
+ },
16
+ "required": []
17
+ },
18
+ "security": [
19
+ {
20
+ "apiToken": []
21
+ }
22
+ ],
23
+ "group": "ecommerce"
24
+ },
25
+ {
26
+ "name": "ecommerce_createStoreV1",
27
+ "description": "Create a new store for your account.\n\nA primary sales channel is created alongside the store.",
28
+ "method": "POST",
29
+ "path": "/api/ecommerce/v1/stores",
30
+ "inputSchema": {
31
+ "type": "object",
32
+ "properties": {
33
+ "name": {
34
+ "type": "string",
35
+ "description": "name parameter"
36
+ },
37
+ "country_code": {
38
+ "type": "string",
39
+ "description": "ISO 3166-1 alpha-2 country code."
40
+ },
41
+ "company_email": {
42
+ "type": "string",
43
+ "description": "company_email parameter"
44
+ },
45
+ "company_name": {
46
+ "type": "string",
47
+ "description": "company_name parameter"
48
+ },
49
+ "language": {
50
+ "type": "string",
51
+ "description": "ISO 639-1 language code."
52
+ },
53
+ "sales_channel": {
54
+ "type": "object",
55
+ "description": "sales_channel parameter",
56
+ "properties": {
57
+ "type": {
58
+ "type": "string",
59
+ "description": "Sales channel type. Only \"custom\" channels can be created via the API.",
60
+ "enum": [
61
+ "custom"
62
+ ]
63
+ },
64
+ "external_id": {
65
+ "type": "string",
66
+ "description": "External identifier for the sales channel."
67
+ }
68
+ }
69
+ }
70
+ },
71
+ "required": []
72
+ },
73
+ "security": [
74
+ {
75
+ "apiToken": []
76
+ }
77
+ ],
78
+ "group": "ecommerce"
79
+ }
80
+ ];
@@ -0,0 +1,91 @@
1
+ // Auto-generated tool list for group: ecommerce
2
+ import type { Tool } from "@modelcontextprotocol/sdk/types.js";
3
+
4
+ export interface OpenApiTool extends Tool {
5
+ method: string;
6
+ path: string;
7
+ security: unknown[];
8
+ custom?: boolean;
9
+ group?: string;
10
+ }
11
+
12
+ const tools: OpenApiTool[] = [
13
+ {
14
+ "name": "ecommerce_getStoresV1",
15
+ "description": "Retrieve the stores associated with your account.",
16
+ "method": "GET",
17
+ "path": "/api/ecommerce/v1/stores",
18
+ "inputSchema": {
19
+ "type": "object",
20
+ "properties": {
21
+ "page": {
22
+ "type": "integer",
23
+ "description": "Page number"
24
+ }
25
+ },
26
+ "required": []
27
+ },
28
+ "security": [
29
+ {
30
+ "apiToken": []
31
+ }
32
+ ],
33
+ "group": "ecommerce"
34
+ },
35
+ {
36
+ "name": "ecommerce_createStoreV1",
37
+ "description": "Create a new store for your account.\n\nA primary sales channel is created alongside the store.",
38
+ "method": "POST",
39
+ "path": "/api/ecommerce/v1/stores",
40
+ "inputSchema": {
41
+ "type": "object",
42
+ "properties": {
43
+ "name": {
44
+ "type": "string",
45
+ "description": "name parameter"
46
+ },
47
+ "country_code": {
48
+ "type": "string",
49
+ "description": "ISO 3166-1 alpha-2 country code."
50
+ },
51
+ "company_email": {
52
+ "type": "string",
53
+ "description": "company_email parameter"
54
+ },
55
+ "company_name": {
56
+ "type": "string",
57
+ "description": "company_name parameter"
58
+ },
59
+ "language": {
60
+ "type": "string",
61
+ "description": "ISO 639-1 language code."
62
+ },
63
+ "sales_channel": {
64
+ "type": "object",
65
+ "description": "sales_channel parameter",
66
+ "properties": {
67
+ "type": {
68
+ "type": "string",
69
+ "description": "Sales channel type. Only \"custom\" channels can be created via the API.",
70
+ "enum": [
71
+ "custom"
72
+ ]
73
+ },
74
+ "external_id": {
75
+ "type": "string",
76
+ "description": "External identifier for the sales channel."
77
+ }
78
+ }
79
+ }
80
+ },
81
+ "required": []
82
+ },
83
+ "security": [
84
+ {
85
+ "apiToken": []
86
+ }
87
+ ],
88
+ "group": "ecommerce"
89
+ }
90
+ ];
91
+ export default 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: '0.2.11', tools });
6
+ startServer({ name: 'hostinger-api-mcp', version: '0.2.12', 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: '0.2.11', tools });
6
+ startServer({ name: 'hostinger-api-mcp', version: '0.2.12', 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: '0.2.11', tools });
6
+ startServer({ name: 'hostinger-billing-mcp', version: '0.2.12', 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: '0.2.11', tools });
6
+ startServer({ name: 'hostinger-billing-mcp', version: '0.2.12', 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: '0.2.11', tools });
6
+ startServer({ name: 'hostinger-dns-mcp', version: '0.2.12', 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: '0.2.11', tools });
6
+ startServer({ name: 'hostinger-dns-mcp', version: '0.2.12', 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: '0.2.11', tools });
6
+ startServer({ name: 'hostinger-domains-mcp', version: '0.2.12', 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: '0.2.11', tools });
6
+ startServer({ name: 'hostinger-domains-mcp', version: '0.2.12', tools });
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env node
2
+ // Auto-generated entry for group: ecommerce
3
+ import { startServer } from '../core/runtime.js';
4
+ import tools from '../core/tools/ecommerce.js';
5
+
6
+ startServer({ name: 'hostinger-ecommerce-mcp', version: '0.2.12', tools });
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env node
2
+ // Auto-generated entry for group: ecommerce
3
+ import { startServer } from '../core/runtime.js';
4
+ import tools from '../core/tools/ecommerce.js';
5
+
6
+ startServer({ name: 'hostinger-ecommerce-mcp', version: '0.2.12', 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: '0.2.11', tools });
6
+ startServer({ name: 'hostinger-hosting-mcp', version: '0.2.12', 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: '0.2.11', tools });
6
+ startServer({ name: 'hostinger-hosting-mcp', version: '0.2.12', 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: '0.2.11', tools });
6
+ startServer({ name: 'hostinger-reach-mcp', version: '0.2.12', 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: '0.2.11', tools });
6
+ startServer({ name: 'hostinger-reach-mcp', version: '0.2.12', 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: '0.2.11', tools });
6
+ startServer({ name: 'hostinger-vps-mcp', version: '0.2.12', 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: '0.2.11', tools });
6
+ startServer({ name: 'hostinger-vps-mcp', version: '0.2.12', tools });
package/types.d.ts CHANGED
@@ -796,6 +796,54 @@ Use this endpoint to view which domains use specific contact profiles.
796
796
  response: any; // Response structure will depend on the API
797
797
  };
798
798
 
799
+ /**
800
+ * Retrieve the stores associated with your account.
801
+ */
802
+ "ecommerce_getStoresV1": {
803
+ params: {
804
+ /**
805
+ * Page number
806
+ */
807
+ page?: number;
808
+ };
809
+ response: any; // Response structure will depend on the API
810
+ };
811
+
812
+ /**
813
+ * Create a new store for your account.
814
+
815
+ A primary sales channel is created alongside the store.
816
+ */
817
+ "ecommerce_createStoreV1": {
818
+ params: {
819
+ /**
820
+ * name parameter
821
+ */
822
+ name?: string;
823
+ /**
824
+ * ISO 3166-1 alpha-2 country code.
825
+ */
826
+ country_code?: string;
827
+ /**
828
+ * company_email parameter
829
+ */
830
+ company_email?: string;
831
+ /**
832
+ * company_name parameter
833
+ */
834
+ company_name?: string;
835
+ /**
836
+ * ISO 639-1 language code.
837
+ */
838
+ language?: string;
839
+ /**
840
+ * sales_channel parameter
841
+ */
842
+ sales_channel?: object;
843
+ };
844
+ response: any; // Response structure will depend on the API
845
+ };
846
+
799
847
  /**
800
848
  * Changes the password for the specified database user.
801
849