notifyme-csm-mcp 1.0.0 → 1.0.1
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 +8 -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, and tag. Use search_companies for name/domain lookups.",
|
|
83
83
|
inputSchema: {
|
|
84
84
|
type: "object",
|
|
85
85
|
properties: {
|
|
@@ -89,6 +89,8 @@ 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')" },
|
|
92
94
|
limit: { type: "number", description: "Max results (default 25, max 100)" },
|
|
93
95
|
},
|
|
94
96
|
required: [],
|
|
@@ -380,12 +382,16 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
380
382
|
switch (name) {
|
|
381
383
|
// ── Companies ──────────────────────────────────────────────────────────
|
|
382
384
|
case "list_companies": {
|
|
383
|
-
const { type, stage, limit } = args;
|
|
385
|
+
const { type, stage, priority, tag, limit } = args;
|
|
384
386
|
const params = new URLSearchParams();
|
|
385
387
|
if (type)
|
|
386
388
|
params.set("type", type);
|
|
387
389
|
if (stage)
|
|
388
390
|
params.set("stage", stage);
|
|
391
|
+
if (priority)
|
|
392
|
+
params.set("priority", priority);
|
|
393
|
+
if (tag)
|
|
394
|
+
params.set("tag", tag);
|
|
389
395
|
if (limit)
|
|
390
396
|
params.set("limit", String(limit));
|
|
391
397
|
data = await api("GET", `/companies?${params}`);
|