hostinger-api-mcp 3.29.0 → 3.30.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 +15 -0
- package/README.md +9 -40
- package/gemini-extension.json +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
- package/skills/headless/VERSION +2 -2
- package/skills/maintain-wordpress/SKILL.md +1 -1
- package/skills/troubleshoot-website/SKILL.md +1 -1
- package/src/core/runtime.js +96 -0
- package/src/core/runtime.ts +96 -0
- package/src/core/skills.js +6 -6
- package/src/core/skills.ts +6 -6
- package/src/core/tools/all.js +78 -4
- package/src/core/tools/all.ts +78 -4
- package/src/core/tools/hosting.js +78 -4
- package/src/core/tools/hosting.ts +78 -4
- package/src/servers/agency-hosting.js +1 -1
- package/src/servers/agency-hosting.ts +1 -1
- 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/gpu.js +1 -1
- package/src/servers/gpu.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 +29 -0
package/src/servers/wordpress.js
CHANGED
package/src/servers/wordpress.ts
CHANGED
package/types.d.ts
CHANGED
|
@@ -153,6 +153,35 @@ export interface APITools {
|
|
|
153
153
|
response: any; // Response structure will depend on the API
|
|
154
154
|
};
|
|
155
155
|
|
|
156
|
+
/**
|
|
157
|
+
* Change a website's PHP version, extensions and php.ini options in one call. Pass only what to change, at least one of version, resetExtensions, extensions and options. Steps run in the order version, resetExtensions, extensions, options, and the call stops at the first failure. applied lists the steps that ran. When a step fails, the call returns an error whose text is the same JSON: failed names the step and why, and skipped lists the ones not attempted; a multi-execute batch stops there too. WARNING: changing the version resets the website's extensions (PHP 8.0 and later) and its options to their defaults, so pass the extensions and options to keep in the same call; they are applied after the version. Option values above the plan limit are capped silently: read the applied values back with hosting_php_get, which also lists the available versions, extensions and options. Works for Shared and Cloud hosting websites.
|
|
158
|
+
*/
|
|
159
|
+
"hosting_php_update": {
|
|
160
|
+
params: {
|
|
161
|
+
/**
|
|
162
|
+
* Domain name of the website, exactly as listed on the account and without www. (e.g., example.com)
|
|
163
|
+
*/
|
|
164
|
+
domain: string;
|
|
165
|
+
/**
|
|
166
|
+
* PHP version to switch to, as major.minor (e.g. 8.3). Must be one of the supported versions in hosting_php_get.
|
|
167
|
+
*/
|
|
168
|
+
version?: string;
|
|
169
|
+
/**
|
|
170
|
+
* true resets every PHP extension to its default state; runs after version and before extensions.
|
|
171
|
+
*/
|
|
172
|
+
resetExtensions?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Extensions to enable and disable, by name as hosting_php_get lists them. Pass at least one of enable and disable.
|
|
175
|
+
*/
|
|
176
|
+
extensions?: object;
|
|
177
|
+
/**
|
|
178
|
+
* php.ini options to change, keyed by name as hosting_php_get lists them (e.g. {"memory_limit": "512M", "max_execution_time": 300}). Only include options to change.
|
|
179
|
+
*/
|
|
180
|
+
options?: object;
|
|
181
|
+
};
|
|
182
|
+
response: any; // Response structure will depend on the API
|
|
183
|
+
};
|
|
184
|
+
|
|
156
185
|
/**
|
|
157
186
|
* List the extra domains of a website: its parked (alias) domains, which show the same site under another domain name, and its subdomains (e.g. blog.example.com), with each one's root directory. parked items have domain (a domain name or an IP address) and type (domain or ip); subdomains items have domain (the full name), subdomain (the prefix) and root_directory. A list that cannot be read comes back as { error } and the other is still returned. To add or remove one use hosting_websites_add-domain or hosting_websites_remove-domain. Works for Shared and Cloud hosting websites.
|
|
158
187
|
*/
|