@awesomate/hosting-mcp 0.1.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 ADDED
@@ -0,0 +1,48 @@
1
+ # @awesomate/hosting-mcp
2
+
3
+ MCP server that lets Claude read (and, in later releases, manage) your
4
+ Awesomate WordPress hosting: provisioning status, sites, domains, plan,
5
+ limits, and upgrade nudges.
6
+
7
+ ## Setup
8
+
9
+ The intended path is the **Connect Claude Code** card on
10
+ [hub.awesomate.ai/sites](https://hub.awesomate.ai/sites): it generates a
11
+ one-time prompt that has Claude run the bundled `skill/awesomate-hosting/scripts/bootstrap.mjs`,
12
+ which redeems a setup code for a scoped access token (stored at
13
+ `~/.awesomate/credentials.json`, chmod 600), provisions an SSH key
14
+ (Support Plus+), and registers this server. The **`awesomate-hosting` skill**
15
+ (bundled under `skill/`) makes Claude plan-aware and enforces snapshot-before-change.
16
+
17
+ Manual registration:
18
+
19
+ ```bash
20
+ claude mcp add awesomate-hosting --env AWESOMATE_PAT=amt_pat_... -- npx -y @awesomate/hosting-mcp
21
+ ```
22
+
23
+ Config resolution: `AWESOMATE_PAT` / `AWESOMATE_API_BASE` env vars, falling
24
+ back to `~/.awesomate/credentials.json` (`{ "pat": "...", "apiBase": "..." }`).
25
+
26
+ ## Tools (v0.1 — read-only)
27
+
28
+ | Tool | What it returns |
29
+ |---|---|
30
+ | `awesomate_get_context` | Plan, capabilities, scopes, token expiry, cPanel routing |
31
+ | `awesomate_get_hosting_status` | Provisioning state, primary domain, DNS targets |
32
+ | `awesomate_get_hosting_account` | cPanel package/server details |
33
+ | `awesomate_list_sites` | WordPress sites with SSL/WP-version state |
34
+ | `awesomate_list_domains` | Included + custom domains, DNS/SSL state |
35
+ | `awesomate_get_limits` | Usage vs plan limits + upgrade nudges |
36
+ | `awesomate_get_plan_features` | Static plan-ladder reference |
37
+
38
+ Access tokens are plan-scoped server-side: what the token can do always
39
+ reflects the account's **live** plan. Tokens are revocable from the hub Sites
40
+ page.
41
+
42
+ ## Development
43
+
44
+ ```bash
45
+ npm install
46
+ npm run typecheck
47
+ npm run build # esbuild bundle → dist/index.js (single file, no runtime deps)
48
+ ```