hollerpost-mcp 0.7.0 → 0.7.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/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.1 (2026-11-13)
4
+
5
+ - Edits to a published page through the API now wait as a draft unless the
6
+ person approved publishing: the public page keeps its approved version.
7
+ `page_link_add`, `page_link_update`, `page_link_remove` and
8
+ `page_links_reorder` take `confirm_publish: true` (after approval) like
9
+ `page_update` and the event tools. Responses say `saved_as_draft: true`
10
+ when a change is waiting.
11
+
3
12
  ## 0.7.0 (2026-11-13)
4
13
 
5
14
  Launchpad through the existing Your page API and scopes, plus the new page looks.
package/dist/tools.js CHANGED
@@ -291,21 +291,21 @@ export const TOOLS = [
291
291
  }),
292
292
  defineTool({ name: 'page_get', title: 'Get Your page', scope: 'read', description: 'Read Your page, links, events, handle and plan settings. An unsaved draft from the brand kit is returned if no page exists.', input: {}, annotations: READ, untrusted: true,
293
293
  run: async (api) => ({ lead: 'Your page and workspace settings.', data: await api.request('GET', '/page') }) }),
294
- defineTool({ name: 'page_update', title: 'Update Your page', scope: 'draft', description: 'Update Your page fields, including Launchpad waitlist fields. Arrays replace existing values. Publishing (published: true or mode: live) needs the person\'s approval and confirm_publish: true. 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,
294
+ defineTool({ name: 'page_update', title: 'Update Your page', scope: 'draft', description: 'Update Your page fields, including Launchpad waitlist fields. Arrays replace existing values. Publishing (published: true or mode: live) 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,
295
295
  run: async (api, { updates, confirm_publish }) => ({ lead: 'Your page updated.', data: await api.request('PATCH', '/page', { body: updates, ...(confirm_publish ? { headers: { 'X-Hollerpost-Confirm': 'publish' } } : {}) }) }) }),
296
- defineTool({ name: 'page_link_add', title: 'Add page link', scope: 'draft', description: 'Add a HTTPS link to Your page (maximum 30). Known URL shorteners are refused. Visible immediately on published pages unless disabled or scheduled.', input: { link: pageLinkSchema }, annotations: WRITE_SAFE, untrusted: true,
297
- run: async (api, { link }) => ({ lead: 'Page link added.', data: await api.request('POST', '/page/links', { body: link }) }) }),
298
- defineTool({ name: 'page_link_update', title: 'Update page link', scope: 'draft', description: 'Update a workspace page link by ID. Omitted fields stay unchanged.', input: { id: z.string().uuid(), updates: pageLinkSchema.partial() }, annotations: WRITE_IDEMPOTENT, untrusted: true,
299
- run: async (api, { id, updates }) => ({ lead: 'Page link updated.', data: await api.request('PATCH', `/page/links/${seg(id)}`, { body: updates }) }) }),
300
- defineTool({ name: 'page_link_remove', title: 'Remove page link', scope: 'draft', description: 'Permanently remove a page link. Ask for confirmation before calling; requires confirm: true.', input: { id: z.string().uuid(), confirm: z.literal(true) }, annotations: PAGE_DESTRUCTIVE,
301
- run: async (api, { id }) => ({ lead: 'Page link removed.', data: await api.request('DELETE', `/page/links/${seg(id)}`) }) }),
302
- defineTool({ name: 'page_links_reorder', title: 'Reorder page links', scope: 'draft', description: 'Replace link ordering. Include every workspace link ID exactly once.', input: { ids: z.array(z.string().uuid()).max(30) }, annotations: WRITE_IDEMPOTENT,
303
- run: async (api, { ids }) => ({ lead: 'Page links reordered.', data: await api.request('PUT', '/page/links/order', { body: { ids } }) }) }),
296
+ defineTool({ name: 'page_link_add', title: 'Add page link', scope: 'draft', description: 'Add a HTTPS link to Your page (maximum 30). Known URL shorteners are refused. On a published page the change is saved as a draft and the public page keeps its approved version until the person approves publishing; then pass confirm_publish: true.', input: { link: pageLinkSchema, confirm_publish: z.literal(true).optional().describe('true only after the person explicitly approved publishing; without it, changes to a published page wait as a draft.') }, annotations: WRITE_SAFE, untrusted: true,
297
+ run: async (api, { link, confirm_publish }) => ({ lead: 'Page link added.', data: await api.request('POST', '/page/links', { body: link, ...(confirm_publish ? { headers: { 'X-Hollerpost-Confirm': 'publish' } } : {}) }) }) }),
298
+ defineTool({ name: 'page_link_update', title: 'Update page link', scope: 'draft', description: 'Update a workspace page link by ID. Omitted fields stay unchanged. On a published page the change is saved as a draft and the public page keeps its approved version until the person approves publishing; then pass confirm_publish: true.', input: { id: z.string().uuid(), updates: pageLinkSchema.partial(), confirm_publish: z.literal(true).optional().describe('true only after the person explicitly approved publishing; without it, changes to a published page wait as a draft.') }, annotations: WRITE_IDEMPOTENT, untrusted: true,
299
+ run: async (api, { id, updates, confirm_publish }) => ({ lead: 'Page link updated.', data: await api.request('PATCH', `/page/links/${seg(id)}`, { body: updates, ...(confirm_publish ? { headers: { 'X-Hollerpost-Confirm': 'publish' } } : {}) }) }) }),
300
+ defineTool({ name: 'page_link_remove', title: 'Remove page link', scope: 'draft', description: 'Permanently remove a page link. Ask for confirmation before calling; requires confirm: true. On a published page the change is saved as a draft and the public page keeps its approved version until the person approves publishing; then pass confirm_publish: true.', input: { id: z.string().uuid(), confirm: z.literal(true), confirm_publish: z.literal(true).optional().describe('true only after the person explicitly approved publishing; without it, changes to a published page wait as a draft.') }, annotations: PAGE_DESTRUCTIVE,
301
+ run: async (api, { id, confirm_publish }) => ({ lead: 'Page link removed.', data: await api.request('DELETE', `/page/links/${seg(id)}`, { ...(confirm_publish ? { headers: { 'X-Hollerpost-Confirm': 'publish' } } : {}) }) }) }),
302
+ defineTool({ name: 'page_links_reorder', title: 'Reorder page links', scope: 'draft', description: 'Replace link ordering. Include every workspace link ID exactly once. On a published page the change is saved as a draft and the public page keeps its approved version until the person approves publishing; then pass confirm_publish: true.', input: { ids: z.array(z.string().uuid()).max(30), confirm_publish: z.literal(true).optional().describe('true only after the person explicitly approved publishing; without it, changes to a published page wait as a draft.') }, annotations: WRITE_IDEMPOTENT,
303
+ run: async (api, { ids, confirm_publish }) => ({ lead: 'Page links reordered.', data: await api.request('PUT', '/page/links/order', { body: { ids }, ...(confirm_publish ? { headers: { 'X-Hollerpost-Confirm': 'publish' } } : {}) }) }) }),
304
304
  defineTool({ name: 'event_list', title: 'List calendar events', scope: 'read', description: 'List workspace calendar events, including upcoming and the past 90 days. These are calendar events, not email delivery events.', input: {}, annotations: READ, untrusted: true,
305
305
  run: async (api) => ({ lead: 'Workspace calendar events.', data: await api.request('GET', '/page/events') }) }),
306
306
  defineTool({ name: 'event_create', title: 'Create calendar event', scope: 'draft', description: 'Create a calendar event. Defaults to draft. Status published shows it on Your page right away: ask the person first and pass confirm_publish: true. Use an IANA timezone and ISO dates with offsets.', input: { event: pageEventSchema, confirm_publish: z.literal(true).optional().describe('true only after the person explicitly approved publishing; required whenever this call publishes.') }, annotations: WRITE_SAFE, untrusted: true,
307
307
  run: async (api, { event, confirm_publish }) => ({ lead: 'Calendar event created.', data: await api.request('POST', '/page/events', { body: event, ...(confirm_publish ? { headers: { 'X-Hollerpost-Confirm': 'publish' } } : {}) }) }) }),
308
- defineTool({ name: 'event_update', title: 'Update calendar event', scope: 'draft', description: 'Update a calendar event by ID. Fields omitted are unchanged. Changes to a published event affect Your page. Setting status published needs the person\'s approval and confirm_publish: true.', input: { id: z.string().uuid(), updates: pageEventSchema.omit({ status: true }).extend({ status: z.enum(['draft', 'published']).optional() }).partial(), 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,
308
+ defineTool({ name: 'event_update', title: 'Update calendar event', scope: 'draft', description: 'Update a calendar event by ID. Fields omitted are unchanged. Changes to a published event wait as a draft until the person approves publishing (confirm_publish: true). Setting status published needs the person\'s approval and confirm_publish: true.', input: { id: z.string().uuid(), updates: pageEventSchema.omit({ status: true }).extend({ status: z.enum(['draft', 'published']).optional() }).partial(), 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,
309
309
  run: async (api, { id, updates, confirm_publish }) => ({ lead: 'Calendar event updated.', data: await api.request('PATCH', `/page/events/${seg(id)}`, { body: updates, ...(confirm_publish ? { headers: { 'X-Hollerpost-Confirm': 'publish' } } : {}) }) }) }),
310
310
  defineTool({ name: 'event_cancel', title: 'Cancel calendar event', scope: 'draft', description: 'Cancel an event and remove it from the public page, retaining its record. Ask for confirmation before calling; requires confirm: true.', input: { id: z.string().uuid(), confirm: z.literal(true) }, annotations: PAGE_DESTRUCTIVE, untrusted: true,
311
311
  run: async (api, { id }) => ({ lead: 'Calendar event canceled.', data: await api.request('PATCH', `/page/events/${seg(id)}`, { body: { status: 'canceled' } }) }) }),
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "0.7.0";
1
+ export declare const VERSION = "0.7.1";
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.7.0';
2
+ export const VERSION = '0.7.1';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hollerpost-mcp",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "MCP server for Hollerpost: let your own AI agent draft, preview, schedule and report on email campaigns in your Hollerpost workspace.",
5
5
  "license": "MIT",
6
6
  "type": "module",