@sendinel/mcp-server 1.0.65 → 1.0.66
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/build/tools/campaigns.js +10 -0
- package/package.json +1 -1
package/build/tools/campaigns.js
CHANGED
|
@@ -3140,6 +3140,16 @@ Return ONLY valid JSON with this exact shape:
|
|
|
3140
3140
|
survey_id: z.string().uuid().optional(),
|
|
3141
3141
|
skip_if_event: z.string().trim().min(1).nullable().optional().describe('Event name that skips this step at send time; null clears the rule.'),
|
|
3142
3142
|
send_only_if_event: z.string().trim().min(1).nullable().optional().describe('Event required for this step to send; null clears the rule.'),
|
|
3143
|
+
link_actions: z.array(z.discriminatedUnion('action', [
|
|
3144
|
+
z.object({ url_pattern: z.string().trim().min(1).max(500), action: z.enum(['add_tag', 'remove_tag']), tag: z.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/) }),
|
|
3145
|
+
z.object({
|
|
3146
|
+
url_pattern: z.string().trim().min(1).max(500).describe('Placeholder URL in the email body (a trailing * matches a prefix). Matching links are rewritten at send time to a signed /api/pick/<token> confirm page.'),
|
|
3147
|
+
action: z.literal('set_property'),
|
|
3148
|
+
property: z.string().regex(/^[a-z][a-z0-9_]{0,62}$/).describe('Custom contact property to set, for example "track". Consent, suppression and unsubscribe fields are rejected.'),
|
|
3149
|
+
value: z.string().trim().min(1).max(100),
|
|
3150
|
+
continue_url: z.string().url().max(500).optional().describe('Optional http(s) link shown on the thank-you page.'),
|
|
3151
|
+
}),
|
|
3152
|
+
])).max(10).optional().describe('Link actions for this step. set_property links show a Confirm page; only the Confirm click writes the property (last click wins). Replaces the whole list.'),
|
|
3143
3153
|
},
|
|
3144
3154
|
}, async ({ step_id, ...updates }) => {
|
|
3145
3155
|
const projectId = getProjectId();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sendinel/mcp-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.66",
|
|
4
4
|
"description": "AI-controlled email operations control plane for campaigns, contacts, segments, analytics, and multi-provider sending via MCP.",
|
|
5
5
|
"mcpName": "ai.sendinel/mcp-server",
|
|
6
6
|
"type": "module",
|