hostinger-api-mcp 0.0.8 → 0.0.10

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
@@ -124,7 +124,10 @@ This endpoint creates a new service order.
124
124
  To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity.
125
125
  Coupons also can be provided during order creation.
126
126
 
127
- Orders created using this endpoint will be set for automatically renewal.
127
+ Orders created using this endpoint will be set for automatic renewal.
128
+
129
+ Some `credit_card` payments might need additional verification, rendering purchase unprocessed.
130
+ We recommend use other payment methods than `credit_card` if you encounter this issue.
128
131
 
129
132
  - **Method**: `POST`
130
133
  - **Path**: `/api/billing/v1/orders`
@@ -200,28 +203,28 @@ This endpoint retrieves particular DNS snapshot with the contents of DNS zone re
200
203
  - `domain`: Domain name (required)
201
204
  - `snapshotId`: Snapshot ID (required)
202
205
 
203
- ### DNS_restoreSnapshotV1
206
+ ### DNS_getSnapshotListV1
204
207
 
205
- This endpoint restores DNS zone to the selected snapshot.
208
+ This endpoint retrieves list of DNS snapshots.
206
209
 
207
- - **Method**: `POST`
208
- - **Path**: `/api/dns/v1/snapshots/{domain}/{snapshotId}`
210
+ - **Method**: `GET`
211
+ - **Path**: `/api/dns/v1/snapshots/{domain}`
209
212
 
210
213
  **Parameters**:
211
214
 
212
215
  - `domain`: Domain name (required)
213
- - `snapshotId`: Snapshot ID (required)
214
216
 
215
- ### DNS_getSnapshotListV1
217
+ ### DNS_restoreSnapshotV1
216
218
 
217
- This endpoint retrieves list of DNS snapshots.
219
+ This endpoint restores DNS zone to the selected snapshot.
218
220
 
219
- - **Method**: `GET`
220
- - **Path**: `/api/dns/v1/snapshots/{domain}`
221
+ - **Method**: `POST`
222
+ - **Path**: `/api/dns/v1/snapshots/{domain}/{snapshotId}/restore`
221
223
 
222
224
  **Parameters**:
223
225
 
224
226
  - `domain`: Domain name (required)
227
+ - `snapshotId`: Snapshot ID (required)
225
228
 
226
229
  ### DNS_getRecordsV1
227
230
 
@@ -236,9 +239,10 @@ This endpoint retrieves DNS zone records for a specific domain.
236
239
 
237
240
  ### DNS_updateZoneRecordsV1
238
241
 
239
- This endpoint updates DNS records for the selected domain. This endpoint could also be used
240
- to delete single record when multiple records exist under same name. In that case use `overwrite` flag
241
- and provide records which should remain. All other records under same name will be deleted.
242
+ This endpoint updates DNS records for the selected domain.
243
+
244
+ Using `overwrite = true` will replace existing records with the provided ones.
245
+ Otherwise existing records will be updated and new records will be added.
242
246
 
243
247
  - **Method**: `PUT`
244
248
  - **Path**: `/api/dns/v1/zones/{domain}`
@@ -251,7 +255,12 @@ and provide records which should remain. All other records under same name will
251
255
 
252
256
  ### DNS_deleteZoneRecordsV1
253
257
 
254
- This endpoint deletes selected DNS records for the selected domain.
258
+ This endpoint deletes DNS records for the selected domain.
259
+ To filter which records to delete, add the `name` of the record and `type` to the filter.
260
+ Multiple filters can be provided with single request.
261
+
262
+ If you have multiple records with the same name and type, and you want to delete only part of them,
263
+ refer to the `Update zone records` endpoint.
255
264
 
256
265
  - **Method**: `DELETE`
