hostinger-api-mcp 1.12.1 → 1.13.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 +32 -3
- 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/all.js +87 -0
- package/src/core/tools/all.ts +87 -0
- package/src/core/tools/billing.js +53 -0
- package/src/core/tools/billing.ts +53 -0
- package/src/core/tools/mail.js +34 -0
- package/src/core/tools/mail.ts +34 -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 +57 -0
package/README.md
CHANGED
|
@@ -49,15 +49,15 @@ 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 (
|
|
52
|
+
- `hostinger-api-mcp` — unified server with every tool (236 total)
|
|
53
53
|
- `hostinger-agency-hosting-mcp` — 23 tools for agency-hosting
|
|
54
|
-
- `hostinger-billing-mcp` —
|
|
54
|
+
- `hostinger-billing-mcp` — 8 tools for billing
|
|
55
55
|
- `hostinger-dns-mcp` — 8 tools for dns
|
|
56
56
|
- `hostinger-domains-mcp` — 23 tools for domains
|
|
57
57
|
- `hostinger-ecommerce-mcp` — 12 tools for ecommerce
|
|
58
58
|
- `hostinger-horizons-mcp` — 2 tools for horizons
|
|
59
59
|
- `hostinger-hosting-mcp` — 48 tools for hosting
|
|
60
|
-
- `hostinger-mail-mcp` —
|
|
60
|
+
- `hostinger-mail-mcp` — 3 tools for mail
|
|
61
61
|
- `hostinger-reach-mcp` — 12 tools for reach
|
|
62
62
|
- `hostinger-vps-mcp` — 62 tools for vps
|
|
63
63
|
- `hostinger-wordpress-mcp` — 35 tools for wordpress
|
|
@@ -446,6 +446,27 @@ Use this endpoint to view available services and pricing before placing orders.
|
|
|
446
446
|
- **Method**: `GET`
|
|
447
447
|
- **Path**: `/api/billing/v1/catalog`
|
|
448
448
|
|
|
449
|
+
#### billing_createPurchaseOrderV1
|
|
450
|
+
|
|
451
|
+
Create a purchase order for any Hostinger product.
|
|
452
|
+
|
|
453
|
+
This unified endpoint places an order for one or more catalog items and
|
|
454
|
+
works across all Hostinger products, leveraging the existing billing
|
|
455
|
+
infrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look
|
|
456
|
+
up the `item_id` values available for purchase.
|
|
457
|
+
|
|
458
|
+
If no payment method is provided, your default payment method will be used automatically.
|
|
459
|
+
|
|
460
|
+
This endpoint only places the order. Product-specific provisioning
|
|
461
|
+
(e.g. VPS setup or domain registration) is not performed here — once the
|
|
462
|
+
order completes, use the relevant product endpoints or
|
|
463
|
+
[hPanel](https://hpanel.hostinger.com/) to finalize setup.
|
|
464
|
+
|
|
465
|
+
Use this endpoint to purchase any product available in the catalog.
|
|
466
|
+
|
|
467
|
+
- **Method**: `POST`
|
|
468
|
+
- **Path**: `/api/billing/v1/orders`
|
|
469
|
+
|
|
449
470
|
#### billing_setDefaultPaymentMethodV1
|
|
450
471
|
|
|
451
472
|
Set the default payment method for your account.
|
|
@@ -1515,6 +1536,14 @@ periodically synced usage numbers (usage may lag behind live values).
|
|
|
1515
1536
|
- **Method**: `GET`
|
|
1516
1537
|
- **Path**: `/api/mail/v1/orders/{orderId}/mailboxes`
|
|
1517
1538
|
|
|
1539
|
+
#### mail_createMailboxV1
|
|
1540
|
+
|
|
1541
|
+
Create a mailbox under the given mail order. The full email address is
|
|
1542
|
+
composed from the given local part and the domain of the order.
|
|
1543
|
+
|
|
1544
|
+
- **Method**: `POST`
|
|
1545
|
+
- **Path**: `/api/mail/v1/orders/{orderId}/mailboxes`
|
|
1546
|
+
|
|
1518
1547
|
#### mail_getMailOrderListV1
|
|
1519
1548
|
|
|
1520
1549
|
Retrieve a paginated list of mail orders associated with your account.
|
package/gemini-extension.json
CHANGED
package/package.json
CHANGED
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.
|
|
9
|
+
"version": "1.13.0",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "hostinger-api-mcp",
|
|
14
|
-
"version": "1.
|
|
14
|
+
"version": "1.13.0",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
},
|
package/src/core/runtime.js
CHANGED
package/src/core/runtime.ts
CHANGED
package/src/core/tools/all.js
CHANGED
|
@@ -1111,6 +1111,59 @@ export default [
|
|
|
1111
1111
|
],
|
|
1112
1112
|
"group": "billing"
|
|
1113
1113
|
},
|
|
1114
|
+
{
|
|
1115
|
+
"name": "billing_createPurchaseOrderV1",
|
|
1116
|
+
"description": "Create a purchase order for any Hostinger product.\n\nThis unified endpoint places an order for one or more catalog items and\nworks across all Hostinger products, leveraging the existing billing\ninfrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look\nup the `item_id` values available for purchase.\n\nIf no payment method is provided, your default payment method will be used automatically.\n\nThis endpoint only places the order. Product-specific provisioning\n(e.g. VPS setup or domain registration) is not performed here — once the\norder completes, use the relevant product endpoints or\n[hPanel](https://hpanel.hostinger.com/) to finalize setup.\n\nUse this endpoint to purchase any product available in the catalog.",
|
|
1117
|
+
"method": "POST",
|
|
1118
|
+
"path": "/api/billing/v1/orders",
|
|
1119
|
+
"inputSchema": {
|
|
1120
|
+
"type": "object",
|
|
1121
|
+
"properties": {
|
|
1122
|
+
"payment_method_id": {
|
|
1123
|
+
"type": "integer",
|
|
1124
|
+
"description": "Payment method ID, default will be used if not provided"
|
|
1125
|
+
},
|
|
1126
|
+
"items": {
|
|
1127
|
+
"type": "array",
|
|
1128
|
+
"description": "Catalog price items to purchase",
|
|
1129
|
+
"items": {
|
|
1130
|
+
"type": "object",
|
|
1131
|
+
"description": "items parameter",
|
|
1132
|
+
"properties": {
|
|
1133
|
+
"item_id": {
|
|
1134
|
+
"type": "string",
|
|
1135
|
+
"description": "Catalog price item ID"
|
|
1136
|
+
},
|
|
1137
|
+
"quantity": {
|
|
1138
|
+
"type": "integer",
|
|
1139
|
+
"description": "Quantity to purchase"
|
|
1140
|
+
}
|
|
1141
|
+
},
|
|
1142
|
+
"required": [
|
|
1143
|
+
"item_id"
|
|
1144
|
+
]
|
|
1145
|
+
}
|
|
1146
|
+
},
|
|
1147
|
+
"coupons": {
|
|
1148
|
+
"type": "array",
|
|
1149
|
+
"description": "Discount coupon codes",
|
|
1150
|
+
"items": {
|
|
1151
|
+
"type": "string",
|
|
1152
|
+
"description": "coupons parameter"
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
},
|
|
1156
|
+
"required": [
|
|
1157
|
+
"items"
|
|
1158
|
+
]
|
|
1159
|
+
},
|
|
1160
|
+
"security": [
|
|
1161
|
+
{
|
|
1162
|
+
"apiToken": []
|
|
1163
|
+
}
|
|
1164
|
+
],
|
|
1165
|
+
"group": "billing"
|
|
1166
|
+
},
|
|
1114
1167
|
{
|
|
1115
1168
|
"name": "billing_setDefaultPaymentMethodV1",
|
|
1116
1169
|
"description": "Set the default payment method for your account.\n\nUse this endpoint to configure the primary payment method for future orders.",
|
|
@@ -4161,6 +4214,40 @@ export default [
|
|
|
4161
4214
|
],
|
|
4162
4215
|
"group": "mail"
|
|
4163
4216
|
},
|
|
4217
|
+
{
|
|
4218
|
+
"name": "mail_createMailboxV1",
|
|
4219
|
+
"description": "Create a mailbox under the given mail order. The full email address is\ncomposed from the given local part and the domain of the order.",
|
|
4220
|
+
"method": "POST",
|
|
4221
|
+
"path": "/api/mail/v1/orders/{orderId}/mailboxes",
|
|
4222
|
+
"inputSchema": {
|
|
4223
|
+
"type": "object",
|
|
4224
|
+
"properties": {
|
|
4225
|
+
"orderId": {
|
|
4226
|
+
"type": "string",
|
|
4227
|
+
"description": "Order resource ID"
|
|
4228
|
+
},
|
|
4229
|
+
"local_part": {
|
|
4230
|
+
"type": "string",
|
|
4231
|
+
"description": "Local part of the mailbox address (the part before the @). The domain is taken from the order. Must start and end with a letter or digit; single dots, underscores and hyphens are allowed in between."
|
|
4232
|
+
},
|
|
4233
|
+
"password": {
|
|
4234
|
+
"type": "string",
|
|
4235
|
+
"description": "Mailbox password. Minimum 8 characters with uppercase, lowercase, number and special character."
|
|
4236
|
+
}
|
|
4237
|
+
},
|
|
4238
|
+
"required": [
|
|
4239
|
+
"orderId",
|
|
4240
|
+
"local_part",
|
|
4241
|
+
"password"
|
|
4242
|
+
]
|
|
4243
|
+
},
|
|
4244
|
+
"security": [
|
|
4245
|
+
{
|
|
4246
|
+
"apiToken": []
|
|
4247
|
+
}
|
|
4248
|
+
],
|
|
4249
|
+
"group": "mail"
|
|
4250
|
+
},
|
|
4164
4251
|
{
|
|
4165
4252
|
"name": "mail_getMailOrderListV1",
|
|
4166
4253
|
"description": "Retrieve a paginated list of mail orders associated with your account.\n\nUse this endpoint to monitor your mail services, including their status,\nplan, attached domain, and expiration details.",
|
package/src/core/tools/all.ts
CHANGED
|
@@ -1125,6 +1125,59 @@ const tools: OpenApiTool[] = [
|
|
|
1125
1125
|
],
|
|
1126
1126
|
"group": "billing"
|
|
1127
1127
|
},
|
|
1128
|
+
{
|
|
1129
|
+
"name": "billing_createPurchaseOrderV1",
|
|
1130
|
+
"description": "Create a purchase order for any Hostinger product.\n\nThis unified endpoint places an order for one or more catalog items and\nworks across all Hostinger products, leveraging the existing billing\ninfrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look\nup the `item_id` values available for purchase.\n\nIf no payment method is provided, your default payment method will be used automatically.\n\nThis endpoint only places the order. Product-specific provisioning\n(e.g. VPS setup or domain registration) is not performed here — once the\norder completes, use the relevant product endpoints or\n[hPanel](https://hpanel.hostinger.com/) to finalize setup.\n\nUse this endpoint to purchase any product available in the catalog.",
|
|
1131
|
+
"method": "POST",
|
|
1132
|
+
"path": "/api/billing/v1/orders",
|
|
1133
|
+
"inputSchema": {
|
|
1134
|
+
"type": "object",
|
|
1135
|
+
"properties": {
|
|
1136
|
+
"payment_method_id": {
|
|
1137
|
+
"type": "integer",
|
|
1138
|
+
"description": "Payment method ID, default will be used if not provided"
|
|
1139
|
+
},
|
|
1140
|
+
"items": {
|
|
1141
|
+
"type": "array",
|
|
1142
|
+
"description": "Catalog price items to purchase",
|
|
1143
|
+
"items": {
|
|
1144
|
+
"type": "object",
|
|
1145
|
+
"description": "items parameter",
|
|
1146
|
+
"properties": {
|
|
1147
|
+
"item_id": {
|
|
1148
|
+
"type": "string",
|
|
1149
|
+
"description": "Catalog price item ID"
|
|
1150
|
+
},
|
|
1151
|
+
"quantity": {
|
|
1152
|
+
"type": "integer",
|
|
1153
|
+
"description": "Quantity to purchase"
|
|
1154
|
+
}
|
|
1155
|
+
},
|
|
1156
|
+
"required": [
|
|
1157
|
+
"item_id"
|
|
1158
|
+
]
|
|
1159
|
+
}
|
|
1160
|
+
},
|
|
1161
|
+
"coupons": {
|
|
1162
|
+
"type": "array",
|
|
1163
|
+
"description": "Discount coupon codes",
|
|
1164
|
+
"items": {
|
|
1165
|
+
"type": "string",
|
|
1166
|
+
"description": "coupons parameter"
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
},
|
|
1170
|
+
"required": [
|
|
1171
|
+
"items"
|
|
1172
|
+
]
|
|
1173
|
+
},
|
|
1174
|
+
"security": [
|
|
1175
|
+
{
|
|
1176
|
+
"apiToken": []
|
|
1177
|
+
}
|
|
1178
|
+
],
|
|
1179
|
+
"group": "billing"
|
|
1180
|
+
},
|
|
1128
1181
|
{
|
|
1129
1182
|
"name": "billing_setDefaultPaymentMethodV1",
|
|
1130
1183
|
"description": "Set the default payment method for your account.\n\nUse this endpoint to configure the primary payment method for future orders.",
|
|
@@ -4175,6 +4228,40 @@ const tools: OpenApiTool[] = [
|
|
|
4175
4228
|
],
|
|
4176
4229
|
"group": "mail"
|
|
4177
4230
|
},
|
|
4231
|
+
{
|
|
4232
|
+
"name": "mail_createMailboxV1",
|
|
4233
|
+
"description": "Create a mailbox under the given mail order. The full email address is\ncomposed from the given local part and the domain of the order.",
|
|
4234
|
+
"method": "POST",
|
|
4235
|
+
"path": "/api/mail/v1/orders/{orderId}/mailboxes",
|
|
4236
|
+
"inputSchema": {
|
|
4237
|
+
"type": "object",
|
|
4238
|
+
"properties": {
|
|
4239
|
+
"orderId": {
|
|
4240
|
+
"type": "string",
|
|
4241
|
+
"description": "Order resource ID"
|
|
4242
|
+
},
|
|
4243
|
+
"local_part": {
|
|
4244
|
+
"type": "string",
|
|
4245
|
+
"description": "Local part of the mailbox address (the part before the @). The domain is taken from the order. Must start and end with a letter or digit; single dots, underscores and hyphens are allowed in between."
|
|
4246
|
+
},
|
|
4247
|
+
"password": {
|
|
4248
|
+
"type": "string",
|
|
4249
|
+
"description": "Mailbox password. Minimum 8 characters with uppercase, lowercase, number and special character."
|
|
4250
|
+
}
|
|
4251
|
+
},
|
|
4252
|
+
"required": [
|
|
4253
|
+
"orderId",
|
|
4254
|
+
"local_part",
|
|
4255
|
+
"password"
|
|
4256
|
+
]
|
|
4257
|
+
},
|
|
4258
|
+
"security": [
|
|
4259
|
+
{
|
|
4260
|
+
"apiToken": []
|
|
4261
|
+
}
|
|
4262
|
+
],
|
|
4263
|
+
"group": "mail"
|
|
4264
|
+
},
|
|
4178
4265
|
{
|
|
4179
4266
|
"name": "mail_getMailOrderListV1",
|
|
4180
4267
|
"description": "Retrieve a paginated list of mail orders associated with your account.\n\nUse this endpoint to monitor your mail services, including their status,\nplan, attached domain, and expiration details.",
|
|
@@ -30,6 +30,59 @@ export default [
|
|
|
30
30
|
],
|
|
31
31
|
"group": "billing"
|
|
32
32
|
},
|
|
33
|
+
{
|
|
34
|
+
"name": "billing_createPurchaseOrderV1",
|
|
35
|
+
"description": "Create a purchase order for any Hostinger product.\n\nThis unified endpoint places an order for one or more catalog items and\nworks across all Hostinger products, leveraging the existing billing\ninfrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look\nup the `item_id` values available for purchase.\n\nIf no payment method is provided, your default payment method will be used automatically.\n\nThis endpoint only places the order. Product-specific provisioning\n(e.g. VPS setup or domain registration) is not performed here — once the\norder completes, use the relevant product endpoints or\n[hPanel](https://hpanel.hostinger.com/) to finalize setup.\n\nUse this endpoint to purchase any product available in the catalog.",
|
|
36
|
+
"method": "POST",
|
|
37
|
+
"path": "/api/billing/v1/orders",
|
|
38
|
+
"inputSchema": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"properties": {
|
|
41
|
+
"payment_method_id": {
|
|
42
|
+
"type": "integer",
|
|
43
|
+
"description": "Payment method ID, default will be used if not provided"
|
|
44
|
+
},
|
|
45
|
+
"items": {
|
|
46
|
+
"type": "array",
|
|
47
|
+
"description": "Catalog price items to purchase",
|
|
48
|
+
"items": {
|
|
49
|
+
"type": "object",
|
|
50
|
+
"description": "items parameter",
|
|
51
|
+
"properties": {
|
|
52
|
+
"item_id": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "Catalog price item ID"
|
|
55
|
+
},
|
|
56
|
+
"quantity": {
|
|
57
|
+
"type": "integer",
|
|
58
|
+
"description": "Quantity to purchase"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"required": [
|
|
62
|
+
"item_id"
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"coupons": {
|
|
67
|
+
"type": "array",
|
|
68
|
+
"description": "Discount coupon codes",
|
|
69
|
+
"items": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"description": "coupons parameter"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"required": [
|
|
76
|
+
"items"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"security": [
|
|
80
|
+
{
|
|
81
|
+
"apiToken": []
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"group": "billing"
|
|
85
|
+
},
|
|
33
86
|
{
|
|
34
87
|
"name": "billing_setDefaultPaymentMethodV1",
|
|
35
88
|
"description": "Set the default payment method for your account.\n\nUse this endpoint to configure the primary payment method for future orders.",
|
|
@@ -44,6 +44,59 @@ const tools: OpenApiTool[] = [
|
|
|
44
44
|
],
|
|
45
45
|
"group": "billing"
|
|
46
46
|
},
|
|
47
|
+
{
|
|
48
|
+
"name": "billing_createPurchaseOrderV1",
|
|
49
|
+
"description": "Create a purchase order for any Hostinger product.\n\nThis unified endpoint places an order for one or more catalog items and\nworks across all Hostinger products, leveraging the existing billing\ninfrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look\nup the `item_id` values available for purchase.\n\nIf no payment method is provided, your default payment method will be used automatically.\n\nThis endpoint only places the order. Product-specific provisioning\n(e.g. VPS setup or domain registration) is not performed here — once the\norder completes, use the relevant product endpoints or\n[hPanel](https://hpanel.hostinger.com/) to finalize setup.\n\nUse this endpoint to purchase any product available in the catalog.",
|
|
50
|
+
"method": "POST",
|
|
51
|
+
"path": "/api/billing/v1/orders",
|
|
52
|
+
"inputSchema": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"properties": {
|
|
55
|
+
"payment_method_id": {
|
|
56
|
+
"type": "integer",
|
|
57
|
+
"description": "Payment method ID, default will be used if not provided"
|
|
58
|
+
},
|
|
59
|
+
"items": {
|
|
60
|
+
"type": "array",
|
|
61
|
+
"description": "Catalog price items to purchase",
|
|
62
|
+
"items": {
|
|
63
|
+
"type": "object",
|
|
64
|
+
"description": "items parameter",
|
|
65
|
+
"properties": {
|
|
66
|
+
"item_id": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"description": "Catalog price item ID"
|
|
69
|
+
},
|
|
70
|
+
"quantity": {
|
|
71
|
+
"type": "integer",
|
|
72
|
+
"description": "Quantity to purchase"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"required": [
|
|
76
|
+
"item_id"
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"coupons": {
|
|
81
|
+
"type": "array",
|
|
82
|
+
"description": "Discount coupon codes",
|
|
83
|
+
"items": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"description": "coupons parameter"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"required": [
|
|
90
|
+
"items"
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
"security": [
|
|
94
|
+
{
|
|
95
|
+
"apiToken": []
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"group": "billing"
|
|
99
|
+
},
|
|
47
100
|
{
|
|
48
101
|
"name": "billing_setDefaultPaymentMethodV1",
|
|
49
102
|
"description": "Set the default payment method for your account.\n\nUse this endpoint to configure the primary payment method for future orders.",
|
package/src/core/tools/mail.js
CHANGED
|
@@ -44,6 +44,40 @@ export default [
|
|
|
44
44
|
],
|
|
45
45
|
"group": "mail"
|
|
46
46
|
},
|
|
47
|
+
{
|
|
48
|
+
"name": "mail_createMailboxV1",
|
|
49
|
+
"description": "Create a mailbox under the given mail order. The full email address is\ncomposed from the given local part and the domain of the order.",
|
|
50
|
+
"method": "POST",
|
|
51
|
+
"path": "/api/mail/v1/orders/{orderId}/mailboxes",
|
|
52
|
+
"inputSchema": {
|
|
53
|
+
"type": "object",
|
|
54
|
+
"properties": {
|
|
55
|
+
"orderId": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"description": "Order resource ID"
|
|
58
|
+
},
|
|
59
|
+
"local_part": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"description": "Local part of the mailbox address (the part before the @). The domain is taken from the order. Must start and end with a letter or digit; single dots, underscores and hyphens are allowed in between."
|
|
62
|
+
},
|
|
63
|
+
"password": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"description": "Mailbox password. Minimum 8 characters with uppercase, lowercase, number and special character."
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"required": [
|
|
69
|
+
"orderId",
|
|
70
|
+
"local_part",
|
|
71
|
+
"password"
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"security": [
|
|
75
|
+
{
|
|
76
|
+
"apiToken": []
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"group": "mail"
|
|
80
|
+
},
|
|
47
81
|
{
|
|
48
82
|
"name": "mail_getMailOrderListV1",
|
|
49
83
|
"description": "Retrieve a paginated list of mail orders associated with your account.\n\nUse this endpoint to monitor your mail services, including their status,\nplan, attached domain, and expiration details.",
|
package/src/core/tools/mail.ts
CHANGED
|
@@ -58,6 +58,40 @@ const tools: OpenApiTool[] = [
|
|
|
58
58
|
],
|
|
59
59
|
"group": "mail"
|
|
60
60
|
},
|
|
61
|
+
{
|
|
62
|
+
"name": "mail_createMailboxV1",
|
|
63
|
+
"description": "Create a mailbox under the given mail order. The full email address is\ncomposed from the given local part and the domain of the order.",
|
|
64
|
+
"method": "POST",
|
|
65
|
+
"path": "/api/mail/v1/orders/{orderId}/mailboxes",
|
|
66
|
+
"inputSchema": {
|
|
67
|
+
"type": "object",
|
|
68
|
+
"properties": {
|
|
69
|
+
"orderId": {
|
|
70
|
+
"type": "string",
|
|
71
|
+
"description": "Order resource ID"
|
|
72
|
+
},
|
|
73
|
+
"local_part": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"description": "Local part of the mailbox address (the part before the @). The domain is taken from the order. Must start and end with a letter or digit; single dots, underscores and hyphens are allowed in between."
|
|
76
|
+
},
|
|
77
|
+
"password": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"description": "Mailbox password. Minimum 8 characters with uppercase, lowercase, number and special character."
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"required": [
|
|
83
|
+
"orderId",
|
|
84
|
+
"local_part",
|
|
85
|
+
"password"
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
"security": [
|
|
89
|
+
{
|
|
90
|
+
"apiToken": []
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
"group": "mail"
|
|
94
|
+
},
|
|
61
95
|
{
|
|
62
96
|
"name": "mail_getMailOrderListV1",
|
|
63
97
|
"description": "Retrieve a paginated list of mail orders associated with your account.\n\nUse this endpoint to monitor your mail services, including their status,\nplan, attached domain, and expiration details.",
|
|
@@ -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.13.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.13.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
package/types.d.ts
CHANGED
|
@@ -699,6 +699,41 @@ Use this endpoint to view available services and pricing before placing orders.
|
|
|
699
699
|
response: any; // Response structure will depend on the API
|
|
700
700
|
};
|
|
701
701
|
|
|
702
|
+
/**
|
|
703
|
+
* Create a purchase order for any Hostinger product.
|
|
704
|
+
|
|
705
|
+
This unified endpoint places an order for one or more catalog items and
|
|
706
|
+
works across all Hostinger products, leveraging the existing billing
|
|
707
|
+
infrastructure. Use the [catalog endpoint](#tag/billing-catalog) to look
|
|
708
|
+
up the `item_id` values available for purchase.
|
|
709
|
+
|
|
710
|
+
If no payment method is provided, your default payment method will be used automatically.
|
|
711
|
+
|
|
712
|
+
This endpoint only places the order. Product-specific provisioning
|
|
713
|
+
(e.g. VPS setup or domain registration) is not performed here — once the
|
|
714
|
+
order completes, use the relevant product endpoints or
|
|
715
|
+
[hPanel](https://hpanel.hostinger.com/) to finalize setup.
|
|
716
|
+
|
|
717
|
+
Use this endpoint to purchase any product available in the catalog.
|
|
718
|
+
*/
|
|
719
|
+
"billing_createPurchaseOrderV1": {
|
|
720
|
+
params: {
|
|
721
|
+
/**
|
|
722
|
+
* Payment method ID, default will be used if not provided
|
|
723
|
+
*/
|
|
724
|
+
payment_method_id?: number;
|
|
725
|
+
/**
|
|
726
|
+
* Catalog price items to purchase
|
|
727
|
+
*/
|
|
728
|
+
items: array;
|
|
729
|
+
/**
|
|
730
|
+
* Discount coupon codes
|
|
731
|
+
*/
|
|
732
|
+
coupons?: array;
|
|
733
|
+
};
|
|
734
|
+
response: any; // Response structure will depend on the API
|
|
735
|
+
};
|
|
736
|
+
|
|
702
737
|
/**
|
|
703
738
|
* Set the default payment method for your account.
|
|
704
739
|
|
|
@@ -2795,6 +2830,28 @@ periodically synced usage numbers (usage may lag behind live values).
|
|
|
2795
2830
|
response: any; // Response structure will depend on the API
|
|
2796
2831
|
};
|
|
2797
2832
|
|
|
2833
|
+
/**
|
|
2834
|
+
* Create a mailbox under the given mail order. The full email address is
|
|
2835
|
+
composed from the given local part and the domain of the order.
|
|
2836
|
+
*/
|
|
2837
|
+
"mail_createMailboxV1": {
|
|
2838
|
+
params: {
|
|
2839
|
+
/**
|
|
2840
|
+
* Order resource ID
|
|
2841
|
+
*/
|
|
2842
|
+
orderId: string;
|
|
2843
|
+
/**
|
|
2844
|
+
* Local part of the mailbox address (the part before the @). The domain is taken from the order. Must start and end with a letter or digit; single dots, underscores and hyphens are allowed in between.
|
|
2845
|
+
*/
|
|
2846
|
+
local_part: string;
|
|
2847
|
+
/**
|
|
2848
|
+
* Mailbox password. Minimum 8 characters with uppercase, lowercase, number and special character.
|
|
2849
|
+
*/
|
|
2850
|
+
password: string;
|
|
2851
|
+
};
|
|
2852
|
+
response: any; // Response structure will depend on the API
|
|
2853
|
+
};
|
|
2854
|
+
|
|
2798
2855
|
/**
|
|
2799
2856
|
* Retrieve a paginated list of mail orders associated with your account.
|
|
2800
2857
|
|