@sendinel/mcp-server 1.0.86 → 1.0.87
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/connector.js +9 -3
- package/package.json +1 -1
package/build/tools/connector.js
CHANGED
|
@@ -243,24 +243,30 @@ export function registerConnectorTools(server) {
|
|
|
243
243
|
}),
|
|
244
244
|
metadata_columns: z.array(z.string()).max(100).optional()
|
|
245
245
|
.describe('Extra source columns copied into contact custom_properties.'),
|
|
246
|
+
signal_columns: z.record(z.string(), z.string().min(1).max(160)).optional()
|
|
247
|
+
.describe('Source timestamp columns mapped to signal-only event names. Shared names use the earliest timestamp. Requires a view reinstall.'),
|
|
248
|
+
signal_backfill: z.enum(['write', 'skip']).optional()
|
|
249
|
+
.describe('First sync of a signal column: write historical events (default), or record values without events.'),
|
|
246
250
|
identity_merge: z.enum(['off', 'by_email']).optional()
|
|
247
251
|
.describe('How the contact view treats a person found both in the source table and as a Sendinel-owned contact: off = two rows (default), by_email = one row per email (source wins the name, tags combined, unsubscribe and test flags kept from either side). Omit to leave it unchanged.'),
|
|
248
252
|
...approvalFields,
|
|
249
253
|
},
|
|
250
|
-
}, async ({ table_id, mapping, metadata_columns, identity_merge, confirmed, approval_id }) => {
|
|
251
|
-
const
|
|
254
|
+
}, async ({ table_id, mapping, metadata_columns, signal_columns, signal_backfill, identity_merge, confirmed, approval_id }) => {
|
|
255
|
+
const signalParams = { ...(signal_columns !== undefined ? { signal_columns } : {}), ...(signal_backfill !== undefined ? { signal_backfill } : {}) };
|
|
256
|
+
const approvalParams = { table_id, mapping, metadata_columns, ...signalParams, ...(identity_merge ? { identity_merge } : {}) };
|
|
252
257
|
const gate = await authorizeConnectorMutation('set_connector_mapping', confirmed, approval_id, approvalParams, {
|
|
253
258
|
effect: 'Replace the connector mapping, clear removed custom properties, refresh the live view, and resync contacts.',
|
|
254
259
|
table_id,
|
|
255
260
|
mapping,
|
|
256
261
|
metadata_columns: metadata_columns ?? [],
|
|
262
|
+
...signalParams,
|
|
257
263
|
...(identity_merge ? { identity_merge } : {}),
|
|
258
264
|
});
|
|
259
265
|
if (gate)
|
|
260
266
|
return gate;
|
|
261
267
|
const result = await callConnectorApi('/api/dashboard/connector/mapping', {
|
|
262
268
|
method: 'PATCH',
|
|
263
|
-
body: { table_id, mapping, metadata_columns, ...(identity_merge ? { identity_merge } : {}) },
|
|
269
|
+
body: { table_id, mapping, metadata_columns, ...signalParams, ...(identity_merge ? { identity_merge } : {}) },
|
|
264
270
|
});
|
|
265
271
|
return j(result.ok ? result.data : { error: result.error });
|
|
266
272
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sendinel/mcp-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.87",
|
|
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",
|