@netsendo/mcp-client 1.5.1 → 1.6.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/README.md +125 -2
- package/dist/api-client.d.ts +10 -0
- package/dist/api-client.d.ts.map +1 -1
- package/dist/api-client.js +20 -1
- package/dist/api-client.js.map +1 -1
- package/dist/config.d.ts +1 -9
- package/dist/config.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/tools/automations.d.ts +12 -0
- package/dist/tools/automations.d.ts.map +1 -0
- package/dist/tools/automations.js +184 -0
- package/dist/tools/automations.js.map +1 -0
- package/dist/tools/campaign-extras.d.ts +175 -0
- package/dist/tools/campaign-extras.d.ts.map +1 -0
- package/dist/tools/campaign-extras.js +283 -0
- package/dist/tools/campaign-extras.js.map +1 -0
- package/dist/tools/campaigns.d.ts.map +1 -1
- package/dist/tools/campaigns.js +81 -93
- package/dist/tools/campaigns.js.map +1 -1
- package/dist/tools/custom-fields.d.ts +12 -0
- package/dist/tools/custom-fields.d.ts.map +1 -0
- package/dist/tools/custom-fields.js +94 -0
- package/dist/tools/custom-fields.js.map +1 -0
- package/dist/tools/forms.d.ts +10 -0
- package/dist/tools/forms.d.ts.map +1 -0
- package/dist/tools/forms.js +163 -0
- package/dist/tools/forms.js.map +1 -0
- package/dist/tools/funnels.js +3 -3
- package/dist/tools/funnels.js.map +1 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +16 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/list-import.js +4 -4
- package/dist/tools/list-import.js.map +1 -1
- package/dist/tools/lists.d.ts.map +1 -1
- package/dist/tools/lists.js +206 -97
- package/dist/tools/lists.js.map +1 -1
- package/dist/tools/notifications.js +1 -1
- package/dist/tools/notifications.js.map +1 -1
- package/dist/tools/subscribers.js +2 -2
- package/dist/tools/subscribers.js.map +1 -1
- package/dist/tools/system-content.d.ts +12 -0
- package/dist/tools/system-content.d.ts.map +1 -0
- package/dist/tools/system-content.js +150 -0
- package/dist/tools/system-content.js.map +1 -0
- package/dist/tools/tags.d.ts +11 -0
- package/dist/tools/tags.d.ts.map +1 -0
- package/dist/tools/tags.js +61 -0
- package/dist/tools/tags.js.map +1 -0
- package/dist/tools/templates.d.ts +10 -0
- package/dist/tools/templates.d.ts.map +1 -0
- package/dist/tools/templates.js +294 -0
- package/dist/tools/templates.js.map +1 -0
- package/dist/tools/webhooks.d.ts +11 -0
- package/dist/tools/webhooks.d.ts.map +1 -0
- package/dist/tools/webhooks.js +130 -0
- package/dist/tools/webhooks.js.map +1 -0
- package/package.json +3 -3
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* NetSendo MCP Server - Webhook Tools
|
|
3
|
+
*
|
|
4
|
+
* Outgoing webhooks: NetSendo POSTs a signed JSON payload to a URL whenever
|
|
5
|
+
* one of the subscribed events happens (subscriber changes, tags, email/SMS,
|
|
6
|
+
* Stripe purchases).
|
|
7
|
+
*/
|
|
8
|
+
import { z } from 'zod';
|
|
9
|
+
import { NetSendoApiError } from '../api-client.js';
|
|
10
|
+
import { compact, fail, ok } from './helpers.js';
|
|
11
|
+
const EVENTS_HELP = `Events: subscriber.created, subscriber.updated, subscriber.deleted, subscriber.subscribed, subscriber.resubscribed, subscriber.unsubscribed, subscriber.bounced, subscriber.tag_added, subscriber.tag_removed, email.queued, sms.queued, sms.sent, sms.failed, stripe.purchase_completed, stripe.payment_refunded (list_webhook_events returns the authoritative list for this installation).`;
|
|
12
|
+
const DELIVERY_HELP = `Delivery: POST with JSON body {"event", "timestamp", "data"} and headers X-NetSendo-Event and X-NetSendo-Signature = HMAC-SHA256 of the raw body keyed with the webhook secret. A 2xx answer counts as success; after 10 consecutive failures the webhook is deactivated automatically (re-enable with update_webhook is_active=true).`;
|
|
13
|
+
const eventList = z.array(z.string()).min(1);
|
|
14
|
+
export function registerWebhookTools(server, api) {
|
|
15
|
+
server.tool('list_webhook_events', 'List the event names a webhook can subscribe to on this NetSendo installation. Call it before create_webhook / update_webhook when unsure of an event name.', {}, async () => {
|
|
16
|
+
try {
|
|
17
|
+
const res = await api.request('get', '/webhooks/events');
|
|
18
|
+
return ok({ events: res.events, total: res.events.length });
|
|
19
|
+
}
|
|
20
|
+
catch (error) {
|
|
21
|
+
return fail(error);
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
server.tool('list_webhooks', 'List the account\'s outgoing webhooks with their URL, subscribed events, is_active, failure_count (consecutive failed deliveries) and last_triggered_at. Secrets are never listed.', {
|
|
25
|
+
page: z.number().int().min(1).optional().describe('Page number (default 1)'),
|
|
26
|
+
per_page: z.number().int().min(1).max(100).optional().describe('Items per page (default 25)'),
|
|
27
|
+
}, async (params) => {
|
|
28
|
+
try {
|
|
29
|
+
const res = await api.request('get', '/webhooks', { params: compact(params) });
|
|
30
|
+
return ok({ webhooks: res.data, pagination: res.meta ?? null });
|
|
31
|
+
}
|
|
32
|
+
catch (error) {
|
|
33
|
+
return fail(error);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
server.tool('get_webhook', 'Get one webhook: name, url, events, is_active, failure_count and last_triggered_at. The secret is not returned (use regenerate_webhook_secret if it was lost).', {
|
|
37
|
+
webhook_id: z.number().int().describe('Webhook ID'),
|
|
38
|
+
}, async ({ webhook_id }) => {
|
|
39
|
+
try {
|
|
40
|
+
const res = await api.request('get', `/webhooks/${webhook_id}`);
|
|
41
|
+
return ok(res.data);
|
|
42
|
+
}
|
|
43
|
+
catch (error) {
|
|
44
|
+
return fail(error);
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
server.tool('create_webhook', `Register an outgoing webhook. The response contains the signing secret ONCE — show it to the user so they can store it in the receiving system; it cannot be read again.
|
|
48
|
+
|
|
49
|
+
${EVENTS_HELP}
|
|
50
|
+
|
|
51
|
+
${DELIVERY_HELP}
|
|
52
|
+
|
|
53
|
+
Requires the webhooks:write permission.`, {
|
|
54
|
+
name: z.string().min(1).max(255).describe('Name shown in the panel, e.g. "CRM sync"'),
|
|
55
|
+
url: z.string().url().max(2048).describe('HTTPS endpoint that will receive the POST requests'),
|
|
56
|
+
events: eventList.describe('Events to send, e.g. ["subscriber.created","subscriber.unsubscribed"]'),
|
|
57
|
+
is_active: z.boolean().optional().describe('Start active (default true)'),
|
|
58
|
+
}, async (input) => {
|
|
59
|
+
try {
|
|
60
|
+
const res = await api.request('post', '/webhooks', { data: compact(input) });
|
|
61
|
+
return ok({ success: true, message: res.message, webhook: res.data });
|
|
62
|
+
}
|
|
63
|
+
catch (error) {
|
|
64
|
+
return fail(error);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
server.tool('update_webhook', `Change a webhook's name, URL, events or active state. Only the fields you pass are changed; events REPLACES the whole list (read it with get_webhook first to add one). Set is_active=false to pause deliveries, true to resume a webhook that was auto-deactivated after failures. ${EVENTS_HELP} Requires webhooks:write.`, {
|
|
68
|
+
webhook_id: z.number().int().describe('Webhook ID'),
|
|
69
|
+
name: z.string().min(1).max(255).optional().describe('New name'),
|
|
70
|
+
url: z.string().url().max(2048).optional().describe('New endpoint URL'),
|
|
71
|
+
events: eventList.optional().describe('New full list of events'),
|
|
72
|
+
is_active: z.boolean().optional().describe('Enable or pause the webhook'),
|
|
73
|
+
}, async ({ webhook_id, ...changes }) => {
|
|
74
|
+
try {
|
|
75
|
+
const res = await api.request('put', `/webhooks/${webhook_id}`, { data: compact(changes) });
|
|
76
|
+
return ok({ success: true, webhook: res.data });
|
|
77
|
+
}
|
|
78
|
+
catch (error) {
|
|
79
|
+
return fail(error);
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
server.tool('delete_webhook', 'Delete a webhook permanently; NetSendo stops sending events to its URL. Confirm with the user first if the webhook may feed another system. Requires webhooks:write.', {
|
|
83
|
+
webhook_id: z.number().int().describe('Webhook ID'),
|
|
84
|
+
}, async ({ webhook_id }) => {
|
|
85
|
+
try {
|
|
86
|
+
const res = await api.request('delete', `/webhooks/${webhook_id}`);
|
|
87
|
+
return ok({ success: true, message: res.message, webhook_id });
|
|
88
|
+
}
|
|
89
|
+
catch (error) {
|
|
90
|
+
return fail(error);
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
server.tool('test_webhook', 'Send a test delivery (event "webhook.test", sample subscriber test@example.com) to the webhook URL right now and report whether the endpoint answered 2xx. A failed test counts towards failure_count. Requires webhooks:write.', {
|
|
94
|
+
webhook_id: z.number().int().describe('Webhook ID'),
|
|
95
|
+
}, async ({ webhook_id }) => {
|
|
96
|
+
try {
|
|
97
|
+
const res = await api.request('post', `/webhooks/${webhook_id}/test`);
|
|
98
|
+
return ok(res);
|
|
99
|
+
}
|
|
100
|
+
catch (error) {
|
|
101
|
+
// The API answers 422 when the endpoint did not accept the test
|
|
102
|
+
if (error instanceof NetSendoApiError && error.statusCode === 422 && !error.errors) {
|
|
103
|
+
return {
|
|
104
|
+
content: [{
|
|
105
|
+
type: 'text',
|
|
106
|
+
text: JSON.stringify({
|
|
107
|
+
success: false,
|
|
108
|
+
message: error.message,
|
|
109
|
+
hint: 'The endpoint did not answer with 2xx within 10 seconds. Check the URL and that the receiver accepts POST JSON.',
|
|
110
|
+
}, null, 2),
|
|
111
|
+
}],
|
|
112
|
+
isError: true,
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
return fail(error);
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
server.tool('regenerate_webhook_secret', 'Generate a new signing secret for a webhook. The old secret stops working immediately, so the receiving system must be updated with the new one — show the returned secret to the user (it is shown only once). Requires webhooks:write.', {
|
|
119
|
+
webhook_id: z.number().int().describe('Webhook ID'),
|
|
120
|
+
}, async ({ webhook_id }) => {
|
|
121
|
+
try {
|
|
122
|
+
const res = await api.request('post', `/webhooks/${webhook_id}/regenerate-secret`);
|
|
123
|
+
return ok({ success: true, webhook_id, secret: res.secret, message: res.message });
|
|
124
|
+
}
|
|
125
|
+
catch (error) {
|
|
126
|
+
return fail(error);
|
|
127
|
+
}
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E,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;QACrF,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC;QACrB,CAAC;IACH,CAAC,CACF,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netsendo/mcp-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Model Context Protocol client for NetSendo email marketing platform - connect AI assistants to your NetSendo instance",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -50,13 +50,13 @@
|
|
|
50
50
|
"@modelcontextprotocol/sdk": "^1.24.3",
|
|
51
51
|
"axios": "^1.7.9",
|
|
52
52
|
"commander": "^12.1.0",
|
|
53
|
-
"zod": "^
|
|
53
|
+
"zod": "^4.6.7"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"@types/node": "^22.10.5",
|
|
57
57
|
"tsx": "^4.19.2",
|
|
58
58
|
"typescript": "^5.7.3",
|
|
59
|
-
"vitest": "^
|
|
59
|
+
"vitest": "^5.1.0"
|
|
60
60
|
},
|
|
61
61
|
"engines": {
|
|
62
62
|
"node": ">=18.0.0"
|