257
266
  - **Path**: `/api/dns/v1/zones/{domain}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hostinger-api-mcp",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "MCP server for Hostinger API",
5
5
  "repository": {
6
6
  "type": "git",
package/server.js CHANGED
@@ -32,7 +32,7 @@ const TOOLS = [
32
32
  },
33
33
  {
34
34
  "name": "billing_createNewServiceOrderV1",
35
- "description": "This endpoint creates a new service order. \n\nTo place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity.\nCoupons also can be provided during order creation.\n\nOrders created using this endpoint will be set for automatically renewal.",
35
+ "description": "This endpoint creates a new service order. \n\nTo place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity.\nCoupons also can be provided during order creation.\n\nOrders created using this endpoint will be set for automatic renewal.\n\nSome `credit_card` payments might need additional verification, rendering purchase unprocessed.\nWe recommend use other payment methods than `credit_card` if you encounter this issue.",
36
36
  "method": "POST",
37
37
  "path": "/api/billing/v1/orders",
38
38
  "inputSchema": {
@@ -192,25 +192,20 @@ const TOOLS = [
192
192
  ]
193
193
  },
194
194
  {
195
- "name": "DNS_restoreSnapshotV1",
196
- "description": "This endpoint restores DNS zone to the selected snapshot.",
197
- "method": "POST",
198
- "path": "/api/dns/v1/snapshots/{domain}/{snapshotId}",
195
+ "name": "DNS_getSnapshotListV1",
196
+ "description": "This endpoint retrieves list of DNS snapshots.",
197
+ "method": "GET",
198
+ "path": "/api/dns/v1/snapshots/{domain}",
199
199
  "inputSchema": {
200
200
  "type": "object",
201
201
  "properties": {
202
202
  "domain": {
203
203
  "type": "string",
204
204
  "description": "Domain name"
205
- },
206
- "snapshotId": {
207
- "type": "integer",
208
- "description": "Snapshot ID"
209
205
  }
210
206
  },
211
207
  "required": [
212
- "domain",
213
- "snapshotId"
208
+ "domain"
214
209
  ]
215
210
  },
216
211
  "security": [
@@ -220,20 +215,25 @@ const TOOLS = [
220
215
  ]
221
216
  },
222
217
  {
223
- "name": "DNS_getSnapshotListV1",
224
- "description": "This endpoint retrieves list of DNS snapshots.",
225
- "method": "GET",
226
- "path": "/api/dns/v1/snapshots/{domain}",
218
+ "name": "DNS_restoreSnapshotV1",
219
+ "description": "This endpoint restores DNS zone to the selected snapshot.",
220
+ "method": "POST",
221
+ "path": "/api/dns/v1/snapshots/{domain}/{snapshotId}/restore",
227
222
  "inputSchema": {
228
223
  "type": "object",
229
224
  "properties": {
230
225
  "domain": {
231
226
  "type": "string",
232
227
  "description": "Domain name"
228
+ },
229
+ "snapshotId": {
230
+ "type": "integer",
231
+ "description": "Snapshot ID"
233
232
  }
234
233
  },
235
234
  "required": [
236
- "domain"
235
+ "domain",
236
+ "snapshotId"
237
237
  ]
238
238
  },
239
239
  "security": [
@@ -267,7 +267,7 @@ const TOOLS = [
267
267
  },
268
268
  {
269
269
  "name": "DNS_updateZoneRecordsV1",
270
- "description": "This endpoint updates DNS records for the selected domain. This endpoint could also be used\nto delete single record when multiple records exist under same name. In that case use `overwrite` flag\nand provide records which should remain. All other records under same name will be deleted.",
270
+ "description": "This endpoint updates DNS records for the selected domain. \n\nUsing `overwrite = true` will replace existing records with the provided ones. \nOtherwise existing records will be updated and new records will be added.",
271
271
  "method": "PUT",
272
272
  "path": "/api/dns/v1/zones/{domain}",
273
273
  "inputSchema": {
@@ -299,7 +299,7 @@ const TOOLS = [
299
299
  },
300
300
  {
301
301
  "name": "DNS_deleteZoneRecordsV1",
302
- "description": "This endpoint deletes selected DNS records for the selected domain.",
302
+ "description": "This endpoint deletes DNS records for the selected domain. \nTo filter which records to delete, add the `name` of the record and `type` to the filter. \nMultiple filters can be provided with single request.\n\nIf you have multiple records with the same name and type, and you want to delete only part of them,\nrefer to the `Update zone records` endpoint.",
303
303
  "method": "DELETE",
304
304
  "path": "/api/dns/v1/zones/{domain}",
305
305
  "inputSchema": {
@@ -1832,7 +1832,7 @@ const SECURITY_SCHEMES = {
1832
1832
 
1833
1833
  /**
1834
1834
  * MCP Server for Hostinger API
1835
- * Generated from OpenAPI spec version 0.0.17
1835
+ * Generated from OpenAPI spec version 0.0.20
1836
1836
  */
1837
1837
  class MCPServer {
1838
1838
  constructor() {
@@ -1850,7 +1850,7 @@ class MCPServer {
1850
1850
  this.server = new Server(
1851
1851
  {
1852
1852
  name: "hostinger-api-mcp",
1853
- version: "0.0.8",
1853
+ version: "0.0.10",
1854
1854
  },
1855
1855
  {
1856
1856
  capabilities: {
@@ -1875,7 +1875,7 @@ class MCPServer {
1875
1875
  });
1876
1876
  }
1877
1877
 
1878
- headers['User-Agent'] = 'hostinger-mcp-server/0.0.8';
1878
+ headers['User-Agent'] = 'hostinger-mcp-server/0.0.10';
1879
1879
 
1880
1880
  return headers;
1881
1881
  }
package/server.ts CHANGED
@@ -48,7 +48,7 @@ const TOOLS: OpenApiTool[] = [
48
48
  },
49
49
  {
50
50
  "name": "billing_createNewServiceOrderV1",
51
- "description": "This endpoint creates a new service order. \n\nTo place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity.\nCoupons also can be provided during order creation.\n\nOrders created using this endpoint will be set for automatically renewal.",
51
+ "description": "This endpoint creates a new service order. \n\nTo place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity.\nCoupons also can be provided during order creation.\n\nOrders created using this endpoint will be set for automatic renewal.\n\nSome `credit_card` payments might need additional verification, rendering purchase unprocessed.\nWe recommend use other payment methods than `credit_card` if you encounter this issue.",
52
52
  "method": "POST",
53
53
  "path": "/api/billing/v1/orders",
54
54
  "inputSchema": {
@@ -208,25 +208,20 @@ const TOOLS: OpenApiTool[] = [
208
208
  ]
209
209
  },
210
210
  {
211
- "name": "DNS_restoreSnapshotV1",
212
- "description": "This endpoint restores DNS zone to the selected snapshot.",
213
- "method": "POST",
214
- "path": "/api/dns/v1/snapshots/{domain}/{snapshotId}",
211
+ "name": "DNS_getSnapshotListV1",
212
+ "description": "This endpoint retrieves list of DNS snapshots.",
213
+ "method": "GET",
214
+ "path": "/api/dns/v1/snapshots/{domain}",
215
215
  "inputSchema": {
216
216
  "type": "object",
217
217
  "properties": {
218
218
  "domain": {
219
219
  "type": "string",
220
220
  "description": "Domain name"
221
- },
222
- "snapshotId": {
223
- "type": "integer",
224
- "description": "Snapshot ID"
225
221
  }
226
222
  },
227
223
  "required": [
228
- "domain",
229
- "snapshotId"
224
+ "domain"
230
225
  ]
231
226
  },
232
227
  "security": [
@@ -236,20 +231,25 @@ const TOOLS: OpenApiTool[] = [
236
231
  ]
237
232
  },
238
233
  {
239
- "name": "DNS_getSnapshotListV1",
240
- "description": "This endpoint retrieves list of DNS snapshots.",
241
- "method": "GET",
242
- "path": "/api/dns/v1/snapshots/{domain}",
234
+ "name": "DNS_restoreSnapshotV1",
235
+ "description": "This endpoint restores DNS zone to the selected snapshot.",
236
+ "method": "POST",
237
+ "path": "/api/dns/v1/snapshots/{domain}/{snapshotId}/restore",
243
238
  "inputSchema": {
244
239
  "type": "object",
245
240
  "properties": {
246
241
  "domain": {
247
242
  "type": "string",
248
243
  "description": "Domain name"
244
+ },
245
+ "snapshotId": {
246
+ "type": "integer",
247
+ "description": "Snapshot ID"
249
248
  }
250
249
  },
251
250
  "required": [
252
- "domain"
251
+ "domain",
252
+ "snapshotId"
253
253
  ]
254
254
  },
255
255
  "security": [
@@ -283,7 +283,7 @@ const TOOLS: OpenApiTool[] = [
283
283
  },
284
284
  {
285
285
  "name": "DNS_updateZoneRecordsV1",
286
- "description": "This endpoint updates DNS records for the selected domain. This endpoint could also be used\nto delete single record when multiple records exist under same name. In that case use `overwrite` flag\nand provide records which should remain. All other records under same name will be deleted.",
286
+ "description": "This endpoint updates DNS records for the selected domain. \n\nUsing `overwrite = true` will replace existing records with the provided ones. \nOtherwise existing records will be updated and new records will be added.",
287
287
  "method": "PUT",
288
288
  "path": "/api/dns/v1/zones/{domain}",
289
289
  "inputSchema": {
@@ -315,7 +315,7 @@ const TOOLS: OpenApiTool[] = [
315
315
  },
316
316
  {
317
317
  "name": "DNS_deleteZoneRecordsV1",
318
- "description": "This endpoint deletes selected DNS records for the selected domain.",
318
+ "description": "This endpoint deletes DNS records for the selected domain. \nTo filter which records to delete, add the `name` of the record and `type` to the filter. \nMultiple filters can be provided with single request.\n\nIf you have multiple records with the same name and type, and you want to delete only part of them,\nrefer to the `Update zone records` endpoint.",
319
319
  "method": "DELETE",
320
320
  "path": "/api/dns/v1/zones/{domain}",
321
321
  "inputSchema": {
@@ -1848,7 +1848,7 @@ const SECURITY_SCHEMES: Record<string, SecurityScheme> = {
1848
1848
 
1849
1849
  /**
1850
1850
  * MCP Server for Hostinger API
1851
- * Generated from OpenAPI spec version 0.0.17
1851
+ * Generated from OpenAPI spec version 0.0.20
1852
1852
  */
1853
1853
  class MCPServer {
1854
1854
  private server: Server;
@@ -1870,7 +1870,7 @@ class MCPServer {
1870
1870
  this.server = new Server(
1871
1871
  {
1872
1872
  name: "hostinger-api-mcp",
1873
- version: "0.0.8",
1873
+ version: "0.0.10",
1874
1874
  },
1875
1875
  {
1876
1876
  capabilities: {
@@ -1895,7 +1895,7 @@ class MCPServer {
1895
1895
  });
1896
1896
  }
1897
1897
 
1898
- headers['User-Agent'] = 'hostinger-mcp-server/0.0.8';
1898
+ headers['User-Agent'] = 'hostinger-mcp-server/0.0.10';
1899
1899
 
1900
1900
  return headers;
1901
1901
  }
package/types.d.ts CHANGED
@@ -22,7 +22,10 @@ Prices in catalog items is displayed as cents (without floating point), e.g: flo
22
22
  To place order, you need to provide payment method ID and list of price items from the catalog endpoint together with quantity.
23
23
  Coupons also can be provided during order creation.
24
24
 
25
- Orders created using this endpoint will be set for automatically renewal.
25
+ Orders created using this endpoint will be set for automatic renewal.
26
+
27
+ Some `credit_card` payments might need additional verification, rendering purchase unprocessed.
28
+ We recommend use other payment methods than `credit_card` if you encounter this issue.
26
29
  */
27
30
  "undefined": {
28
31
  params: {
@@ -121,7 +124,7 @@ If you want to add new payment method, please use [hPanel](https://hpanel.hostin
121
124
  };
122
125
 
123
126
  /**
124
- * This endpoint restores DNS zone to the selected snapshot.
127
+ * This endpoint retrieves list of DNS snapshots.
125
128
  */
126
129
  "undefined": {
127
130
  params: {
@@ -129,16 +132,12 @@ If you want to add new payment method, please use [hPanel](https://hpanel.hostin
129
132
  * Domain name
130
133
  */
131
134
  domain: string;
132
- /**
133
- * Snapshot ID
134
- */
135
- snapshotId: number;
136
135
  };
137
136
  response: any; // Response structure will depend on the API
138
137
  };
139
138
 
140
139
  /**
141
- * This endpoint retrieves list of DNS snapshots.
140
+ * This endpoint restores DNS zone to the selected snapshot.
142
141
  */
143
142
  "undefined": {
144
143
  params: {
@@ -146,6 +145,10 @@ If you want to add new payment method, please use [hPanel](https://hpanel.hostin
146
145
  * Domain name
147
146
  */
148
147
  domain: string;
148
+ /**
149
+ * Snapshot ID
150
+ */
151
+ snapshotId: number;
149
152
  };
150
153
  response: any; // Response structure will depend on the API
151
154
  };
@@ -164,9 +167,10 @@ If you want to add new payment method, please use [hPanel](https://hpanel.hostin
164
167
  };
165
168
 
166
169
  /**
167
- * This endpoint updates DNS records for the selected domain. This endpoint could also be used
168
- to delete single record when multiple records exist under same name. In that case use `overwrite` flag
169
- and provide records which should remain. All other records under same name will be deleted.
170
+ * This endpoint updates DNS records for the selected domain.
171
+
172
+ Using `overwrite = true` will replace existing records with the provided ones.
173
+ Otherwise existing records will be updated and new records will be added.
170
174
  */
171
175
  "undefined": {
172
176
  params: {
@@ -187,7 +191,12 @@ and provide records which should remain. All other records under same name will
187
191
  };
188
192
 
189
193
  /**
190
- * This endpoint deletes selected DNS records for the selected domain.
194
+ * This endpoint deletes DNS records for the selected domain.
195
+ To filter which records to delete, add the `name` of the record and `type` to the filter.
196
+ Multiple filters can be provided with single request.
197
+
198
+ If you have multiple records with the same name and type, and you want to delete only part of them,
199
+ refer to the `Update zone records` endpoint.
191
200
  */
192
201
  "undefined": {
193
202
  params: {