hostinger-api-mcp 0.0.8 → 0.0.9

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`
@@ -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}`
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.9",
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": {
@@ -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": {
@@ -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.18
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.9",
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.9';
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": {
@@ -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": {
@@ -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.18
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.9",
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.9';
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: {
@@ -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: {