hostinger-api-mcp 1.3.0 → 1.4.0
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 +52 -2
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/src/core/runtime.js +1 -1
- package/src/core/runtime.ts +1 -1
- package/src/core/tools/all.js +149 -0
- package/src/core/tools/all.ts +149 -0
- package/src/core/tools/hosting.js +149 -0
- package/src/core/tools/hosting.ts +149 -0
- package/src/servers/all.js +1 -1
- package/src/servers/all.ts +1 -1
- package/src/servers/billing.js +1 -1
- package/src/servers/billing.ts +1 -1
- package/src/servers/dns.js +1 -1
- package/src/servers/dns.ts +1 -1
- package/src/servers/domains.js +1 -1
- package/src/servers/domains.ts +1 -1
- package/src/servers/ecommerce.js +1 -1
- package/src/servers/ecommerce.ts +1 -1
- package/src/servers/horizons.js +1 -1
- package/src/servers/horizons.ts +1 -1
- package/src/servers/hosting.js +1 -1
- package/src/servers/hosting.ts +1 -1
- package/src/servers/reach.js +1 -1
- package/src/servers/reach.ts +1 -1
- package/src/servers/vps.js +1 -1
- package/src/servers/vps.ts +1 -1
- package/src/servers/wordpress.js +1 -1
- package/src/servers/wordpress.ts +1 -1
- package/types.d.ts +105 -0
package/README.md
CHANGED
|
@@ -49,13 +49,13 @@ pnpm update -g hostinger-api-mcp
|
|
|
49
49
|
|
|
50
50
|
This package installs the following MCP server commands:
|
|
51
51
|
|
|
52
|
-
- `hostinger-api-mcp` — unified server with every tool (
|
|
52
|
+
- `hostinger-api-mcp` — unified server with every tool (202 total)
|
|
53
53
|
- `hostinger-billing-mcp` — 7 tools for billing
|
|
54
54
|
- `hostinger-dns-mcp` — 8 tools for dns
|
|
55
55
|
- `hostinger-domains-mcp` — 18 tools for domains
|
|
56
56
|
- `hostinger-ecommerce-mcp` — 12 tools for ecommerce
|
|
57
57
|
- `hostinger-horizons-mcp` — 2 tools for horizons
|
|
58
|
-
- `hostinger-hosting-mcp` —
|
|
58
|
+
- `hostinger-hosting-mcp` — 46 tools for hosting
|
|
59
59
|
- `hostinger-reach-mcp` — 12 tools for reach
|
|
60
60
|
- `hostinger-vps-mcp` — 62 tools for vps
|
|
61
61
|
- `hostinger-wordpress-mcp` — 35 tools for wordpress
|
|
@@ -743,6 +743,56 @@ Retrieve logs for a specified JavaScript application deployment for debugging pu
|
|
|
743
743
|
- **Method**: `custom`
|
|
744
744
|
- **Path**: `custom`
|
|
745
745
|
|
|
746
|
+
#### hosting_clearWebsiteCacheV1
|
|
747
|
+
|
|
748
|
+
Permanently clears all server-side cache for the website at once. Use it when content was
|
|
749
|
+
updated and needs to be visible immediately, or after making major changes.
|
|
750
|
+
|
|
751
|
+
Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress
|
|
752
|
+
installation living in a subdirectory, pass the directory query parameter to clear its cache.
|
|
753
|
+
|
|
754
|
+
- **Method**: `DELETE`
|
|
755
|
+
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/cache/clear`
|
|
756
|
+
|
|
757
|
+
#### hosting_disableCachelessModeV1
|
|
758
|
+
|
|
759
|
+
Turns off development (cacheless) mode and returns the website to normal caching. Use it after
|
|
760
|
+
finishing development work to restore the performance benefits of caching.
|
|
761
|
+
|
|
762
|
+
- **Method**: `PATCH`
|
|
763
|
+
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/disable`
|
|
764
|
+
|
|
765
|
+
#### hosting_disableWebsiteCacheV1
|
|
766
|
+
|
|
767
|
+
Turns off server-side caching for the website until it is enabled again. May impact performance.
|
|
768
|
+
Use it when experiencing cache-related issues; to temporarily bypass caching while developing
|
|
769
|
+
or debugging, prefer enabling cacheless mode instead.
|
|
770
|
+
|
|
771
|
+
Does nothing if caching is already disabled.
|
|
772
|
+
|
|
773
|
+
- **Method**: `PATCH`
|
|
774
|
+
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/cache/disable`
|
|
775
|
+
|
|
776
|
+
#### hosting_enableCachelessModeV1
|
|
777
|
+
|
|
778
|
+
Enables development (cacheless) mode where nothing is cached, effectively turning off all
|
|
779
|
+
caching for the website. Use it while actively developing, testing changes, debugging issues,
|
|
780
|
+
or when real-time updates must be visible. Disable cacheless mode afterwards to restore
|
|
781
|
+
normal caching.
|
|
782
|
+
|
|
783
|
+
- **Method**: `PATCH`
|
|
784
|
+
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/enable`
|
|
785
|
+
|
|
786
|
+
#### hosting_enableWebsiteCacheV1
|
|
787
|
+
|
|
788
|
+
Turns on server-side caching for the website for better performance. Use it for faster page
|
|
789
|
+
loads, reduced server load, or improved user experience. Recommended for production websites.
|
|
790
|
+
|
|
791
|
+
Does nothing if caching is already enabled.
|
|
792
|
+
|
|
793
|
+
- **Method**: `PATCH`
|
|
794
|
+
- **Path**: `/api/hosting/v1/accounts/{username}/websites/{domain}/cache/enable`
|
|
795
|
+
|
|
746
796
|
#### hosting_listAccountCronJobsV1
|
|
747
797
|
|
|
748
798
|
Returns the list of cron jobs configured for the specified account, including their schedule and command.
|
package/gemini-extension.json
CHANGED
package/package.json
CHANGED
package/server.json
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
"url": "https://github.com/hostinger/api-mcp-server",
|
|
7
7
|
"source": "github"
|
|
8
8
|
},
|
|
9
|
-
"version": "1.
|
|
9
|
+
"version": "1.4.0",
|
|
10
10
|
"packages": [
|
|
11
11
|
{
|
|
12
12
|
"registryType": "npm",
|
|
13
13
|
"identifier": "hostinger-api-mcp",
|
|
14
|
-
"version": "1.
|
|
14
|
+
"version": "1.4.0",
|
|
15
15
|
"transport": {
|
|
16
16
|
"type": "stdio"
|
|
17
17
|
},
|
package/src/core/runtime.js
CHANGED
package/src/core/runtime.ts
CHANGED
package/src/core/tools/all.js
CHANGED
|
@@ -1745,6 +1745,155 @@ export default [
|
|
|
1745
1745
|
],
|
|
1746
1746
|
"group": "horizons"
|
|
1747
1747
|
},
|
|
1748
|
+
{
|
|
1749
|
+
"name": "hosting_clearWebsiteCacheV1",
|
|
1750
|
+
"description": "Permanently clears all server-side cache for the website at once. Use it when content was\nupdated and needs to be visible immediately, or after making major changes.\n\nAlso purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress\ninstallation living in a subdirectory, pass the directory query parameter to clear its cache.",
|
|
1751
|
+
"method": "DELETE",
|
|
1752
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cache/clear",
|
|
1753
|
+
"inputSchema": {
|
|
1754
|
+
"type": "object",
|
|
1755
|
+
"properties": {
|
|
1756
|
+
"username": {
|
|
1757
|
+
"type": "string",
|
|
1758
|
+
"description": "username parameter"
|
|
1759
|
+
},
|
|
1760
|
+
"domain": {
|
|
1761
|
+
"type": "string",
|
|
1762
|
+
"description": "Domain name"
|
|
1763
|
+
},
|
|
1764
|
+
"directory": {
|
|
1765
|
+
"type": "string",
|
|
1766
|
+
"description": "Directory of the website installation to clear, relative to the website root.\nDefaults to the website root."
|
|
1767
|
+
}
|
|
1768
|
+
},
|
|
1769
|
+
"required": [
|
|
1770
|
+
"username",
|
|
1771
|
+
"domain"
|
|
1772
|
+
]
|
|
1773
|
+
},
|
|
1774
|
+
"security": [
|
|
1775
|
+
{
|
|
1776
|
+
"apiToken": []
|
|
1777
|
+
}
|
|
1778
|
+
],
|
|
1779
|
+
"group": "hosting"
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
"name": "hosting_disableCachelessModeV1",
|
|
1783
|
+
"description": "Turns off development (cacheless) mode and returns the website to normal caching. Use it after\nfinishing development work to restore the performance benefits of caching.",
|
|
1784
|
+
"method": "PATCH",
|
|
1785
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/disable",
|
|
1786
|
+
"inputSchema": {
|
|
1787
|
+
"type": "object",
|
|
1788
|
+
"properties": {
|
|
1789
|
+
"username": {
|
|
1790
|
+
"type": "string",
|
|
1791
|
+
"description": "username parameter"
|
|
1792
|
+
},
|
|
1793
|
+
"domain": {
|
|
1794
|
+
"type": "string",
|
|
1795
|
+
"description": "Domain name"
|
|
1796
|
+
}
|
|
1797
|
+
},
|
|
1798
|
+
"required": [
|
|
1799
|
+
"username",
|
|
1800
|
+
"domain"
|
|
1801
|
+
]
|
|
1802
|
+
},
|
|
1803
|
+
"security": [
|
|
1804
|
+
{
|
|
1805
|
+
"apiToken": []
|
|
1806
|
+
}
|
|
1807
|
+
],
|
|
1808
|
+
"group": "hosting"
|
|
1809
|
+
},
|
|
1810
|
+
{
|
|
1811
|
+
"name": "hosting_disableWebsiteCacheV1",
|
|
1812
|
+
"description": "Turns off server-side caching for the website until it is enabled again. May impact performance.\nUse it when experiencing cache-related issues; to temporarily bypass caching while developing\nor debugging, prefer enabling cacheless mode instead.\n\nDoes nothing if caching is already disabled.",
|
|
1813
|
+
"method": "PATCH",
|
|
1814
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cache/disable",
|
|
1815
|
+
"inputSchema": {
|
|
1816
|
+
"type": "object",
|
|
1817
|
+
"properties": {
|
|
1818
|
+
"username": {
|
|
1819
|
+
"type": "string",
|
|
1820
|
+
"description": "username parameter"
|
|
1821
|
+
},
|
|
1822
|
+
"domain": {
|
|
1823
|
+
"type": "string",
|
|
1824
|
+
"description": "Domain name"
|
|
1825
|
+
}
|
|
1826
|
+
},
|
|
1827
|
+
"required": [
|
|
1828
|
+
"username",
|
|
1829
|
+
"domain"
|
|
1830
|
+
]
|
|
1831
|
+
},
|
|
1832
|
+
"security": [
|
|
1833
|
+
{
|
|
1834
|
+
"apiToken": []
|
|
1835
|
+
}
|
|
1836
|
+
],
|
|
1837
|
+
"group": "hosting"
|
|
1838
|
+
},
|
|
1839
|
+
{
|
|
1840
|
+
"name": "hosting_enableCachelessModeV1",
|
|
1841
|
+
"description": "Enables development (cacheless) mode where nothing is cached, effectively turning off all\ncaching for the website. Use it while actively developing, testing changes, debugging issues,\nor when real-time updates must be visible. Disable cacheless mode afterwards to restore\nnormal caching.",
|
|
1842
|
+
"method": "PATCH",
|
|
1843
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/enable",
|
|
1844
|
+
"inputSchema": {
|
|
1845
|
+
"type": "object",
|
|
1846
|
+
"properties": {
|
|
1847
|
+
"username": {
|
|
1848
|
+
"type": "string",
|
|
1849
|
+
"description": "username parameter"
|
|
1850
|
+
},
|
|
1851
|
+
"domain": {
|
|
1852
|
+
"type": "string",
|
|
1853
|
+
"description": "Domain name"
|
|
1854
|
+
}
|
|
1855
|
+
},
|
|
1856
|
+
"required": [
|
|
1857
|
+
"username",
|
|
1858
|
+
"domain"
|
|
1859
|
+
]
|
|
1860
|
+
},
|
|
1861
|
+
"security": [
|
|
1862
|
+
{
|
|
1863
|
+
"apiToken": []
|
|
1864
|
+
}
|
|
1865
|
+
],
|
|
1866
|
+
"group": "hosting"
|
|
1867
|
+
},
|
|
1868
|
+
{
|
|
1869
|
+
"name": "hosting_enableWebsiteCacheV1",
|
|
1870
|
+
"description": "Turns on server-side caching for the website for better performance. Use it for faster page\nloads, reduced server load, or improved user experience. Recommended for production websites.\n\nDoes nothing if caching is already enabled.",
|
|
1871
|
+
"method": "PATCH",
|
|
1872
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cache/enable",
|
|
1873
|
+
"inputSchema": {
|
|
1874
|
+
"type": "object",
|
|
1875
|
+
"properties": {
|
|
1876
|
+
"username": {
|
|
1877
|
+
"type": "string",
|
|
1878
|
+
"description": "username parameter"
|
|
1879
|
+
},
|
|
1880
|
+
"domain": {
|
|
1881
|
+
"type": "string",
|
|
1882
|
+
"description": "Domain name"
|
|
1883
|
+
}
|
|
1884
|
+
},
|
|
1885
|
+
"required": [
|
|
1886
|
+
"username",
|
|
1887
|
+
"domain"
|
|
1888
|
+
]
|
|
1889
|
+
},
|
|
1890
|
+
"security": [
|
|
1891
|
+
{
|
|
1892
|
+
"apiToken": []
|
|
1893
|
+
}
|
|
1894
|
+
],
|
|
1895
|
+
"group": "hosting"
|
|
1896
|
+
},
|
|
1748
1897
|
{
|
|
1749
1898
|
"name": "hosting_listAccountCronJobsV1",
|
|
1750
1899
|
"description": "Returns the list of cron jobs configured for the specified account, including their schedule and command.",
|
package/src/core/tools/all.ts
CHANGED
|
@@ -1755,6 +1755,155 @@ const tools: OpenApiTool[] = [
|
|
|
1755
1755
|
],
|
|
1756
1756
|
"group": "horizons"
|
|
1757
1757
|
},
|
|
1758
|
+
{
|
|
1759
|
+
"name": "hosting_clearWebsiteCacheV1",
|
|
1760
|
+
"description": "Permanently clears all server-side cache for the website at once. Use it when content was\nupdated and needs to be visible immediately, or after making major changes.\n\nAlso purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress\ninstallation living in a subdirectory, pass the directory query parameter to clear its cache.",
|
|
1761
|
+
"method": "DELETE",
|
|
1762
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cache/clear",
|
|
1763
|
+
"inputSchema": {
|
|
1764
|
+
"type": "object",
|
|
1765
|
+
"properties": {
|
|
1766
|
+
"username": {
|
|
1767
|
+
"type": "string",
|
|
1768
|
+
"description": "username parameter"
|
|
1769
|
+
},
|
|
1770
|
+
"domain": {
|
|
1771
|
+
"type": "string",
|
|
1772
|
+
"description": "Domain name"
|
|
1773
|
+
},
|
|
1774
|
+
"directory": {
|
|
1775
|
+
"type": "string",
|
|
1776
|
+
"description": "Directory of the website installation to clear, relative to the website root.\nDefaults to the website root."
|
|
1777
|
+
}
|
|
1778
|
+
},
|
|
1779
|
+
"required": [
|
|
1780
|
+
"username",
|
|
1781
|
+
"domain"
|
|
1782
|
+
]
|
|
1783
|
+
},
|
|
1784
|
+
"security": [
|
|
1785
|
+
{
|
|
1786
|
+
"apiToken": []
|
|
1787
|
+
}
|
|
1788
|
+
],
|
|
1789
|
+
"group": "hosting"
|
|
1790
|
+
},
|
|
1791
|
+
{
|
|
1792
|
+
"name": "hosting_disableCachelessModeV1",
|
|
1793
|
+
"description": "Turns off development (cacheless) mode and returns the website to normal caching. Use it after\nfinishing development work to restore the performance benefits of caching.",
|
|
1794
|
+
"method": "PATCH",
|
|
1795
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/disable",
|
|
1796
|
+
"inputSchema": {
|
|
1797
|
+
"type": "object",
|
|
1798
|
+
"properties": {
|
|
1799
|
+
"username": {
|
|
1800
|
+
"type": "string",
|
|
1801
|
+
"description": "username parameter"
|
|
1802
|
+
},
|
|
1803
|
+
"domain": {
|
|
1804
|
+
"type": "string",
|
|
1805
|
+
"description": "Domain name"
|
|
1806
|
+
}
|
|
1807
|
+
},
|
|
1808
|
+
"required": [
|
|
1809
|
+
"username",
|
|
1810
|
+
"domain"
|
|
1811
|
+
]
|
|
1812
|
+
},
|
|
1813
|
+
"security": [
|
|
1814
|
+
{
|
|
1815
|
+
"apiToken": []
|
|
1816
|
+
}
|
|
1817
|
+
],
|
|
1818
|
+
"group": "hosting"
|
|
1819
|
+
},
|
|
1820
|
+
{
|
|
1821
|
+
"name": "hosting_disableWebsiteCacheV1",
|
|
1822
|
+
"description": "Turns off server-side caching for the website until it is enabled again. May impact performance.\nUse it when experiencing cache-related issues; to temporarily bypass caching while developing\nor debugging, prefer enabling cacheless mode instead.\n\nDoes nothing if caching is already disabled.",
|
|
1823
|
+
"method": "PATCH",
|
|
1824
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cache/disable",
|
|
1825
|
+
"inputSchema": {
|
|
1826
|
+
"type": "object",
|
|
1827
|
+
"properties": {
|
|
1828
|
+
"username": {
|
|
1829
|
+
"type": "string",
|
|
1830
|
+
"description": "username parameter"
|
|
1831
|
+
},
|
|
1832
|
+
"domain": {
|
|
1833
|
+
"type": "string",
|
|
1834
|
+
"description": "Domain name"
|
|
1835
|
+
}
|
|
1836
|
+
},
|
|
1837
|
+
"required": [
|
|
1838
|
+
"username",
|
|
1839
|
+
"domain"
|
|
1840
|
+
]
|
|
1841
|
+
},
|
|
1842
|
+
"security": [
|
|
1843
|
+
{
|
|
1844
|
+
"apiToken": []
|
|
1845
|
+
}
|
|
1846
|
+
],
|
|
1847
|
+
"group": "hosting"
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
"name": "hosting_enableCachelessModeV1",
|
|
1851
|
+
"description": "Enables development (cacheless) mode where nothing is cached, effectively turning off all\ncaching for the website. Use it while actively developing, testing changes, debugging issues,\nor when real-time updates must be visible. Disable cacheless mode afterwards to restore\nnormal caching.",
|
|
1852
|
+
"method": "PATCH",
|
|
1853
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/enable",
|
|
1854
|
+
"inputSchema": {
|
|
1855
|
+
"type": "object",
|
|
1856
|
+
"properties": {
|
|
1857
|
+
"username": {
|
|
1858
|
+
"type": "string",
|
|
1859
|
+
"description": "username parameter"
|
|
1860
|
+
},
|
|
1861
|
+
"domain": {
|
|
1862
|
+
"type": "string",
|
|
1863
|
+
"description": "Domain name"
|
|
1864
|
+
}
|
|
1865
|
+
},
|
|
1866
|
+
"required": [
|
|
1867
|
+
"username",
|
|
1868
|
+
"domain"
|
|
1869
|
+
]
|
|
1870
|
+
},
|
|
1871
|
+
"security": [
|
|
1872
|
+
{
|
|
1873
|
+
"apiToken": []
|
|
1874
|
+
}
|
|
1875
|
+
],
|
|
1876
|
+
"group": "hosting"
|
|
1877
|
+
},
|
|
1878
|
+
{
|
|
1879
|
+
"name": "hosting_enableWebsiteCacheV1",
|
|
1880
|
+
"description": "Turns on server-side caching for the website for better performance. Use it for faster page\nloads, reduced server load, or improved user experience. Recommended for production websites.\n\nDoes nothing if caching is already enabled.",
|
|
1881
|
+
"method": "PATCH",
|
|
1882
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cache/enable",
|
|
1883
|
+
"inputSchema": {
|
|
1884
|
+
"type": "object",
|
|
1885
|
+
"properties": {
|
|
1886
|
+
"username": {
|
|
1887
|
+
"type": "string",
|
|
1888
|
+
"description": "username parameter"
|
|
1889
|
+
},
|
|
1890
|
+
"domain": {
|
|
1891
|
+
"type": "string",
|
|
1892
|
+
"description": "Domain name"
|
|
1893
|
+
}
|
|
1894
|
+
},
|
|
1895
|
+
"required": [
|
|
1896
|
+
"username",
|
|
1897
|
+
"domain"
|
|
1898
|
+
]
|
|
1899
|
+
},
|
|
1900
|
+
"security": [
|
|
1901
|
+
{
|
|
1902
|
+
"apiToken": []
|
|
1903
|
+
}
|
|
1904
|
+
],
|
|
1905
|
+
"group": "hosting"
|
|
1906
|
+
},
|
|
1758
1907
|
{
|
|
1759
1908
|
"name": "hosting_listAccountCronJobsV1",
|
|
1760
1909
|
"description": "Returns the list of cron jobs configured for the specified account, including their schedule and command.",
|
|
@@ -257,6 +257,155 @@ export default [
|
|
|
257
257
|
"handlerMethod": "handleShowJsDeploymentLogs",
|
|
258
258
|
"group": "hosting"
|
|
259
259
|
},
|
|
260
|
+
{
|
|
261
|
+
"name": "hosting_clearWebsiteCacheV1",
|
|
262
|
+
"description": "Permanently clears all server-side cache for the website at once. Use it when content was\nupdated and needs to be visible immediately, or after making major changes.\n\nAlso purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress\ninstallation living in a subdirectory, pass the directory query parameter to clear its cache.",
|
|
263
|
+
"method": "DELETE",
|
|
264
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cache/clear",
|
|
265
|
+
"inputSchema": {
|
|
266
|
+
"type": "object",
|
|
267
|
+
"properties": {
|
|
268
|
+
"username": {
|
|
269
|
+
"type": "string",
|
|
270
|
+
"description": "username parameter"
|
|
271
|
+
},
|
|
272
|
+
"domain": {
|
|
273
|
+
"type": "string",
|
|
274
|
+
"description": "Domain name"
|
|
275
|
+
},
|
|
276
|
+
"directory": {
|
|
277
|
+
"type": "string",
|
|
278
|
+
"description": "Directory of the website installation to clear, relative to the website root.\nDefaults to the website root."
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
"required": [
|
|
282
|
+
"username",
|
|
283
|
+
"domain"
|
|
284
|
+
]
|
|
285
|
+
},
|
|
286
|
+
"security": [
|
|
287
|
+
{
|
|
288
|
+
"apiToken": []
|
|
289
|
+
}
|
|
290
|
+
],
|
|
291
|
+
"group": "hosting"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"name": "hosting_disableCachelessModeV1",
|
|
295
|
+
"description": "Turns off development (cacheless) mode and returns the website to normal caching. Use it after\nfinishing development work to restore the performance benefits of caching.",
|
|
296
|
+
"method": "PATCH",
|
|
297
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/disable",
|
|
298
|
+
"inputSchema": {
|
|
299
|
+
"type": "object",
|
|
300
|
+
"properties": {
|
|
301
|
+
"username": {
|
|
302
|
+
"type": "string",
|
|
303
|
+
"description": "username parameter"
|
|
304
|
+
},
|
|
305
|
+
"domain": {
|
|
306
|
+
"type": "string",
|
|
307
|
+
"description": "Domain name"
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
"required": [
|
|
311
|
+
"username",
|
|
312
|
+
"domain"
|
|
313
|
+
]
|
|
314
|
+
},
|
|
315
|
+
"security": [
|
|
316
|
+
{
|
|
317
|
+
"apiToken": []
|
|
318
|
+
}
|
|
319
|
+
],
|
|
320
|
+
"group": "hosting"
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
"name": "hosting_disableWebsiteCacheV1",
|
|
324
|
+
"description": "Turns off server-side caching for the website until it is enabled again. May impact performance.\nUse it when experiencing cache-related issues; to temporarily bypass caching while developing\nor debugging, prefer enabling cacheless mode instead.\n\nDoes nothing if caching is already disabled.",
|
|
325
|
+
"method": "PATCH",
|
|
326
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cache/disable",
|
|
327
|
+
"inputSchema": {
|
|
328
|
+
"type": "object",
|
|
329
|
+
"properties": {
|
|
330
|
+
"username": {
|
|
331
|
+
"type": "string",
|
|
332
|
+
"description": "username parameter"
|
|
333
|
+
},
|
|
334
|
+
"domain": {
|
|
335
|
+
"type": "string",
|
|
336
|
+
"description": "Domain name"
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
"required": [
|
|
340
|
+
"username",
|
|
341
|
+
"domain"
|
|
342
|
+
]
|
|
343
|
+
},
|
|
344
|
+
"security": [
|
|
345
|
+
{
|
|
346
|
+
"apiToken": []
|
|
347
|
+
}
|
|
348
|
+
],
|
|
349
|
+
"group": "hosting"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"name": "hosting_enableCachelessModeV1",
|
|
353
|
+
"description": "Enables development (cacheless) mode where nothing is cached, effectively turning off all\ncaching for the website. Use it while actively developing, testing changes, debugging issues,\nor when real-time updates must be visible. Disable cacheless mode afterwards to restore\nnormal caching.",
|
|
354
|
+
"method": "PATCH",
|
|
355
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/enable",
|
|
356
|
+
"inputSchema": {
|
|
357
|
+
"type": "object",
|
|
358
|
+
"properties": {
|
|
359
|
+
"username": {
|
|
360
|
+
"type": "string",
|
|
361
|
+
"description": "username parameter"
|
|
362
|
+
},
|
|
363
|
+
"domain": {
|
|
364
|
+
"type": "string",
|
|
365
|
+
"description": "Domain name"
|
|
366
|
+
}
|
|
367
|
+
},
|
|
368
|
+
"required": [
|
|
369
|
+
"username",
|
|
370
|
+
"domain"
|
|
371
|
+
]
|
|
372
|
+
},
|
|
373
|
+
"security": [
|
|
374
|
+
{
|
|
375
|
+
"apiToken": []
|
|
376
|
+
}
|
|
377
|
+
],
|
|
378
|
+
"group": "hosting"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"name": "hosting_enableWebsiteCacheV1",
|
|
382
|
+
"description": "Turns on server-side caching for the website for better performance. Use it for faster page\nloads, reduced server load, or improved user experience. Recommended for production websites.\n\nDoes nothing if caching is already enabled.",
|
|
383
|
+
"method": "PATCH",
|
|
384
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cache/enable",
|
|
385
|
+
"inputSchema": {
|
|
386
|
+
"type": "object",
|
|
387
|
+
"properties": {
|
|
388
|
+
"username": {
|
|
389
|
+
"type": "string",
|
|
390
|
+
"description": "username parameter"
|
|
391
|
+
},
|
|
392
|
+
"domain": {
|
|
393
|
+
"type": "string",
|
|
394
|
+
"description": "Domain name"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
"required": [
|
|
398
|
+
"username",
|
|
399
|
+
"domain"
|
|
400
|
+
]
|
|
401
|
+
},
|
|
402
|
+
"security": [
|
|
403
|
+
{
|
|
404
|
+
"apiToken": []
|
|
405
|
+
}
|
|
406
|
+
],
|
|
407
|
+
"group": "hosting"
|
|
408
|
+
},
|
|
260
409
|
{
|
|
261
410
|
"name": "hosting_listAccountCronJobsV1",
|
|
262
411
|
"description": "Returns the list of cron jobs configured for the specified account, including their schedule and command.",
|
|
@@ -267,6 +267,155 @@ const tools: OpenApiTool[] = [
|
|
|
267
267
|
"handlerMethod": "handleShowJsDeploymentLogs",
|
|
268
268
|
"group": "hosting"
|
|
269
269
|
},
|
|
270
|
+
{
|
|
271
|
+
"name": "hosting_clearWebsiteCacheV1",
|
|
272
|
+
"description": "Permanently clears all server-side cache for the website at once. Use it when content was\nupdated and needs to be visible immediately, or after making major changes.\n\nAlso purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress\ninstallation living in a subdirectory, pass the directory query parameter to clear its cache.",
|
|
273
|
+
"method": "DELETE",
|
|
274
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cache/clear",
|
|
275
|
+
"inputSchema": {
|
|
276
|
+
"type": "object",
|
|
277
|
+
"properties": {
|
|
278
|
+
"username": {
|
|
279
|
+
"type": "string",
|
|
280
|
+
"description": "username parameter"
|
|
281
|
+
},
|
|
282
|
+
"domain": {
|
|
283
|
+
"type": "string",
|
|
284
|
+
"description": "Domain name"
|
|
285
|
+
},
|
|
286
|
+
"directory": {
|
|
287
|
+
"type": "string",
|
|
288
|
+
"description": "Directory of the website installation to clear, relative to the website root.\nDefaults to the website root."
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
"required": [
|
|
292
|
+
"username",
|
|
293
|
+
"domain"
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
"security": [
|
|
297
|
+
{
|
|
298
|
+
"apiToken": []
|
|
299
|
+
}
|
|
300
|
+
],
|
|
301
|
+
"group": "hosting"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"name": "hosting_disableCachelessModeV1",
|
|
305
|
+
"description": "Turns off development (cacheless) mode and returns the website to normal caching. Use it after\nfinishing development work to restore the performance benefits of caching.",
|
|
306
|
+
"method": "PATCH",
|
|
307
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/disable",
|
|
308
|
+
"inputSchema": {
|
|
309
|
+
"type": "object",
|
|
310
|
+
"properties": {
|
|
311
|
+
"username": {
|
|
312
|
+
"type": "string",
|
|
313
|
+
"description": "username parameter"
|
|
314
|
+
},
|
|
315
|
+
"domain": {
|
|
316
|
+
"type": "string",
|
|
317
|
+
"description": "Domain name"
|
|
318
|
+
}
|
|
319
|
+
},
|
|
320
|
+
"required": [
|
|
321
|
+
"username",
|
|
322
|
+
"domain"
|
|
323
|
+
]
|
|
324
|
+
},
|
|
325
|
+
"security": [
|
|
326
|
+
{
|
|
327
|
+
"apiToken": []
|
|
328
|
+
}
|
|
329
|
+
],
|
|
330
|
+
"group": "hosting"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"name": "hosting_disableWebsiteCacheV1",
|
|
334
|
+
"description": "Turns off server-side caching for the website until it is enabled again. May impact performance.\nUse it when experiencing cache-related issues; to temporarily bypass caching while developing\nor debugging, prefer enabling cacheless mode instead.\n\nDoes nothing if caching is already disabled.",
|
|
335
|
+
"method": "PATCH",
|
|
336
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cache/disable",
|
|
337
|
+
"inputSchema": {
|
|
338
|
+
"type": "object",
|
|
339
|
+
"properties": {
|
|
340
|
+
"username": {
|
|
341
|
+
"type": "string",
|
|
342
|
+
"description": "username parameter"
|
|
343
|
+
},
|
|
344
|
+
"domain": {
|
|
345
|
+
"type": "string",
|
|
346
|
+
"description": "Domain name"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
"required": [
|
|
350
|
+
"username",
|
|
351
|
+
"domain"
|
|
352
|
+
]
|
|
353
|
+
},
|
|
354
|
+
"security": [
|
|
355
|
+
{
|
|
356
|
+
"apiToken": []
|
|
357
|
+
}
|
|
358
|
+
],
|
|
359
|
+
"group": "hosting"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"name": "hosting_enableCachelessModeV1",
|
|
363
|
+
"description": "Enables development (cacheless) mode where nothing is cached, effectively turning off all\ncaching for the website. Use it while actively developing, testing changes, debugging issues,\nor when real-time updates must be visible. Disable cacheless mode afterwards to restore\nnormal caching.",
|
|
364
|
+
"method": "PATCH",
|
|
365
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cacheless-mode/enable",
|
|
366
|
+
"inputSchema": {
|
|
367
|
+
"type": "object",
|
|
368
|
+
"properties": {
|
|
369
|
+
"username": {
|
|
370
|
+
"type": "string",
|
|
371
|
+
"description": "username parameter"
|
|
372
|
+
},
|
|
373
|
+
"domain": {
|
|
374
|
+
"type": "string",
|
|
375
|
+
"description": "Domain name"
|
|
376
|
+
}
|
|
377
|
+
},
|
|
378
|
+
"required": [
|
|
379
|
+
"username",
|
|
380
|
+
"domain"
|
|
381
|
+
]
|
|
382
|
+
},
|
|
383
|
+
"security": [
|
|
384
|
+
{
|
|
385
|
+
"apiToken": []
|
|
386
|
+
}
|
|
387
|
+
],
|
|
388
|
+
"group": "hosting"
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
"name": "hosting_enableWebsiteCacheV1",
|
|
392
|
+
"description": "Turns on server-side caching for the website for better performance. Use it for faster page\nloads, reduced server load, or improved user experience. Recommended for production websites.\n\nDoes nothing if caching is already enabled.",
|
|
393
|
+
"method": "PATCH",
|
|
394
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/cache/enable",
|
|
395
|
+
"inputSchema": {
|
|
396
|
+
"type": "object",
|
|
397
|
+
"properties": {
|
|
398
|
+
"username": {
|
|
399
|
+
"type": "string",
|
|
400
|
+
"description": "username parameter"
|
|
401
|
+
},
|
|
402
|
+
"domain": {
|
|
403
|
+
"type": "string",
|
|
404
|
+
"description": "Domain name"
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
"required": [
|
|
408
|
+
"username",
|
|
409
|
+
"domain"
|
|
410
|
+
]
|
|
411
|
+
},
|
|
412
|
+
"security": [
|
|
413
|
+
{
|
|
414
|
+
"apiToken": []
|
|
415
|
+
}
|
|
416
|
+
],
|
|
417
|
+
"group": "hosting"
|
|
418
|
+
},
|
|
270
419
|
{
|
|
271
420
|
"name": "hosting_listAccountCronJobsV1",
|
|
272
421
|
"description": "Returns the list of cron jobs configured for the specified account, including their schedule and command.",
|
package/src/servers/all.js
CHANGED
package/src/servers/all.ts
CHANGED
package/src/servers/billing.js
CHANGED
package/src/servers/billing.ts
CHANGED
package/src/servers/dns.js
CHANGED
package/src/servers/dns.ts
CHANGED
package/src/servers/domains.js
CHANGED
package/src/servers/domains.ts
CHANGED
package/src/servers/ecommerce.js
CHANGED
package/src/servers/ecommerce.ts
CHANGED
package/src/servers/horizons.js
CHANGED
package/src/servers/horizons.ts
CHANGED
package/src/servers/hosting.js
CHANGED
package/src/servers/hosting.ts
CHANGED
package/src/servers/reach.js
CHANGED
package/src/servers/reach.ts
CHANGED
package/src/servers/vps.js
CHANGED
package/src/servers/vps.ts
CHANGED
package/src/servers/wordpress.js
CHANGED
package/src/servers/wordpress.ts
CHANGED
package/types.d.ts
CHANGED
|
@@ -1108,6 +1108,111 @@ Websites can only be edited in Hostinger Horizons interface in the provided webs
|
|
|
1108
1108
|
response: any; // Response structure will depend on the API
|
|
1109
1109
|
};
|
|
1110
1110
|
|
|
1111
|
+
/**
|
|
1112
|
+
* Permanently clears all server-side cache for the website at once. Use it when content was
|
|
1113
|
+
updated and needs to be visible immediately, or after making major changes.
|
|
1114
|
+
|
|
1115
|
+
Also purges the Hostinger CDN cache when CDN is enabled on the website. For a WordPress
|
|
1116
|
+
installation living in a subdirectory, pass the directory query parameter to clear its cache.
|
|
1117
|
+
*/
|
|
1118
|
+
"hosting_clearWebsiteCacheV1": {
|
|
1119
|
+
params: {
|
|
1120
|
+
/**
|
|
1121
|
+
* username parameter
|
|
1122
|
+
*/
|
|
1123
|
+
username: string;
|
|
1124
|
+
/**
|
|
1125
|
+
* Domain name
|
|
1126
|
+
*/
|
|
1127
|
+
domain: string;
|
|
1128
|
+
/**
|
|
1129
|
+
* Directory of the website installation to clear, relative to the website root.
|
|
1130
|
+
Defaults to the website root.
|
|
1131
|
+
*/
|
|
1132
|
+
directory?: string;
|
|
1133
|
+
};
|
|
1134
|
+
response: any; // Response structure will depend on the API
|
|
1135
|
+
};
|
|
1136
|
+
|
|
1137
|
+
/**
|
|
1138
|
+
* Turns off development (cacheless) mode and returns the website to normal caching. Use it after
|
|
1139
|
+
finishing development work to restore the performance benefits of caching.
|
|
1140
|
+
*/
|
|
1141
|
+
"hosting_disableCachelessModeV1": {
|
|
1142
|
+
params: {
|
|
1143
|
+
/**
|
|
1144
|
+
* username parameter
|
|
1145
|
+
*/
|
|
1146
|
+
username: string;
|
|
1147
|
+
/**
|
|
1148
|
+
* Domain name
|
|
1149
|
+
*/
|
|
1150
|
+
domain: string;
|
|
1151
|
+
};
|
|
1152
|
+
response: any; // Response structure will depend on the API
|
|
1153
|
+
};
|
|
1154
|
+
|
|
1155
|
+
/**
|
|
1156
|
+
* Turns off server-side caching for the website until it is enabled again. May impact performance.
|
|
1157
|
+
Use it when experiencing cache-related issues; to temporarily bypass caching while developing
|
|
1158
|
+
or debugging, prefer enabling cacheless mode instead.
|
|
1159
|
+
|
|
1160
|
+
Does nothing if caching is already disabled.
|
|
1161
|
+
*/
|
|
1162
|
+
"hosting_disableWebsiteCacheV1": {
|
|
1163
|
+
params: {
|
|
1164
|
+
/**
|
|
1165
|
+
* username parameter
|
|
1166
|
+
*/
|
|
1167
|
+
username: string;
|
|
1168
|
+
/**
|
|
1169
|
+
* Domain name
|
|
1170
|
+
*/
|
|
1171
|
+
domain: string;
|
|
1172
|
+
};
|
|
1173
|
+
response: any; // Response structure will depend on the API
|
|
1174
|
+
};
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* Enables development (cacheless) mode where nothing is cached, effectively turning off all
|
|
1178
|
+
caching for the website. Use it while actively developing, testing changes, debugging issues,
|
|
1179
|
+
or when real-time updates must be visible. Disable cacheless mode afterwards to restore
|
|
1180
|
+
normal caching.
|
|
1181
|
+
*/
|
|
1182
|
+
"hosting_enableCachelessModeV1": {
|
|
1183
|
+
params: {
|
|
1184
|
+
/**
|
|
1185
|
+
* username parameter
|
|
1186
|
+
*/
|
|
1187
|
+
username: string;
|
|
1188
|
+
/**
|
|
1189
|
+
* Domain name
|
|
1190
|
+
*/
|
|
1191
|
+
domain: string;
|
|
1192
|
+
};
|
|
1193
|
+
response: any; // Response structure will depend on the API
|
|
1194
|
+
};
|
|
1195
|
+
|
|
1196
|
+
/**
|
|
1197
|
+
* Turns on server-side caching for the website for better performance. Use it for faster page
|
|
1198
|
+
loads, reduced server load, or improved user experience. Recommended for production websites.
|
|
1199
|
+
|
|
1200
|
+
Does nothing if caching is already enabled.
|
|
1201
|
+
*/
|
|
1202
|
+
"hosting_enableWebsiteCacheV1": {
|
|
1203
|
+
params: {
|
|
1204
|
+
/**
|
|
1205
|
+
* username parameter
|
|
1206
|
+
*/
|
|
1207
|
+
username: string;
|
|
1208
|
+
/**
|
|
1209
|
+
* Domain name
|
|
1210
|
+
*/
|
|
1211
|
+
domain: string;
|
|
1212
|
+
};
|
|
1213
|
+
response: any; // Response structure will depend on the API
|
|
1214
|
+
};
|
|
1215
|
+
|
|
1111
1216
|
/**
|
|
1112
1217
|
* Returns the list of cron jobs configured for the specified account, including their schedule and command.
|
|
1113
1218
|
*/
|