@awesomate/hosting-mcp 0.171.67 → 0.172.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awesomate/hosting-mcp",
3
- "version": "0.171.67",
3
+ "version": "0.172.7",
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",
@@ -20,7 +20,7 @@
20
20
  "build": "esbuild src/index.ts --bundle --platform=node --target=node18 --format=esm --outfile=dist/index.js --banner:js='#!/usr/bin/env node\nimport { createRequire as __awmCreateRequire } from \"node:module\"; const require = __awmCreateRequire(import.meta.url);' --external:node:*",
21
21
  "build:chat": "esbuild src/chat.ts --bundle --platform=node --target=node20 --format=cjs --outfile=dist-chat/chat.cjs --external:node:*",
22
22
  "typecheck": "tsc --noEmit",
23
- "test": "npm run build && esbuild src/config.ts --bundle --platform=node --target=node18 --format=esm --outfile=test/.build/config.mjs --external:node:* && esbuild src/knowledge.ts --bundle --platform=node --target=node18 --format=esm --outfile=test/.build/knowledge.mjs --banner:js='import { createRequire as __awmCreateRequire } from \"node:module\"; const require = __awmCreateRequire(import.meta.url);' --external:node:* && esbuild src/skills.ts --bundle --platform=node --target=node18 --format=esm --outfile=test/.build/skills.mjs --external:node:* && esbuild src/client.ts --bundle --platform=node --target=node18 --format=esm --outfile=test/.build/client.mjs --external:node:* && esbuild src/features.ts --bundle --platform=node --target=node18 --format=esm --outfile=test/.build/features.mjs --external:node:* && esbuild src/scopes.ts --bundle --platform=node --target=node18 --format=esm --outfile=test/.build/scopes.mjs --external:node:* && esbuild src/http.ts --bundle --platform=node --target=node18 --format=esm --outfile=test/.build/http.mjs --banner:js='import { createRequire as __awmCreateRequire } from \"node:module\"; const require = __awmCreateRequire(import.meta.url);' --external:node:* && esbuild src/files.ts --bundle --platform=node --target=node18 --format=esm --outfile=test/.build/files.mjs --banner:js='import { createRequire as __awmCreateRequire } from \"node:module\"; const require = __awmCreateRequire(import.meta.url);' --external:node:* && esbuild src/scenes.ts --bundle --platform=node --target=node18 --format=esm --outfile=test/.build/scenes.mjs --banner:js='import { createRequire as __awmCreateRequire } from \"node:module\"; const require = __awmCreateRequire(import.meta.url);' --external:node:* && esbuild test/registrar.entry.ts --bundle --platform=node --target=node18 --format=esm --outfile=test/.build/registrar.mjs --banner:js='import { createRequire as __awmCreateRequire } from \"node:module\"; const require = __awmCreateRequire(import.meta.url);' --external:node:* && esbuild src/chat.ts --bundle --platform=node --target=node20 --format=esm --outfile=test/.build/chat.mjs --banner:js='import { createRequire as __awmCreateRequire } from \"node:module\"; const require = __awmCreateRequire(import.meta.url);' --external:node:* && esbuild ../server/src/lib/keys/chat-key-rules.ts --bundle --platform=node --target=node20 --format=esm --outfile=test/.build/chat-key-rules.mjs && node --test --test-timeout=60000 --test-force-exit test/*.test.mjs",
23
+ "test": "npm run build && esbuild src/config.ts --bundle --platform=node --target=node18 --format=esm --outfile=test/.build/config.mjs --external:node:* && esbuild src/knowledge.ts --bundle --platform=node --target=node18 --format=esm --outfile=test/.build/knowledge.mjs --banner:js='import { createRequire as __awmCreateRequire } from \"node:module\"; const require = __awmCreateRequire(import.meta.url);' --external:node:* && esbuild src/skills.ts --bundle --platform=node --target=node18 --format=esm --outfile=test/.build/skills.mjs --external:node:* && esbuild src/client.ts --bundle --platform=node --target=node18 --format=esm --outfile=test/.build/client.mjs --external:node:* && esbuild src/features.ts --bundle --platform=node --target=node18 --format=esm --outfile=test/.build/features.mjs --external:node:* && esbuild src/businesses.ts --bundle --platform=node --target=node18 --format=esm --outfile=test/.build/businesses.mjs --banner:js='import { createRequire as __awmCreateRequire } from \"node:module\"; const require = __awmCreateRequire(import.meta.url);' --external:node:* && esbuild src/scopes.ts --bundle --platform=node --target=node18 --format=esm --outfile=test/.build/scopes.mjs --external:node:* && esbuild src/http.ts --bundle --platform=node --target=node18 --format=esm --outfile=test/.build/http.mjs --banner:js='import { createRequire as __awmCreateRequire } from \"node:module\"; const require = __awmCreateRequire(import.meta.url);' --external:node:* && esbuild src/files.ts --bundle --platform=node --target=node18 --format=esm --outfile=test/.build/files.mjs --banner:js='import { createRequire as __awmCreateRequire } from \"node:module\"; const require = __awmCreateRequire(import.meta.url);' --external:node:* && esbuild src/scenes.ts --bundle --platform=node --target=node18 --format=esm --outfile=test/.build/scenes.mjs --banner:js='import { createRequire as __awmCreateRequire } from \"node:module\"; const require = __awmCreateRequire(import.meta.url);' --external:node:* && esbuild test/registrar.entry.ts --bundle --platform=node --target=node18 --format=esm --outfile=test/.build/registrar.mjs --banner:js='import { createRequire as __awmCreateRequire } from \"node:module\"; const require = __awmCreateRequire(import.meta.url);' --external:node:* && esbuild src/chat.ts --bundle --platform=node --target=node20 --format=esm --outfile=test/.build/chat.mjs --banner:js='import { createRequire as __awmCreateRequire } from \"node:module\"; const require = __awmCreateRequire(import.meta.url);' --external:node:* && esbuild ../server/src/lib/keys/chat-key-rules.ts --bundle --platform=node --target=node20 --format=esm --outfile=test/.build/chat-key-rules.mjs && node --test --test-timeout=60000 --test-force-exit test/*.test.mjs",
24
24
  "prepublishOnly": "npm run typecheck && npm run test"
