@apex-inc/mcp-server 0.23.4 → 0.25.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/api-client.d.ts +7 -0
- package/dist/api-client.d.ts.map +1 -1
- package/dist/api-client.js +16 -0
- package/dist/api-client.js.map +1 -1
- package/dist/tools.d.ts +228 -0
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +280 -14
- package/dist/tools.js.map +1 -1
- package/package.json +1 -1
- package/skills/apex-communications/SKILL.md +15 -3
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@ Use these tools to help users build a communication program that sends the right
|
|
|
19
19
|
### First-time setup (user has no communications)
|
|
20
20
|
|
|
21
21
|
1. **`recommend_communications`** — get the recommended communications for the user's vertical. Review the list with the user.
|
|
22
|
-
2. **`generate_communications`** — create the selected communications with pre-written copy.
|
|
22
|
+
2. **`generate_communications`** — create the selected communications with pre-written copy. Each letter wears the workspace default Theme (look is snapshotted; you do not set per-block align).
|
|
23
23
|
3. **`get_event_taxonomy`** — show the user what `apex.track()` calls they need to add to their code.
|
|
24
24
|
4. **`list_communications`** — confirm everything was created.
|
|
25
25
|
|
|
@@ -27,8 +27,9 @@ Use these tools to help users build a communication program that sends the right
|
|
|
27
27
|
|
|
28
28
|
1. **`list_communications`** — see what exists, and check `controlState` before you edit.
|
|
29
29
|
2. **`edit_communication`** — update subject, body, CTA, channels, or status. Pass `intent` when the control is protected (see below).
|
|
30
|
-
3. **`preview_communication`** — render the email with the user's brand.
|
|
31
|
-
4. **`
|
|
30
|
+
3. **`preview_communication`** — render the email with the user's brand. Also reports Theme Title/Body/Button roles and which blocks override them.
|
|
31
|
+
4. **`add_communication_variant`** — clone Control into a new column (Variant A, …) so you can run a content experiment.
|
|
32
|
+
5. **`send_test_communication`** — send a test to verify it looks right.
|
|
32
33
|
|
|
33
34
|
## Replace versus compete — the one rule that protects results
|
|
34
35
|
|
|
@@ -179,6 +180,17 @@ Cart-recovery is a Journey (multi-step sequence with a wait) — not a single co
|
|
|
179
180
|
|
|
180
181
|
The key is that the **journey** owns the wait, the branching on cart state, and the exit semantics. The **communications** are just the payloads the journey fires.
|
|
181
182
|
|
|
183
|
+
## Theme vs Template
|
|
184
|
+
|
|
185
|
+
**Template** is the job: event, attributes, slots, copy. Activate from the library. There is no extra theme step.
|
|
186
|
+
|
|
187
|
+
**Theme** is the look: fonts, sizes, colors, plus Title / Body / Button roles. New activations wear the workspace default theme.
|
|
188
|
+
|
|
189
|
+
- `list_communication_themes` before restyling a series.
|
|
190
|
+
- `create_communication_theme` / `update_communication_theme` to save a look. Style saves do not rewrite other emails.
|
|
191
|
+
- `apply_communication_theme` stamps a look onto chosen emails. Default is draft (merchant still publishes). Pass `apply=live` for the next send.
|
|
192
|
+
- Never group communications by `experiment-*` catalog id. A shop's "Order updates" series is the same object as Apex's own status emails.
|
|
193
|
+
|
|
182
194
|
## Exit Rules: The Quiet Half of Lifecycle Messaging
|
|
183
195
|
|
|
184
196
|
A communication is only as good as its non-sends. The user who returns to the app 30 seconds after abandoning their cart should never receive the "you forgot something" push — sending it makes Apex look broken, annoys the customer, and burns trust in the brand.
|