hostinger-api-mcp 0.1.27 → 0.1.36
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 +124 -80
- package/package.json +1 -1
- package/server.js +83 -95
- package/server.ts +83 -95
- package/types.d.ts +138 -88
package/server.ts
CHANGED
|
@@ -291,7 +291,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
291
291
|
},
|
|
292
292
|
{
|
|
293
293
|
"name": "billing_getCatalogItemListV1",
|
|
294
|
-
"description": "Retrieve catalog items available for order.\n\nPrices in catalog items is displayed as cents (without floating point)
|
|
294
|
+
"description": "Retrieve catalog items available for order.\n\nPrices in catalog items is displayed as cents (without floating point),\ne.g: float `17.99` is displayed as integer `1799`.\n\nUse this endpoint to view available services and pricing before placing orders.",
|
|
295
295
|
"method": "GET",
|
|
296
296
|
"path": "/api/billing/v1/catalog",
|
|
297
297
|
"inputSchema": {
|
|
@@ -318,60 +318,6 @@ const TOOLS: OpenApiTool[] = [
|
|
|
318
318
|
}
|
|
319
319
|
]
|
|
320
320
|
},
|
|
321
|
-
{
|
|
322
|
-
"name": "billing_createServiceOrderV1",
|
|
323
|
-
"description": "Create a new service order. \n\n**DEPRECATED**\n\nTo purchase a domain, use [`POST /api/domains/v1/portfolio`](/#tag/domains-portfolio/POST/api/domains/v1/portfolio) instead.\n\nTo purchase a VPS, use [`POST /api/vps/v1/virtual-machines`](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines) instead.\n\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.",
|
|
324
|
-
"method": "POST",
|
|
325
|
-
"path": "/api/billing/v1/orders",
|
|
326
|
-
"inputSchema": {
|
|
327
|
-
"type": "object",
|
|
328
|
-
"properties": {
|
|
329
|
-
"payment_method_id": {
|
|
330
|
-
"type": "integer",
|
|
331
|
-
"description": "Payment method ID"
|
|
332
|
-
},
|
|
333
|
-
"items": {
|
|
334
|
-
"type": "array",
|
|
335
|
-
"description": "items parameter",
|
|
336
|
-
"items": {
|
|
337
|
-
"type": "object",
|
|
338
|
-
"description": "items parameter",
|
|
339
|
-
"properties": {
|
|
340
|
-
"item_id": {
|
|
341
|
-
"type": "string",
|
|
342
|
-
"description": "Price Item ID"
|
|
343
|
-
},
|
|
344
|
-
"quantity": {
|
|
345
|
-
"type": "integer",
|
|
346
|
-
"description": "quantity parameter"
|
|
347
|
-
}
|
|
348
|
-
},
|
|
349
|
-
"required": [
|
|
350
|
-
"item_id",
|
|
351
|
-
"quantity"
|
|
352
|
-
]
|
|
353
|
-
}
|
|
354
|
-
},
|
|
355
|
-
"coupons": {
|
|
356
|
-
"type": "array",
|
|
357
|
-
"description": "Discount coupon codes",
|
|
358
|
-
"items": {
|
|
359
|
-
"type": "string",
|
|
360
|
-
"description": "coupons parameter"
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
},
|
|
364
|
-
"required": [
|
|
365
|
-
"payment_method_id",
|
|
366
|
-
"items"
|
|
367
|
-
]
|
|
368
|
-
},
|
|
369
|
-
"security": [
|
|
370
|
-
{
|
|
371
|
-
"apiToken": []
|
|
372
|
-
}
|
|
373
|
-
]
|
|
374
|
-
},
|
|
375
321
|
{
|
|
376
322
|
"name": "billing_setDefaultPaymentMethodV1",
|
|
377
323
|
"description": "Set the default payment method for your account.\n\nUse this endpoint to configure the primary payment method for future orders.",
|
|
@@ -420,7 +366,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
420
366
|
},
|
|
421
367
|
{
|
|
422
368
|
"name": "billing_getPaymentMethodListV1",
|
|
423
|
-
"description": "Retrieve available payment methods that can be used for placing new orders.\n\nIf you want to add new payment method
|
|
369
|
+
"description": "Retrieve available payment methods that can be used for placing new orders.\n\nIf you want to add new payment method,\nplease use [hPanel](https://hpanel.hostinger.com/billing/payment-methods).\n\nUse this endpoint to view available payment options before creating orders.",
|
|
424
370
|
"method": "GET",
|
|
425
371
|
"path": "/api/billing/v1/payment-methods",
|
|
426
372
|
"inputSchema": {
|
|
@@ -612,7 +558,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
612
558
|
},
|
|
613
559
|
"overwrite": {
|
|
614
560
|
"type": "boolean",
|
|
615
|
-
"description": "If `true`, resource records (RRs) matching name and type will be deleted and new RRs will be created
|
|
561
|
+
"description": "If `true`, resource records (RRs) matching name and type will be deleted and new RRs will be created,\notherwise resource records' ttl's are updated and new records are appended.\nIf no matching RRs are found, they are created."
|
|
616
562
|
},
|
|
617
563
|
"zone": {
|
|
618
564
|
"type": "array",
|
|
@@ -758,7 +704,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
758
704
|
},
|
|
759
705
|
"overwrite": {
|
|
760
706
|
"type": "boolean",
|
|
761
|
-
"description": "If `true`, resource records (RRs) matching name and type will be deleted and new RRs will be created
|
|
707
|
+
"description": "If `true`, resource records (RRs) matching name and type will be deleted and new RRs will be created,\notherwise resource records' ttl's are updated and new records are appended.\nIf no matching RRs are found, they are created."
|
|
762
708
|
},
|
|
763
709
|
"zone": {
|
|
764
710
|
"type": "array",
|
|
@@ -965,7 +911,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
965
911
|
},
|
|
966
912
|
{
|
|
967
913
|
"name": "domains_enableDomainLockV1",
|
|
968
|
-
"description": "Enable domain lock for the domain.\n\nWhen domain lock is enabled
|
|
914
|
+
"description": "Enable domain lock for the domain.\n\nWhen domain lock is enabled,\nthe domain cannot be transferred to another registrar without first disabling the lock.\n\nUse this endpoint to secure domains against unauthorized transfers.",
|
|
969
915
|
"method": "PUT",
|
|
970
916
|
"path": "/api/domains/v1/portfolio/{domain}/domain-lock",
|
|
971
917
|
"inputSchema": {
|
|
@@ -1050,7 +996,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
1050
996
|
},
|
|
1051
997
|
{
|
|
1052
998
|
"name": "domains_purchaseNewDomainV1",
|
|
1053
|
-
"description": "Purchase and register a new domain name.\n\nIf registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status.\n\nIf no payment method is provided, your default payment method will be used automatically.\n\nIf no WHOIS information is provided, default contact information for that TLD will be used
|
|
999
|
+
"description": "Purchase and register a new domain name.\n\nIf registration fails, login to [hPanel](https://hpanel.hostinger.com/) and check domain registration status.\n\nIf no payment method is provided, your default payment method will be used automatically.\n\nIf no WHOIS information is provided, default contact information for that TLD will be used.\nBefore making request, ensure WHOIS information for desired TLD exists in your account.\n\nSome TLDs require `additional_details` to be provided and these will be validated before completing purchase.\n\nUse this endpoint to register new domains for users.",
|
|
1054
1000
|
"method": "POST",
|
|
1055
1001
|
"path": "/api/domains/v1/portfolio",
|
|
1056
1002
|
"inputSchema": {
|
|
@@ -1342,7 +1288,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
1342
1288
|
},
|
|
1343
1289
|
{
|
|
1344
1290
|
"name": "hosting_listAvailableDatacentersV1",
|
|
1345
|
-
"description": "Retrieve a list of datacenters available for setting up hosting plans
|
|
1291
|
+
"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.",
|
|
1346
1292
|
"method": "GET",
|
|
1347
1293
|
"path": "/api/hosting/v1/datacenters",
|
|
1348
1294
|
"inputSchema": {
|
|
@@ -1365,7 +1311,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
1365
1311
|
},
|
|
1366
1312
|
{
|
|
1367
1313
|
"name": "hosting_generateAFreeSubdomainV1",
|
|
1368
|
-
"description": "Generate a unique free subdomain that can be used for hosting services without purchasing custom domains.\nFree subdomains allow you to start using hosting services immediately
|
|
1314
|
+
"description": "Generate a unique free subdomain that can be used for hosting services without purchasing custom domains.\nFree subdomains allow you to start using hosting services immediately\nand you can always connect a custom domain to your site later.",
|
|
1369
1315
|
"method": "POST",
|
|
1370
1316
|
"path": "/api/hosting/v1/domains/free-subdomains",
|
|
1371
1317
|
"inputSchema": {
|
|
@@ -1404,7 +1350,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
1404
1350
|
},
|
|
1405
1351
|
{
|
|
1406
1352
|
"name": "hosting_listOrdersV1",
|
|
1407
|
-
"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
|
|
1353
|
+
"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.",
|
|
1408
1354
|
"method": "GET",
|
|
1409
1355
|
"path": "/api/hosting/v1/orders",
|
|
1410
1356
|
"inputSchema": {
|
|
@@ -1451,7 +1397,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
1451
1397
|
},
|
|
1452
1398
|
{
|
|
1453
1399
|
"name": "hosting_listWebsitesV1",
|
|
1454
|
-
"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
|
|
1400
|
+
"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.",
|
|
1455
1401
|
"method": "GET",
|
|
1456
1402
|
"path": "/api/hosting/v1/websites",
|
|
1457
1403
|
"inputSchema": {
|
|
@@ -1492,7 +1438,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
1492
1438
|
},
|
|
1493
1439
|
{
|
|
1494
1440
|
"name": "hosting_createWebsiteV1",
|
|
1495
|
-
"description": "Create a new website for the authenticated client.\n\nProvide the domain name and associated order ID to create a new website
|
|
1441
|
+
"description": "Create a new website for the authenticated client.\n\nProvide the domain name and associated order ID to create a new website.\nThe datacenter_code parameter is required when creating the first website\non a new hosting plan - this will set up and configure new hosting account\nin the selected datacenter.\n\nSubsequent websites will be hosted on the same datacenter automatically.\n\nWebsite creation takes up to a few minutes to complete. Check the\nwebsites list endpoint to see when your new website becomes available.",
|
|
1496
1442
|
"method": "POST",
|
|
1497
1443
|
"path": "/api/hosting/v1/websites",
|
|
1498
1444
|
"inputSchema": {
|
|
@@ -1596,7 +1542,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
1596
1542
|
},
|
|
1597
1543
|
{
|
|
1598
1544
|
"name": "reach_createANewContactV1",
|
|
1599
|
-
"description": "Create a new contact in the email marketing system.\n\nThis endpoint allows you to create a new contact with basic information like name, email, and surname.\n\nIf double opt-in is enabled
|
|
1545
|
+
"description": "Create a new contact in the email marketing system.\n\nThis endpoint allows you to create a new contact with basic information like name, email, and surname.\n\nIf double opt-in is enabled,\nthe contact will be created with a pending status and a confirmation email will be sent.",
|
|
1600
1546
|
"method": "POST",
|
|
1601
1547
|
"path": "/api/reach/v1/contacts",
|
|
1602
1548
|
"inputSchema": {
|
|
@@ -1802,6 +1748,46 @@ const TOOLS: OpenApiTool[] = [
|
|
|
1802
1748
|
}
|
|
1803
1749
|
]
|
|
1804
1750
|
},
|
|
1751
|
+
{
|
|
1752
|
+
"name": "reach_createNewContactsV1",
|
|
1753
|
+
"description": "Create a new contact in the email marketing system.\n\nThis endpoint allows you to create a new contact with basic information like name, email, and surname.\n\nIf double opt-in is enabled, the contact will be created with a pending status\nand a confirmation email will be sent.",
|
|
1754
|
+
"method": "POST",
|
|
1755
|
+
"path": "/api/reach/v1/profiles/{profileUuid}/contacts",
|
|
1756
|
+
"inputSchema": {
|
|
1757
|
+
"type": "object",
|
|
1758
|
+
"properties": {
|
|
1759
|
+
"profileUuid": {
|
|
1760
|
+
"type": "string",
|
|
1761
|
+
"description": "Profile uuid parameter"
|
|
1762
|
+
},
|
|
1763
|
+
"email": {
|
|
1764
|
+
"type": "string",
|
|
1765
|
+
"description": "email parameter"
|
|
1766
|
+
},
|
|
1767
|
+
"name": {
|
|
1768
|
+
"type": "string",
|
|
1769
|
+
"description": "name parameter"
|
|
1770
|
+
},
|
|
1771
|
+
"surname": {
|
|
1772
|
+
"type": "string",
|
|
1773
|
+
"description": "surname parameter"
|
|
1774
|
+
},
|
|
1775
|
+
"note": {
|
|
1776
|
+
"type": "string",
|
|
1777
|
+
"description": "note parameter"
|
|
1778
|
+
}
|
|
1779
|
+
},
|
|
1780
|
+
"required": [
|
|
1781
|
+
"profileUuid",
|
|
1782
|
+
"email"
|
|
1783
|
+
]
|
|
1784
|
+
},
|
|
1785
|
+
"security": [
|
|
1786
|
+
{
|
|
1787
|
+
"apiToken": []
|
|
1788
|
+
}
|
|
1789
|
+
]
|
|
1790
|
+
},
|
|
1805
1791
|
{
|
|
1806
1792
|
"name": "reach_listProfilesV1",
|
|
1807
1793
|
"description": "This endpoint returns all profiles available to the client, including their basic information.",
|
|
@@ -1836,7 +1822,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
1836
1822
|
},
|
|
1837
1823
|
{
|
|
1838
1824
|
"name": "VPS_getProjectContainersV1",
|
|
1839
|
-
"description": "Retrieves a list of all containers belonging to a specific Docker Compose project on the virtual machine. \n\nThis endpoint returns detailed information about each container including
|
|
1825
|
+
"description": "Retrieves a list of all containers belonging to a specific Docker Compose project on the virtual machine. \n\nThis endpoint returns detailed information about each container including\ntheir current status, port mappings, and runtime configuration.\n\nUse this to monitor the health and state of all services within your Docker Compose project.",
|
|
1840
1826
|
"method": "GET",
|
|
1841
1827
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/containers",
|
|
1842
1828
|
"inputSchema": {
|
|
@@ -1864,7 +1850,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
1864
1850
|
},
|
|
1865
1851
|
{
|
|
1866
1852
|
"name": "VPS_getProjectContentsV1",
|
|
1867
|
-
"description": "Retrieves the complete project information including the docker-compose.yml
|
|
1853
|
+
"description": "Retrieves the complete project information including the docker-compose.yml\nfile contents, project metadata, and current deployment status.\n\nThis endpoint provides the full configuration and state details of a specific Docker Compose project. \n\nUse this to inspect project settings, review the compose file, or check the overall project health.",
|
|
1868
1854
|
"method": "GET",
|
|
1869
1855
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}",
|
|
1870
1856
|
"inputSchema": {
|
|
@@ -1920,7 +1906,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
1920
1906
|
},
|
|
1921
1907
|
{
|
|
1922
1908
|
"name": "VPS_getProjectListV1",
|
|
1923
|
-
"description": "Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. \n\nThis endpoint returns basic information about each project including name,
|
|
1909
|
+
"description": "Retrieves a list of all Docker Compose projects currently deployed on the virtual machine. \n\nThis endpoint returns basic information about each project including name,\nstatus, file path and list of containers with details about their names,\nimage, status, health and ports. Container stats are omitted in this\nendpoint. If you need to get detailed information about container with\nstats included, use the `Get project containers` endpoint.\n\nUse this to get an overview of all Docker projects on your VPS instance.",
|
|
1924
1910
|
"method": "GET",
|
|
1925
1911
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/docker",
|
|
1926
1912
|
"inputSchema": {
|
|
@@ -1943,7 +1929,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
1943
1929
|
},
|
|
1944
1930
|
{
|
|
1945
1931
|
"name": "VPS_createNewProjectV1",
|
|
1946
|
-
"description": "Deploy new project from docker-compose.yaml contents or download contents from URL. \n\nURL can be Github repository url in format https://github.com/[user]/[repo]
|
|
1932
|
+
"description": "Deploy new project from docker-compose.yaml contents or download contents from URL. \n\nURL can be Github repository url in format https://github.com/[user]/[repo]\nand it will be automatically resolved to docker-compose.yaml file in\nmaster branch. Any other URL provided must return docker-compose.yaml\nfile contents.\n\nIf project with the same name already exists, existing project will be replaced.",
|
|
1947
1933
|
"method": "POST",
|
|
1948
1934
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/docker",
|
|
1949
1935
|
"inputSchema": {
|
|
@@ -1980,7 +1966,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
1980
1966
|
},
|
|
1981
1967
|
{
|
|
1982
1968
|
"name": "VPS_getProjectLogsV1",
|
|
1983
|
-
"description": "Retrieves aggregated log entries from all services within a Docker Compose project. \n\nThis endpoint returns recent log output from each container, organized by service name with timestamps. \nThe response contains the last 300 log entries across all services. \n\nUse this for debugging, monitoring application behavior, and
|
|
1969
|
+
"description": "Retrieves aggregated log entries from all services within a Docker Compose project. \n\nThis endpoint returns recent log output from each container, organized by service name with timestamps. \nThe response contains the last 300 log entries across all services. \n\nUse this for debugging, monitoring application behavior, and\ntroubleshooting issues across your entire project stack.",
|
|
1984
1970
|
"method": "GET",
|
|
1985
1971
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/logs",
|
|
1986
1972
|
"inputSchema": {
|
|
@@ -2008,7 +1994,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
2008
1994
|
},
|
|
2009
1995
|
{
|
|
2010
1996
|
"name": "VPS_restartProjectV1",
|
|
2011
|
-
"description": "Restarts all services in a Docker Compose project by stopping and starting
|
|
1997
|
+
"description": "Restarts all services in a Docker Compose project by stopping and starting\ncontainers in the correct dependency order.\n\nThis operation preserves data volumes and network configurations while refreshing the running containers. \n\nUse this to apply configuration changes or recover from service failures.",
|
|
2012
1998
|
"method": "POST",
|
|
2013
1999
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/restart",
|
|
2014
2000
|
"inputSchema": {
|
|
@@ -2064,7 +2050,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
2064
2050
|
},
|
|
2065
2051
|
{
|
|
2066
2052
|
"name": "VPS_stopProjectV1",
|
|
2067
|
-
"description": "Stops all running services in a Docker Compose project while preserving
|
|
2053
|
+
"description": "Stops all running services in a Docker Compose project while preserving\ncontainer configurations and data volumes.\n\nThis operation gracefully shuts down containers in reverse dependency order. \n\nUse this to temporarily halt a project without removing data or configurations.",
|
|
2068
2054
|
"method": "POST",
|
|
2069
2055
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/stop",
|
|
2070
2056
|
"inputSchema": {
|
|
@@ -2092,7 +2078,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
2092
2078
|
},
|
|
2093
2079
|
{
|
|
2094
2080
|
"name": "VPS_updateProjectV1",
|
|
2095
|
-
"description": "Updates a Docker Compose project by pulling the latest image versions and
|
|
2081
|
+
"description": "Updates a Docker Compose project by pulling the latest image versions and\nrecreating containers with new configurations.\n\nThis operation preserves data volumes while applying changes from the compose file. \n\nUse this to deploy application updates, apply configuration changes, or\nrefresh container images to their latest versions.",
|
|
2096
2082
|
"method": "POST",
|
|
2097
2083
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/docker/{projectName}/update",
|
|
2098
2084
|
"inputSchema": {
|
|
@@ -2266,7 +2252,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
2266
2252
|
},
|
|
2267
2253
|
{
|
|
2268
2254
|
"name": "VPS_updateFirewallRuleV1",
|
|
2269
|
-
"description": "Update a specific firewall rule from a specified firewall.\n\nAny virtual machine that has this firewall activated will lose sync with the firewall
|
|
2255
|
+
"description": "Update a specific firewall rule from a specified firewall.\n\nAny virtual machine that has this firewall activated will lose sync with the firewall\nand will have to be synced again manually.\n\nUse this endpoint to modify existing firewall rules.",
|
|
2270
2256
|
"method": "PUT",
|
|
2271
2257
|
"path": "/api/vps/v1/firewall/{firewallId}/rules/{ruleId}",
|
|
2272
2258
|
"inputSchema": {
|
|
@@ -2333,7 +2319,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
2333
2319
|
},
|
|
2334
2320
|
{
|
|
2335
2321
|
"name": "VPS_deleteFirewallRuleV1",
|
|
2336
|
-
"description": "Delete a specific firewall rule from a specified firewall.\n\nAny virtual machine that has this firewall activated will lose sync with the firewall
|
|
2322
|
+
"description": "Delete a specific firewall rule from a specified firewall.\n\nAny virtual machine that has this firewall activated will lose sync with the firewall\nand will have to be synced again manually.\n\nUse this endpoint to remove specific firewall rules.",
|
|
2337
2323
|
"method": "DELETE",
|
|
2338
2324
|
"path": "/api/vps/v1/firewall/{firewallId}/rules/{ruleId}",
|
|
2339
2325
|
"inputSchema": {
|
|
@@ -2361,7 +2347,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
2361
2347
|
},
|
|
2362
2348
|
{
|
|
2363
2349
|
"name": "VPS_createFirewallRuleV1",
|
|
2364
|
-
"description": "Create new firewall rule for a specified firewall.\n\nBy default, the firewall drops all incoming traffic
|
|
2350
|
+
"description": "Create new firewall rule for a specified firewall.\n\nBy default, the firewall drops all incoming traffic,\nwhich means you must add accept rules for all ports you want to use.\n\nAny virtual machine that has this firewall activated will lose sync with the firewall\nand will have to be synced again manually.\n\nUse this endpoint to add new security rules to firewalls.",
|
|
2365
2351
|
"method": "POST",
|
|
2366
2352
|
"path": "/api/vps/v1/firewall/{firewallId}/rules",
|
|
2367
2353
|
"inputSchema": {
|
|
@@ -2551,7 +2537,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
2551
2537
|
},
|
|
2552
2538
|
{
|
|
2553
2539
|
"name": "VPS_createPostInstallScriptV1",
|
|
2554
|
-
"description": "Add a new post-install script to your account, which can then be used after virtual machine installation.\n\nThe script contents will be saved to the file `/post_install` with executable attribute set
|
|
2540
|
+
"description": "Add a new post-install script to your account, which can then be used after virtual machine installation.\n\nThe script contents will be saved to the file `/post_install` with executable attribute set\nand will be executed once virtual machine is installed.\nThe output of the script will be redirected to `/post_install.log`. Maximum script size is 48KB.\n\nUse this endpoint to create automation scripts for VPS setup tasks.",
|
|
2555
2541
|
"method": "POST",
|
|
2556
2542
|
"path": "/api/vps/v1/post-install-scripts",
|
|
2557
2543
|
"inputSchema": {
|
|
@@ -2750,7 +2736,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
2750
2736
|
},
|
|
2751
2737
|
{
|
|
2752
2738
|
"name": "VPS_getActionsV1",
|
|
2753
|
-
"description": "Retrieve actions performed on a specified virtual machine.\n\nActions are operations or events that have been executed on the virtual
|
|
2739
|
+
"description": "Retrieve actions performed on a specified virtual machine.\n\nActions are operations or events that have been executed on the virtual\nmachine, such as starting, stopping, or modifying the machine. This endpoint\nallows you to view the history of these actions, providing details about\neach action, such as the action name, timestamp, and status.\n\nUse this endpoint to view VPS operation history and troubleshoot issues.",
|
|
2754
2740
|
"method": "GET",
|
|
2755
2741
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/actions",
|
|
2756
2742
|
"inputSchema": {
|
|
@@ -2949,7 +2935,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
2949
2935
|
},
|
|
2950
2936
|
{
|
|
2951
2937
|
"name": "VPS_purchaseNewVirtualMachineV1",
|
|
2952
|
-
"description": "Purchase and setup a new virtual machine.\n\nIf virtual machine setup fails for any reason, login to
|
|
2938
|
+
"description": "Purchase and setup a new virtual machine.\n\nIf virtual machine setup fails for any reason, login to\n[hPanel](https://hpanel.hostinger.com/) and complete the setup manually.\n\nIf no payment method is provided, your default payment method will be used automatically.\n\nUse this endpoint to create new VPS instances.",
|
|
2953
2939
|
"method": "POST",
|
|
2954
2940
|
"path": "/api/vps/v1/virtual-machines",
|
|
2955
2941
|
"inputSchema": {
|
|
@@ -2989,7 +2975,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
2989
2975
|
},
|
|
2990
2976
|
{
|
|
2991
2977
|
"name": "VPS_getScanMetricsV1",
|
|
2992
|
-
"description": "Retrieve scan metrics for the [Monarx](https://www.monarx.com/) malware scanner
|
|
2978
|
+
"description": "Retrieve scan metrics for the [Monarx](https://www.monarx.com/) malware scanner\ninstalled on a specified virtual machine.\n\nThe scan metrics provide detailed information about malware scans performed\nby Monarx, including number of scans, detected threats, and other relevant\nstatistics. This information is useful for monitoring security status of the\nvirtual machine and assessing effectiveness of the malware scanner.\n\nUse this endpoint to monitor VPS security scan results and threat detection.",
|
|
2993
2979
|
"method": "GET",
|
|
2994
2980
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/monarx",
|
|
2995
2981
|
"inputSchema": {
|
|
@@ -3012,7 +2998,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
3012
2998
|
},
|
|
3013
2999
|
{
|
|
3014
3000
|
"name": "VPS_installMonarxV1",
|
|
3015
|
-
"description": "Install the Monarx malware scanner on a specified virtual machine.\n\n[Monarx](https://www.monarx.com/) is a security tool designed to detect and
|
|
3001
|
+
"description": "Install the Monarx malware scanner on a specified virtual machine.\n\n[Monarx](https://www.monarx.com/) is a security tool designed to detect and\nprevent malware infections on virtual machines. By installing Monarx, users\ncan enhance the security of their virtual machines, ensuring that they are\nprotected against malicious software.\n\nUse this endpoint to enable malware protection on VPS instances.",
|
|
3016
3002
|
"method": "POST",
|
|
3017
3003
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/monarx",
|
|
3018
3004
|
"inputSchema": {
|
|
@@ -3091,7 +3077,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
3091
3077
|
},
|
|
3092
3078
|
{
|
|
3093
3079
|
"name": "VPS_setNameserversV1",
|
|
3094
|
-
"description": "Set nameservers for a specified virtual machine.\n\nBe aware, that improper nameserver configuration can lead to the virtual
|
|
3080
|
+
"description": "Set nameservers for a specified virtual machine.\n\nBe aware, that improper nameserver configuration can lead to the virtual\nmachine being unable to resolve domain names.\n\nUse this endpoint to configure custom DNS resolvers for VPS instances.",
|
|
3095
3081
|
"method": "PUT",
|
|
3096
3082
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/nameservers",
|
|
3097
3083
|
"inputSchema": {
|
|
@@ -3160,7 +3146,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
3160
3146
|
},
|
|
3161
3147
|
{
|
|
3162
3148
|
"name": "VPS_deletePTRRecordV1",
|
|
3163
|
-
"description": "Delete a PTR (Pointer) record for a specified virtual machine.\n\nOnce deleted, reverse DNS lookups to the virtual machine's IP address will
|
|
3149
|
+
"description": "Delete a PTR (Pointer) record for a specified virtual machine.\n\nOnce deleted, reverse DNS lookups to the virtual machine's IP address will\nno longer return the previously configured hostname.\n\nUse this endpoint to remove reverse DNS configuration from VPS instances.",
|
|
3164
3150
|
"method": "DELETE",
|
|
3165
3151
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/ptr/{ipAddressId}",
|
|
3166
3152
|
"inputSchema": {
|
|
@@ -3188,7 +3174,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
3188
3174
|
},
|
|
3189
3175
|
{
|
|
3190
3176
|
"name": "VPS_setPanelPasswordV1",
|
|
3191
|
-
"description": "Set panel password for a specified virtual machine.\n\nIf virtual machine does not use panel OS, the request will still be processed without any effect.\nRequirements for password are same as in the [recreate virtual machine
|
|
3177
|
+
"description": "Set panel password for a specified virtual machine.\n\nIf virtual machine does not use panel OS, the request will still be processed without any effect.\nRequirements for password are same as in the [recreate virtual machine\nendpoint](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines/{virtualMachineId}/recreate).\n\nUse this endpoint to configure control panel access credentials for VPS instances.",
|
|
3192
3178
|
"method": "PUT",
|
|
3193
3179
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/panel-password",
|
|
3194
3180
|
"inputSchema": {
|
|
@@ -3267,7 +3253,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
3267
3253
|
},
|
|
3268
3254
|
{
|
|
3269
3255
|
"name": "VPS_recreateVirtualMachineV1",
|
|
3270
|
-
"description": "Recreate a virtual machine from scratch.\n\nThe recreation process involves reinstalling the operating system and
|
|
3256
|
+
"description": "Recreate a virtual machine from scratch.\n\nThe recreation process involves reinstalling the operating system and\nresetting the virtual machine to its initial state.\nSnapshots, if there are any, will be deleted.\n\n## Password Requirements\nPassword will be checked against leaked password databases. \nRequirements for the password are:\n- At least 12 characters long\n- At least one uppercase letter\n- At least one lowercase letter\n- At least one number\n- Is not leaked publicly\n\n**This operation is irreversible and will result in the loss of all data stored on the virtual machine!**\n\nUse this endpoint to completely rebuild VPS instances with fresh OS installation.",
|
|
3271
3257
|
"method": "POST",
|
|
3272
3258
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/recreate",
|
|
3273
3259
|
"inputSchema": {
|
|
@@ -3283,11 +3269,11 @@ const TOOLS: OpenApiTool[] = [
|
|
|
3283
3269
|
},
|
|
3284
3270
|
"password": {
|
|
3285
3271
|
"type": "string",
|
|
3286
|
-
"description": "Root password for the virtual machine. If not provided, random password will be generated
|
|
3272
|
+
"description": "Root password for the virtual machine. If not provided, random password will be generated.\nPassword will not be shown in the response."
|
|
3287
3273
|
},
|
|
3288
3274
|
"panel_password": {
|
|
3289
3275
|
"type": "string",
|
|
3290
|
-
"description": "Panel password for the panel-based OS template. If not provided, random password will be generated
|
|
3276
|
+
"description": "Panel password for the panel-based OS template. If not provided, random password will be generated.\nIf OS does not support panel_password this field will be ignored.\nPassword will not be shown in the response."
|
|
3291
3277
|
},
|
|
3292
3278
|
"post_install_script_id": {
|
|
3293
3279
|
"type": "integer",
|
|
@@ -3330,7 +3316,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
3330
3316
|
},
|
|
3331
3317
|
{
|
|
3332
3318
|
"name": "VPS_setRootPasswordV1",
|
|
3333
|
-
"description": "Set root password for a specified virtual machine.\n\nRequirements for password are same as in the [recreate virtual machine
|
|
3319
|
+
"description": "Set root password for a specified virtual machine.\n\nRequirements for password are same as in the [recreate virtual machine\nendpoint](/#tag/vps-virtual-machine/POST/api/vps/v1/virtual-machines/{virtualMachineId}/recreate).\n\nUse this endpoint to update administrator credentials for VPS instances.",
|
|
3334
3320
|
"method": "PUT",
|
|
3335
3321
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/root-password",
|
|
3336
3322
|
"inputSchema": {
|
|
@@ -3382,7 +3368,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
3382
3368
|
},
|
|
3383
3369
|
"password": {
|
|
3384
3370
|
"type": "string",
|
|
3385
|
-
"description": "Password for the virtual machine. If not provided, random password will be generated
|
|
3371
|
+
"description": "Password for the virtual machine. If not provided, random password will be generated.\nPassword will not be shown in the response."
|
|
3386
3372
|
},
|
|
3387
3373
|
"hostname": {
|
|
3388
3374
|
"type": "string",
|
|
@@ -3502,7 +3488,7 @@ const TOOLS: OpenApiTool[] = [
|
|
|
3502
3488
|
},
|
|
3503
3489
|
{
|
|
3504
3490
|
"name": "VPS_restoreSnapshotV1",
|
|
3505
|
-
"description": "Restore a specified virtual machine to a previous state using a snapshot.\n\nRestoring from a snapshot allows users to revert the virtual machine to that state
|
|
3491
|
+
"description": "Restore a specified virtual machine to a previous state using a snapshot.\n\nRestoring from a snapshot allows users to revert the virtual machine to that state,\nwhich is useful for system recovery, undoing changes, or testing.\n\nUse this endpoint to revert VPS instances to previous saved states.",
|
|
3506
3492
|
"method": "POST",
|
|
3507
3493
|
"path": "/api/vps/v1/virtual-machines/{virtualMachineId}/snapshot/restore",
|
|
3508
3494
|
"inputSchema": {
|
|
@@ -3580,7 +3566,7 @@ const SECURITY_SCHEMES: Record<string, SecurityScheme> = {
|
|
|
3580
3566
|
|
|
3581
3567
|
/**
|
|
3582
3568
|
* MCP Server for Hostinger API
|
|
3583
|
-
* Generated from OpenAPI spec version 0.11.
|
|
3569
|
+
* Generated from OpenAPI spec version 0.11.7
|
|
3584
3570
|
*/
|
|
3585
3571
|
class MCPServer {
|
|
3586
3572
|
private server: Server;
|
|
@@ -3602,7 +3588,7 @@ class MCPServer {
|
|
|
3602
3588
|
this.server = new Server(
|
|
3603
3589
|
{
|
|
3604
3590
|
name: "hostinger-api-mcp",
|
|
3605
|
-
version: "0.1.
|
|
3591
|
+
version: "0.1.36",
|
|
3606
3592
|
},
|
|
3607
3593
|
{
|
|
3608
3594
|
capabilities: {
|
|
@@ -3627,7 +3613,7 @@ class MCPServer {
|
|
|
3627
3613
|
});
|
|
3628
3614
|
}
|
|
3629
3615
|
|
|
3630
|
-
headers['User-Agent'] = 'hostinger-mcp-server/0.1.
|
|
3616
|
+
headers['User-Agent'] = 'hostinger-mcp-server/0.1.36';
|
|
3631
3617
|
|
|
3632
3618
|
return headers;
|
|
3633
3619
|
}
|
|
@@ -3877,7 +3863,9 @@ class MCPServer {
|
|
|
3877
3863
|
|
|
3878
3864
|
const requestHeaders: Record<string, string> = {
|
|
3879
3865
|
'X-Auth': authToken,
|
|
3880
|
-
'X-Auth-Rest': authRestToken
|
|
3866
|
+
'X-Auth-Rest': authRestToken,
|
|
3867
|
+
'upload-length': stats.size.toString(),
|
|
3868
|
+
'upload-offset': '0'
|
|
3881
3869
|
};
|
|
3882
3870
|
|
|
3883
3871
|
try {
|