hostinger-api-mcp 1.1.2 → 1.2.1

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.
@@ -1176,6 +1176,207 @@ const tools: OpenApiTool[] = [
1176
1176
  ],
1177
1177
  "group": "hosting"
1178
1178
  },
1179
+ {
1180
+ "name": "hosting_resetPHPExtensionsV1",
1181
+ "description": "Resets all PHP extensions of the website to their default state.\n\nUse it to recover from extension conflicts or restore the original configuration.",
1182
+ "method": "PATCH",
1183
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions/reset",
1184
+ "inputSchema": {
1185
+ "type": "object",
1186
+ "properties": {
1187
+ "username": {
1188
+ "type": "string",
1189
+ "description": "username parameter"
1190
+ },
1191
+ "domain": {
1192
+ "type": "string",
1193
+ "description": "Domain name"
1194
+ }
1195
+ },
1196
+ "required": [
1197
+ "username",
1198
+ "domain"
1199
+ ]
1200
+ },
1201
+ "security": [
1202
+ {
1203
+ "apiToken": []
1204
+ }
1205
+ ],
1206
+ "group": "hosting"
1207
+ },
1208
+ {
1209
+ "name": "hosting_getPHPDetailsV1",
1210
+ "description": "Returns the full PHP configuration for the website: current version, available versions\n(supported and unsupported), enabled/disabled extensions, options with their current value,\ndefault, type and the plan limit (`max`), and conflicting extension groups.\n\nUse it to check the current PHP setup before updating the version, extensions or options.",
1211
+ "method": "GET",
1212
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/php/details",
1213
+ "inputSchema": {
1214
+ "type": "object",
1215
+ "properties": {
1216
+ "username": {
1217
+ "type": "string",
1218
+ "description": "username parameter"
1219
+ },
1220
+ "domain": {
1221
+ "type": "string",
1222
+ "description": "Domain name"
1223
+ }
1224
+ },
1225
+ "required": [
1226
+ "username",
1227
+ "domain"
1228
+ ]
1229
+ },
1230
+ "security": [
1231
+ {
1232
+ "apiToken": []
1233
+ }
1234
+ ],
1235
+ "group": "hosting"
1236
+ },
1237
+ {
1238
+ "name": "hosting_getPHPInfoV1",
1239
+ "description": "Returns the full phpinfo page (HTML) for the website.\n\nUse it to debug PHP issues or inspect the complete PHP environment of the website.",
1240
+ "method": "GET",
1241
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/php/php-info",
1242
+ "inputSchema": {
1243
+ "type": "object",
1244
+ "properties": {
1245
+ "username": {
1246
+ "type": "string",
1247
+ "description": "username parameter"
1248
+ },
1249
+ "domain": {
1250
+ "type": "string",
1251
+ "description": "Domain name"
1252
+ }
1253
+ },
1254
+ "required": [
1255
+ "username",
1256
+ "domain"
1257
+ ]
1258
+ },
1259
+ "security": [
1260
+ {
1261
+ "apiToken": []
1262
+ }
1263
+ ],
1264
+ "group": "hosting"
1265
+ },
1266
+ {
1267
+ "name": "hosting_updatePHPExtensionsV1",
1268
+ "description": "Enables or disables PHP extensions (modules) for the website.\n\nUse the Get PHP details endpoint to check the current extension states before changing them.",
1269
+ "method": "PATCH",
1270
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/php/extensions",
1271
+ "inputSchema": {
1272
+ "type": "object",
1273
+ "properties": {
1274
+ "username": {
1275
+ "type": "string",
1276
+ "description": "username parameter"
1277
+ },
1278
+ "domain": {
1279
+ "type": "string",
1280
+ "description": "Domain name"
1281
+ },
1282
+ "enable": {
1283
+ "type": "array",
1284
+ "description": "PHP extensions to enable.",
1285
+ "items": {
1286
+ "type": "string",
1287
+ "description": "enable parameter"
1288
+ }
1289
+ },
1290
+ "disable": {
1291
+ "type": "array",
1292
+ "description": "PHP extensions to disable.",
1293
+ "items": {
1294
+ "type": "string",
1295
+ "description": "disable parameter"
1296
+ }
1297
+ }
1298
+ },
1299
+ "required": [
1300
+ "username",
1301
+ "domain"
1302
+ ]
1303
+ },
1304
+ "security": [
1305
+ {
1306
+ "apiToken": []
1307
+ }
1308
+ ],
1309
+ "group": "hosting"
1310
+ },
1311
+ {
1312
+ "name": "hosting_updatePHPOptionsV1",
1313
+ "description": "Updates PHP options for the website (e.g. `memory_limit`, `max_execution_time`, `upload_max_filesize`).\nOnly provide the options you want to change, inside the `options` object.\n\nValues above the account plan limit are silently capped to that limit, so the request can succeed\nwith a smaller applied value. Call the Get PHP details endpoint afterwards to read the applied value.",
1314
+ "method": "PATCH",
1315
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/php/options",
1316
+ "inputSchema": {
1317
+ "type": "object",
1318
+ "properties": {
1319
+ "username": {
1320
+ "type": "string",
1321
+ "description": "username parameter"
1322
+ },
1323
+ "domain": {
1324
+ "type": "string",
1325
+ "description": "Domain name"
1326
+ },
1327
+ "options": {
1328
+ "type": "object",
1329
+ "description": "Map of PHP options to update, keyed by option name. Only include options you want to change.",
1330
+ "properties": {}
1331
+ }
1332
+ },
1333
+ "required": [
1334
+ "username",
1335
+ "domain",
1336
+ "options"
1337
+ ]
1338
+ },
1339
+ "security": [
1340
+ {
1341
+ "apiToken": []
1342
+ }
1343
+ ],
1344
+ "group": "hosting"
1345
+ },
1346
+ {
1347
+ "name": "hosting_updatePHPVersionV1",
1348
+ "description": "Changes the PHP version of the website.\n\nUse the Get PHP details endpoint to see the versions available for the website.",
1349
+ "method": "PATCH",
1350
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/php/version",
1351
+ "inputSchema": {
1352
+ "type": "object",
1353
+ "properties": {
1354
+ "username": {
1355
+ "type": "string",
1356
+ "description": "username parameter"
1357
+ },
1358
+ "domain": {
1359
+ "type": "string",
1360
+ "description": "Domain name"
1361
+ },
1362
+ "version": {
1363
+ "type": "string",
1364
+ "description": "PHP version to switch the website to."
1365
+ }
1366
+ },
1367
+ "required": [
1368
+ "username",
1369
+ "domain",
1370
+ "version"
1371
+ ]
1372
+ },
1373
+ "security": [
1374
+ {
1375
+ "apiToken": []
1376
+ }
1377
+ ],
1378
+ "group": "hosting"
1379
+ },
1179
1380
  {
1180
1381
  "name": "hosting_listWebsitesV1",
1181
1382
  "description": "Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client.\n\nThis endpoint returns websites from your hosting accounts as well as\nwebsites from other client hosting accounts that have shared access\nwith you.\n\nUse the available query parameters to filter results by username,\norder ID, enabled status, or domain name for more targeted results.",
@@ -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: '1.1.2', tools });
6
+ startServer({ name: 'hostinger-api-mcp', version: '1.2.1', 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: '1.1.2', tools });
6
+ startServer({ name: 'hostinger-api-mcp', version: '1.2.1', 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: '1.1.2', tools });
6
+ startServer({ name: 'hostinger-billing-mcp', version: '1.2.1', 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: '1.1.2', tools });
6
+ startServer({ name: 'hostinger-billing-mcp', version: '1.2.1', 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: '1.1.2', tools });
6
+ startServer({ name: 'hostinger-dns-mcp', version: '1.2.1', 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: '1.1.2', tools });
6
+ startServer({ name: 'hostinger-dns-mcp', version: '1.2.1', 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: '1.1.2', tools });
6
+ startServer({ name: 'hostinger-domains-mcp', version: '1.2.1', 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: '1.1.2', tools });
6
+ startServer({ name: 'hostinger-domains-mcp', version: '1.2.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/ecommerce.js';
5
5
 
6
- startServer({ name: 'hostinger-ecommerce-mcp', version: '1.1.2', tools });
6
+ startServer({ name: 'hostinger-ecommerce-mcp', version: '1.2.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/ecommerce.js';
5
5
 
6
- startServer({ name: 'hostinger-ecommerce-mcp', version: '1.1.2', tools });
6
+ startServer({ name: 'hostinger-ecommerce-mcp', version: '1.2.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/horizons.js';
5
5
 
6
- startServer({ name: 'hostinger-horizons-mcp', version: '1.1.2', tools });
6
+ startServer({ name: 'hostinger-horizons-mcp', version: '1.2.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/horizons.js';
5
5
 
6
- startServer({ name: 'hostinger-horizons-mcp', version: '1.1.2', tools });
6
+ startServer({ name: 'hostinger-horizons-mcp', version: '1.2.1', 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: '1.1.2', tools });
6
+ startServer({ name: 'hostinger-hosting-mcp', version: '1.2.1', 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: '1.1.2', tools });
6
+ startServer({ name: 'hostinger-hosting-mcp', version: '1.2.1', 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: '1.1.2', tools });
6
+ startServer({ name: 'hostinger-reach-mcp', version: '1.2.1', 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: '1.1.2', tools });
6
+ startServer({ name: 'hostinger-reach-mcp', version: '1.2.1', 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: '1.1.2', tools });
6
+ startServer({ name: 'hostinger-vps-mcp', version: '1.2.1', 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: '1.1.2', tools });
6
+ startServer({ name: 'hostinger-vps-mcp', version: '1.2.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/wordpress.js';
5
5
 
6
- startServer({ name: 'hostinger-wordpress-mcp', version: '1.1.2', tools });
6
+ startServer({ name: 'hostinger-wordpress-mcp', version: '1.2.1', tools });
@@ -3,4 +3,4 @@
3
3
  import { startServer } from '../core/runtime.js';
4
4
  import tools from '../core/tools/wordpress.js';
5
5
 
6
- startServer({ name: 'hostinger-wordpress-mcp', version: '1.1.2', tools });
6
+ startServer({ name: 'hostinger-wordpress-mcp', version: '1.2.1', tools });
package/types.d.ts CHANGED
@@ -904,7 +904,7 @@ the Ecommerce API.
904
904
  * Create a custom sales channel for a store. Build your own frontend and keep your catalog,
905
905
  orders, shipping and payments in sync through the Ecommerce API.
906
906
  */
907
- "ecommerce_createACustomSalesChannelV1": {
907
+ "ecommerce_createCustomSalesChannelV1": {
908
908
  params: {
909
909
  /**
910
910
  * The ID of the store to create the sales channel for.
@@ -926,6 +926,32 @@ orders, shipping and payments in sync through the Ecommerce API.
926
926
  response: any; // Response structure will depend on the API
927
927
  };
928
928
 
929
+ /**
930
+ * Update a custom sales channel. The merchant-facing `name` and the public `url`
931
+ (returned as the channel `domain`) can be changed. Pass `null` to clear a value.
932
+ */
933
+ "ecommerce_updateSalesChannelV1": {
934
+ params: {
935
+ /**
936
+ * The ID of the store that owns the sales channel.
937
+ */
938
+ store_id: string;
939
+ /**
940
+ * The ID of the sales channel to update.
941
+ */
942
+ sales_channel_id: string;
943
+ /**
944
+ * Merchant-facing custom name shown in the sales channels list. Pass null to clear it.
945
+ */
946
+ name?: string;
947
+ /**
948
+ * Public address where the custom sales channel lives. Pass null to clear it.
949
+ */
950
+ url?: string;
951
+ };
952
+ response: any; // Response structure will depend on the API
953
+ };
954
+
929
955
  /**
930
956
  * Set the flat-rate shipping price for a store, creating the shipping zone if it does not exist yet.
931
957
  */
@@ -1006,6 +1032,20 @@ A primary sales channel is created alongside the store.
1006
1032
  response: any; // Response structure will depend on the API
1007
1033
  };
1008
1034
 
1035
+ /**
1036
+ * Get a store's readiness metadata: whether payment methods and shipping are configured,
1037
+ plus its default currency. Useful to verify prerequisites before building a storefront.
1038
+ */
1039
+ "ecommerce_getStoreMetadataV1": {
1040
+ params: {
1041
+ /**
1042
+ * The ID of the store to read metadata for.
1043
+ */
1044
+ store_id: string;
1045
+ };
1046
+ response: any; // Response structure will depend on the API
1047
+ };
1048
+
1009
1049
  /**
1010
1050
  * Create new Hostinger Horizons website from the given message.\n
1011
1051
  Use this tool when user asks you to create a website, landing page, blog
@@ -1714,6 +1754,140 @@ or specific order IDs for more targeted results.
1714
1754
  response: any; // Response structure will depend on the API
1715
1755
  };
1716
1756
 
1757
+ /**
1758
+ * Resets all PHP extensions of the website to their default state.
1759
+
1760
+ Use it to recover from extension conflicts or restore the original configuration.
1761
+ */
1762
+ "hosting_resetPHPExtensionsV1": {
1763
+ params: {
1764
+ /**
1765
+ * username parameter
1766
+ */
1767
+ username: string;
1768
+ /**
1769
+ * Domain name
1770
+ */
1771
+ domain: string;
1772
+ };
1773
+ response: any; // Response structure will depend on the API
1774
+ };
1775
+
1776
+ /**
1777
+ * Returns the full PHP configuration for the website: current version, available versions
1778
+ (supported and unsupported), enabled/disabled extensions, options with their current value,
1779
+ default, type and the plan limit (`max`), and conflicting extension groups.
1780
+
1781
+ Use it to check the current PHP setup before updating the version, extensions or options.
1782
+ */
1783
+ "hosting_getPHPDetailsV1": {
1784
+ params: {
1785
+ /**
1786
+ * username parameter
1787
+ */
1788
+ username: string;
1789
+ /**
1790
+ * Domain name
1791
+ */
1792
+ domain: string;
1793
+ };
1794
+ response: any; // Response structure will depend on the API
1795
+ };
1796
+
1797
+ /**
1798
+ * Returns the full phpinfo page (HTML) for the website.
1799
+
1800
+ Use it to debug PHP issues or inspect the complete PHP environment of the website.
1801
+ */
1802
+ "hosting_getPHPInfoV1": {
1803
+ params: {
1804
+ /**
1805
+ * username parameter
1806
+ */
1807
+ username: string;
1808
+ /**
1809
+ * Domain name
1810
+ */
1811
+ domain: string;
1812
+ };
1813
+ response: any; // Response structure will depend on the API
1814
+ };
1815
+
1816
+ /**
1817
+ * Enables or disables PHP extensions (modules) for the website.
1818
+
1819
+ Use the Get PHP details endpoint to check the current extension states before changing them.
1820
+ */
1821
+ "hosting_updatePHPExtensionsV1": {
1822
+ params: {
1823
+ /**
1824
+ * username parameter
1825
+ */
1826
+ username: string;
1827
+ /**
1828
+ * Domain name
1829
+ */
1830
+ domain: string;
1831
+ /**
1832
+ * PHP extensions to enable.
1833
+ */
1834
+ enable?: array;
1835
+ /**
1836
+ * PHP extensions to disable.
1837
+ */
1838
+ disable?: array;
1839
+ };
1840
+ response: any; // Response structure will depend on the API
1841
+ };
1842
+
1843
+ /**
1844
+ * Updates PHP options for the website (e.g. `memory_limit`, `max_execution_time`, `upload_max_filesize`).
1845
+ Only provide the options you want to change, inside the `options` object.
1846
+
1847
+ Values above the account plan limit are silently capped to that limit, so the request can succeed
1848
+ with a smaller applied value. Call the Get PHP details endpoint afterwards to read the applied value.
1849
+ */
1850
+ "hosting_updatePHPOptionsV1": {
1851
+ params: {
1852
+ /**
1853
+ * username parameter
1854
+ */
1855
+ username: string;
1856
+ /**
1857
+ * Domain name
1858
+ */
1859
+ domain: string;
1860
+ /**
1861
+ * Map of PHP options to update, keyed by option name. Only include options you want to change.
1862
+ */
1863
+ options: object;
1864
+ };
1865
+ response: any; // Response structure will depend on the API
1866
+ };
1867
+
1868
+ /**
1869
+ * Changes the PHP version of the website.
1870
+
1871
+ Use the Get PHP details endpoint to see the versions available for the website.
1872
+ */
1873
+ "hosting_updatePHPVersionV1": {
1874
+ params: {
1875
+ /**
1876
+ * username parameter
1877
+ */
1878
+ username: string;
1879
+ /**
1880
+ * Domain name
1881
+ */
1882
+ domain: string;
1883
+ /**
1884
+ * PHP version to switch the website to.
1885
+ */
1886
+ version: string;
1887
+ };
1888
+ response: any; // Response structure will depend on the API
1889
+ };
1890
+
1717
1891
  /**
1718
1892
  * Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client.
1719
1893