@awesomate/hosting-mcp 0.151.1 → 0.157.1

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 (28) hide show
  1. package/README.md +18 -0
  2. package/dist/index.js +912 -433
  3. package/package.json +3 -2
  4. package/skill/CHANGELOG.json +60 -0
  5. package/skill/awesomate-app-builder/SKILL.md +1 -1
  6. package/skill/awesomate-database/SKILL.md +26 -0
  7. package/skill/awesomate-email/SKILL.md +4 -1
  8. package/skill/awesomate-funnels/SKILL.md +1 -1
  9. package/skill/awesomate-funnels/references/lead-magnet.md +2 -2
  10. package/skill/awesomate-funnels/references/webinar.md +2 -2
  11. package/skill/awesomate-hosting/SKILL.md +17 -13
  12. package/skill/awesomate-knowledge/SKILL.md +18 -18
  13. package/skill/awesomate-knowledge/evals/deploy-chat-agent/graders/grader.md +1 -1
  14. package/skill/awesomate-knowledge/evals/out-of-scope-honesty/graders/grader.md +1 -1
  15. package/skill/awesomate-knowledge/references/citations-and-grounding.md +7 -4
  16. package/skill/awesomate-knowledge/references/faqs.md +8 -6
  17. package/skill/awesomate-knowledge/references/from-your-files.md +13 -11
  18. package/skill/awesomate-knowledge/references/n8n-connection.md +3 -2
  19. package/skill/awesomate-knowledge/references/people-and-entities.md +2 -1
  20. package/skill/awesomate-knowledge/references/showing-media.md +13 -5
  21. package/skill/awesomate-n8n/SKILL.md +4 -3
  22. package/skill/awesomate-n8n/references/awesomate-node.md +2 -2
  23. package/skill/awesomate-n8n/references/n8n-agents.md +1 -1
  24. package/skill/awesomate-n8n/references/staff-alerts.md +1 -1
  25. package/skill/awesomate-n8n/references/troubleshooting.md +1 -1
  26. package/skill/awesomate-onebrain/SKILL.md +10 -5
  27. package/skill/awesomate-seo/SKILL.md +6 -6
  28. package/skill/awesomate-support/SKILL.md +1 -1
@@ -6,10 +6,10 @@ it in chat or embedding it in something that has to keep working.
6
6
 
7
7
  ## Getting the URL
8
8
 
9
- `awesomate_knowledge_ask` citations do **not** carry media URLs — they return
10
- `{ref, title, kind, section_path, locator, url, excerpt}`. When a citation's
11
- `kind` is `image`, `video` or `audio` and the user wants to see it, follow up
12
- with a search:
9
+ `awesomate_knowledge_ask` citations do **not** carry media URLs. They return
10
+ `{ref, title, kind, locator, url}`, plus `watch_url` on a video anyone can
11
+ watch (below). When a citation's `kind` is `image`, `video` or `audio` and the
12
+ user wants to see it, follow up with a search:
13
13
 
14
14
  ```
15
15
  awesomate_knowledge_search { q: "<the cited title>", kind: "image", include_media: true }
@@ -59,7 +59,7 @@ and an embed code for a website. It is off by default: the video must be
59
59
  video's page, or through Claude).
60
60
 
61
61
  ```
62
- awesomate_knowledge_sources { action: "share_video", sourceId: "<video source id>", title: "<its title>" }
62
+ awesomate_knowledge_sources_change { action: "share_video", sourceId: "<video source id>", title: "<its title>" }
63
63
  ```
64
64
 
65
65
  answers `{enabled, watchable, link, embed}`. `link` is the player page (on the
@@ -67,6 +67,13 @@ account's own `links.` address when it sends email from its own domain);
67
67
  `embed` is an iframe of it, safe to paste into a website. Both are null until
68
68
  the video is shared.
69
69
 
70
+ When an answer cites a moment in a shared video, that source carries
71
+ `watch_url`: the same player page, opened at the cited second
72
+ (`.../v/<id>?t=612`). It is a permanent address like `link`, never a signed
73
+ one, so it is safe in a page, a reply email or an n8n chat. Show it as "Watch
74
+ from 10:12". A video that is not shared (or not Public, or switched off) never
75
+ has one, and stops playing the moment that changes.
76
+
70
77
  To switch it on, explain that anyone with the link can watch the WHOLE video,
71
78
  then call again with `enabled: true` and `confirm` set to the account slug,
72
79
  only after the user agrees in so many words. A video that is not Public is
@@ -81,5 +88,6 @@ false` switches it off at once and needs no confirmation. `enabled` true with
81
88
  | "show me that photo" | search with `include_media`, display it |
