@awesomate/hosting-mcp 0.172.61 → 0.172.66
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 +11 -3
- package/dist/index.js +46 -25
- package/package.json +1 -1
- package/skill/CHANGELOG.json +20 -15
- package/skill/awesomate-credentials/scripts/secret-drop.mjs +55 -9
- package/skill/awesomate-email/SKILL.md +11 -1
- package/skill/awesomate-hosting/references/connect-troubleshooting.md +39 -14
- package/skill/awesomate-hosting/references/multi-account.md +9 -0
- package/skill/awesomate-hosting/scripts/bootstrap.mjs +371 -79
- package/skill/awesomate-hosting/scripts/muse-client.py +212 -0
- package/skill/awesomate-hosting/scripts/muse.mjs +537 -0
- package/skill/awesomate-hosting/scripts/profiles.mjs +115 -0
- package/skill/awesomate-n8n/references/awesomate-node.md +3 -0
|
@@ -122,7 +122,17 @@ There are two kinds, and a list's kind never changes:
|
|
|
122
122
|
with regularly, about work they do for them, with no offers. People reach
|
|
123
123
|
it when the owner says, while reviewing an import, that everyone with a
|
|
124
124
|
given tag is that kind of customer. That statement is recorded with their
|
|
125
|
-
name and the time.
|
|
125
|
+
name and the time. Where the account has lists that fill from a tag, an
|
|
126
|
+
Owner can also set a customers list to fill from a tag for good: everyone
|
|
127
|
+
tagged now and later joins (each list in `awesomate_crm_lists` carries
|
|
128
|
+
`tag_rules`). You can't set one. When the owner says everyone with a tag is
|
|
129
|
+
a current customer they work with regularly, run
|
|
130
|
+
`awesomate_crm_lists {action:'tag_rule_preview', key, tag}`, tell them the
|
|
131
|
+
counts, and on their yes suggest it with
|
|
132
|
+
`awesomate_crm_lists_change {action:'propose_tag_rule', key, tag}`. A
|
|
133
|
+
suggestion changes nothing: the Owner sets it on the list in the hub
|
|
134
|
+
(`review_url`). Never suggest it for one-off customers or anyone the
|
|
135
|
+
business doesn't work with regularly.
|
|
126
136
|
|
|
127
137
|
The wording rules:
|
|
128
138
|
|
|
@@ -9,7 +9,7 @@ No `awesomate_*` tools registered in the session at all →
|
|
|
9
9
|
|
|
10
10
|
`scripts/bootstrap.mjs` is what the hub's Connect-Claude-Code prompt executes,
|
|
11
11
|
via `npx -y --package=@awesomate/hosting-mcp awesomate-hosting-bootstrap`.
|
|
12
|
-
Always the `--package=` form
|
|
12
|
+
Always the `--package=` form: a bare `-p` breaks the claude CLI's argv
|
|
13
13
|
pre-scan if the command is ever wrapped in `claude mcp add`. It redeems the
|
|
14
14
|
hub setup code for a scoped access token, stores it locally (chmod 600),
|
|
15
15
|
installs this skill into `~/.claude/skills`, registers the MCP server, and
|
|
@@ -19,11 +19,36 @@ skill + MCP are still set up.
|
|
|
19
19
|
|
|
20
20
|
## Reading the connect result
|
|
21
21
|
|
|
22
|
-
The bootstrap prints
|
|
23
|
-
`PARTIAL … issues=…` / `FAILED reason=…`)
|
|
24
|
-
`!` bang command,
|
|
25
|
-
silence.
|
|
26
|
-
|
|
22
|
+
The bootstrap prints an `AWESOMATE CONNECT: SUCCESS account=<slug>` (or
|
|
23
|
+
`PARTIAL … issues=…` / `FAILED reason=…`) result line. When a connect ran as a
|
|
24
|
+
`!` bang command, look for that line instead of assuming success from
|
|
25
|
+
silence. It is the last line, and the line just before it is `Active Awesomate
|
|
26
|
+
account here: <slug> (why). Also saved on this computer: …`. A `--update`, which
|
|
27
|
+
has no result line, ends with that account line. `PARTIAL` means the token and pin are stored but a step (listed in
|
|
28
|
+
`issues=`) needs the printed manual fix. The issues added with Muse:
|
|
29
|
+
|
|
30
|
+
- `verify-hub`: the closing check could not read the account back from the hub
|
|
31
|
+
with the saved key. Run `awesomate_whoami`; if it fails too, connect again.
|
|
32
|
+
- `muse-agents-md` (a warning, never in `issues=`): Muse was found but there is
|
|
33
|
+
no `~/AGENTS.md` for the Awesomate rule. The connect never creates that file on
|
|
34
|
+
its own: run it again with `--muse`. The run still ends `SUCCESS`.
|
|
35
|
+
- `muse-router`: the router skill (`~/workspace/custom-skills/awesomate/`) does
|
|
36
|
+
not list every installed area skill. Run the connect or `--update` again.
|
|
37
|
+
- `muse-files`: the router, `skill.yaml` or the connector guide could not be
|
|
38
|
+
written, or a connector guide that is there could not be read (it is then
|
|
39
|
+
left as it is). The lines marked ✗ above name the file.
|
|
40
|
+
- `muse-no-skills`: no `awesomate-*` area skills were found to list.
|
|
41
|
+
- `verify-muse-router`, `verify-muse-connector`, `verify-muse-agents-md`: the
|
|
42
|
+
closing check read the router, the connector guide or the `~/AGENTS.md` rule
|
|
43
|
+
back from disk and did not find it. `verify-muse-agents-md` appears only when
|
|
44
|
+
`~/AGENTS.md` exists but has no rule; a missing file is the warning above.
|
|
45
|
+
|
|
46
|
+
`--switch <slug>` ends with `AWESOMATE SWITCH: SUCCESS account=<slug>` (or
|
|
47
|
+
`PARTIAL`/`FAILED reason=…`), read the same way. `issues=overridden` means the
|
|
48
|
+
switch is written but `AWESOMATE_ACCOUNT`, `AWESOMATE_PAT` or a pin file still
|
|
49
|
+
chooses another account here; the line marked ! names which. On `--update`, every
|
|
50
|
+
Muse issue above fails the run (exit 1) except `muse-agents-md`, which is a
|
|
51
|
+
warning.
|
|
27
52
|
|
|
28
53
|
`FAILED reason=profile-belongs-to-someone-else` means this computer is already
|
|
29
54
|
connected to the same account as a different person (an owner and a team member
|
|
@@ -36,7 +61,7 @@ Account, Your Claude Code.
|
|
|
36
61
|
## Sandboxed / ephemeral environments (cloud agent containers)
|
|
37
62
|
|
|
38
63
|
- **Egress proxy**: if `HTTPS_PROXY`/`HTTP_PROXY` is set, the environment
|
|
39
|
-
forces traffic through a proxy that Node's built-in fetch ignores
|
|
64
|
+
forces traffic through a proxy that Node's built-in fetch ignores, so requests
|
|
40
65
|
bypass it and the gateway answers 403, which looks like a bad code/token but
|
|
41
66
|
is a transport failure. The bootstrap and MCP server handle this themselves
|
|
42
67
|
(undici env-proxy agent); if an older version is in play, prefix commands
|
|
@@ -55,34 +80,34 @@ Account, Your Claude Code.
|
|
|
55
80
|
diagnosis/test, and tell the user a real workstation is needed for a lasting
|
|
56
81
|
install.
|
|
57
82
|
- **No ssh client**: containers usually lack `ssh-keygen`/`ssh`, so deploy and
|
|
58
|
-
shell are unavailable
|
|
83
|
+
shell are unavailable; reads and management calls still work. The bootstrap
|
|
59
84
|
skips SSH with a note rather than failing.
|
|
60
|
-
- Never probe connectivity with a POST to `/redeem
|
|
85
|
+
- Never probe connectivity with a POST to `/redeem`: it's state-changing. Use
|
|
61
86
|
`GET {apiBase}/api/hosting-access/context` (401 without a token still proves
|
|
62
87
|
reachability).
|
|
63
88
|
|
|
64
89
|
## When you're stuck: generate a support report
|
|
65
90
|
|
|
66
91
|
If a connect or tool failure survives the documented fixes (wrong account,
|
|
67
|
-
proxy, resume, restart, legacy registrations), don't keep guessing
|
|
92
|
+
proxy, resume, restart, legacy registrations), don't keep guessing: hand
|
|
68
93
|
Awesomate a diagnostic they can act on:
|
|
69
94
|
|
|
70
95
|
1. Run `node ~/.claude/skills/awesomate-hosting/scripts/support-report.mjs
|
|
71
96
|
--note "<one line: what the user was doing and what happened>"`.
|
|
72
97
|
It writes a **fully redacted** report to
|
|
73
|
-
`~/.awesomate/support-report-<timestamp>.md
|
|
98
|
+
`~/.awesomate/support-report-<timestamp>.md`, tokens reduced to
|
|
74
99
|
prefix+last4, no key material, proxy credentials stripped. It includes
|
|
75
100
|
versions, profiles/pin/registration state, live connectivity probes, and
|
|
76
101
|
the last bootstrap log automatically.
|
|
77
102
|
2. Show the user the file path and the headline findings (the ACTIVE line,
|
|
78
103
|
any ⚠ LEGACY registration flags, and the probe results).
|
|
79
104
|
3. **Ask the user before submitting.** With their OK, re-run with `--submit`
|
|
80
|
-
|
|
81
|
-
`ASR-XXXXXXXX
|
|
105
|
+
(it POSTs the report to Awesomate and returns a reference like
|
|
106
|
+
`ASR-XXXXXXXX`). Tell the user to quote that reference to
|
|
82
107
|
support@awesomate.ai or their Awesomate contact; the report is already
|
|
83
108
|
attached to it server-side. Submission works even when the token is
|
|
84
109
|
broken (that's usually why you're here).
|
|
85
|
-
4. If `--submit` fails too (fully offline), the user emails the file itself
|
|
110
|
+
4. If `--submit` fails too (fully offline), the user emails the file itself:
|
|
86
111
|
it's safe to send as-is.
|
|
87
112
|
|
|
88
113
|
Never edit the report to add raw tokens, codes, or keys, and never submit
|
|
@@ -33,6 +33,15 @@ whoami result.
|
|
|
33
33
|
set `AWESOMATE_ACCOUNT`. Don't guess an account for the user.
|
|
34
34
|
- Connecting a second account never disconnects the first; re-pairing an
|
|
35
35
|
account just refreshes its profile.
|
|
36
|
+
- **Folder moved to the wrong account by a connect?** The connect printed
|
|
37
|
+
`! This folder used the account "<old>" before this run` with the command
|
|
38
|
+
to switch back. With the user's yes, run it from that folder:
|
|
39
|
+
`npx -y --package=@awesomate/hosting-mcp awesomate-hosting-bootstrap --switch <old>`.
|
|
40
|
+
It uses the key already saved (no new code), rewrites the pin, and reads
|
|
41
|
+
the account back from the hub. Then restart, and check `awesomate_whoami`.
|
|
42
|
+
- Every connect, refresh and switch names `Active Awesomate account here:
|
|
43
|
+
<slug> (...)` and the other accounts saved, just before its result line (at
|
|
44
|
+
the end of a refresh). Read that line back to the user.
|
|
36
45
|
|
|
37
46
|
## Writes need a chosen account
|
|
38
47
|
|