@awesomate/hosting-mcp 0.61.1 → 0.62.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/dist/index.js +2 -2
- package/package.json +1 -1
- package/skill/CHANGELOG.json +6 -0
- package/skill/awesomate-portals/SKILL.md +27 -2
package/dist/index.js
CHANGED
|
@@ -42923,7 +42923,7 @@ server.registerTool(
|
|
|
42923
42923
|
"awesomate_crm_types",
|
|
42924
42924
|
{
|
|
42925
42925
|
annotations: annotate("awesomate_crm_types", READ_ONLY),
|
|
42926
|
-
description: "TypeScript for the client's readable contact data, for a project that uses @awesomate/sdk: one interface per kind (only the fields the owner marked readable by AI), choice fields as literal unions, and an augmentation that types db.query('contact', ...) once the file is imported. Returns {file, content}: write content to that file in the project (or tell the user to run `npx @awesomate/sdk types`). Regenerate after the owner changes fields. No people's details are in it, only column names and types.",
|
|
42926
|
+
description: "TypeScript for the client's readable contact data, for a project that uses @awesomate/sdk: one interface per kind (only the fields the owner marked readable by AI), choice fields as literal unions, and an augmentation that types db.query('contact', ...) once the file is imported. Returns {file, content}: write content to that file in the project (or tell the user to run `npx @awesomate/sdk types`). Regenerate after the owner changes fields. No people's details are in it, only column names and types. SDK docs: https://hub.awesomate.ai/docs/sdk/ (all of them as one text file: https://hub.awesomate.ai/docs/sdk/llms-full.txt).",
|
|
42927
42927
|
inputSchema: {}
|
|
42928
42928
|
},
|
|
42929
42929
|
async () => {
|
|
@@ -43030,7 +43030,7 @@ server.registerTool(
|
|
|
43030
43030
|
"awesomate_crm_apps",
|
|
43031
43031
|
{
|
|
43032
43032
|
annotations: annotate("awesomate_crm_apps", MUTATING),
|
|
43033
|
-
description: "The account's own apps (a client portal, a members' app) whose users sign in by email link and then read and change only what each kind's access rules allow them (awesomate_crm_kinds set_access). Pro and above to create or change; reading is every plan. action 'list': each app with its publishable key, allowed origins, sign-up mode and default role. action 'create' {name, allowed_origins, sign_up?, default_role?}: name appears in the sign-in email; allowed_origins are the exact origins the app runs on (https://portal.example.com; http://localhost:5173 for development; capacitor://localhost for the mobile shell), with no path and no wildcard; sign_up 'invite' (default: only people added with awesomate_crm_app_users) or 'open' (anyone who uses the email link gets the default role). action 'update' {app_id, ...any of those, status?}: status 'disabled' signs everyone out of that app and stops its server keys; voice_agent_id names the account's agent that signed-in people talk to by voice (Talk to the agent: @awesomate/sdk voiceAgent() and voiceSession() with the hub's AwesomateAgent widget; the agent greets them by name and, when the app's assistant is set up, knows the 10 most recent conversations they can see, read as them; the app's origin must also be listed under the agent's 'Where your app runs'), null takes it away. The publishable key (pk_...) is not a secret: it goes in the app's browser code, with @awesomate/sdk. Never put the account's own token (amt_pat_...) in browser code. Confirm origins and sign-up mode with the user: open sign-up lets strangers in under the default role. action 'customer_lookup' {app_id, roles?}: which roles in that app may look customers up (name, email and phone, by search or id, with @awesomate/sdk lookupCustomers) and so put a record under any customer, not only themselves. Without roles it reads the setting; roles ['staff'] switches it on for staff; [] switches it off. Never the app's default role (the one customers sign in with): that would show every customer to every other customer, and the hub refuses it. Off until the owner asks for it. SERVER KEYS (ak_...), for the app's own server or an n8n workflow, used with @awesomate/sdk createClient({ token: <key> }) or as a Bearer token on https://hub.awesomate.ai/api/sdk/v1/server: action 'keys' {app_id} lists them (never the secrets); 'create_key' {app_id, name, access: 'read'|'write', kinds?} makes one (kinds leaves it to those kinds, 'contact' to read contacts; leave it out for every kind) and returns the key ONCE: put it straight into the app server's environment (awesomate_app_set_env for an app hosted with us) and never into browser code, a repository or a reply to the user. For an n8n workflow pass n8n_credential: true instead (prefer it): the hub puts the key into a Header Auth credential 'Awesomate app key: <name>' on their n8n (Authorization: Bearer, usable only towards the hub) and returns only its id and name, so the key never passes through you. 'revoke_key' {app_id, key_id} stops it at once, and removes a credential the hub made. A key reads every attribute of an app kind, contacts only as you read them, and writes need Support Plus and above. Prefer the narrowest key: read unless the server writes, and only the kinds it uses.",
|
|
43033
|
+
description: "The account's own apps (a client portal, a members' app) whose users sign in by email link and then read and change only what each kind's access rules allow them (awesomate_crm_kinds set_access). Pro and above to create or change; reading is every plan. action 'list': each app with its publishable key, allowed origins, sign-up mode and default role. action 'create' {name, allowed_origins, sign_up?, default_role?}: name appears in the sign-in email; allowed_origins are the exact origins the app runs on (https://portal.example.com; http://localhost:5173 for development; capacitor://localhost for the mobile shell), with no path and no wildcard; sign_up 'invite' (default: only people added with awesomate_crm_app_users) or 'open' (anyone who uses the email link gets the default role). action 'update' {app_id, ...any of those, status?}: status 'disabled' signs everyone out of that app and stops its server keys; voice_agent_id names the account's agent that signed-in people talk to by voice (Talk to the agent: @awesomate/sdk voiceAgent() and voiceSession() with the hub's AwesomateAgent widget; the agent greets them by name and, when the app's assistant is set up, knows the 10 most recent conversations they can see, read as them; the app's origin must also be listed under the agent's 'Where your app runs'), null takes it away. The publishable key (pk_...) is not a secret: it goes in the app's browser code, with @awesomate/sdk. Never put the account's own token (amt_pat_...) in browser code. SDK docs, with a tutorial that builds a customer portal: https://hub.awesomate.ai/docs/sdk/ (as one text file for you: https://hub.awesomate.ai/docs/sdk/llms-full.txt). Confirm origins and sign-up mode with the user: open sign-up lets strangers in under the default role. action 'customer_lookup' {app_id, roles?}: which roles in that app may look customers up (name, email and phone, by search or id, with @awesomate/sdk lookupCustomers) and so put a record under any customer, not only themselves. Without roles it reads the setting; roles ['staff'] switches it on for staff; [] switches it off. Never the app's default role (the one customers sign in with): that would show every customer to every other customer, and the hub refuses it. Off until the owner asks for it. SERVER KEYS (ak_...), for the app's own server or an n8n workflow, used with @awesomate/sdk createClient({ token: <key> }) or as a Bearer token on https://hub.awesomate.ai/api/sdk/v1/server: action 'keys' {app_id} lists them (never the secrets); 'create_key' {app_id, name, access: 'read'|'write', kinds?} makes one (kinds leaves it to those kinds, 'contact' to read contacts; leave it out for every kind) and returns the key ONCE: put it straight into the app server's environment (awesomate_app_set_env for an app hosted with us) and never into browser code, a repository or a reply to the user. For an n8n workflow pass n8n_credential: true instead (prefer it): the hub puts the key into a Header Auth credential 'Awesomate app key: <name>' on their n8n (Authorization: Bearer, usable only towards the hub) and returns only its id and name, so the key never passes through you. 'revoke_key' {app_id, key_id} stops it at once, and removes a credential the hub made. A key reads every attribute of an app kind, contacts only as you read them, and writes need Support Plus and above. Prefer the narrowest key: read unless the server writes, and only the kinds it uses.",
|
|
43034
43034
|
inputSchema: {
|
|
43035
43035
|
action: external_exports.enum(["list", "create", "update", "keys", "create_key", "revoke_key", "customer_lookup"]),
|
|
43036
43036
|
app_id: external_exports.string().max(48).optional().describe("update, keys, create_key, revoke_key, customer_lookup: the app"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awesomate/hosting-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.62.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",
|
package/skill/CHANGELOG.json
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"versions": [
|
|
3
|
+
{
|
|
4
|
+
"version": "0.62.0",
|
|
5
|
+
"highlights": [
|
|
6
|
+
"Claude points you to the new SDK docs at hub.awesomate.ai/docs/sdk when you build a portal or an app, and the portal skill now covers letting customers accept a quote, who's here and typing, and talking by voice"
|
|
7
|
+
]
|
|
8
|
+
},
|
|
3
9
|
{
|
|
4
10
|
"version": "0.61.1",
|
|
5
11
|
"highlights": [
|
|
@@ -10,6 +10,11 @@ in the account's own database), **access rules** on each kind (who sees and chan
|
|
|
10
10
|
by the database itself), and an **app** (where it runs, how people sign in). The page uses
|
|
11
11
|
`@awesomate/sdk` straight from the browser. There is no app server to write.
|
|
12
12
|
|
|
13
|
+
**The SDK's docs:** https://hub.awesomate.ai/docs/sdk/ (a tutorial that builds exactly this kind of
|
|
14
|
+
portal, a guide per feature, and a reference generated from the SDK's code). When you are unsure
|
|
15
|
+
of a method or an option, read https://hub.awesomate.ai/docs/sdk/llms-full.txt, the whole site as
|
|
16
|
+
one text file, rather than guessing.
|
|
17
|
+
|
|
13
18
|
Work in plain words with the owner. They describe their business ("customers request jobs, we
|
|
14
19
|
quote, they see the status"), you turn that into kinds and rules, show them the design in a
|
|
15
20
|
sentence or two, and only then create anything. Kinds, rules and apps are part of their data,
|
|
@@ -94,7 +99,7 @@ loads from a CDN, or from npm in a Vite app:
|
|
|
94
99
|
|
|
95
100
|
```html
|
|
96
101
|
<script type="module">
|
|
97
|
-
import { createAppClient } from 'https://cdn.jsdelivr.net/npm/@awesomate/sdk@0.
|
|
102
|
+
import { createAppClient, AwesomateError } from 'https://cdn.jsdelivr.net/npm/@awesomate/sdk@0.13/+esm';
|
|
98
103
|
const app = createAppClient({ publishableKey: 'pk_...' });
|
|
99
104
|
|
|
100
105
|
// The email link signs them in by itself (also when it opens in a tab already on this page).
|
|
@@ -138,7 +143,27 @@ lists the two staff-only kinds it needs (`assistant_thread`, `assistant_draft`)
|
|
|
138
143
|
agent (awesomate-knowledge skill) so she can answer questions about the business. Confirm the
|
|
139
144
|
name and the default mode with the owner: switching it on lets an AI reply to their customers.
|
|
140
145
|
|
|
141
|
-
##
|
|
146
|
+
## 6a. Optional: things customers may do that their rule does not allow
|
|
147
|
+
|
|
148
|
+
Accepting a quote is the usual one: customers can't edit a job, but they should be able to accept
|
|
149
|
+
its quote. Save a write recipe (`awesomate_crm_recipes {action:'save'}`) whose steps do exactly
|
|
150
|
+
that, then open it to their role (`{action:'run_by', key, roles:['member']}`). The page runs it
|
|
151
|
+
with `await app.call('accept_quote', { job: jobId })`. The database checks every step against
|
|
152
|
+
the recipe as saved, and the job must be one they can read. Guide:
|
|
153
|
+
https://hub.awesomate.ai/docs/sdk/guides/customer-actions/
|
|
154
|
+
|
|
155
|
+
## 6b. Optional: who's here, and talking by voice
|
|
156
|
+
|
|
157
|
+
- `const room = app.here(jobId, (people) => render(people))` shows who else has the job open and
|
|
158
|
+
who is typing (`room.typing(true)` on input, `room.leave()` on close). Guide:
|
|
159
|
+
https://hub.awesomate.ai/docs/sdk/guides/who-is-here/
|
|
160
|
+
- Voice: pick one of the account's agents for the app (`awesomate_crm_apps {action:'update',
|
|
161
|
+
app_id, voice_agent_id}`; the agent needs In your app switched on and the page's address under
|
|
162
|
+
its "Where your app runs"). The page loads the hub's widget and mounts it with
|
|
163
|
+
`agentId: await app.voiceAgent()` and `session: () => app.voiceSession()`. Guide:
|
|
164
|
+
https://hub.awesomate.ai/docs/sdk/guides/voice/
|
|
165
|
+
|
|
166
|
+
## 6c. Optional: reply emails
|
|
142
167
|
|
|
143
168
|
`awesomate_crm_notifications {action:'set', app_id, notifications: {enabled: true, thread_link: 'job'}}`
|
|
144
169
|
emails the other side of a conversation when someone writes there and they are not in the app:
|