@sendinel/mcp-server 1.0.199 → 1.0.201

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.
@@ -485,8 +485,8 @@ const SEGMENT_SUBSCRIBER_SELECT_WITH_COMPANY = 'id, email, first_name, last_name
485
485
  const SEGMENT_SUBSCRIBER_SELECT_NO_COMPANY = 'id, email, first_name, last_name, company_id, engagement_score, lifecycle_stage, last_opened_at, last_clicked_at, total_opens, total_clicks';
486
486
  const UPDATE_SUBSCRIBER_SELECT_WITH_COMPANY = 'id, email, first_name, last_name, company_id, company:companies(id, name, domain), custom_properties, tags, phone_e164, timezone';
487
487
  const UPDATE_SUBSCRIBER_SELECT_NO_COMPANY = 'id, email, first_name, last_name, company_id, custom_properties, tags, phone_e164, timezone';
488
- const GET_SUBSCRIBER_SELECT_WITH_COMPANY = '*, company:companies(id, name, domain), site_subscriptions(site_id, subscribed)';
489
- const GET_SUBSCRIBER_SELECT_NO_COMPANY = '*, site_subscriptions(site_id, subscribed)';
488
+ const GET_SUBSCRIBER_SELECT_WITH_COMPANY = '*, company:companies(id, name, domain), site_subscriptions(site_id, subscribed, consent_basis, consent_recorded_at)';
489
+ const GET_SUBSCRIBER_SELECT_NO_COMPANY = '*, site_subscriptions(site_id, subscribed, consent_basis, consent_recorded_at)';
490
490
  const CONTACT_ENRICHMENT_ADAPTERS = createContactEnrichmentAdapters({
491
491
  normalizeActiveCampaignAccountUrl,
492
492
  });
@@ -13,7 +13,7 @@ export function registerWarmupTools(server) {
13
13
  idempotentHint: true,
14
14
  openWorldHint: false,
15
15
  },
16
- description: 'Get warmup status for a sending site.',
16
+ description: 'Get warmup status for a sending site: phase, warmup_day (null before warmup starts), daily_limit (null until a schedule sets it), current_volume, started_at, progress_pct, next_milestone, last_send_date, and idle.',
17
17
  inputSchema: { site_id: z.string().uuid() },
18
18
  }, async ({ site_id }) => {
19
19
  const { data, error } = await db().from('domain_health')
@@ -44,6 +44,7 @@ export function registerWarmupTools(server) {
44
44
  }
45
45
  const yesterday = new Date(Date.now() - 86400000).toISOString().slice(0, 10);
46
46
  return j({
47
+ warmup_day: data?.warmup_day ?? null,
47
48
  phase: day >= 42 ? 'complete' : day > 0 ? 'warming' : 'not_started',
48
49
  daily_limit: data?.warmup_daily_limit ?? null,
49
50
  current_volume: data?.total_sent ?? 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendinel/mcp-server",
3
- "version": "1.0.199",
3
+ "version": "1.0.201",
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",