@fil-technology/appmate-mcp 0.5.0 → 0.5.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.
package/README.md CHANGED
@@ -88,9 +88,13 @@ staging or self-hosted instances.
88
88
  | `get_referral_flow` | Read published + draft referral program config. |
89
89
  | `update_referral_draft` | Replace the referral draft (rewards, share text, cap, landing). |
90
90
  | `publish_referral_flow` | Promote the referral draft live. |
91
- | `list_referrals` | Paginated referral graph (status, referee, reward flags). |
91
+ | `list_referrals` | Paginated referral graph (status, `source` [link or typed-code], referee, reward flags). |
92
92
  | `export_referrals_csv` | Return the full referral graph as a CSV string. |
93
93
 
94
+ Each referrer gets a unique link **and** a short, human-readable code (e.g.
95
+ `K7Q4-R9XP`); a friend redeems by tapping the link or **typing the code** (no
96
+ clipboard needed). `source` on each referral row records which path was used.
97
+
94
98
  Tools that accept an app reference (`get_app`, `update_cancel_draft`,
95
99
  etc.) accept either the cuid `id` or the human-readable `slug` — use
96
100
  whichever you have. The full REST shape is documented at
package/dist/tools.js CHANGED
@@ -250,6 +250,7 @@ export const updateFeedbackDraft = {
250
250
  "Shape:",
251
251
  " {",
252
252
  " type: 'feedback',",
253
+ " layout: 'steps' | 'single', // optional, default 'steps' (multi-step: rating+message, then email). 'single' = one screen.",
253
254
  " intro: {",
254
255
  " title, subtitle,",
255
256
  " messagePlaceholder, // textarea placeholder",
@@ -320,6 +321,7 @@ export const updateReportDraft = {
320
321
  "Shape:",
321
322
  " {",
322
323
  " type: 'report',",
324
+ " layout: 'steps' | 'single', // optional, default 'steps' (multi-step: category, then message+email). 'single' = one screen.",
323
325
  " intro: {",
324
326
  " title, subtitle,",
325
327
  " messagePlaceholder, // textarea placeholder",
@@ -385,6 +387,7 @@ export const updateContactDraft = {
385
387
  "Shape:",
386
388
  " {",
387
389
  " type: 'contact',",
390
+ " layout: 'steps' | 'single', // optional, default 'steps' (multi-step: message, then name+email). 'single' = one screen.",
388
391
  " intro: {",
389
392
  " title, subtitle,",
390
393
  " submitLabel,",
@@ -542,6 +545,7 @@ export const updateReferralDraft = {
542
545
  " landing: { // the invite page a friend sees at /r/{code}",
543
546
  " eyebrow?, title, subtitle, ctaLabel,",
544
547
  " appStoreUrl?, // REQUIRED before go-live — the install button target",
548
+ " fallback?: 'app_store' | 'website', // where a not-installed friend goes (default app_store; 'website' uses the app's websiteUrl)",
545
549
  " legal?",
546
550
  " },",
547
551
  " share: { messageTemplate }, // the referrer's share text; the link is appended automatically",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fil-technology/appmate-mcp",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Model Context Protocol server for AppMate — lets Claude / Cursor / Codex drive your retention flows via API tokens.",
5
5
  "type": "module",
6
6
  "bin": {