@awesomate/hosting-mcp 0.24.0 → 0.25.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.
Files changed (2) hide show
  1. package/dist/index.js +21 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -40885,6 +40885,7 @@ var TITLES = {
40885
40885
  awesomate_skill_update: "Update Awesomate skills",
40886
40886
  awesomate_site_create: "Create WordPress site",
40887
40887
  awesomate_site_audit: "Audit site for SEO and AEO",
40888
+ awesomate_php_extensions: "Check or fix PHP extensions",
40888
40889
  awesomate_uninstall_site: "Delete WordPress site",
40889
40890
  awesomate_snapshot_site: "Snapshot site",
40890
40891
  awesomate_list_snapshots: "List site snapshots",
@@ -41416,6 +41417,26 @@ readTool(
41416
41417
  "cPanel account details: package, server, provisioned-at, masked username.",
41417
41418
  "/api/client-hosting/account"
41418
41419
  );
41420
+ server.registerTool(
41421
+ "awesomate_php_extensions",
41422
+ {
41423
+ description: "Check (and optionally fix) the PHP extensions enabled for the hosting account's PHP runtime. Use this when WordPress fails on a SPECIFIC operation while the rest of the site works: `wp media import` or image uploads dying with \"critical error\" (missing dom), sudden white screens on text handling (missing mbstring), importers or sitemap generation failing (missing xmlreader/xmlwriter), or a plugin that installs fine but cannot connect (missing soap). The CloudLinux alt-php82 default set is much leaner than 7.4's, so accounts on PHP 8.2 often come up without these even though the modules are installed on the server. The account holder CANNOT fix this from a shell \u2014 CageFS blocks selectorctl for jailed accounts \u2014 so do it here rather than talking them through cPanel. Pass fix:true to enable the missing ones. Enabling is additive (nothing already on is removed), needs no PHP restart and causes no downtime.",
41424
+ inputSchema: {
41425
+ fix: external_exports.boolean().optional().describe("Enable the missing extensions. Omit or false to only report what is missing.")
41426
+ },
41427
+ annotations: annotate("awesomate_php_extensions", MUTATING)
41428
+ },
41429
+ async ({ fix }) => {
41430
+ try {
41431
+ const config3 = requireConfig();
41432
+ return textResult(
41433
+ fix ? await hubPost(config3, "/api/client-hosting/php-extensions", {}) : await hubGet(config3, "/api/client-hosting/php-extensions")
41434
+ );
41435
+ } catch (err) {
41436
+ return errorResult(err);
41437
+ }
41438
+ }
41439
+ );
41419
41440
  readTool(
41420
41441
  "awesomate_list_sites",
41421
41442
  "All WordPress sites on the hosting account: canonical domain, URL, title, WP version, SSL state, install date.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awesomate/hosting-mcp",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "description": "Awesomate MCP server — lets Claude manage your Awesomate WordPress hosting, plan, limits, n8n automations, and build Node/static apps + databases",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",