hollerpost-mcp 0.8.0 → 0.9.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/CHANGELOG.md CHANGED
@@ -1,5 +1,54 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.9.0 (unreleased, not published)
4
+
5
+ Retail promo emails (511-style layout) in one call, and the Launchpad advanced editor, offline switch and page design.
6
+
7
+ - New `launchpad_set_offline` (`offline`, `confirm: true`): take the launch
8
+ page offline without deleting it, or put it back online. While offline,
9
+ visitors go to Your page (when published) or hollerpost.com/launchpad/.
10
+ `launchpad_get` now reports `offline`.
11
+
12
+ - New `brand_set_footer`: link buttons (up to 5, full-width outline pills),
13
+ the "Follow us" icon row (`social` handles + `social_icons: true`) and a
14
+ small disclaimer above the address. Address and unsubscribe are always
15
+ added and can't be changed here.
16
+ - New `brand_set_theme`: theme colors (`background`, `surface`, `text`),
17
+ `button_style` (solid | outline), `button_shape` (pill | rounded) and the
18
+ default `info_bar`.
19
+ - `brand_get` returns `theme`, `info_bar`, `footer.links`,
20
+ `footer.disclaimer`, `footer.social_icons` and `social`.
21
+ - `campaign_draft` / `campaign_update` blocks: `image_link` (hero click),
22
+ `cta_repeat: "bottom"`, `layout: "grid-2"` (two-across product cards),
23
+ `sections[].price`, `fine_print`, `info_bar` (or `"off"`) and `theme`.
24
+ The description carries a full example.
25
+ - `campaign_preview` can warn `low_contrast_text` / `low_contrast_button`.
26
+ - `launchpad_update` takes an optional `design`: the launch page built from
27
+ blocks (the dashboard's advanced editor). Blocks: hero, text, image,
28
+ button, list, countdown (launch date), faq, social, divider, spacer and
29
+ exactly one signup block. Page style: background, surface, text, accent
30
+ and button text colors, fonts, button shape and style. The API checks
31
+ plain text, https links, our image host and 4.5:1 contrast; the same
32
+ publish checks run. `design.mode: "simple"` goes back to the simple page
33
+ and keeps the blocks.
34
+ - `launchpad_get` returns `launch_page.design` (or null).
35
+
36
+ ## 0.8.1 (2026-11-16)
37
+
38
+ - `mcpName` (`com.hollerpost/mcp`) in package.json and a `server.json` for
39
+ the official MCP registry (GTM-222). No tool changes.
40
+ - Links to hollerpost.com carry source tags (`utm_source=npm`,
41
+ `mcp-registry`, `mcp-client`, `mcp-server`).
42
+ - `npm run docs:tools` builds the docs site's tool table from `src/tools.ts`
43
+ and `docs/tool-docs.json`.
44
+
45
+ - `sms_registration_submit`: the API now answers `submit_in_dashboard`
46
+ (409, with `setup_url`). Hollerpost no longer stores the business
47
+ registration number (EIN or SSN): the person enters it on the dashboard's
48
+ submit step and it goes straight to the carriers, so an agent can fill and
49
+ check the form but the final submit happens in the dashboard. Tool code is
50
+ unchanged; only the description says so.
51
+
3
52
  ## 0.8.0 (2026-11-13)
4
53
 
5
54
  Breaking: the launch page and Your page are separate pages (L-45).
package/README.md CHANGED
@@ -6,6 +6,8 @@ Everything goes through the public API at `https://api.hollerpost.com/api/v1` wi
6
6
 
7
7
  - Remote server: `https://mcp.hollerpost.com/mcp` (Streamable HTTP)
8
8
  - Local server: `npx -y hollerpost-mcp` (stdio, key in `HOLLERPOST_KEY`)
9
+ - Docs and every tool: [hollerpost.com/docs/mcp](https://hollerpost.com/docs/mcp/?utm_source=npm&utm_medium=referral&utm_campaign=mcp)
10
+ - Hollerpost: [hollerpost.com](https://hollerpost.com/?utm_source=npm&utm_medium=referral&utm_campaign=mcp)
9
11
 
10
12
  Create a key in the Hollerpost Dashboard under **Settings, Developer API**. Keys start with `hp_live_`, or `uc_live_` for Utopian Creations workspaces; both work. Treat a key like a password.
11
13
 
@@ -112,6 +114,8 @@ If a tool needs a scope the key lacks, the tool answers `insufficient_scope`, na
112
114
  | `workspace_info` | read | Who this key is: workspace, plan, scopes, brand. Start here |
113
115
  | `brand_get` | read | Brand settings and writing voice |
114
116
  | `brand_set_voice` | draft | Save the brand voice notes (replaces the old text) |
117
+ | `brand_set_footer` | draft | Save the footer every email carries: link buttons, Follow us icons, disclaimer |
118
+ | `brand_set_theme` | draft | Save the email look: colors, solid or outline and pill or rounded buttons, info bar |
115
119
  | `templates_list` | read | Templates and the content blocks each accepts |
116
120
  | `email_image_upload` | draft | Store an image (from a URL or the file) for use in an email; returns its URL |
117
121
  | `email_image_upload_link` | draft | A one-time page where the person uploads pictures from their device |
@@ -139,7 +143,7 @@ If a tool needs a scope the key lacks, the tool answers `insufficient_scope`, na
139
143
  | `sms_registration_update` | account | Fill or fix the texting registration form (draft or rejected only). The registration number is entered in the dashboard only |
140
144
  | `sms_website_check` | account | Run the carrier checks on the form and the business's website, privacy policy and terms |
141
145
  | `sms_numbers` | account | Toll-free numbers available for the first registration |
142
- | `sms_registration_submit` | account | Submit (or resubmit after a rejection) after the person says yes; needs `confirm: true`. The first time it also buys the chosen number |
146
+ | `sms_registration_submit` | account | Submit (or resubmit after a rejection) after the person says yes; needs `confirm: true`. The first time it also buys the chosen number. Current API builds answer `submit_in_dashboard`: the person submits in the dashboard, where they enter their EIN or SSN (sent straight to the carriers, not kept) |
143
147
  | `surveys_list` | read | Surveys with status, questions (and which can go in an email), response counts and share links |
144
148
  | `survey_results` | read | Aggregated answers, averages and NPS for one survey |
145
149
  | `survey_create` | draft | Create a draft survey (1 to 30 questions) |
@@ -148,7 +152,7 @@ If a tool needs a scope the key lacks, the tool answers `insufficient_scope`, na
148
152
  | `page_get` | read | Read Your page, links, calendar events and plan settings |
149
153
  | `page_update` | draft | Save page fields via `updates`, including waitlist fields; publication needs `confirm_publish: true` after the person approves and may be held for review |
150
154
  | `launchpad_get` | read | Read confirmed/this-week/pending/queued counts, confirmation allowance, list size vs plan emails, share URL and mode |
151
- | `launchpad_update` | draft | Save waitlist headline/pitch, count visibility, launch note, primary link and waitlist/standard mode as a draft; does not publish |
155
+ | `launchpad_update` | draft | Save waitlist headline/pitch, count visibility, launch note, primary link and waitlist/standard mode as a draft, or the whole page as blocks (`design`, the advanced editor); does not publish |
152
156
  | `launchpad_go_live` | draft | Request live mode and publication after the person approves the launch note and primary link (`confirm: true`); reports review holds plainly |
153
157
  | `page_link_add` | draft | Add a HTTPS link via `link` (max 30) |
154
158
  | `page_link_update` | draft | Update a link by `id` and `updates` |
package/dist/format.js CHANGED
@@ -206,7 +206,9 @@ export function describeApiError(err) {
206
206
  case 'beyond_scheduling_horizon':
207
207
  return `${head} That time is further ahead than this plan can schedule${b.limit_days ? ` (${num(b.limit_days)} days)` : ''}.`;
208
208
  case 'field_dashboard_only':
209
- return `${head} The business registration number (EIN, or SSN for a sole proprietor) is entered in the Hollerpost dashboard only, never through an agent. Ask the person to add it under Settings, Text messaging. Nothing was saved.`;
209
+ return `${head} The business registration number (EIN, or SSN for a sole proprietor) is entered in the Hollerpost dashboard only, never through an agent. The person types it when they submit under Settings, Text messaging; Hollerpost sends it straight to the carriers and doesn't keep it. Nothing was saved.`;
210
+ case 'submit_in_dashboard':
211
+ return `${head} Nothing was submitted or bought. The person submits in the Hollerpost dashboard${typeof b.setup_url === 'string' ? ` (${b.setup_url})` : ''}, Settings, Text messaging: they pick the number there and enter their EIN or SSN, which goes straight to the carriers and isn't kept. Tell them the form is ready (if sms_website_check passed) and where to submit.`;
210
212
  case 'confirmation_required':
211
213
  return `${head} Nothing was submitted. Show the person what will be sent (sms_setup_status), get a clear yes, then call again with confirm: true.`;
212
214
  case 'registration_locked':
package/dist/server.js CHANGED
@@ -22,7 +22,7 @@ export const SERVER_INSTRUCTIONS = [
22
22
  // scopes: the key's scopes (client.keyScopes()), which decide whether the
23
23
  // social tools are offered.
24
24
  export function createServer(client, options = {}, scopes = null) {
25
- const server = new McpServer({ name: 'hollerpost-mcp', title: 'Hollerpost', version: VERSION, websiteUrl: 'https://hollerpost.com/docs/mcp/' }, { instructions: SERVER_INSTRUCTIONS, ...options });
25
+ const server = new McpServer({ name: 'hollerpost-mcp', title: 'Hollerpost', version: VERSION, websiteUrl: 'https://hollerpost.com/docs/mcp/?utm_source=mcp-client&utm_medium=referral&utm_campaign=mcp' }, { instructions: SERVER_INSTRUCTIONS, ...options });
26
26
  registerTools(server, client, { scopes });
27
27
  registerResources(server, client);
28
28
  registerPrompts(server);
package/dist/tools.js CHANGED
@@ -60,6 +60,35 @@ const sectionSchema = z
60
60
  image_position: z.enum(['top', 'left', 'right']).optional().describe('top (default): image above the copy. left or right: image beside the copy on wide screens, stacked on phones.'),
61
61
  cta_text: z.string().max(40).optional().describe('Button label for this section.'),
62
62
  cta_url: https.max(2000).optional().describe('Button link for this section.'),
63
+ price: z.string().max(40).optional().describe('Price line, for example "$129 (was $179)". Shown under the heading; with layout "grid-2" it sits on the product card.'),
64
+ })
65
+ .strict();
66
+ const hexColor = z.string().regex(/^#[0-9a-fA-F]{6}$/, 'Use a hex color like #111827.');
67
+ const infoBarSchema = z
68
+ .union([
69
+ z
70
+ .object({
71
+ text: z.string().min(1).max(120).describe('Short line, for example "Free shipping on orders over $99".'),
72
+ url: https.max(2000).optional().describe('Where a click on the bar goes (https URL).'),
73
+ })
74
+ .strict(),
75
+ z.literal('off'),
76
+ ])
77
+ .describe('Dark band across the top of the email. An object sets it for this email (replacing the brand default); "off" hides the brand default for this email.');
78
+ const themeSchema = z
79
+ .object({
80
+ background: hexColor.optional().describe('Page color around the email.'),
81
+ surface: hexColor.optional().describe('Email card color. A dark surface gets light text and light outline buttons automatically.'),
82
+ text: hexColor.optional().describe('Body text color. Needs at least 4.5:1 contrast with surface (campaign_preview warns low_contrast_text).'),
83
+ button_style: z.enum(['solid', 'outline']).optional().describe('solid: filled with the brand color. outline: border and label only, the retail look.'),
84
+ button_shape: z.enum(['pill', 'rounded']).optional().describe('pill: fully round ends. rounded: the brand corner radius.'),
85
+ })
86
+ .strict();
87
+ const SOCIAL_NETWORKS = ['instagram', 'facebook', 'x', 'linkedin', 'youtube', 'tiktok', 'threads', 'pinterest'];
88
+ const footerLinkSchema = z
89
+ .object({
90
+ label: z.string().min(1).max(40).describe('Button text, for example "Shop men\u2019s" or "Find your store". Shown in capitals.'),
91
+ url: https.max(2000).describe('Button link (https URL).'),
63
92
  })
64
93
  .strict();
65
94
  const blocksSchema = z
@@ -78,6 +107,12 @@ const blocksSchema = z
78
107
  .max(8)
79
108
  .optional()
80
109
  .describe('Optional: up to 8 sections after body_md, each with its own sub-heading, image, copy and button, divided by a line. Use for a promotion with several products or a newsletter with several stories. Each needs at least a heading, body_md or image_url. Up to 20 images per email in total.'),
110
+ image_link: https.max(2000).optional().describe('Where a click on the hero image goes (https URL). Defaults to cta_url.'),
111
+ cta_repeat: z.literal('bottom').optional().describe('"bottom": show the main button right after body_md AND again after the sections (retail promo style). Needs cta_text, cta_url and sections.'),
112
+ layout: z.enum(['stack', 'grid-2']).optional().describe('How sections show. stack (default): one per row. grid-2: product cards two across (image, heading, price, short copy, button), stacked on phones.'),
113
+ fine_print: z.string().max(1500).optional().describe('Offer terms in small print at the very end, for example "Ends Sunday 11:59pm. Not valid with other offers." Plain text with **bold**, *italic* and [links](https://...).'),
114
+ info_bar: infoBarSchema.optional(),
115
+ theme: themeSchema.optional().describe('This email\u2019s colors and buttons; anything left out follows the brand (brand_set_theme).'),
81
116
  })
82
117
  // Templates may add more text blocks later; accept them as strings.
83
118
  .catchall(z.string())
@@ -247,12 +282,41 @@ const pageSectionSchema = z.object({
247
282
  image_url: z.string().max(2048).optional().describe('Optional picture. Must be an https://images.hollerpost.com URL: store it with email_image_upload first.'),
248
283
  image_alt: z.string().max(200).optional().describe('Required with image_url: what the picture shows.'),
249
284
  }).strict();
285
+ // Advanced Launchpad editor: the launch page as blocks. The API checks the
286
+ // same rules (src/lib/page/design.js), including contrast and the image host.
287
+ const designText = (max) => z.string().max(max);
288
+ const designImage = z.string().max(2048).describe('A picture stored with email_image_upload (https://images.hollerpost.com/...). Other hosts are refused.');
289
+ const designBlockSchema = z.discriminatedUnion('type', [
290
+ z.object({ type: z.literal('hero'), id: z.string().optional(), headline: designText(120).min(1).describe('The page headline (the only h1).'), text: designText(600).optional().describe('Plain text under the headline. Blank line = new paragraph.'), image_url: designImage.optional(), image_alt: designText(200).optional().describe('Required with image_url.'), show_logo: z.boolean().optional().describe('Show the page logo (avatar_url) above the headline.') }).strict(),
291
+ z.object({ type: z.literal('text'), id: z.string().optional(), heading: designText(120).optional(), body: designText(2000).min(1).describe('Plain text. No HTML or markdown links.') }).strict(),
292
+ z.object({ type: z.literal('image'), id: z.string().optional(), image_url: designImage, image_alt: designText(200).min(1).describe('What the picture shows.'), link_url: z.string().max(2048).optional().describe('Optional https link when the picture is tapped.'), caption: designText(200).optional() }).strict(),
293
+ z.object({ type: z.literal('button'), id: z.string().optional(), label: designText(60).min(1), url: z.string().max(2048).describe('Full https link. URL shorteners are refused.') }).strict(),
294
+ z.object({ type: z.literal('list'), id: z.string().optional(), heading: designText(120).optional(), style: z.enum(['bullets', 'checks', 'cards']).optional(), items: z.array(z.object({ title: designText(80).optional(), text: designText(300).optional() }).strict()).min(1).max(12) }).strict(),
295
+ z.object({ type: z.literal('countdown'), id: z.string().optional(), heading: designText(80).optional().describe('Default "Launching".'), date: z.string().regex(/^\d{4}-\d{2}-\d{2}$/).describe('Launch date, YYYY-MM-DD.'), show_days: z.boolean().optional().describe('Also show "N days to go".') }).strict(),
296
+ z.object({ type: z.literal('faq'), id: z.string().optional(), heading: designText(120).optional(), items: z.array(z.object({ question: designText(160).min(1), answer: designText(1000).min(1) }).strict()).min(1).max(12) }).strict(),
297
+ z.object({ type: z.literal('social'), id: z.string().optional(), items: z.array(z.object({ network: z.enum(['instagram', 'tiktok', 'facebook', 'youtube', 'x', 'threads', 'bluesky', 'linkedin', 'pinterest', 'snapchat', 'twitch', 'discord', 'whatsapp', 'spotify', 'website']), url: z.string().describe('Handle or full profile link.') }).strict()).min(1).max(15) }).strict(),
298
+ z.object({ type: z.literal('divider'), id: z.string().optional() }).strict(),
299
+ z.object({ type: z.literal('spacer'), id: z.string().optional(), size: z.enum(['sm', 'md', 'lg']).optional() }).strict(),
300
+ z.object({ type: z.literal('signup'), id: z.string().optional(), heading: designText(120).optional().describe('Default: "Join <page title>".'), text: designText(300).optional(), button_label: designText(40).optional() }).strict(),
301
+ ]);
302
+ const hex = z.string().regex(/^#[0-9a-fA-F]{6}$/);
303
+ const launchDesignSchema = z.object({
304
+ version: z.literal(1).optional(),
305
+ mode: z.enum(['advanced', 'simple']).optional().describe('advanced (default) shows the blocks. simple goes back to the simple page and keeps these blocks saved.'),
306
+ style: z.object({
307
+ backgroundColor: hex.optional(), surfaceColor: hex.optional().describe('Boxes and cards (signup box, FAQ, list cards).'), textColor: hex.optional(),
308
+ accentColor: hex.optional().describe('Buttons.'), buttonTextColor: hex.optional(),
309
+ fontFamily: z.enum(PAGE_BODY_FONTS).optional(), headingFont: z.enum(PAGE_HEADING_FONTS).optional().describe('body means the same as fontFamily.'),
310
+ buttonShape: z.enum(['square', 'rounded', 'pill']).optional(), buttonStyle: z.enum(['solid', 'outline']).optional(),
311
+ }).strict().optional().describe('Page look. Text on background and on surface, and button text on accent, each need 4.5:1 contrast (the API refuses less).'),
312
+ blocks: z.array(designBlockSchema).max(30).describe('The whole page, top to bottom. Exactly one signup block (required). At most one hero, one countdown and one social block. Plain text only; links https only; pictures from images.hollerpost.com with alt text. Keep ids from launchpad_get to keep blocks.'),
313
+ }).strict();
250
314
  // Your page only (L-45). Waitlist fields live on the launch page: launchpad_update.
251
315
  const pageUpdateSchema = z.object({
252
316
  title: z.string().max(120).optional(), tagline: z.string().max(240).optional(), avatar_url: z.union([z.string().max(2048), z.null()]).optional(),
253
317
  theme: z.object({ brandColor: z.string().optional(), backgroundColor: z.string().optional(), textColor: z.string().optional(), buttonTextColor: z.string().optional(), fontFamily: z.enum(PAGE_BODY_FONTS).optional().describe('Body text font.'), buttonRadius: z.number().int().min(0).max(40).optional(), linkStyle: z.enum(['button', 'outline', 'pill', 'todo', 'checklist', 'microchip', 'clouds', 'ticket']).optional().describe('How the page links look. button: solid buttons (default). outline: outlined buttons. pill: round pills with an arrow. todo: to-do list rows with an empty box. checklist: rows with a ticked box. microchip: cyberpunk chips with notched corners. clouds: puffy cloud shapes. ticket: admission tickets with notched sides. Colors come from the theme; the main link and signup button stay solid.'), accentColor: z.string().regex(/^#[0-9a-fA-F]{6}$/).optional().describe('Six-digit hex accent for background patterns and details.'), backgroundStyle: z.enum(['solid', 'gradient', 'glow', 'dots', 'grid', 'lined', 'stripes', 'checker', 'sunburst']).optional().describe('Background behind the page. Text keeps 4.5:1 contrast against the pattern too (the API checks).'), headingFont: z.enum(PAGE_HEADING_FONTS).optional().describe('Headline font. body means the same as fontFamily.'), layout: z.enum(['centered', 'left', 'card']).optional().describe('centered, left aligned, or the page on a card over the background.') }).describe('The whole look. Send every field you want to keep: the theme replaces the saved one. A theme without accentColor, backgroundStyle, headingFont and layout keeps the classic look.').optional(),
254
318
  show_badge: z.boolean().optional(), signup_form_id: z.string().uuid().nullable().optional(),
255
- socials: z.array(z.object({ network: z.enum(['instagram', 'tiktok', 'facebook', 'youtube', 'x', 'threads', 'bluesky', 'linkedin', 'pinterest', 'snapchat', 'twitch', 'discord', 'whatsapp', 'spotify', 'website']), url: z.string() })).max(15).optional(),
319
+ socials: z.array(z.object({ network: z.enum(['instagram', 'tiktok', 'facebook', 'youtube', 'x', 'threads', 'bluesky', 'linkedin', 'pinterest', 'snapchat', 'twitch', 'discord', 'whatsapp', 'spotify', 'website']), url: z.string().describe('The handle (like yourbusiness) or the full profile link. Saved as the full https link. WhatsApp takes the number with country code.') })).max(15).optional(),
256
320
  info: z.object({ website: z.union([z.string().max(2048), z.null()]).optional(), phone: z.string().optional(), email: z.string().optional(), address_mode: z.enum(['none', 'city', 'full']).optional(), hours: z.string().optional() }).optional(),
257
321
  sections: z.array(pageSectionSchema).max(8).optional().describe('Story sections shown between the signup form and the links, in order. The FULL list: it replaces the saved one, so read page_get first and send every section to keep (with its id). Send [] to remove them all.'),
258
322
  show_events: z.boolean().optional(), published: z.boolean().optional(),
@@ -271,17 +335,17 @@ function launchpadPublicationLead(data) {
271
335
  export const TOOLS = [
272
336
  defineTool({
273
337
  name: 'launchpad_get', title: 'Get Launchpad', scope: 'read',
274
- description: 'Read the Launchpad card: confirmed_signups, emailable_subscribers, awaiting_confirmation, confirmed this week and queued confirmations, confirmation allowance, list size versus plan emails, share URL, launch_url, main_page and the launch page\'s saved settings (launch_page: launch note, first button, published). The launch page is separate from Your page; main_page says which one hollerpost.com/@handle shows.',
338
+ description: 'Read the Launchpad card: confirmed_signups, emailable_subscribers, awaiting_confirmation, confirmed this week and queued confirmations, confirmation allowance, list size versus plan emails, share URL, launch_url, main_page, offline (true while the owner has taken the launch page offline) and the launch page\'s saved settings (launch_page: launch note, first button, published, offline, design: the advanced editor blocks or null). The launch page is separate from Your page; main_page says which one hollerpost.com/@handle shows.',
275
339
  input: {}, annotations: READ, untrusted: true,
276
340
  run: async (api) => {
277
341
  const data = await api.request('GET', '/launchpad');
278
- return { lead: `Launchpad: confirmed_signups=${get(data, 'confirmed_signups') ?? 'unavailable'}, emailable_subscribers=${get(data, 'emailable_subscribers') ?? 'unavailable'}, awaiting_confirmation=${get(data, 'awaiting_confirmation') ?? 'unavailable'}, main_page=${get(data, 'main_page') ?? 'page'}.`, data };
342
+ return { lead: `Launchpad: confirmed_signups=${get(data, 'confirmed_signups') ?? 'unavailable'}, emailable_subscribers=${get(data, 'emailable_subscribers') ?? 'unavailable'}, awaiting_confirmation=${get(data, 'awaiting_confirmation') ?? 'unavailable'}, main_page=${get(data, 'main_page') ?? 'page'}, offline=${get(data, 'offline') === true}.`, data };
279
343
  },
280
344
  }),
281
345
  defineTool({
282
346
  name: 'launchpad_update', title: 'Update Launchpad draft', scope: 'draft',
283
- description: 'Save the launch page\'s headline, pitch, count visibility, launch note, first button (a link or Your page) or mode (waitlist, to flip back from live). Omitted fields stay unchanged. Saves a draft only, including when an older approved page is public. Does not publish. Your page is not changed. Use launchpad_get to read the saved launch note and first button before asking the person to go live.',
284
- input: { ...launchpadFields, mode: z.enum(['waitlist']).optional() },
347
+ description: 'Save the launch page\'s headline, pitch, count visibility, launch note, first button (a link or Your page) or mode (waitlist, to flip back from live). Optional design: build the page from blocks (advanced editor): hero, text, image, button, list, countdown (launch date), faq, social, divider, spacer and exactly one signup block. design replaces the saved design; read launchpad_get (launch_page.design) first. design.mode simple returns to the simple page and keeps the blocks. Omitted fields stay unchanged. Saves a draft only, including when an older approved page is public. Does not publish; the same automatic checks run on publish. Your page is not changed. Use launchpad_get to read the saved launch note and first button before asking the person to go live.',
348
+ input: { ...launchpadFields, mode: z.enum(['waitlist']).optional(), design: launchDesignSchema.optional().describe('Advanced editor design. Example: {"style":{"accentColor":"#C2410C"},"blocks":[{"type":"hero","headline":"Fresh loaves are coming","text":"Sourdough on Elm Street."},{"type":"countdown","date":"2026-12-06","show_days":true},{"type":"signup","button_label":"Save my spot"},{"type":"faq","items":[{"question":"Where?","answer":"12 Elm Street."}]}]}') },
285
349
  annotations: WRITE_IDEMPOTENT, untrusted: true,
286
350
  run: async (api, args) => {
287
351
  const body = Object.fromEntries(Object.entries(args).filter(([, v]) => v !== undefined));
@@ -293,7 +357,7 @@ export const TOOLS = [
293
357
  }),
294
358
  defineTool({
295
359
  name: 'launchpad_go_live', title: 'Launchpad go live', scope: 'draft',
296
- description: 'Switch the launch page to live mode and request publication after automatic checks. First use launchpad_get, show the person the saved launch note and primary link (the first button: its label and where it goes, a link or Your page), and wait for a clear yes. Requires confirm: true after that approval and a claimed handle with an enabled safe HTTPS primary link or primary_target page. A pending_review or review_pending hold is not live: explain owner_reason, do not retry or bypass review. Sends no campaign.',
360
+ description: 'Switch the launch page to live mode and request publication after automatic checks. First use launchpad_get, show the person the saved launch note and primary link (the first button: its label and where it goes, a link or Your page), and wait for a clear yes. Requires confirm: true after that approval and a claimed handle with an enabled safe HTTPS primary link or primary_target page. A pending_review or review_pending hold is not live: explain owner_reason, do not retry or bypass review. If launchpad_get shows offline: true, the page stays offline until launchpad_set_offline with offline: false. Sends no campaign.',
297
361
  input: { confirm: z.literal(true).describe('true only after the person saw the launch note and primary link and approved going live.') },
298
362
  annotations: { readOnlyHint: false, destructiveHint: true, idempotentHint: false, openWorldHint: true }, untrusted: true,
299
363
  run: async (api, { confirm }) => {
@@ -303,6 +367,18 @@ export const TOOLS = [
303
367
  return { lead: launchpadPublicationLead(data), data };
304
368
  },
305
369
  }),
370
+ defineTool({
371
+ name: 'launchpad_set_offline', title: 'Take Launchpad page offline or back online', scope: 'draft',
372
+ description: 'Take the launch page offline (offline: true) or put it back online (offline: false). Offline is not deleting: the page, its design and its signups stay. While offline, visitors to the launch page address are sent to Your page if it is published, otherwise to hollerpost.com. Putting it back online shows the last approved page; it does not republish. Ask the person first; requires confirm: true after their yes.',
373
+ input: { offline: z.boolean().describe('true to take the launch page offline, false to put it back online.'), confirm: z.literal(true).describe('true only after the person approved this change.') },
374
+ annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
375
+ run: async (api, { offline, confirm }) => {
376
+ if (confirm !== true)
377
+ throw new InputError('Taking the page offline or back online requires confirm: true after the person approves.');
378
+ const data = await api.request('PUT', '/page/offline', { body: { offline }, headers: { 'X-Hollerpost-Confirm': 'publish' } });
379
+ return { lead: get(data, 'offline') ? 'The launch page is offline. Visitors are sent to Your page or hollerpost.com until it is back online.' : 'The launch page is back online.', data };
380
+ },
381
+ }),
306
382
  defineTool({ name: 'page_get', title: 'Get Your page', scope: 'read', description: 'Read Your page, links, events, handle and plan settings, plus main_page (which page hollerpost.com/@handle shows: page or launch), publicUrl and pageUrl (/@handle/links). An unsaved draft from the brand kit is returned if no page exists. The launch page is read with launchpad_get.', input: {}, annotations: READ, untrusted: true,
307
383
  run: async (api) => { const data = await api.request('GET', '/page'); return { lead: `Your page and workspace settings. main_page=${get(data, 'main_page') ?? 'page'}.`, data }; } }),
308
384
  defineTool({ name: 'page_update', title: 'Update Your page', scope: 'draft', description: 'Update Your page fields (not the launch page: use launchpad_update). Arrays replace existing values. Publishing (published: true) needs the person\'s approval and confirm_publish: true. Without it, edits to a page that is already published are saved as a draft and the public page keeps its approved version. Automatic checks may hold changes for review; inspect pending_review, moderation_status and owner_reason before claiming publication. Requires a claimed handle; Free must show the badge. HTTPS destinations and contrast are enforced by the API.', input: { updates: pageUpdateSchema, confirm_publish: z.literal(true).optional().describe('true only after the person explicitly approved publishing; required whenever this call publishes.') }, annotations: WRITE_IDEMPOTENT, untrusted: true,
@@ -349,7 +425,7 @@ export const TOOLS = [
349
425
  name: 'brand_get',
350
426
  title: 'Get brand',
351
427
  scope: 'read',
352
- description: 'Returns the brand settings: workspace and from name, reply-to, logo, colors, footer address, the saved writing voice and the sending domain status. Free and read only. Read this before writing any campaign copy and follow the voice exactly.',
428
+ description: 'Returns the brand settings: workspace and from name, reply-to, logo, colors, the theme (background, surface, text, button_style, button_shape), the default info_bar, the footer (address, link buttons, disclaimer, social_icons), social profile links, the saved writing voice and the sending domain status. Free and read only. Read this before writing any campaign copy and follow the voice exactly.',
353
429
  input: {},
354
430
  annotations: READ,
355
431
  run: async (api) => {
@@ -371,6 +447,82 @@ export const TOOLS = [
371
447
  return { lead: 'Brand voice saved.', data };
372
448
  },
373
449
  }),
450
+ defineTool({
451
+ name: 'brand_set_footer',
452
+ title: 'Save email footer',
453
+ scope: 'draft',
454
+ description: 'Saves the footer every email carries, above the mailing address and unsubscribe link (those two are always added and cannot be changed here): up to 5 full-width link buttons (links, for example Shop men\u2019s, Find your store), the "Follow us" social icon row (social handles plus social_icons: true), and a small disclaimer (pricing or legal note). Fields you leave out stay as they are; links: [] removes the buttons, disclaimer: "" removes the note. Applies to every email sent after saving, including scheduled ones that have not gone out yet. Uses no quota and sends nothing. Read brand_get first and only save what the person approved. ' +
455
+ 'Example: {"links": [{"label": "Shop men\u2019s", "url": "https://shop.example/men"}, {"label": "Find your store", "url": "https://shop.example/stores"}], "social": {"instagram": "shopexample", "youtube": "shopexample"}, "social_icons": true, "disclaimer": "Prices may differ in stores."}',
456
+ input: {
457
+ links: z.array(footerLinkSchema).max(5).optional().describe('Footer link buttons, top to bottom. Replaces the current list.'),
458
+ disclaimer: z.string().max(1500).optional().describe('Small print above the address, for example pricing, shipping or legal notes. **bold**, *italic* and [links](https://...) work. "" removes it.'),
459
+ social: z
460
+ .object(Object.fromEntries(SOCIAL_NETWORKS.map((n) => [n, z.string().max(300).optional()])))
461
+ .strict()
462
+ .optional()
463
+ .describe('Social profiles: a handle ("shopexample", "@shopexample") or the profile link. "" removes one. These are the same profiles as Settings > Brand.'),
464
+ social_icons: z.boolean().optional().describe('true: show the profiles as a "Follow us" row of icons. false: plain text links (the older look).'),
465
+ },
466
+ annotations: WRITE_IDEMPOTENT,
467
+ run: async (api, args) => {
468
+ const footer = {};
469
+ if (args.links !== undefined)
470
+ footer.links = args.links;
471
+ if (args.disclaimer !== undefined)
472
+ footer.disclaimer = args.disclaimer;
473
+ if (args.social_icons !== undefined)
474
+ footer.social_icons = args.social_icons;
475
+ const body = {};
476
+ if (Object.keys(footer).length)
477
+ body.footer = footer;
478
+ if (args.social !== undefined)
479
+ body.social = args.social;
480
+ if (!Object.keys(body).length)
481
+ throw new InputError('Nothing to save: pass links, disclaimer, social or social_icons.');
482
+ const data = await api.request('PATCH', '/brand', { body });
483
+ return { lead: 'Email footer saved. It shows in every email sent from now on.', data };
484
+ },
485
+ }),
486
+ defineTool({
487
+ name: 'brand_set_theme',
488
+ title: 'Save email look',
489
+ scope: 'draft',
490
+ description: 'Saves the default look of every email: theme colors (background, surface, text), buttons (button_style solid or outline, button_shape pill or rounded) and the info bar, a dark band across the top (for example free shipping). A single campaign can override any of these with blocks.theme and blocks.info_bar. Fields you leave out stay as they are; info_bar: null removes the bar; a color "" goes back to the default. Text needs 4.5:1 contrast with the surface; campaign_preview warns when it does not. Uses no quota and sends nothing. Only save what the person approved. ' +
491
+ 'Example: {"theme": {"surface": "#ffffff", "text": "#27272a", "button_style": "outline", "button_shape": "pill"}, "info_bar": {"text": "Free shipping on orders over $99", "url": "https://shop.example/shipping"}}',
492
+ input: {
493
+ theme: z
494
+ .object({
495
+ background: hexColor.or(z.literal('')).optional().describe('Page color around the email.'),
496
+ surface: hexColor.or(z.literal('')).optional().describe('Email card color.'),
497
+ text: hexColor.or(z.literal('')).optional().describe('Body text color.'),
498
+ button_style: z.enum(['solid', 'outline']).nullable().optional().describe('solid or outline; null goes back to solid.'),
499
+ button_shape: z.enum(['pill', 'rounded']).nullable().optional().describe('pill or rounded; null goes back to the brand radius.'),
500
+ })
501
+ .strict()
502
+ .optional(),
503
+ info_bar: z
504
+ .object({
505
+ text: z.string().min(1).max(120).describe('Short line, for example "Free shipping on orders over $99".'),
506
+ url: https.max(2000).optional().describe('Where a click on the bar goes.'),
507
+ })
508
+ .strict()
509
+ .nullable()
510
+ .optional()
511
+ .describe('Default info bar for every email, or null to remove it.'),
512
+ },
513
+ annotations: WRITE_IDEMPOTENT,
514
+ run: async (api, args) => {
515
+ const body = {};
516
+ if (args.theme !== undefined)
517
+ body.theme = args.theme;
518
+ if (args.info_bar !== undefined)
519
+ body.info_bar = args.info_bar;
520
+ if (!Object.keys(body).length)
521
+ throw new InputError('Nothing to save: pass theme or info_bar.');
522
+ const data = await api.request('PATCH', '/brand', { body });
523
+ return { lead: 'Email look saved. It applies to every email from now on unless a campaign overrides it.', data };
524
+ },
525
+ }),
374
526
  defineTool({
375
527
  name: 'templates_list',
376
528
  title: 'List templates',
@@ -510,7 +662,9 @@ export const TOOLS = [
510
662
  name: 'campaign_draft',
511
663
  title: 'Draft campaign',
512
664
  scope: 'draft',
513
- description: 'Creates a campaign as a DRAFT. Nothing is sent and no quota is used. Before calling: read brand_get for the voice, pick a template from templates_list, and pick the audience from segments_list. You fill the content blocks; Hollerpost renders the email with the brand header, footer and unsubscribe link. Optionally ask one survey question (survey) that readers answer with one click. Returns the id, audience_count and a preview_url to share with the person. Next step: campaign_preview, then campaign_send_test.',
665
+ description: 'Creates a campaign as a DRAFT. Nothing is sent and no quota is used. Before calling: read brand_get for the voice, pick a template from templates_list, and pick the audience from segments_list. You fill the content blocks; Hollerpost renders the email with the brand header, footer and unsubscribe link. Optionally ask one survey question (survey) that readers answer with one click. Returns the id, audience_count and a preview_url to share with the person. Next step: campaign_preview, then campaign_send_test. ' +
666
+ 'Retail promo in one call (template promo): {"info_bar": {"text": "Free shipping over $99", "url": "https://shop.example/shipping"}, "image_url": "https://images.hollerpost.com/...", "image_alt": "...", "image_link": "https://shop.example/sale", "heading": "Up to 30% off", "body_md": "...", "cta_text": "Shop the sale", "cta_url": "https://shop.example/sale", "cta_repeat": "bottom", "layout": "grid-2", "sections": [{"heading": "Maple cue", "price": "$129", "image_url": "https://images.hollerpost.com/...", "image_alt": "Maple cue", "cta_text": "Shop now", "cta_url": "https://shop.example/p/1"}], "fine_print": "Ends Sunday. Not valid with other offers.", "theme": {"button_style": "outline", "button_shape": "pill"}}. ' +
667
+ 'The footer link buttons, Follow us icons and disclaimer come from the brand (brand_set_footer), not the blocks. Every send also gets a View in browser link, the mailing address and an unsubscribe link automatically.',
514
668
  input: {
515
669
  name: z.string().min(1).max(200).describe('Internal campaign name (recipients do not see it).'),
516
670
  template_id: z.string().min(1).describe('Template id from templates_list.'),
@@ -928,7 +1082,7 @@ export const TOOLS = [
928
1082
  name: 'sms_registration_submit',
929
1083
  title: 'Submit the texting registration',
930
1084
  scope: 'account',
931
- description: 'Sends the registration to the carriers for review. The first time it also buys the chosen toll-free number (phone_number from sms_numbers, included in the person\'s add-on). After a rejection it resubmits the same request with the fixes. Only after the person reviewed the form (sms_setup_status) and said yes: needs confirm: true. Every check runs again first; if one fails, nothing is sent or bought. Review takes 1 to 2 weeks, sometimes a month; never promise a date. The person gets an email when the status changes.',
1085
+ description: 'Sends the registration to the carriers for review. The first time it also buys the chosen toll-free number (phone_number from sms_numbers, included in the person\'s add-on). After a rejection it resubmits the same request with the fixes. Only after the person reviewed the form (sms_setup_status) and said yes: needs confirm: true. Every check runs again first; if one fails, nothing is sent or bought. Current API builds answer submit_in_dashboard: the submit needs the person\'s EIN or SSN, which Hollerpost sends straight to the carriers and does not keep, so the person submits in the dashboard (setup_url, Settings, Text messaging); pass that on. Review takes 1 to 2 weeks, sometimes a month; never promise a date. The person gets an email when the status changes.',
932
1086
  input: {
933
1087
  confirm: z.literal(true).describe('true: the person approved submitting.'),
934
1088
  phone_number: z.string().regex(/^\+18(00|33|44|55|66|77|88)\d{7}$/).optional().describe('First submission only: the toll-free number the person picked, E.164 (+18335550100).'),
@@ -1298,11 +1452,13 @@ export const TOOLS = [
1298
1452
  }),
1299
1453
  ];
1300
1454
  export const CORE_TOOL_NAMES = [
1301
- 'launchpad_get', 'launchpad_update', 'launchpad_go_live',
1455
+ 'launchpad_get', 'launchpad_update', 'launchpad_go_live', 'launchpad_set_offline',
1302
1456
  'page_get', 'page_update', 'page_link_add', 'page_link_update', 'page_link_remove', 'page_links_reorder', 'event_list', 'event_create', 'event_update', 'event_cancel',
1303
1457
  'workspace_info',
1304
1458
  'brand_get',
1305
1459
  'brand_set_voice',
1460
+ 'brand_set_footer',
1461
+ 'brand_set_theme',
1306
1462
  'templates_list',
1307
1463
  'email_image_upload',
1308
1464
  'email_image_upload_link',
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "0.8.0";
1
+ export declare const VERSION = "0.9.0";
package/dist/version.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // Kept in sync with package.json "version" (a test checks it).
2
- export const VERSION = '0.8.0';
2
+ export const VERSION = '0.9.0';
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "hollerpost-mcp",
3
- "version": "0.8.0",
3
+ "mcpName": "com.hollerpost/mcp",
4
+ "version": "0.9.0",
4
5
  "description": "MCP server for Hollerpost: let your own AI agent draft, preview, schedule and report on email campaigns in your Hollerpost workspace.",
5
6
  "license": "MIT",
6
7
  "type": "module",
@@ -23,7 +24,7 @@
23
24
  "email",
24
25
  "newsletter"
25
26
  ],
26
- "homepage": "https://hollerpost.com/docs/mcp/",
27
+ "homepage": "https://hollerpost.com/docs/mcp/?utm_source=npm&utm_medium=referral&utm_campaign=mcp",
27
28
  "scripts": {
28
29
  "build": "tsc -p tsconfig.build.json && chmod +x dist/stdio.js",
29
30
  "typecheck": "tsc --noEmit -p tsconfig.json",
@@ -32,7 +33,8 @@
32
33
  "start:stdio": "node dist/stdio.js",
33
34
  "inspect:stdio": "npm run build && npx @modelcontextprotocol/inspector@2.9.0 --cli -e HOLLERPOST_KEY=hp_live_dummy --method tools/list --strict node dist/stdio.js",
34
35
  "e2e": "tsx test/e2e.ts",
35
- "prepublishOnly": "npm run typecheck && npm test && npm run build"
36
+ "prepublishOnly": "npm run typecheck && npm test && npm run build",
37
+ "docs:tools": "tsx scripts/tool-docs.ts"
36
38
  },
37
39
  "dependencies": {
38
40
  "@modelcontextprotocol/sdk": "1.32.0",