hostinger-api-mcp 0.2.5 → 0.2.7

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.
@@ -1297,6 +1297,40 @@ const tools: OpenApiTool[] = [
1297
1297
  ],
1298
1298
  "group": "domains"
1299
1299
  },
1300
+ {
1301
+ "name": "hosting_changeDatabasePasswordV1",
1302
+ "description": "Changes the password for the specified database user.\n\nThe database name must be the full name returned by the list databases endpoint.\nThe password must also be updated in any website configuration that uses this database.",
1303
+ "method": "PATCH",
1304
+ "path": "/api/hosting/v1/accounts/{username}/databases/{name}/change-password",
1305
+ "inputSchema": {
1306
+ "type": "object",
1307
+ "properties": {
1308
+ "username": {
1309
+ "type": "string",
1310
+ "description": "username parameter"
1311
+ },
1312
+ "name": {
1313
+ "type": "string",
1314
+ "description": "Full database name as returned by the list databases endpoint."
1315
+ },
1316
+ "password": {
1317
+ "type": "string",
1318
+ "description": "New database user password."
1319
+ }
1320
+ },
1321
+ "required": [
1322
+ "username",
1323
+ "name",
1324
+ "password"
1325
+ ]
1326
+ },
1327
+ "security": [
1328
+ {
1329
+ "apiToken": []
1330
+ }
1331
+ ],
1332
+ "group": "hosting"
1333
+ },
1300
1334
  {
1301
1335
  "name": "hosting_listAccountDatabasesV1",
1302
1336
  "description": "Returns a paginated list of databases for the specified account.\n\nUse the domain and is_assigned filters to find databases assigned to a specific domain.",
@@ -1414,6 +1448,64 @@ const tools: OpenApiTool[] = [
1414
1448
  ],
1415
1449
  "group": "hosting"
1416
1450
  },
1451
+ {
1452
+ "name": "hosting_repairDatabaseV1",
1453
+ "description": "Repairs corrupted database tables asynchronously.\n\nUse when database errors, crashes, or corruption are reported.\nThe database name must be the full name returned by the list databases endpoint.",
1454
+ "method": "PATCH",
1455
+ "path": "/api/hosting/v1/accounts/{username}/databases/{name}/repair",
1456
+ "inputSchema": {
1457
+ "type": "object",
1458
+ "properties": {
1459
+ "username": {
1460
+ "type": "string",
1461
+ "description": "username parameter"
1462
+ },
1463
+ "name": {
1464
+ "type": "string",
1465
+ "description": "Full database name as returned by the list databases endpoint."
1466
+ }
1467
+ },
1468
+ "required": [
1469
+ "username",
1470
+ "name"
1471
+ ]
1472
+ },
1473
+ "security": [
1474
+ {
1475
+ "apiToken": []
1476
+ }
1477
+ ],
1478
+ "group": "hosting"
1479
+ },
1480
+ {
1481
+ "name": "hosting_getPhpMyAdminLinkV1",
1482
+ "description": "Returns a direct sign-on link to phpMyAdmin for the specified database.\n\nUse this when a visual database interface is needed for SQL queries, imports, exports, or table management.\nThe database name must be the full name returned by the list databases endpoint.",
1483
+ "method": "GET",
1484
+ "path": "/api/hosting/v1/accounts/{username}/databases/{name}/phpmyadmin-link",
1485
+ "inputSchema": {
1486
+ "type": "object",
1487
+ "properties": {
1488
+ "username": {
1489
+ "type": "string",
1490
+ "description": "username parameter"
1491
+ },
1492
+ "name": {
1493
+ "type": "string",
1494
+ "description": "Full database name as returned by the list databases endpoint."
1495
+ }
1496
+ },
1497
+ "required": [
1498
+ "username",
1499
+ "name"
1500
+ ]
1501
+ },
1502
+ "security": [
1503
+ {
1504
+ "apiToken": []
1505
+ }
1506
+ ],
1507
+ "group": "hosting"
1508
+ },
1417
1509
  {
1418
1510
  "name": "hosting_listAvailableDatacentersV1",
1419
1511
  "description": "Retrieve a list of datacenters available for setting up hosting plans\nbased on available datacenter capacity and hosting plan of your order.\nThe first item in the list is the best match for your specific order\nrequirements.",
@@ -1681,6 +1773,179 @@ const tools: OpenApiTool[] = [
1681
1773
  ],
1682
1774
  "group": "hosting"
1683
1775
  },
