hollerpost-mcp 0.1.0 → 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/README.md +1 -1
- package/dist/tools.js +3 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Everything goes through the public API at `https://api.hollerpost.com/api/v1` wi
|
|
|
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
9
|
|
|
10
|
-
Create a key in the Hollerpost Dashboard under **Settings, Developer API**. Keys
|
|
10
|
+
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
11
|
|
|
12
12
|
## Connect
|
|
13
13
|
|
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
|
-
|
|
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
|
+
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.
|
|
2
|
+
export const VERSION = '0.1.2';
|
package/package.json
CHANGED