notifyme-csm-mcp 1.0.9 → 1.0.10

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.
Files changed (2) hide show
  1. package/dist/index.js +40 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -456,6 +456,33 @@ const TOOLS = [
456
456
  required: ["agencyCompanyId", "merchantCompanyId"],
457
457
  },
458
458
  },
459
+ {
460
+ name: "log_outreach",
461
+ description: "Log an outbound touch to a company — the SOURCE OF TRUTH for outreach with no dedicated integration (phone calls, WhatsApp, in-person). The 'Approached' reporting stage counts these alongside CSM emails, LinkedIn outreach logs, and Gmail threads. Notes do NOT count as outreach — log real touches here instead. Use search_companies first to get the companyId.",
462
+ inputSchema: {
463
+ type: "object",
464
+ properties: {
465
+ companyId: { type: "number", description: "companies.id of the company that was contacted" },
466
+ channel: { type: "string", enum: ["call", "whatsapp", "linkedin", "email", "other"], description: "How the touch happened. Prefer the dedicated flows for linkedin/email when possible." },
467
+ recipient: { type: "string", description: "Who was contacted (name or handle/number)" },
468
+ actionDate: { type: "string", description: "When it happened — YYYY-MM-DD or ISO datetime (default: now)" },
469
+ note: { type: "string", description: "What was said / outcome" },
470
+ },
471
+ required: ["companyId", "channel"],
472
+ },
473
+ },
474
+ {
475
+ name: "list_outreach",
476
+ description: "List a company's logged outreach touches (calls, WhatsApp, etc.), most recent first.",
477
+ inputSchema: {
478
+ type: "object",
479
+ properties: {
480
+ companyId: { type: "number", description: "Company id" },
481
+ limit: { type: "number", description: "Max results (default 20, max 100)" },
482
+ },
483
+ required: ["companyId"],
484
+ },
485
+ },
459
486
  // ── Kanban ────────────────────────────────────────────────────────────────
460
487
  {
461
488
  name: "list_kanban_columns",
@@ -672,6 +699,19 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
672
699
  });
673
700
  break;
674
701
  }
702
+ case "log_outreach": {
703
+ const a = args;
704
+ data = await api("POST", "/outreach", a);
705
+ break;
706
+ }
707
+ case "list_outreach": {
708
+ const { companyId, limit } = args;
709
+ const qs = new URLSearchParams();
710
+ if (limit != null)
711
+ qs.set("limit", String(limit));
712
+ data = await api("GET", `/companies/${companyId}/outreach?${qs.toString()}`);
713
+ break;
714
+ }
675
715
  // ── Kanban ─────────────────────────────────────────────────────────────
676
716
  case "list_kanban_columns": {
677
717
  data = await api("GET", "/kanban/columns");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "notifyme-csm-mcp",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "NotifyMe CSM — MCP server for LLM integrations (Claude Code, Cursor, etc.)",
5
5
  "_versionPolicy": "The version field above is a placeholder and is NEVER updated in git. The real published version lives only on npm — run `npm view notifyme-csm-mcp version` to check. To publish a new release, use the GitHub workflow `Publish MCP` (Actions tab → Publish notifyme-csm-mcp → Run workflow). This prevents recurring merge conflicts across feature/dev/main branches that used to plague every PR.",
6
6
  "type": "module",