1776
+ {
1777
+ "name": "hosting_listNodeJSBuildsV1",
1778
+ "description": "Retrieve a paginated list of Node.js build processes for a specific website.\n\nEach build represents a single run of the Node.js build pipeline. Use the `states`\nquery parameter to filter results by build state (pending, running, completed, failed).\nUse the `uuid` from a build to poll its output via the `Get Node.js Build Logs` endpoint.",
1779
+ "method": "GET",
1780
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds",
1781
+ "inputSchema": {
1782
+ "type": "object",
1783
+ "properties": {
1784
+ "username": {
1785
+ "type": "string",
1786
+ "description": "username parameter"
1787
+ },
1788
+ "domain": {
1789
+ "type": "string",
1790
+ "description": "Domain name"
1791
+ },
1792
+ "page": {
1793
+ "type": "integer",
1794
+ "description": "Page number"
1795
+ },
1796
+ "per_page": {
1797
+ "type": "integer",
1798
+ "description": "Number of items per page"
1799
+ },
1800
+ "states": {
1801
+ "type": "array",
1802
+ "description": "Build states to filter by",
1803
+ "items": {
1804
+ "type": "string",
1805
+ "description": "states parameter",
1806
+ "enum": [
1807
+ "pending",
1808
+ "running",
1809
+ "completed",
1810
+ "failed"
1811
+ ]
1812
+ }
1813
+ }
1814
+ },
1815
+ "required": [
1816
+ "username",
1817
+ "domain"
1818
+ ]
1819
+ },
1820
+ "security": [
1821
+ {
1822
+ "apiToken": []
1823
+ }
1824
+ ],
1825
+ "group": "hosting"
1826
+ },
1827
+ {
1828
+ "name": "hosting_createNodeJSBuildFromArchiveV1",
1829
+ "description": "Upload a project archive, auto-detect build settings, and immediately start a Node.js build.\n\nThis is the recommended single-step approach for deploying a Node.js application.\nThe archive is uploaded to the website's file storage, build settings are auto-detected\nfrom the package.json inside the archive, and the build process starts automatically.\nOptional override fields take precedence over auto-detected values.\nMaximum archive size is 50MB.\n\nBefore archiving, exclude `node_modules/` and any build output directories\n(e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build\nprocess runs the install step automatically, and including them unnecessarily\nincreases the archive size. This also helps keep the archive well under the 50MB limit.\n\nExample (zip):\n```\nzip -r archive.zip . --exclude \"node_modules/*\" --exclude \"dist/*\"\n```\n\nThe returned build `uuid` can be used to poll progress and retrieve logs via\nthe `Get Node.js Build Logs` endpoint.",
1830
+ "method": "POST",
1831
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/from-archive",
1832
+ "inputSchema": {
1833
+ "type": "object",
1834
+ "properties": {
1835
+ "username": {
1836
+ "type": "string",
1837
+ "description": "username parameter"
1838
+ },
1839
+ "domain": {
1840
+ "type": "string",
1841
+ "description": "Domain name"
1842
+ },
1843
+ "archive": {
1844
+ "type": "string",
1845
+ "description": "Project archive file (.zip, .tar.gz, or .tgz), maximum 50MB"
1846
+ },
1847
+ "node_version": {
1848
+ "type": "integer",
1849
+ "description": "Node.js version override (auto-detected from package.json if omitted)",
1850
+ "enum": [
1851
+ 18,
1852
+ 20,
1853
+ 22,
1854
+ 24
1855
+ ]
1856
+ },
1857
+ "app_type": {
1858
+ "type": "string",
1859
+ "description": "Node.js application type override",
1860
+ "enum": [
1861
+ "create-react-app",
1862
+ "vite",
1863
+ "angular",
1864
+ "react",
1865
+ "vue",
1866
+ "parcel",
1867
+ "express",
1868
+ "fastify",
1869
+ "nest"
1870
+ ]
1871
+ },
1872
+ "root_directory": {
1873
+ "type": "string",
1874
+ "description": "Application root directory override (where package.json is located) relative to public_html"
1875
+ },
1876
+ "output_directory": {
1877
+ "type": "string",
1878
+ "description": "Build output directory override relative to the root directory"
1879
+ },
1880
+ "build_script": {
1881
+ "type": "string",
1882
+ "description": "Build script override"
1883
+ },
1884
+ "entry_file": {
1885
+ "type": "string",
1886
+ "description": "Main entry point file override"
1887
+ },
1888
+ "package_manager": {
1889
+ "type": "string",
1890
+ "description": "Package manager override",
1891
+ "enum": [
1892
+ "npm",
1893
+ "yarn",
1894
+ "pnpm"
1895
+ ]
1896
+ }
1897
+ },
1898
+ "required": [
1899
+ "username",
1900
+ "domain",
1901
+ "archive"
1902
+ ]
1903
+ },
1904
+ "security": [
1905
+ {
1906
+ "apiToken": []
1907
+ }
1908
+ ],
1909
+ "group": "hosting"
1910
+ },
1911
+ {
1912
+ "name": "hosting_getNodeJSBuildLogsV1",
1913
+ "description": "Retrieve logs from a specific Node.js build process.\n\nTo stream live output while a build is running, poll this endpoint repeatedly\nwhile the build state is `running`, passing the previously returned `lines` count\nas `from_line` to fetch only new output since the last call.\nLog content may contain ANSI escape sequences (color codes).",
1914
+ "method": "GET",
1915
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid}/logs",
1916
+ "inputSchema": {
1917
+ "type": "object",
1918
+ "properties": {
1919
+ "username": {
1920
+ "type": "string",
1921
+ "description": "username parameter"
1922
+ },
1923
+ "domain": {
1924
+ "type": "string",
1925
+ "description": "Domain name"
1926
+ },
1927
+ "uuid": {
1928
+ "type": "string",
1929
+ "description": "Build UUID"
1930
+ },
1931
+ "from_line": {
1932
+ "type": "integer",
1933
+ "description": "Line from which to start retrieving logs"
1934
+ }
1935
+ },
1936
+ "required": [
1937
+ "username",
1938
+ "domain",
1939
+ "uuid"
1940
+ ]
1941
+ },
1942
+ "security": [
1943
+ {
1944
+ "apiToken": []
1945
+ }
1946
+ ],
1947
+ "group": "hosting"
1948
+ },
1684
1949
  {
1685
1950
  "name": "hosting_listOrdersV1",
1686
1951
  "description": "Retrieve a paginated list of orders accessible to the authenticated client.\n\nThis endpoint returns orders of your hosting accounts as well as orders\nof other client hosting accounts that have shared access with you.\n\nUse the available query parameters to filter results by order statuses\nor specific order IDs for more targeted results.",
@@ -257,6 +257,40 @@ export default [
257
257
  "handlerMethod": "handleShowJsDeploymentLogs",
258
258
  "group": "hosting"
259
259
  },
260
+ {
261
+ "name": "hosting_changeDatabasePasswordV1",
262
+ "description": "Changes the password for the specified database user.\n\nThe database name must be the full name returned by the list databases endpoint.\nThe password must also be updated in any website configuration that uses this database.",
263
+ "method": "PATCH",
264
+ "path": "/api/hosting/v1/accounts/{username}/databases/{name}/change-password",
265
+ "inputSchema": {
266
+ "type": "object",
267
+ "properties": {
268
+ "username": {
269
+ "type": "string",
270
+ "description": "username parameter"
271
+ },
272
+ "name": {
273
+ "type": "string",
274
+ "description": "Full database name as returned by the list databases endpoint."
275
+ },
276
+ "password": {
277
+ "type": "string",
278
+ "description": "New database user password."
279
+ }
280
+ },
281
+ "required": [
282
+ "username",
283
+ "name",
284
+ "password"
285
+ ]
286
+ },
287
+ "security": [
288
+ {
289
+ "apiToken": []
290
+ }
291
+ ],
292
+ "group": "hosting"
293
+ },
260
294
  {
261
295
  "name": "hosting_listAccountDatabasesV1",
262
296
  "description": "Returns a paginated list of databases for the specified account.\n\nUse the domain and is_assigned filters to find databases assigned to a specific domain.",
@@ -374,6 +408,64 @@ export default [
374
408
  ],
375
409
  "group": "hosting"
376
410
  },
411
+ {
412
+ "name": "hosting_repairDatabaseV1",
413
+ "description": "Repairs corrupted database tables asynchronously.\n\nUse when database errors, crashes, or corruption are reported.\nThe database name must be the full name returned by the list databases endpoint.",
414
+ "method": "PATCH",
415
+ "path": "/api/hosting/v1/accounts/{username}/databases/{name}/repair",
416
+ "inputSchema": {
417
+ "type": "object",
418
+ "properties": {
419
+ "username": {
420
+ "type": "string",
421
+ "description": "username parameter"
422
+ },
423
+ "name": {
424
+ "type": "string",
425
+ "description": "Full database name as returned by the list databases endpoint."
426
+ }
427
+ },
428
+ "required": [
429
+ "username",
430
+ "name"
431
+ ]
432
+ },
433
+ "security": [
434
+ {
435
+ "apiToken": []
436
+ }
437
+ ],
438
+ "group": "hosting"
439
+ },
440
+ {
441
+ "name": "hosting_getPhpMyAdminLinkV1",
442
+ "description": "Returns a direct sign-on link to phpMyAdmin for the specified database.\n\nUse this when a visual database interface is needed for SQL queries, imports, exports, or table management.\nThe database name must be the full name returned by the list databases endpoint.",
443
+ "method": "GET",
444
+ "path": "/api/hosting/v1/accounts/{username}/databases/{name}/phpmyadmin-link",
445
+ "inputSchema": {
446
+ "type": "object",
447
+ "properties": {
448
+ "username": {
449
+ "type": "string",
450
+ "description": "username parameter"
451
+ },
452
+ "name": {
453
+ "type": "string",
454
+ "description": "Full database name as returned by the list databases endpoint."
455
+ }
456
+ },
457
+ "required": [
458
+ "username",
459
+ "name"
460
+ ]
461
+ },
462
+ "security": [
463
+ {
464
+ "apiToken": []
465
+ }
466
+ ],
467
+ "group": "hosting"
468
+ },
377
469
  {
378
470
  "name": "hosting_listAvailableDatacentersV1",
379
471
  "description": "Retrieve a list of datacenters available for setting up hosting plans\nbased on available datacenter capacity and hosting plan of your order.\nThe first item in the list is the best match for your specific order\nrequirements.",
@@ -641,6 +733,179 @@ export default [
641
733
  ],
642
734
  "group": "hosting"
643
735
  },
736
+ {
737
+ "name": "hosting_listNodeJSBuildsV1",
738
+ "description": "Retrieve a paginated list of Node.js build processes for a specific website.\n\nEach build represents a single run of the Node.js build pipeline. Use the `states`\nquery parameter to filter results by build state (pending, running, completed, failed).\nUse the `uuid` from a build to poll its output via the `Get Node.js Build Logs` endpoint.",
739
+ "method": "GET",
740
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds",
741
+ "inputSchema": {
742
+ "type": "object",
743
+ "properties": {
744
+ "username": {
745
+ "type": "string",
746
+ "description": "username parameter"
747
+ },
748
+ "domain": {
749
+ "type": "string",
750
+ "description": "Domain name"
751
+ },
752
+ "page": {
753
+ "type": "integer",
754
+ "description": "Page number"
755
+ },
756
+ "per_page": {
757
+ "type": "integer",
758
+ "description": "Number of items per page"
759
+ },
760
+ "states": {
761
+ "type": "array",
762
+ "description": "Build states to filter by",
763
+ "items": {
764
+ "type": "string",
765
+ "description": "states parameter",
766
+ "enum": [
767
+ "pending",
768
+ "running",
769
+ "completed",
770
+ "failed"
771
+ ]
772
+ }
773
+ }
774
+ },
775
+ "required": [
776
+ "username",
777
+ "domain"
778
+ ]
779
+ },
780
+ "security": [
781
+ {
782
+ "apiToken": []
783
+ }
784
+ ],
785
+ "group": "hosting"
786
+ },
787
+ {
788
+ "name": "hosting_createNodeJSBuildFromArchiveV1",
789
+ "description": "Upload a project archive, auto-detect build settings, and immediately start a Node.js build.\n\nThis is the recommended single-step approach for deploying a Node.js application.\nThe archive is uploaded to the website's file storage, build settings are auto-detected\nfrom the package.json inside the archive, and the build process starts automatically.\nOptional override fields take precedence over auto-detected values.\nMaximum archive size is 50MB.\n\nBefore archiving, exclude `node_modules/` and any build output directories\n(e.g. `dist/`, `.next/`, `build/`) — they are not needed because the build\nprocess runs the install step automatically, and including them unnecessarily\nincreases the archive size. This also helps keep the archive well under the 50MB limit.\n\nExample (zip):\n```\nzip -r archive.zip . --exclude \"node_modules/*\" --exclude \"dist/*\"\n```\n\nThe returned build `uuid` can be used to poll progress and retrieve logs via\nthe `Get Node.js Build Logs` endpoint.",
790
+ "method": "POST",
791
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/from-archive",
792
+ "inputSchema": {
793
+ "type": "object",
794
+ "properties": {
795
+ "username": {
796
+ "type": "string",
797
+ "description": "username parameter"
798
+ },
799
+ "domain": {
800
+ "type": "string",
801
+ "description": "Domain name"
802
+ },
803
+ "archive": {
804
+ "type": "string",
805
+ "description": "Project archive file (.zip, .tar.gz, or .tgz), maximum 50MB"
806
+ },
807
+ "node_version": {
808
+ "type": "integer",
809
+ "description": "Node.js version override (auto-detected from package.json if omitted)",
810
+ "enum": [
811
+ 18,
812
+ 20,
813
+ 22,
814
+ 24
815
+ ]
816
+ },
817
+ "app_type": {
818
+ "type": "string",
819
+ "description": "Node.js application type override",
820
+ "enum": [
821
+ "create-react-app",
822
+ "vite",
823
+ "angular",
824
+ "react",
825
+ "vue",
826
+ "parcel",
827
+ "express",
828
+ "fastify",
829
+ "nest"
830
+ ]
831
+ },
832
+ "root_directory": {
833
+ "type": "string",
834
+ "description": "Application root directory override (where package.json is located) relative to public_html"
835
+ },
836
+ "output_directory": {
837
+ "type": "string",
838
+ "description": "Build output directory override relative to the root directory"
839
+ },
840
+ "build_script": {
841
+ "type": "string",
842
+ "description": "Build script override"
843
+ },
844
+ "entry_file": {
845
+ "type": "string",
846
+ "description": "Main entry point file override"
847
+ },
848
+ "package_manager": {
849
+ "type": "string",
850
+ "description": "Package manager override",
851
+ "enum": [
852
+ "npm",
853
+ "yarn",
854
+ "pnpm"
855
+ ]
856
+ }
857
+ },
858
+ "required": [
859
+ "username",
860
+ "domain",
861
+ "archive"
862
+ ]
863
+ },
864
+ "security": [
865
+ {
866
+ "apiToken": []
867
+ }
868
+ ],
869
+ "group": "hosting"
870
+ },
871
+ {
872
+ "name": "hosting_getNodeJSBuildLogsV1",
873
+ "description": "Retrieve logs from a specific Node.js build process.\n\nTo stream live output while a build is running, poll this endpoint repeatedly\nwhile the build state is `running`, passing the previously returned `lines` count\nas `from_line` to fetch only new output since the last call.\nLog content may contain ANSI escape sequences (color codes).",
874
+ "method": "GET",
875
+ "path": "/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/{uuid}/logs",
876
+ "inputSchema": {
877
+ "type": "object",
878
+ "properties": {
879
+ "username": {
880
+ "type": "string",
881
+ "description": "username parameter"
882
+ },
883
+ "domain": {
884
+ "type": "string",
885
+ "description": "Domain name"
886
+ },
887
+ "uuid": {
888
+ "type": "string",
889
+ "description": "Build UUID"
890
+ },
891
+ "from_line": {
892
+ "type": "integer",
893
+ "description": "Line from which to start retrieving logs"
894
+ }
895
+ },
896
+ "required": [
897
+ "username",
898
+ "domain",
899
+ "uuid"
900
+ ]
901
+ },
902
+ "security": [
903
+ {
904
+ "apiToken": []
905
+ }
906
+ ],
907
+ "group": "hosting"
908
+ },
644
909
  {
645
910
  "name": "hosting_listOrdersV1",
646
911
  "description": "Retrieve a paginated list of orders accessible to the authenticated client.\n\nThis endpoint returns orders of your hosting accounts as well as orders\nof other client hosting accounts that have shared access with you.\n\nUse the available query parameters to filter results by order statuses\nor specific order IDs for more targeted results.",