hollerpost-mcp 0.1.1 → 0.1.2

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/tools.js CHANGED
@@ -371,7 +371,9 @@ export const TOOLS = [
371
371
  annotations: READ,
372
372
  run: async (api, { id }) => {
373
373
  const data = await api.request('GET', `/campaigns/${seg(id)}/stats`);
374
- const lead = `Stats for ${id}: sent ${get(data, 'sent') ?? 0}, delivered ${get(data, 'delivered') ?? 0}, opened ${get(data, 'opened') ?? 0}, clicked ${get(data, 'clicked') ?? 0}, bounced ${get(data, 'bounced') ?? 0}, unsubscribed ${get(data, 'unsubscribed') ?? 0}.`;
374
+ // The API nests the numbers under `stats`.
375
+ const st = get(data, 'stats') ?? data;
376
+ const lead = `Stats for ${id}: sent ${get(st, 'sent') ?? 0}, delivered ${get(st, 'delivered') ?? 0}, opened ${get(st, 'opened') ?? 0}, clicked ${get(st, 'clicked') ?? 0}, bounced ${get(st, 'bounced') ?? 0}, unsubscribed ${get(st, 'unsubscribed') ?? 0}.`;
375
377
  return { lead, data };
376
378
  },
377
379
  }),
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "0.1.1";
1
+ export declare const VERSION = "0.1.2";
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.1.1';
2
+ export const VERSION = '0.1.2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hollerpost-mcp",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
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",