@hostinger/mcp 3.1.0 → 3.2.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 +19 -0
- package/README.md +9 -282
- package/gemini-extension.json +1 -1
- package/package.json +2 -1
- package/server.json +2 -2
- package/skills/audit-hosting/SKILL.md +1 -1
- package/skills/deploy-to-hosting/SKILL.md +32 -15
- package/skills/headless/references/DATABASE.md +3 -3
- package/skills/headless/references/DEPLOYMENT.md +10 -12
- package/skills/migrate-to-hosting/SKILL.md +3 -3
- package/skills/troubleshoot-website/SKILL.md +2 -2
- package/src/core/catalog.js +4 -0
- package/src/core/catalog.ts +6 -1
- package/src/core/instructions.agency-hosting.js +2 -0
- package/src/core/instructions.agency-hosting.ts +3 -0
- package/src/core/instructions.js +1 -1
- package/src/core/instructions.ts +1 -1
- package/src/core/runtime.js +1924 -1227
- package/src/core/runtime.ts +1890 -1192
- package/src/core/skills.js +18 -18
- package/src/core/skills.ts +18 -18
- package/src/core/tools/agency-hosting.ts +2 -0
- package/src/core/tools/agent-readiness.ts +2 -0
- package/src/core/tools/all.js +208 -24
- package/src/core/tools/all.ts +210 -24
- package/src/core/tools/billing.ts +2 -0
- package/src/core/tools/dns.ts +2 -0
- package/src/core/tools/domains.ts +2 -0
- package/src/core/tools/ecommerce.ts +2 -0
- package/src/core/tools/horizons.ts +2 -0
- package/src/core/tools/hosting.js +202 -21
- package/src/core/tools/hosting.ts +204 -21
- package/src/core/tools/mail.ts +2 -0
- package/src/core/tools/reach.ts +2 -0
- package/src/core/tools/vps.ts +2 -0
- package/src/core/tools/wordpress.ts +2 -0
- package/src/servers/agency-hosting.js +2 -2
- package/src/servers/agency-hosting.ts +2 -2
- package/src/servers/agent-readiness.js +1 -1
- package/src/servers/agent-readiness.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 +86 -0
package/types.d.ts
CHANGED
|
@@ -4,6 +4,92 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
export interface APITools {
|
|
7
|
+
/**
|
|
8
|
+
* Deploy, publish or upload a website to Hostinger web hosting (Shared, Cloud): static HTML, PHP, a nodejs (Node.js) app, a whole WordPress site, or a WordPress plugin or theme, from a local directory, an archive or a GitHub or GitLab repository. It detects what the project is and does the upload, build and Git setup itself: do not call upload or build operations, and do not archive the directory yourself. WARNING: it overwrites the website's contents and cannot be undone; confirm the domain with the user before deploying to a site that already has content. A Node.js build runs on the server: this returns a buildUuid at once, then call hosting_get-deployment until the build state is completed or failed. Static, PHP, plugin and theme deploys are done when this returns; a WordPress site import only starts, and its files are extracted a few minutes later. From Git, pass type (static or nodejs) unless the site already runs a Node.js app or you pass Node.js settings; a static or PHP site deploys the branch now and again on every push; a Node.js site builds the branch now and on every later push, with the settings stored for the site (when none are stored, pass appType and nodeVersion from the project's engines, plus outputDirectory and buildScript if the app has a build step). Git needs GitHub or GitLab connected once in hPanel.
|
|
9
|
+
*/
|
|
10
|
+
"hosting_deploy": {
|
|
11
|
+
params: {
|
|
12
|
+
/**
|
|
13
|
+
* Domain name of the website to deploy to (e.g., example.com)
|
|
14
|
+
*/
|
|
15
|
+
domain: string;
|
|
16
|
+
/**
|
|
17
|
+
* Local directory (preferred; it is archived for you, skipping node_modules, .git and .env files, but not reading .gitignore, so keep build output out) or archive (zip, tar, tar.gz, tgz, 7z, gz, gzip). Not together with git.
|
|
18
|
+
*/
|
|
19
|
+
path?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Deploy a repository branch instead of local files. Not together with path.
|
|
22
|
+
*/
|
|
23
|
+
git?: object;
|
|
24
|
+
/**
|
|
25
|
+
* What is deployed. Detected for a directory (a Plugin Name: or Theme Name: header, wp-config.php or wp-content, a package.json with a build or start script); required for an archive, when detection reports ambiguity, and for a Git deploy unless the site already runs a Node.js app or Node.js settings are passed. static also covers PHP.
|
|
26
|
+
*/
|
|
27
|
+
type?: string;
|
|
28
|
+
/**
|
|
29
|
+
* WordPress plugin or theme slug: lower-case letters, digits, - and _ (default: the directory name)
|
|
30
|
+
*/
|
|
31
|
+
slug?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Activate the theme after deployment (WordPress themes only, default: false)
|
|
34
|
+
*/
|
|
35
|
+
activate?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Path to a .sql dump; required for a WordPress site import
|
|
38
|
+
*/
|
|
39
|
+
databaseDump?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Node.js major version (default: detected from an archive, or stored for the site, else 22; set it from the project's engines for a Git deploy)
|
|
42
|
+
*/
|
|
43
|
+
nodeVersion?: number;
|
|
44
|
+
/**
|
|
45
|
+
* Node.js framework, e.g. next, nuxt, vite, express, react, vue, astro; overrides detection or stored settings
|
|
46
|
+
*/
|
|
47
|
+
appType?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Directory with the package.json, relative to the site root (default .)
|
|
50
|
+
*/
|
|
51
|
+
rootDirectory?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Build output directory relative to the root directory, e.g. dist
|
|
54
|
+
*/
|
|
55
|
+
outputDirectory?: string;
|
|
56
|
+
/**
|
|
57
|
+
* The package.json script that builds the app, e.g. build
|
|
58
|
+
*/
|
|
59
|
+
buildScript?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Entry file of a server app. Relative to the root directory for express, fastify, hono, react-router and other; for a compiled (TypeScript) app give the built file, e.g. dist/server.js, because detection guesses a root-level file. Relative to the output directory for nest, nuxt, nitro, astro and svelte-kit (main.js, not dist/main.js). Ignored for next.
|
|
62
|
+
*/
|
|
63
|
+
entryFile?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Package manager used to install dependencies
|
|
66
|
+
*/
|
|
67
|
+
packageManager?: string;
|
|
68
|
+
};
|
|
69
|
+
response: any; // Response structure will depend on the API
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check deployment status, build status, build logs and why a build failed (failure analysis) for a website's nodejs (Node.js) deployment: the state of its latest build (or of buildUuid), the end of the build log, the failure analysis when the build failed, and the build settings and Git auto-deployment settings stored for the site. Use it after hosting_deploy starts a Node.js build, and to find out why a deployment failed. Poll until the build state is completed or failed, with growing pauses. The log comes back in full; pass fromLine (the lines count from the previous call) to read only new output. A website without Node.js builds returns build: null with an explanation, because static, PHP, plugin and theme deploys are complete when hosting_deploy returns, and a WordPress site import is ready a few minutes after it starts.
|
|
74
|
+
*/
|
|
75
|
+
"hosting_get-deployment": {
|
|
76
|
+
params: {
|
|
77
|
+
/**
|
|
78
|
+
* Domain name of the website (e.g., example.com)
|
|
79
|
+
*/
|
|
80
|
+
domain: string;
|
|
81
|
+
/**
|
|
82
|
+
* Build to inspect, as returned by hosting_deploy (default: the latest build)
|
|
83
|
+
*/
|
|
84
|
+
buildUuid?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Read the build log from this line on (default 0, the whole log). Pass the lines count returned by the previous call to get only new output.
|
|
87
|
+
*/
|
|
88
|
+
fromLine?: number;
|
|
89
|
+
};
|
|
90
|
+
response: any; // Response structure will depend on the API
|
|
91
|
+
};
|
|
92
|
+
|
|
7
93
|
/**
|
|
8
94
|
* Deploy a node-static Agency Plan (h5g) website from an archive file. WARNING: this overwrites the website's existing contents and cannot be undone — always confirm with the user before proceeding. Use this for Agency Plan websites of type node-static (a Node.js-built static site that requires a build step or a plain simple static site). The tool resolves the website from its domain, uploads the archive to the website's file browser over TUS, and triggers the build-assets process which builds the site and deploys the result to public_html. This operation is synchronous: the build and deployment complete before the tool returns, so the website is live as soon as the tool finishes successfully — there is no separate asynchronous build to wait for or poll. Upload credentials are generated and used internally — do not call a separate upload-url endpoint or upload the archive yourself, this tool does it end-to-end. For plain PHP applications that should be extracted as-is, use agency-hosting_deploy-php-application instead. The website UID is automatically resolved from the domain.
|
|
9
95
|
*/
|