notifyme-csm-mcp 1.0.0 → 1.0.2
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/dist/index.js +11 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -79,7 +79,7 @@ const TOOLS = [
|
|
|
79
79
|
// ── Companies ────────────────────────────────────────────────────────────
|
|
80
80
|
{
|
|
81
81
|
name: "list_companies",
|
|
82
|
-
description: "Browse or filter all companies in the CSM. Supports
|
|
82
|
+
description: "Browse or filter all companies in the CSM. Supports filtering by type, stage, priority, tag, and whether any outreach has occurred. Use search_companies for name/domain lookups.",
|
|
83
83
|
inputSchema: {
|
|
84
84
|
type: "object",
|
|
85
85
|
properties: {
|
|
@@ -89,6 +89,9 @@ const TOOLS = [
|
|
|
89
89
|
description: "Filter by company type (optional)",
|
|
90
90
|
},
|
|
91
91
|
stage: { type: "string", description: "Filter by state/stage (optional, e.g. 'active', 'churned')" },
|
|
92
|
+
priority: { type: "string", enum: ["p1", "p2", "p3"], description: "Filter by priority tier (optional)" },
|
|
93
|
+
tag: { type: "string", description: "Filter by a single tag label (optional, e.g. 'websummit')" },
|
|
94
|
+
no_outreach: { type: "boolean", description: "If true, only return companies with zero emails, notes, or meetings logged — i.e. never contacted" },
|
|
92
95
|
limit: { type: "number", description: "Max results (default 25, max 100)" },
|
|
93
96
|
},
|
|
94
97
|
required: [],
|
|
@@ -380,12 +383,18 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
380
383
|
switch (name) {
|
|
381
384
|
// ── Companies ──────────────────────────────────────────────────────────
|
|
382
385
|
case "list_companies": {
|
|
383
|
-
const { type, stage, limit } = args;
|
|
386
|
+
const { type, stage, priority, tag, no_outreach, limit } = args;
|
|
384
387
|
const params = new URLSearchParams();
|
|
385
388
|
if (type)
|
|
386
389
|
params.set("type", type);
|
|
387
390
|
if (stage)
|
|
388
391
|
params.set("stage", stage);
|
|
392
|
+
if (priority)
|
|
393
|
+
params.set("priority", priority);
|
|
394
|
+
if (tag)
|
|
395
|
+
params.set("tag", tag);
|
|
396
|
+
if (no_outreach)
|
|
397
|
+
params.set("no_outreach", "true");
|
|
389
398
|
if (limit)
|
|
390
399
|
params.set("limit", String(limit));
|
|
391
400
|
data = await api("GET", `/companies?${params}`);
|