82
89
  | "which images mention X" | search `kind:image`, list titles + show a few |
83
90
  | a video on a web page, in an email or a post | `share_video`: the permanent link or embed code (switching on needs the slug, after the user agrees) |
91
+ | the moment an answer cited, for anyone to watch | the source's `watch_url` (only on a shared video) |
84
92
  | a gallery page / a site section | resolve server-side per request, or re-host the assets; never embed a presigned URL |
85
93
  | an n8n chat that returns images | have the workflow call the search endpoint at answer time and return fresh URLs in the reply |
@@ -86,7 +86,7 @@ as outcomes ("your form now emails you") with URLs.
86
86
  into the text you're building; don't build new workflows on `$vars.biz_*`,
87
87
  which are being replaced. Confirm anything marked *suggestion* first.
88
88
  For an agent that helps a role (the API says `job`) on the business
89
- map, add its `instructionLine` from `awesomate_business_map` action `job`.
89
+ map, add its `instructionLine` from `awesomate_business_map` action `role`.
90
90
 
91
91
  Read [references/platform-notes.md](references/platform-notes.md) BEFORE
92
92
  designing or diagnosing. It is the live truth for THIS platform ($vars not
@@ -133,7 +133,8 @@ the named node actually exists in the workflow before editing anything.
133
133
  | Executions list / detail / node-by-node debug | `awesomate_n8n_executions` |
134
134
  | Node schemas, node search, community templates, node-level validation | `awesomate_n8n_node_docs` |
135
135
  | **n8n Agents** (the Agents tab, n8n 2.41+, every plan): status, then create / edit / validate / test / publish / channels via n8n's own agent tools | `awesomate_n8n_agents` |
136
- | Awesomate's template library (Support Plus+): list, detail, install_plan (pauses on a missing credential), install, redeem, installs, activate, test, rollback | `awesomate_n8n_library` |
136
+ | Awesomate's template library: list, detail, install_plan (pauses on a missing credential), installs (read-only) | `awesomate_n8n_library` |
137
+ | Installing and running library templates (Support Plus+): install, redeem, activate, test, rollback | `awesomate_n8n_library_change` |
137
138
  | Book a session with the Awesomate team from their credits (session_types, slots, book, mine, invitations: sessions our team asked them to book, taken up with `invitation_id` on book) | `awesomate_book_session` |
138
139
  | Wire any production webhook URL on their n8n into one of their hosted apps (stores URL + secret on the app; returns the secret ONCE for the workflow's header check) | `awesomate_n8n_attach_to_app` |
139
140
  | Refresh these skills from the latest package | `awesomate_skill_update` |
@@ -286,7 +287,7 @@ loop: nothing is designed, the bundle is installed as curated.
286
287
  `ambiguous` needs their pick (`credential_choices`, type to credential id).
287
288
  - `blocked`: read `blockers` verbatim. A plan or consent block has a settings link; a
288
289
  connection block means their n8n key needs updating (see 0. First run).
289
- 4. `install`. Read `outcome`: `installed`, `already_present` (nothing changed; say so),
290
+ 4. `install` (on `awesomate_n8n_library_change`, like steps 5 and 6 and rollback). Read `outcome`: `installed`, `already_present` (nothing changed; say so),
290
291
  `failed` (read results[].error). Workflows land INACTIVE.
291
292
  5. `activate` (with their OK). A workflow answering `setup_incomplete` has an empty or
292
293
  missing credential named in `unresolved`; send them to fill it on their n8n
@@ -49,7 +49,7 @@ answered 401 on every run.
49
49
  |---|---|
50
50
  | A workflow step on contacts, companies, records, tasks, a decision, figures, the business or the Knowledge Base | **the Awesomate node** |
51
51
  | The node lacks that operation (an older n8n, or no node at all) | an **HTTP Request** node to the Hub Key route in the tables below: Authentication Predefined Credential Type, **Awesomate Hub** (or Generic Credential Type, Header Auth, **Awesomate Hub Key**), and header `X-Awesomate-Workflow: {{ $workflow.id }}` |
52
- | Claude's own change, outside any workflow | the MCP tools: `awesomate_crm_contacts`, `awesomate_crm_companies`, `awesomate_crm_rows`, `awesomate_crm_write`, `awesomate_tasks` |
52
+ | Claude's own change, outside any workflow | the MCP tools: `awesomate_crm_contacts`, `awesomate_crm_companies`, `awesomate_crm_rows`, `awesomate_crm_write`, `awesomate_tasks_change` |
53
53
  | An app or a script | the SDK |
54
54
 
55
55
  ## The node
@@ -220,7 +220,7 @@ workflow itself. The hub finds the agent's role from that workflow, and:
220
220
 
221
221
  - the workflow (or the agent) must be a helper on a role on the business map, or the hub answers
222
222
  "Put this agent on a role first, so someone looks after what it adds." Put it on a role
223
- (`awesomate_business_map` `propose` `helper.attach`; the owner applies) before you build the tool.
223
+ (`awesomate_business_map_change` `propose` `helper.attach`; the owner applies) before you build the tool.
224
224
  - it writes only figure names it owns: never a figure a collector, Contacts or a person added.
225
225
  - a figure far outside its own last 12 periods is not written. It waits, and the role's person gets a
226
226
  task to accept or reject it; the KPI shows "New figure to check".
@@ -12,7 +12,7 @@ Four different things get called an agent. Pick before building:
12
12
  | An assistant they set up once and talk to **in Slack, Telegram, Linear, Discord, Teams or n8n chat**, run **on a schedule**, or call from several workflows; it decides its own steps | **n8n Agent** (this file) | `awesomate_n8n_agents` |
13
13
  | A fixed trigger → steps → result, with an LLM as one step | Workflow with an AI Agent node | The n8n MCP server (SKILL.md §3) + [ai-agents.md](ai-agents.md) |
14
14
  | A website chat that answers ONLY from their content, with citations | Knowledge agent | awesomate-knowledge skill |
15
- | One of Awesomate's ready-made chat agents | Template bundle | `awesomate_n8n_library` |
15
+ | One of Awesomate's ready-made chat agents | Template bundle | `awesomate_n8n_library` (list, install_plan), then `awesomate_n8n_library_change` (install) |
16
16
 
17
17
  If the ask is a schedule with repeatable, enumerable steps, it is probably a
18
18
  workflow. Say so plainly and ask before building the other thing. Never
@@ -69,5 +69,5 @@ means Tasks is not on the account: stop and say so. A `400` names what was wrong
69
69
  ## Test it
70
70
 
71
71
  Run it once with the task for the user themselves (their own email in **For**) and ask them whether it
72
- arrived in their chat. Then drop the test task (`awesomate_tasks` `drop`, with their yes) and set the
72
+ arrived in their chat. Then drop the test task (`awesomate_tasks_change` `drop`, with their yes) and set the
73
73
  real person.
@@ -7,7 +7,7 @@ you have the failing execution's detail.
7
7
  ## Template installs or activation fail while reads work
8
8
 
9
9
  If reads and `awesomate_n8n_context` succeed but every hub WRITE (a template
10
- `install`, `activate` or `test` through `awesomate_n8n_library`) fails, the
10
+ `install`, `activate` or `test` through `awesomate_n8n_library_change`) fails, the
11
11
  cause is almost always the account's stored n8n API key: not the hub, not
12
12
  Cloudflare, not the template. Workflows you write through the n8n MCP server
13
13
  use its own MCP key, not this one, so a refusal there is the n8n server's own
@@ -12,7 +12,7 @@ developers. Use plain words: "your procedures in 1Brain", "your systems",
12
12
  never "MCP", "OAuth" or "JSON-RPC" unless they use them first.
13
13
 
14
14
  **Routing rule:** what 1Brain holds comes from 1Brain itself, read live:
15
- `awesomate_onebrain` in a chat, the 1Brain node in a workflow, or 1Brain's
15
+ `awesomate_onebrain` (reads) and `awesomate_onebrain_change` (links, drafts, onboarding) in a chat, the 1Brain node in a workflow, or 1Brain's
16
16
  own connector for the rarer writes (2d). Awesomate never keeps a copy. Never
17
17
  answer "what's our procedure for X" from memory or general knowledge.
18
18
 
@@ -75,16 +75,21 @@ Until they do, a connection reaches 1Brain's development server, not the
75
75
 
76
76
  | They want | Use |
77
77
  |---|---|
78
- | Claude to find a procedure, read a page, list a role's systems, place 1Brain Departments on the map, or save a draft procedure | **`awesomate_onebrain`** (2a) |
78
+ | Claude to find a procedure, read a page, list a role's systems, place 1Brain Departments on the map, or save a draft procedure | **`awesomate_onebrain`** to read, **`awesomate_onebrain_change`** to link, place or draft (2a, 2b) |
79
79
  | A workflow step that reads or writes 1Brain: a scheduled report, a form or email turned into an SOP draft, a sync | **The 1Brain node** with the hub-made "1Brain - <person>" credential (2c) |
80
80
  | An AI agent in their automations that answers from their procedures | **The 1Brain node as an agent tool** (`CUSTOM.oneBrainTool`: Page Search, then Page Get), on the credential of the person the agent answers to (2c) |
81
- | A 1Brain course for a role or for everyone joining, and starting someone's onboarding | **`awesomate_onebrain`** onboarding actions (5) |
82
- | Claude doing what `awesomate_onebrain` does not: writing quizzes, acknowledgements, tailoring, publishing | **1Brain's own Claude connector** (2d) |
81
+ | A 1Brain course for a role or for everyone joining, and starting someone's onboarding | **`awesomate_onebrain_change`** onboarding actions, read with `awesomate_onebrain` `onboarding` (5) |
82
+ | Claude doing what `awesomate_onebrain` and `awesomate_onebrain_change` do not: writing quizzes, acknowledgements, tailoring, publishing | **1Brain's own Claude connector** (2d) |
83
83
  | An AI agent that needs every 1Brain action, with no setup in the node | **MCP Client Tool** with n8n's own MCP OAuth2 credential (2e) |
84
84
  | Something done as the business rather than as a person | **Not possible yet.** Every 1Brain connection is a person |
85
85
 
86
86
  ### 2a. Claude looking things up: `awesomate_onebrain`
87
87
 
88
+ Reads are on `awesomate_onebrain`; every change (`map`, `link_role`,
89
+ `unlink_role`, `propose_draft` and the onboarding changes in 5) is on
90
+ `awesomate_onebrain_change`, which takes the same arguments. Sending a change
91
+ to the read tool is refused with a sentence naming the change tool.
92
+
88
93
  It reads 1Brain live through the 1Brain login of the person this key belongs
89
94
  to, so it sees exactly what they can see. Start with `status`: not connected
90
95
  means sending them to Settings, Integrations, 1Brain, and nothing else.
@@ -147,7 +152,7 @@ instances so far: check before designing around it (that reference says how).
147
152
 
148
153
  ### 2d. 1Brain's own Claude connector
149
154
 
150
- For what `awesomate_onebrain` does not do (writing quizzes and acknowledgements,
155
+ For what `awesomate_onebrain` and `awesomate_onebrain_change` do not do (writing quizzes and acknowledgements,
151
156
  sharing a course, tailoring, publishing), 1Brain has its own connector for Claude at
152
157
  `https://dev.1brain.io/mcp` (the development server, see above). The person
153
158
  adds it themselves:
@@ -33,7 +33,7 @@ confirms it, and list what's missing rather than inventing it.
33
33
  ### Plan gate — check before promising any WordPress change
34
34
 
35
35
  **Every PAT-authenticated hosting WRITE is Support Plus and above**:
36
- `awesomate_run_wp_cli`, `awesomate_wp_post`, `awesomate_wp_media_import`,
36
+ `awesomate_run_wp_cli`, `awesomate_wp_post_change`, `awesomate_wp_media_import`,
37
37
  `awesomate_wp_settings`, plus `awesomate_site_create` and
38
38
  `awesomate_domain_add`. On **Essentials** they all return **403
39
39
  `upgrade_required`** — the server enforces it, so no retry or rewording gets
@@ -119,7 +119,7 @@ Then, on Support Plus and above:
119
119
  Don't burn attempts discovering this at runtime.
120
120
  - Confirm the sitemap is live (`/sitemap_index.xml` or `/sitemap.xml`) and
121
121
  `robots.txt` references it — `curl` the live URLs.
122
- - **Posts and pages** via `awesomate_wp_post` (drafts first — the user
122
+ - **Posts and pages** via `awesomate_wp_post_change` (drafts first — the user
123
123
  approves publishing). Useful for the content pages that back up
124
124
  `llms.txt` — a services overview, an FAQ, an about page — when the site is
125
125
  thin on machine-readable substance.
@@ -149,7 +149,7 @@ On WordPress those three come from:
149
149
  - **`llms.txt`** — no plugin makes one. Either the user places the file over
150
150
  SSH or cPanel's File Manager (`scripts/ssh-connect.sh` in the hosting
151
151
  skill, Support Plus+), or you publish the same content as a normal page
152
- with `awesomate_wp_post` and link it — a real page is crawlable and
152
+ with `awesomate_wp_post_change` and link it — a real page is crawlable and
153
153
  editable, and gets most of the benefit.
154
154
 
155
155
  **You can always generate the content.** Write the exact `llms.txt` body,
@@ -242,9 +242,9 @@ The gates above say whether a page CAN be found. `awesomate_ai_visibility` says
242
242
  ChatGPT and Gemini apps actually name the business when its customers ask. Use it when the user
243
243
  asks "does ChatGPT recommend us", "are we showing up in AI", or after a round of fixes.
244
244
 
245
- - `action: "draft"` suggests up to 8 questions and the names to look for, from the business
245
+ - `awesomate_ai_visibility_change` `action: "draft"` suggests up to 8 questions and the names to look for, from the business
246
246
  details, when none are set yet. It saves nothing: talk them through, then send the owner to the
247
- hub to approve them. `action: "check_result"` {checkId} reads one check in full.
247
+ hub to approve them. `awesomate_ai_visibility` `action: "check_result"` {checkId} reads one check in full.
248
248
  - `action: "status"` returns the score (0 to 100, with a likely range), the questions where neither
249
249
  app named the business, who they named instead, and the sites the apps relied on.
250
250
  - **Fix from that evidence, in this order:**
@@ -256,7 +256,7 @@ asks "does ChatGPT recommend us", "are we showing up in AI", or after a round of
256
256
  questions from Google Maps.
257
257
  - **Do not promise a lift from schema or llms.txt.** Studies found none. They are good hygiene,
258
258
  not a visibility fix.
259
- - `action: "check"` starts a new check (about five minutes). Owner checks are limited to 3 per site
259
+ - `awesomate_ai_visibility_change` `action: "check"` starts a new check (about five minutes). Owner checks are limited to 3 per site
260
260
  per week, and sites the owner put on weekly checks are re-checked automatically: check again only after a
261
261
  real change, never to watch the number within a day.
262
262
  - **The owner approves the questions, in the hub, never you.** If `questions_approved` is false,
@@ -163,7 +163,7 @@ to the Awesomate team, who scope, build, test, and deliver it.
163
163
  Awesomate pushes to the client** — knowledge quota warnings, "your quote
164
164
  is ready", support-access events. Check it whenever the user asks about a
165
165
  pending request, a quote, or "did anyone get back to me?". Relay unread
166
- items in one line, then mark them read (`read` / `read_all`). It sends
166
+ items in one line, then mark them read (`awesomate_notifications_change`, `read` / `read_all`). It sends
167
167
  nothing; it only reads their bell.
168
168
  - **"How is my account doing?"** → `awesomate_dashboard_metrics` (executions
169
169
  by status, error rate, time saved, 7-day trend, most recent failure) and