hostinger-api-mcp 2.1.0 → 2.3.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/CHANGELOG.md +25 -0
- package/README.md +35 -5
- package/gemini-extension.json +1 -1
- package/package.json +4 -3
- package/server.json +2 -2
- package/src/core/runtime.js +79 -4
- package/src/core/runtime.ts +85 -4
- package/src/core/skills.js +54 -0
- package/src/core/skills.ts +69 -0
- package/src/core/tools/all.js +32 -4
- package/src/core/tools/all.ts +32 -4
- package/src/core/tools/hosting.js +32 -4
- package/src/core/tools/hosting.ts +32 -4
- package/src/servers/agency-hosting.js +1 -1
- package/src/servers/agency-hosting.ts +1 -1
- package/src/servers/all.js +2 -1
- package/src/servers/all.ts +2 -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 +39 -3
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
|
@@ -3446,7 +3446,9 @@ The database name must be the full name returned by the list databases endpoint.
|
|
|
3446
3446
|
* Allows a remote host to connect to the specified database.
|
|
3447
3447
|
|
|
3448
3448
|
Provide an IPv4/IPv6 address, or "%" to allow any host. The database name must be
|
|
3449
|
-
the full name returned by the list databases endpoint.
|
|
3449
|
+
the full name returned by the list databases endpoint. Database creation is synchronous,
|
|
3450
|
+
so a 404 here means no database with that name exists under the username, not that it
|
|
3451
|
+
is still being created.
|
|
3450
3452
|
*/
|
|
3451
3453
|
"hosting_databases_create-remote-connection": {
|
|
3452
3454
|
params: {
|
|
@@ -3797,6 +3799,10 @@ Skip this verification when using Hostinger's free subdomains (*.hostingersite.c
|
|
|
3797
3799
|
* Generate a file browser upload URL with authentication credentials
|
|
3798
3800
|
for uploading files directly to a website's file storage.
|
|
3799
3801
|
|
|
3802
|
+
While the website is still being set up (`status: running` on the list website setups
|
|
3803
|
+
endpoint) this endpoint returns 409 with a `Retry-After` header: wait that many
|
|
3804
|
+
seconds and retry, or poll the website setups until the status is `completed`.
|
|
3805
|
+
|
|
3800
3806
|
Returns `url`, `auth_key` and `rest_auth_key`. Use these to upload a file to the
|
|
3801
3807
|
website's `public_html` directory via the TUS resumable upload protocol (TUS 1.0.0).
|
|
3802
3808
|
Send `X-Auth: {auth_key}` and `X-Auth-Rest: {rest_auth_key}` headers on every request
|
|
@@ -4576,6 +4582,28 @@ close or merge it before patching again. Available on Business and Cloud Hosting
|
|
|
4576
4582
|
response: any; // Response structure will depend on the API
|
|
4577
4583
|
};
|
|
4578
4584
|
|
|
4585
|
+
/**
|
|
4586
|
+
* Returns the website setups started in the last 24 hours for the hosting accounts
|
|
4587
|
+
accessible to the authenticated client, newest first.
|
|
4588
|
+
|
|
4589
|
+
Meant for polling right after creating a website: the website shows up in the
|
|
4590
|
+
websites list before its server-side setup has finished, and while the setup is
|
|
4591
|
+
`running` endpoints that operate on that website may respond with `404` or `409`.
|
|
4592
|
+
Poll this endpoint with the `domain` filter every 10 to 15 seconds and wait for
|
|
4593
|
+
`status: completed` before uploading files, deploying or creating databases.
|
|
4594
|
+
`failed` means the setup stopped before finishing or has not reported progress for
|
|
4595
|
+
over an hour. Setups older than 24 hours are not listed.
|
|
4596
|
+
*/
|
|
4597
|
+
"hosting_websites_list-setups": {
|
|
4598
|
+
params: {
|
|
4599
|
+
/**
|
|
4600
|
+
* Filter by domain name (exact match)
|
|
4601
|
+
*/
|
|
4602
|
+
domain?: string;
|
|
4603
|
+
};
|
|
4604
|
+
response: any; // Response structure will depend on the API
|
|
4605
|
+
};
|
|
4606
|
+
|
|
4579
4607
|
/**
|
|
4580
4608
|
* Retrieve a paginated list of orders accessible to the authenticated client.
|
|
4581
4609
|
|
|
@@ -4931,6 +4959,11 @@ WordPress websites (`website_types=wordpress`) or only Node.js websites
|
|
|
4931
4959
|
(`website_types=nodejs`). Combine with the other available query parameters to
|
|
4932
4960
|
filter by username, order ID, enabled status, or domain name for more targeted
|
|
4933
4961
|
results.
|
|
4962
|
+
|
|
4963
|
+
A website appears in this list before its server-side setup has finished, and
|
|
4964
|
+
`is_enabled` reflects suspension, not readiness. To know when a newly created website
|
|
4965
|
+
is ready for file, deploy or database operations, poll the list website setups
|
|
4966
|
+
endpoint instead.
|
|
4934
4967
|
*/
|
|
4935
4968
|
"hosting_websites_list": {
|
|
4936
4969
|
params: {
|
|
@@ -4979,8 +5012,11 @@ in the selected datacenter.
|
|
|
4979
5012
|
|
|
4980
5013
|
Subsequent websites will be hosted on the same datacenter automatically.
|
|
4981
5014
|
|
|
4982
|
-
Website creation takes up to a few minutes
|
|
4983
|
-
|
|
5015
|
+
Website creation is asynchronous and takes up to a few minutes. Poll the list website
|
|
5016
|
+
setups endpoint with the `domain` filter every 10 to 15 seconds and wait for `status:
|
|
5017
|
+
completed` before uploading files, deploying or creating databases. While the setup is
|
|
5018
|
+
`running`, endpoints that operate on the website may respond with `404` or `409`.
|
|
5019
|
+
`is_enabled` on the websites list reflects suspension, not readiness.
|
|
4984
5020
|
*/
|
|
4985
5021
|
"hosting_websites_create": {
|
|
4986
5022
|
params: {
|