hostinger-api-mcp 1.12.1 → 1.12.2
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 +23 -2
- 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 +53 -0
- package/src/core/tools/all.ts +53 -0
- package/src/core/tools/billing.js +53 -0
- package/src/core/tools/billing.ts +53 -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 +35 -0
package/README.md
CHANGED
|
@@ -49,9 +49,9 @@ 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 (235 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
|
|
@@ -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.
|
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.12.
|
|
9
|
+
"version": "1.12.2",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "hostinger-api-mcp",
|
|
14
|
-
"version": "1.12.
|
|
14
|
+
"version": "1.12.2",
|
|
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.",
|
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.",
|
|
@@ -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.",
|
|
@@ -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.12.
|
|
6
|
+
startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.12.2', 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.12.
|
|
6
|
+
startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.12.2', 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
|
|