hostinger-api-mcp 1.38.2 → 1.40.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 +75 -3
- 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/agency-hosting.js +205 -0
- package/src/core/tools/agency-hosting.ts +205 -0
- package/src/core/tools/all.js +315 -0
- package/src/core/tools/all.ts +315 -0
- package/src/core/tools/hosting.js +110 -0
- package/src/core/tools/hosting.ts +110 -0
- package/src/servers/agency-hosting.js +1 -1
- package/src/servers/agency-hosting.ts +1 -1
- 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/mail.js +1 -1
- package/src/servers/mail.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 +176 -0
|
@@ -1690,6 +1690,116 @@ export default [
|
|
|
1690
1690
|
],
|
|
1691
1691
|
"group": "hosting"
|
|
1692
1692
|
},
|
|
1693
|
+
{
|
|
1694
|
+
"name": "hosting_listWebsiteRedirectsV1",
|
|
1695
|
+
"description": "Returns a paginated list of redirects configured for the selected website.",
|
|
1696
|
+
"method": "GET",
|
|
1697
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/redirects",
|
|
1698
|
+
"inputSchema": {
|
|
1699
|
+
"type": "object",
|
|
1700
|
+
"properties": {
|
|
1701
|
+
"username": {
|
|
1702
|
+
"type": "string",
|
|
1703
|
+
"description": "username parameter"
|
|
1704
|
+
},
|
|
1705
|
+
"domain": {
|
|
1706
|
+
"type": "string",
|
|
1707
|
+
"description": "Domain name"
|
|
1708
|
+
},
|
|
1709
|
+
"page": {
|
|
1710
|
+
"type": "integer",
|
|
1711
|
+
"description": "Page number"
|
|
1712
|
+
},
|
|
1713
|
+
"per_page": {
|
|
1714
|
+
"type": "integer",
|
|
1715
|
+
"description": "Number of items per page"
|
|
1716
|
+
}
|
|
1717
|
+
},
|
|
1718
|
+
"required": [
|
|
1719
|
+
"username",
|
|
1720
|
+
"domain"
|
|
1721
|
+
]
|
|
1722
|
+
},
|
|
1723
|
+
"security": [
|
|
1724
|
+
{
|
|
1725
|
+
"apiToken": []
|
|
1726
|
+
}
|
|
1727
|
+
],
|
|
1728
|
+
"group": "hosting"
|
|
1729
|
+
},
|
|
1730
|
+
{
|
|
1731
|
+
"name": "hosting_createWebsiteRedirectV1",
|
|
1732
|
+
"description": "Creates a redirect from a URL on the selected website to another URL or IP address.",
|
|
1733
|
+
"method": "POST",
|
|
1734
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/redirects",
|
|
1735
|
+
"inputSchema": {
|
|
1736
|
+
"type": "object",
|
|
1737
|
+
"properties": {
|
|
1738
|
+
"username": {
|
|
1739
|
+
"type": "string",
|
|
1740
|
+
"description": "username parameter"
|
|
1741
|
+
},
|
|
1742
|
+
"domain": {
|
|
1743
|
+
"type": "string",
|
|
1744
|
+
"description": "Domain name"
|
|
1745
|
+
},
|
|
1746
|
+
"from": {
|
|
1747
|
+
"type": "string",
|
|
1748
|
+
"description": "Source URL on the selected website"
|
|
1749
|
+
},
|
|
1750
|
+
"to": {
|
|
1751
|
+
"type": "string",
|
|
1752
|
+
"description": "Destination URL or IP address"
|
|
1753
|
+
}
|
|
1754
|
+
},
|
|
1755
|
+
"required": [
|
|
1756
|
+
"username",
|
|
1757
|
+
"domain",
|
|
1758
|
+
"from",
|
|
1759
|
+
"to"
|
|
1760
|
+
]
|
|
1761
|
+
},
|
|
1762
|
+
"security": [
|
|
1763
|
+
{
|
|
1764
|
+
"apiToken": []
|
|
1765
|
+
}
|
|
1766
|
+
],
|
|
1767
|
+
"group": "hosting"
|
|
1768
|
+
},
|
|
1769
|
+
{
|
|
1770
|
+
"name": "hosting_deleteWebsiteRedirectV1",
|
|
1771
|
+
"description": "Permanently deletes the redirect identified by its source URL.\n\nPass the `from` value exactly as returned by the list redirects endpoint.",
|
|
1772
|
+
"method": "DELETE",
|
|
1773
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/redirects",
|
|
1774
|
+
"inputSchema": {
|
|
1775
|
+
"type": "object",
|
|
1776
|
+
"properties": {
|
|
1777
|
+
"username": {
|
|
1778
|
+
"type": "string",
|
|
1779
|
+
"description": "username parameter"
|
|
1780
|
+
},
|
|
1781
|
+
"domain": {
|
|
1782
|
+
"type": "string",
|
|
1783
|
+
"description": "Domain name"
|
|
1784
|
+
},
|
|
1785
|
+
"from": {
|
|
1786
|
+
"type": "string",
|
|
1787
|
+
"description": "Source URL returned by the list redirects endpoint."
|
|
1788
|
+
}
|
|
1789
|
+
},
|
|
1790
|
+
"required": [
|
|
1791
|
+
"username",
|
|
1792
|
+
"domain",
|
|
1793
|
+
"from"
|
|
1794
|
+
]
|
|
1795
|
+
},
|
|
1796
|
+
"security": [
|
|
1797
|
+
{
|
|
1798
|
+
"apiToken": []
|
|
1799
|
+
}
|
|
1800
|
+
],
|
|
1801
|
+
"group": "hosting"
|
|
1802
|
+
},
|
|
1693
1803
|
{
|
|
1694
1804
|
"name": "hosting_listWebsitesV1",
|
|
1695
1805
|
"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.",
|
|
@@ -1704,6 +1704,116 @@ const tools: OpenApiTool[] = [
|
|
|
1704
1704
|
],
|
|
1705
1705
|
"group": "hosting"
|
|
1706
1706
|
},
|
|
1707
|
+
{
|
|
1708
|
+
"name": "hosting_listWebsiteRedirectsV1",
|
|
1709
|
+
"description": "Returns a paginated list of redirects configured for the selected website.",
|
|
1710
|
+
"method": "GET",
|
|
1711
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/redirects",
|
|
1712
|
+
"inputSchema": {
|
|
1713
|
+
"type": "object",
|
|
1714
|
+
"properties": {
|
|
1715
|
+
"username": {
|
|
1716
|
+
"type": "string",
|
|
1717
|
+
"description": "username parameter"
|
|
1718
|
+
},
|
|
1719
|
+
"domain": {
|
|
1720
|
+
"type": "string",
|
|
1721
|
+
"description": "Domain name"
|
|
1722
|
+
},
|
|
1723
|
+
"page": {
|
|
1724
|
+
"type": "integer",
|
|
1725
|
+
"description": "Page number"
|
|
1726
|
+
},
|
|
1727
|
+
"per_page": {
|
|
1728
|
+
"type": "integer",
|
|
1729
|
+
"description": "Number of items per page"
|
|
1730
|
+
}
|
|
1731
|
+
},
|
|
1732
|
+
"required": [
|
|
1733
|
+
"username",
|
|
1734
|
+
"domain"
|
|
1735
|
+
]
|
|
1736
|
+
},
|
|
1737
|
+
"security": [
|
|
1738
|
+
{
|
|
1739
|
+
"apiToken": []
|
|
1740
|
+
}
|
|
1741
|
+
],
|
|
1742
|
+
"group": "hosting"
|
|
1743
|
+
},
|
|
1744
|
+
{
|
|
1745
|
+
"name": "hosting_createWebsiteRedirectV1",
|
|
1746
|
+
"description": "Creates a redirect from a URL on the selected website to another URL or IP address.",
|
|
1747
|
+
"method": "POST",
|
|
1748
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/redirects",
|
|
1749
|
+
"inputSchema": {
|
|
1750
|
+
"type": "object",
|
|
1751
|
+
"properties": {
|
|
1752
|
+
"username": {
|
|
1753
|
+
"type": "string",
|
|
1754
|
+
"description": "username parameter"
|
|
1755
|
+
},
|
|
1756
|
+
"domain": {
|
|
1757
|
+
"type": "string",
|
|
1758
|
+
"description": "Domain name"
|
|
1759
|
+
},
|
|
1760
|
+
"from": {
|
|
1761
|
+
"type": "string",
|
|
1762
|
+
"description": "Source URL on the selected website"
|
|
1763
|
+
},
|
|
1764
|
+
"to": {
|
|
1765
|
+
"type": "string",
|
|
1766
|
+
"description": "Destination URL or IP address"
|
|
1767
|
+
}
|
|
1768
|
+
},
|
|
1769
|
+
"required": [
|
|
1770
|
+
"username",
|
|
1771
|
+
"domain",
|
|
1772
|
+
"from",
|
|
1773
|
+
"to"
|
|
1774
|
+
]
|
|
1775
|
+
},
|
|
1776
|
+
"security": [
|
|
1777
|
+
{
|
|
1778
|
+
"apiToken": []
|
|
1779
|
+
}
|
|
1780
|
+
],
|
|
1781
|
+
"group": "hosting"
|
|
1782
|
+
},
|
|
1783
|
+
{
|
|
1784
|
+
"name": "hosting_deleteWebsiteRedirectV1",
|
|
1785
|
+
"description": "Permanently deletes the redirect identified by its source URL.\n\nPass the `from` value exactly as returned by the list redirects endpoint.",
|
|
1786
|
+
"method": "DELETE",
|
|
1787
|
+
"path": "/api/hosting/v1/accounts/{username}/websites/{domain}/redirects",
|
|
1788
|
+
"inputSchema": {
|
|
1789
|
+
"type": "object",
|
|
1790
|
+
"properties": {
|
|
1791
|
+
"username": {
|
|
1792
|
+
"type": "string",
|
|
1793
|
+
"description": "username parameter"
|
|
1794
|
+
},
|
|
1795
|
+
"domain": {
|
|
1796
|
+
"type": "string",
|
|
1797
|
+
"description": "Domain name"
|
|
1798
|
+
},
|
|
1799
|
+
"from": {
|
|
1800
|
+
"type": "string",
|
|
1801
|
+
"description": "Source URL returned by the list redirects endpoint."
|
|
1802
|
+
}
|
|
1803
|
+
},
|
|
1804
|
+
"required": [
|
|
1805
|
+
"username",
|
|
1806
|
+
"domain",
|
|
1807
|
+
"from"
|
|
1808
|
+
]
|
|
1809
|
+
},
|
|
1810
|
+
"security": [
|
|
1811
|
+
{
|
|
1812
|
+
"apiToken": []
|
|
1813
|
+
}
|
|
1814
|
+
],
|
|
1815
|
+
"group": "hosting"
|
|
1816
|
+
},
|
|
1707
1817
|
{
|
|
1708
1818
|
"name": "hosting_listWebsitesV1",
|
|
1709
1819
|
"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/agency-hosting.js';
|
|
5
5
|
|
|
6
|
-
startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.
|
|
6
|
+
startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.40.0', tools });
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
import { startServer } from '../core/runtime.js';
|
|
4
4
|
import tools from '../core/tools/agency-hosting.js';
|
|
5
5
|
|
|
6
|
-
startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.
|
|
6
|
+
startServer({ name: 'hostinger-agency-hosting-mcp', version: '1.40.0', tools });
|
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/mail.js
CHANGED
package/src/servers/mail.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
|
@@ -344,6 +344,109 @@ archive types: .zip, .tar, .tar.gz, .tgz.
|
|
|
344
344
|
response: any; // Response structure will depend on the API
|
|
345
345
|
};
|
|
346
346
|
|
|
347
|
+
/**
|
|
348
|
+
* Lists every PHP extension available to an Agency Plan website and whether it is currently enabled.
|
|
349
|
+
*/
|
|
350
|
+
"agency-hosting_listPHPExtensionsForAWebsiteV1": {
|
|
351
|
+
params: {
|
|
352
|
+
/**
|
|
353
|
+
* Agency Plan website UID
|
|
354
|
+
*/
|
|
355
|
+
website_uid: string;
|
|
356
|
+
};
|
|
357
|
+
response: any; // Response structure will depend on the API
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Replaces the set of PHP extensions enabled on an Agency Plan website with the ones provided. Any toggleable extension not in the request is disabled, so call the extensions endpoint first and send the full desired set. Extensions compiled into PHP, reported with the "built-in" state, are always active and are unaffected.
|
|
362
|
+
*/
|
|
363
|
+
"agency-hosting_replaceWebsitePHPExtensionsV1": {
|
|
364
|
+
params: {
|
|
365
|
+
/**
|
|
366
|
+
* Agency Plan website UID
|
|
367
|
+
*/
|
|
368
|
+
website_uid: string;
|
|
369
|
+
/**
|
|
370
|
+
* Extension names, exactly as returned by the extensions endpoint.
|
|
371
|
+
*/
|
|
372
|
+
extensions: array;
|
|
373
|
+
};
|
|
374
|
+
response: any; // Response structure will depend on the API
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Lists the php.ini directives that can be configured for an Agency Plan website, each with its default, the value currently in effect, and the values it accepts.
|
|
379
|
+
*/
|
|
380
|
+
"agency-hosting_listPHPOptionsForAWebsiteV1": {
|
|
381
|
+
params: {
|
|
382
|
+
/**
|
|
383
|
+
* Agency Plan website UID
|
|
384
|
+
*/
|
|
385
|
+
website_uid: string;
|
|
386
|
+
};
|
|
387
|
+
response: any; // Response structure will depend on the API
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Replaces the custom php.ini values on an Agency Plan website with the ones provided. Any option not in the request is reset to its default, so call the options endpoint first and send the full desired set. Sending an empty array resets every option to its default.
|
|
392
|
+
*/
|
|
393
|
+
"agency-hosting_replaceWebsitePHPOptionsV1": {
|
|
394
|
+
params: {
|
|
395
|
+
/**
|
|
396
|
+
* Agency Plan website UID
|
|
397
|
+
*/
|
|
398
|
+
website_uid: string;
|
|
399
|
+
/**
|
|
400
|
+
* Option names and values. Each name must be one of the options returned by the options endpoint, and each value must satisfy that option's allowed_values when it declares them.
|
|
401
|
+
*/
|
|
402
|
+
options: array;
|
|
403
|
+
};
|
|
404
|
+
response: any; // Response structure will depend on the API
|
|
405
|
+
};
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* Lists the PHP versions available to websites created under an Agency Plan order, determined by the server the order is hosted on. Use this before creating a website; for a website that already exists, call the website-scoped versions endpoint instead.
|
|
409
|
+
*/
|
|
410
|
+
"agency-hosting_listAvailablePHPVersionsForAnOrderV1": {
|
|
411
|
+
params: {
|
|
412
|
+
/**
|
|
413
|
+
* Agency Plan order ID
|
|
414
|
+
*/
|
|
415
|
+
order_id: number;
|
|
416
|
+
};
|
|
417
|
+
response: any; // Response structure will depend on the API
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* Lists the PHP versions an Agency Plan website can be switched to. The version the website is currently running is returned as settings.php.version by the website details endpoint.
|
|
422
|
+
*/
|
|
423
|
+
"agency-hosting_listAvailablePHPVersionsForAWebsiteV1": {
|
|
424
|
+
params: {
|
|
425
|
+
/**
|
|
426
|
+
* Agency Plan website UID
|
|
427
|
+
*/
|
|
428
|
+
website_uid: string;
|
|
429
|
+
};
|
|
430
|
+
response: any; // Response structure will depend on the API
|
|
431
|
+
};
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Switches an Agency Plan website to a different PHP version. Call the available versions endpoint first to see which versions can be selected. The website restarts on the new version, so requests served during the switch may fail and code that is incompatible with the target version will break.
|
|
435
|
+
*/
|
|
436
|
+
"agency-hosting_updateWebsitePHPVersionV1": {
|
|
437
|
+
params: {
|
|
438
|
+
/**
|
|
439
|
+
* Agency Plan website UID
|
|
440
|
+
*/
|
|
441
|
+
website_uid: string;
|
|
442
|
+
/**
|
|
443
|
+
* PHP version to switch the website to, as major.minor. Must be one of the versions returned by the available versions endpoint.
|
|
444
|
+
*/
|
|
445
|
+
version: string;
|
|
446
|
+
};
|
|
447
|
+
response: any; // Response structure will depend on the API
|
|
448
|
+
};
|
|
449
|
+
|
|
347
450
|
/**
|
|
348
451
|
* Provisions a new website on one of your Agency Plan hosting orders.
|
|
349
452
|
|
|
@@ -3294,6 +3397,79 @@ Use the Get PHP details endpoint to see the versions available for the website.
|
|
|
3294
3397
|
response: any; // Response structure will depend on the API
|
|
3295
3398
|
};
|
|
3296
3399
|
|
|
3400
|
+
/**
|
|
3401
|
+
* Returns a paginated list of redirects configured for the selected website.
|
|
3402
|
+
*/
|
|
3403
|
+
"hosting_listWebsiteRedirectsV1": {
|
|
3404
|
+
params: {
|
|
3405
|
+
/**
|
|
3406
|
+
* username parameter
|
|
3407
|
+
*/
|
|
3408
|
+
username: string;
|
|
3409
|
+
/**
|
|
3410
|
+
* Domain name
|
|
3411
|
+
*/
|
|
3412
|
+
domain: string;
|
|
3413
|
+
/**
|
|
3414
|
+
* Page number
|
|
3415
|
+
*/
|
|
3416
|
+
page?: number;
|
|
3417
|
+
/**
|
|
3418
|
+
* Number of items per page
|
|
3419
|
+
*/
|
|
3420
|
+
per_page?: number;
|
|
3421
|
+
};
|
|
3422
|
+
response: any; // Response structure will depend on the API
|
|
3423
|
+
};
|
|
3424
|
+
|
|
3425
|
+
/**
|
|
3426
|
+
* Creates a redirect from a URL on the selected website to another URL or IP address.
|
|
3427
|
+
*/
|
|
3428
|
+
"hosting_createWebsiteRedirectV1": {
|
|
3429
|
+
params: {
|
|
3430
|
+
/**
|
|
3431
|
+
* username parameter
|
|
3432
|
+
*/
|
|
3433
|
+
username: string;
|
|
3434
|
+
/**
|
|
3435
|
+
* Domain name
|
|
3436
|
+
*/
|
|
3437
|
+
domain: string;
|
|
3438
|
+
/**
|
|
3439
|
+
* Source URL on the selected website
|
|
3440
|
+
*/
|
|
3441
|
+
from: string;
|
|
3442
|
+
/**
|
|
3443
|
+
* Destination URL or IP address
|
|
3444
|
+
*/
|
|
3445
|
+
to: string;
|
|
3446
|
+
};
|
|
3447
|
+
response: any; // Response structure will depend on the API
|
|
3448
|
+
};
|
|
3449
|
+
|
|
3450
|
+
/**
|
|
3451
|
+
* Permanently deletes the redirect identified by its source URL.
|
|
3452
|
+
|
|
3453
|
+
Pass the `from` value exactly as returned by the list redirects endpoint.
|
|
3454
|
+
*/
|
|
3455
|
+
"hosting_deleteWebsiteRedirectV1": {
|
|
3456
|
+
params: {
|
|
3457
|
+
/**
|
|
3458
|
+
* username parameter
|
|
3459
|
+
*/
|
|
3460
|
+
username: string;
|
|
3461
|
+
/**
|
|
3462
|
+
* Domain name
|
|
3463
|
+
*/
|
|
3464
|
+
domain: string;
|
|
3465
|
+
/**
|
|
3466
|
+
* Source URL returned by the list redirects endpoint.
|
|
3467
|
+
*/
|
|
3468
|
+
from: string;
|
|
3469
|
+
};
|
|
3470
|
+
response: any; // Response structure will depend on the API
|
|
3471
|
+
};
|
|
3472
|
+
|
|
3297
3473
|
/**
|
|
3298
3474
|
* Retrieve a paginated list of websites (main and addon types) accessible to the authenticated client.
|
|
3299
3475
|
|