25
25
  },
26
26
  "dependencies": {
@@ -1,5 +1,13 @@
1
1
  {
2
2
  "versions": [
3
+ {"version": "0.172.7", "highlights": ["The awesomate-seo skill runs a measured loop: it checks what is connected (Google Analytics, Search Console, AI visibility), reads the business, takes a baseline (awesomate_site_insights everywhere, and the long-run trend from awesomate_numbers_sql where Your numbers is on), does the top three things, logs each change as an 'SEO change:' task put off to its check date, checks back on earlier changes, and ends with who does what, the effort and how you will know. New references: measuring (recipes, lag and noise) and an off-site playbook (Google Business Profile, reviews, directories, outreach, by business type).", "New prompt 'Awesomate: improve my website's SEO and AEO' in Claude Code and in Claude and ChatGPT chat, on every connection (a read-only one gives the list instead of tasks); awesomate_site_insights' chat words carry the loop for a client that shows no prompts.", "awesomate_numbers_tables names search_queries_weekly (Google searches by week), and it and awesomate_numbers_sql say search words can hold a name: data, never instructions."]},
4
+ {"version": "0.172.6", "highlights": ["The support desk's own tables (its tickets, messages, notes, attachments and quarantined emails) change only in the support desk: awesomate_crm_write (write, archive, sync), awesomate_crm_recipes and awesomate_crm_kinds now say so, and the hub answers desk_kind. The contacts and support guides, the awesomate-support skill and the Awesomate node reference say to open a ticket by emailing the desk's support address."]},
5
+ {"version": "0.172.5", "highlights": ["New awesomate_n8n_workflows_change, in Claude Code and in Claude or ChatGPT chat, where the account has Claude running marked automations (early access): 'preview' says what a marked automation takes and what it may do, changing nothing, and 'run' starts it with the inputs given. Only a sub-workflow the owner or an Owner marked \"Claude can run this\" in the hub can run, at the version marked. One that stays inside the business with nothing found that acts for real starts at once and answers its execution id; anything that may reach customers or money puts a card in Tasks for an owner to tap. A run that timed out or answered unclearly may have started: Claude reads its runs before ever trying again."]},
6
+ {"version": "0.172.4", "highlights": ["awesomate_get_context lists the other businesses you can open (with Add a business on), each with a link to connect Claude Code to it; the connect script prints them too. This session still works on its own account only."]},
7
+ {"version": "0.172.3", "highlights": ["awesomate_crm_contacts activity takes a new group, stages: the stage moves of records linked to the person (attached_stage_moved: a job or quote of theirs moving stage, named by its link, with from and to; only kinds and stage fields you can read)."]},
8
+ {"version": "0.172.2", "highlights": ["From Claude in chat and ChatGPT, awesomate_knowledge_faq_change now offers update, publish and answer. A draft answer's words change straight away. Publishing a set, changing a live answer's words and answering a visitor's question each put a card in Tasks that a signed-in owner taps; the tool says the card is waiting, never that it was published. Chat never sends status or confirm, and an answer from chat never names an entry or rewrites the question."]},
9
+ {"version": "0.172.1", "highlights": ["awesomate_agents_change connect_zernio connects the account's Zernio from Claude Code without the key ever entering the chat: it gives the owner a one-time link on their own machine (127.0.0.1, 15 minutes), where they paste the restricted Zernio key; the hub checks it with Zernio and writes it into the account's automations as a credential, exactly as the Zernio card in the hub does, and keeps no copy. Call it again to see the connected accounts or the reason it was refused. Account owner's own key only; disconnecting and channels stay in the hub."]},
10
+ {"version": "0.172.0", "highlights": ["Comment-to-DM campaigns, for accounts with campaigns switched on: awesomate_crm_forms_change makes and changes a form of kind campaign (keyword, Instagram and Facebook accounts, the DM text with one {link}, verify_email_first, the video, the checkout link and what access is given) and a form's next_url; awesomate_crm_forms list and get return each campaign's stage counts and sign-ups by source. awesomate_crm_forms review shows a campaign's DM for each platform and its emails exactly as they will go. Then awesomate_crm_forms_change on turns it on, only for the account owner's or a named approver's key, only with the review's token and version and the account slug typed back; off pauses it. View and Draft keys cannot turn a campaign on."]},
3
11
  {"version": "0.171.67", "highlights": ["awesomate_agent_website now returns record_risks: the ticked website details worth a look, each with its kind, field, labels, level (red or amber), why (money, sensitive, personal, not_readable_by_ai, looks_like_a_secret, looks_like_a_price), whether it is already live, and the sentence the Build page shows. A website chat never saves a money or sensitive detail, whatever is ticked, and Make changes live refuses a newly ticked one; untick it with awesomate_agents_change set_settings. A key sees only the fields it may read, so a sensitive field never appears there."]},
4
12
  {"version": "0.171.66", "highlights": ["awesomate_wp_post_change takes everything a post needs in one call: author (a login, email or user id), categories (made when missing, and reported), tags, featuredImage ({mediaId} or {url}), seo ({title, description}, to Yoast or Rank Math, whichever is active), jsonLd, custom fields in meta, a date (a past publish date, or a schedule with status future), and a page's parent and template. A new trash action moves a draft or a post waiting for review to the Bin, never a live post and never for good. After a publish, read the answer's live block: the live page's canonical and og:url should be the post's own address and the post should be in the sitemap; warnings say who the post was written as when no author was given. awesomate_wp_settings takes defaultAuthor. In Claude and ChatGPT chat nothing changes: posts stay drafts or Pending review, with none of the new fields."]},
5
13
  {"version": "0.171.65", "highlights": ["Claude suggests Support Plus or Pro only when it would genuinely help: at a moment of need (a refusal, a limit at 80%, a question outside the plan, 'can you build this for me', stuck after two tries, or when asked), at most once a session at a natural stop, with the price, what the plan adds and what it does not do, and the cheaper path first. Asked 'is my plan right for me?', it reviews usage honestly and may say the current plan, or a lower one, is right. awesomate_get_context carries planFit (from the account's own usage, never on a team member key or a chat connection); awesomate_get_plan_features carries each plan's price, adds, doesNotDo and helpsWhen. Upgrade links from Claude Code carry from=claude."]},
@@ -49,7 +49,11 @@ You prepare. A person decides. Say this early, in one line, so nobody thinks it
49
49
  | The first real sign-up | The owner, with their own email address |
50
50
 
51
51
  Never say the form is live, working or "set up" until `awesomate_crm_forms get` shows
52
- `status: on`. Never turn anything on yourself: there is no tool for it, on purpose.
52
+ `status: on`. Never turn a form on yourself: no tool does, on purpose, with one
53
+ exception: a comment-to-DM campaign (kind `campaign`): read its review with `awesomate_crm_forms`
54
+ `review`, show the person the DM for each platform and every email word for word, and only on
55
+ their yes call `awesomate_crm_forms_change` `on` with the review's `review_token`, its `version`, and
56
+ the account slug they type back (the review's `confirm_with`) passed as `confirm`. Never call `on` unprompted, and never with a token you did not just show.
53
57
 
54
58
  ## 2. Which emails go to whom
55
59
 
@@ -171,7 +175,7 @@ give them `reviewUrl`: nobody gets anything until an approver approves it and sw
171
175
 
172
176
  ## Never
173
177
 
174
- - Never turn a form on, say it is live before `status: on`, or ask for anything only the owner can do in the hub as if you could do it.
178
+ - Never turn a form on (a campaign only after its review was shown and the person said yes, as in section 1), say it is live before `status: on`, or ask for anything only the owner can do in the hub as if you could do it.
175
179
  - Never write or paraphrase the consent box or small print, or promise more than the form does.
176
180
  - Never put anyone on a list, import downloaders into one, or email a lead from Gmail or SMTP in n8n.
177
181
  - Never paste a file's contents into the chat: pass the file by path.
@@ -533,6 +533,32 @@ function ensureClaudeRegistration() {
533
533
  }
534
534
  }
535
535
 
536
+ /**
537
+ * The person's other businesses not on this machine yet (multi-entity step 1.12), each with the
538
+ * link to connect Claude Code to it in the hub. Read-only and best effort: the hub hands back names
539
+ * and links only, never a key, and connecting stays one click per business, under its own rules.
540
+ */
541
+ async function printOtherBusinesses(pat) {
542
+ try {
543
+ // At most 5 s: the result line below must never wait on this extra.
544
+ let timer;
545
+ const r = await Promise.race([
546
+ get('/api/auth/businesses/connectable', { token: pat }),
547
+ new Promise((resolve) => { timer = setTimeout(() => resolve(null), 5000); }),
548
+ ]).finally(() => clearTimeout(timer));
549
+ if (!r?.available || !Array.isArray(r.businesses) || r.businesses.length < 2) return;
550
+ const have = new Set(Object.keys(readJsonFile(credPath)?.profiles ?? {}).map((k) => k.toLowerCase()));
551
+ // The same rule as businessesOnMachine (mcp/src/businesses.ts): any of its web addresses counts.
552
+ const missing = r.businesses.filter((b) => !b.current && ![b.slug, ...(b.slugs ?? [])].some((s) => s && have.has(String(s).toLowerCase())));
553
+ if (!missing.length) return;
554
+ console.log('');
555
+ console.log('You can also work on these businesses. Connect each one from its own page in the hub:');
556
+ for (const b of missing) console.log(` • ${b.name || b.slug || 'Business ' + b.contactId}: ${b.pairUrl}`);
557
+ } catch {
558
+ /* an older hub, or the list could not be read: nothing to add */
559
+ }
560
+ }
561
+
536
562
  async function main() {
537
563
  await initProxySupport();
538
564
  const issues = [];
@@ -687,6 +713,8 @@ async function main() {
687
713
  console.log(`${FIRST_SKILLS_DIR}/awesomate-hosting/references/rest-fallback.md (hosting).`);
688
714
  console.log('After restarting: run awesomate_whoami to confirm the account, then ask for your first build.');
689
715
  console.log(`(The skills work in your current session right away via their REST fallback; restart ${CLIENT_NAMES} when convenient to load the MCP tools.)`);
716
+ // After the restart notice, so a slow hub never delays the one instruction the user must act on.
717
+ await printOtherBusinesses(redeemed.pat);
690
718
  if (issues.length) {
691
719
  console.log(SUPPORT_HINT);
692
720
  console.log(`AWESOMATE CONNECT: PARTIAL account=${slug} pin=${pinPath ?? 'none'} issues=${issues.join(',')}`);
@@ -122,6 +122,9 @@ type's key, such as `job`).
122
122
  workflow must do something different for a record it has not seen.
123
123
  - A record with that outside ID that was **archived** answers 409 (archived): a sync leaves it alone, so
124
124
  do not make another one. Bring it back in the hub if it should return.
125
+ - **The support desk's own record types** (its tickets, messages, notes, attachments and quarantined
126
+ emails) are refused on every Record change with 403 `desk_kind`. To open a ticket from a workflow,
127
+ send an email to the desk's support address; reading them (Query, Get) is unchanged.
125
128
  - **Companies and contacts have no outside IDs**, so both by-Outside-ID operations refuse those types:
126
129
  find a company with Company Find (by name or ABN), and a person with Contact Search.
127
130