@mambalabsdev/mcp-gtm-suite 1.7.0 → 1.9.0
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/index.js +338 -44
- package/package.json +7 -2
- package/.github/dependabot.yml +0 -13
- package/.github/workflows/ci.yml +0 -14
- package/glama.json +0 -6
- package/logo.png +0 -0
- package/manifest.json +0 -37
- package/mcp-gtm-suite.mcpb +0 -0
- package/server.json +0 -29
package/build/index.js
CHANGED
|
@@ -24,32 +24,58 @@ function compact(obj) {
|
|
|
24
24
|
function boolToString(v) {
|
|
25
25
|
return v === undefined ? undefined : v ? "true" : "false";
|
|
26
26
|
}
|
|
27
|
-
//
|
|
28
|
-
//
|
|
29
|
-
//
|
|
30
|
-
//
|
|
27
|
+
// How long the actor run itself is allowed to take, in seconds.
|
|
28
|
+
//
|
|
29
|
+
// MEASURED across the whole fleet, because this one caller fronts 21 actors
|
|
30
|
+
// and a per-actor number would be 21 constants that drift. Over every SUCCEEDED
|
|
31
|
+
// run in actor_runs on 2026-09-08, 5,088 of them carrying a duration: P95
|
|
32
|
+
// 38.5 s, P99 171.3 s, slowest ever 1,010.7 s.
|
|
33
|
+
//
|
|
34
|
+
// The suite was calling run-sync-get-dataset-items?timeout=300, so every tool
|
|
35
|
+
// it exposes was cut off at five minutes while the slowest run any of these
|
|
36
|
+
// actors has completed takes nearly seventeen. 1800 s is 1.8 times that slowest
|
|
37
|
+
// run and more than ten times the fleet P99, which is headroom for the slow
|
|
38
|
+
// tools without letting a hung run bill indefinitely.
|
|
39
|
+
//
|
|
40
|
+
// The standalone job discovery wrapper moved to start-and-poll first and the
|
|
41
|
+
// suite's copy of that tool did not, which is finding M-B4. This closes it for
|
|
42
|
+
// all 21.
|
|
43
|
+
const ACTOR_RUN_TIMEOUT_SECS = 1800;
|
|
44
|
+
// How long this wrapper waits for that run, in milliseconds. The actor's own
|
|
45
|
+
// timeout plus two minutes, so the run's own TIMED-OUT status is what the
|
|
46
|
+
// caller sees rather than the wrapper giving up first and reporting nothing.
|
|
47
|
+
const WRAPPER_WAIT_MS = (ACTOR_RUN_TIMEOUT_SECS + 120) * 1000;
|
|
48
|
+
const POLL_INTERVAL_MS = 3000;
|
|
49
|
+
const TERMINAL = new Set(["SUCCEEDED", "FAILED", "TIMED-OUT", "ABORTED", "ABORTING"]);
|
|
50
|
+
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
|
|
51
|
+
// Shared caller. actorPath is the actor's immutable Apify actor ID (a stable key
|
|
52
|
+
// that survives Store renames). The /v2/acts/{id} endpoint accepts it directly,
|
|
53
|
+
// so a Store rename never breaks these calls.
|
|
54
|
+
//
|
|
55
|
+
// START AND POLL, NOT RUN-SYNC. This wrapper used
|
|
56
|
+
// run-sync-get-dataset-items?timeout=300 and cut off runs the actor completes:
|
|
57
|
+
// runs that the actors complete. Raising that query parameter does not fix it,
|
|
58
|
+
// which is worth stating
|
|
59
|
+
// because it is the obvious fix and it is wrong. Apify's synchronous endpoints
|
|
60
|
+
// carry a platform ceiling of 300 seconds on the HTTP wait itself and answer
|
|
61
|
+
// 408 past it regardless of what `timeout` says. The only way for the wrapper
|
|
62
|
+
// to wait as long as the actor needs is to start the run, poll it to a terminal
|
|
63
|
+
// status, and then read the dataset.
|
|
64
|
+
//
|
|
65
|
+
// The token is read here rather than at module load, so the tool registers
|
|
66
|
+
// unconditionally and a server started without APIFY_TOKEN still advertises its
|
|
67
|
+
// capabilities instead of reporting none.
|
|
31
68
|
async function runActor(actorPath, actorLabel, input) {
|
|
69
|
+
const APIFY_TOKEN = process.env.APIFY_TOKEN;
|
|
32
70
|
if (!APIFY_TOKEN) {
|
|
33
71
|
return { isError: true, content: [{ type: "text", text: "APIFY_TOKEN is not set. Create a token at https://console.apify.com/account/integrations and set it as the APIFY_TOKEN environment variable." }] };
|
|
34
72
|
}
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
Authorization: `Bearer ${APIFY_TOKEN}`,
|
|
42
|
-
"Content-Type": "application/json",
|
|
43
|
-
"User-Agent": USER_AGENT,
|
|
44
|
-
},
|
|
45
|
-
body: JSON.stringify(input),
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
catch (err) {
|
|
49
|
-
const message = err instanceof Error ? err.message : String(err);
|
|
50
|
-
return { isError: true, content: [{ type: "text", text: `Could not reach the Apify API: ${message}` }] };
|
|
51
|
-
}
|
|
52
|
-
if (!response.ok) {
|
|
73
|
+
const headers = {
|
|
74
|
+
Authorization: `Bearer ${APIFY_TOKEN}`,
|
|
75
|
+
"Content-Type": "application/json",
|
|
76
|
+
"User-Agent": USER_AGENT,
|
|
77
|
+
};
|
|
78
|
+
const httpError = async (response) => {
|
|
53
79
|
let detail = "";
|
|
54
80
|
try {
|
|
55
81
|
const body = (await response.json());
|
|
@@ -59,24 +85,107 @@ async function runActor(actorPath, actorLabel, input) {
|
|
|
59
85
|
catch {
|
|
60
86
|
detail = "";
|
|
61
87
|
}
|
|
62
|
-
let message;
|
|
63
88
|
switch (response.status) {
|
|
89
|
+
case 400:
|
|
90
|
+
return `The ${actorLabel} run was rejected as invalid input.${detail}`;
|
|
64
91
|
case 401:
|
|
65
|
-
|
|
66
|
-
break;
|
|
92
|
+
return "Invalid Apify token. Check your APIFY_TOKEN environment variable.";
|
|
67
93
|
case 402:
|
|
68
|
-
|
|
69
|
-
"Insufficient Apify credits. Check your account balance at https://console.apify.com/billing";
|
|
70
|
-
break;
|
|
71
|
-
case 408:
|
|
72
|
-
message = `The ${actorLabel} run timed out after 300 seconds. Try again, or run the actor on Apify directly for longer jobs.`;
|
|
73
|
-
break;
|
|
94
|
+
return "Insufficient Apify credits. Check your account balance at https://console.apify.com/billing";
|
|
74
95
|
default:
|
|
75
|
-
|
|
96
|
+
return `Apify request to ${actorLabel} failed with status ${response.status}.${detail}`;
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
// 1. Start the run.
|
|
100
|
+
let started;
|
|
101
|
+
try {
|
|
102
|
+
started = await fetch(`https://api.apify.com/v2/acts/${actorPath}/runs?timeout=${ACTOR_RUN_TIMEOUT_SECS}`, { method: "POST", headers, body: JSON.stringify(input) });
|
|
103
|
+
}
|
|
104
|
+
catch (err) {
|
|
105
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
106
|
+
return { isError: true, content: [{ type: "text", text: `Could not reach the Apify API: ${message}` }] };
|
|
107
|
+
}
|
|
108
|
+
if (!started.ok) {
|
|
109
|
+
return { isError: true, content: [{ type: "text", text: await httpError(started) }] };
|
|
110
|
+
}
|
|
111
|
+
let run;
|
|
112
|
+
try {
|
|
113
|
+
run = (await started.json()).data ?? {};
|
|
114
|
+
}
|
|
115
|
+
catch (err) {
|
|
116
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
117
|
+
return { isError: true, content: [{ type: "text", text: `The ${actorLabel} run start returned a response that could not be parsed: ${message}` }] };
|
|
118
|
+
}
|
|
119
|
+
const runId = run.id;
|
|
120
|
+
if (!runId) {
|
|
121
|
+
return { isError: true, content: [{ type: "text", text: `The ${actorLabel} run start returned no run id, so there is nothing to wait for.` }] };
|
|
122
|
+
}
|
|
123
|
+
// 2. Poll to a terminal status.
|
|
124
|
+
const deadline = Date.now() + WRAPPER_WAIT_MS;
|
|
125
|
+
let status = run.status ?? "READY";
|
|
126
|
+
let datasetId = run.defaultDatasetId;
|
|
127
|
+
while (!TERMINAL.has(status)) {
|
|
128
|
+
if (Date.now() >= deadline) {
|
|
129
|
+
return {
|
|
130
|
+
isError: true,
|
|
131
|
+
content: [{ type: "text", text: `The ${actorLabel} run ${runId} was still ${status} after ${Math.round(WRAPPER_WAIT_MS / 1000)} seconds and this call stopped waiting. The run itself is still on Apify: read it at https://console.apify.com/actors/runs/${runId}` }],
|
|
132
|
+
};
|
|
76
133
|
}
|
|
77
|
-
|
|
134
|
+
await sleep(POLL_INTERVAL_MS);
|
|
135
|
+
let poll;
|
|
136
|
+
try {
|
|
137
|
+
poll = await fetch(`https://api.apify.com/v2/actor-runs/${runId}`, { headers });
|
|
138
|
+
}
|
|
139
|
+
catch (err) {
|
|
140
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
141
|
+
return { isError: true, content: [{ type: "text", text: `Lost contact with the Apify API while waiting for ${actorLabel} run ${runId}: ${message}` }] };
|
|
142
|
+
}
|
|
143
|
+
if (!poll.ok) {
|
|
144
|
+
return { isError: true, content: [{ type: "text", text: await httpError(poll) }] };
|
|
145
|
+
}
|
|
146
|
+
const body = (await poll.json());
|
|
147
|
+
status = body.data?.status ?? status;
|
|
148
|
+
datasetId = body.data?.defaultDatasetId ?? datasetId;
|
|
149
|
+
}
|
|
150
|
+
// 3. A run that did not succeed is a failure the caller must see, never an
|
|
151
|
+
// empty success. Surfacing it here is what keeps a crashed run from reading
|
|
152
|
+
// as "no results found".
|
|
153
|
+
if (status !== "SUCCEEDED") {
|
|
154
|
+
return {
|
|
155
|
+
isError: true,
|
|
156
|
+
content: [{ type: "text", text: `The ${actorLabel} run did not succeed (run ID: ${runId}, status: ${status}).` }],
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
if (!datasetId) {
|
|
160
|
+
return { isError: true, content: [{ type: "text", text: `The ${actorLabel} run ${runId} succeeded but reported no dataset, so there is nothing to return.` }] };
|
|
161
|
+
}
|
|
162
|
+
// 4. Read the dataset.
|
|
163
|
+
let ds;
|
|
164
|
+
try {
|
|
165
|
+
ds = await fetch(`https://api.apify.com/v2/datasets/${datasetId}/items?format=json`, { headers });
|
|
166
|
+
}
|
|
167
|
+
catch (err) {
|
|
168
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
169
|
+
return { isError: true, content: [{ type: "text", text: `Could not read the ${actorLabel} dataset: ${message}` }] };
|
|
170
|
+
}
|
|
171
|
+
if (!ds.ok) {
|
|
172
|
+
return { isError: true, content: [{ type: "text", text: await httpError(ds) }] };
|
|
173
|
+
}
|
|
174
|
+
let items;
|
|
175
|
+
try {
|
|
176
|
+
items = await ds.json();
|
|
177
|
+
}
|
|
178
|
+
catch (err) {
|
|
179
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
180
|
+
return { isError: true, content: [{ type: "text", text: `The ${actorLabel} run returned a response that could not be parsed: ${message}` }] };
|
|
181
|
+
}
|
|
182
|
+
if (!Array.isArray(items)) {
|
|
183
|
+
const asObj = items;
|
|
184
|
+
const detail = asObj?.error?.message
|
|
185
|
+
? `${asObj.error.message}`
|
|
186
|
+
: JSON.stringify(items);
|
|
187
|
+
return { isError: true, content: [{ type: "text", text: `The ${actorLabel} run did not return a dataset. ${detail}` }] };
|
|
78
188
|
}
|
|
79
|
-
const items = await response.json();
|
|
80
189
|
return { content: [{ type: "text", text: JSON.stringify(items, null, 2) }] };
|
|
81
190
|
}
|
|
82
191
|
const server = new McpServer({
|
|
@@ -104,8 +213,25 @@ server.registerTool("scan_gtm_hiring_signals", {
|
|
|
104
213
|
.string()
|
|
105
214
|
.optional()
|
|
106
215
|
.describe("Optional ATS board slug override when it differs from the domain."),
|
|
216
|
+
mode: z
|
|
217
|
+
.enum(["single", "batch", "velocity"])
|
|
218
|
+
.optional()
|
|
219
|
+
.describe("Processing mode. \"single\" scores the domain. \"velocity\" compares this run against previous_gtm_role_count and previous_run_date. \"batch\" is an actor-level mode this single-call tool supplies no list for. Default: \"single\"."),
|
|
220
|
+
include_role_details: z
|
|
221
|
+
.boolean()
|
|
222
|
+
.optional()
|
|
223
|
+
.describe("When true, include the full per-role detail array (title, department, location, url). Default: false."),
|
|
224
|
+
previous_gtm_role_count: z
|
|
225
|
+
.number()
|
|
226
|
+
.int()
|
|
227
|
+
.optional()
|
|
228
|
+
.describe("GTM role count from the previous run for this domain, used in velocity mode to compute the delta."),
|
|
229
|
+
previous_run_date: z
|
|
230
|
+
.string()
|
|
231
|
+
.optional()
|
|
232
|
+
.describe("ISO date of the previous run for this domain, used in velocity mode to report days between runs."),
|
|
107
233
|
},
|
|
108
|
-
}, async ({ domain, role_filter, ats_slug }) => runActor("D7O1SA2EqwHGsGr1P", "GTM Hiring Signal Scraper", compact({ domain, role_filter, ats_slug })));
|
|
234
|
+
}, async ({ domain, role_filter, ats_slug, mode, include_role_details, previous_gtm_role_count, previous_run_date }) => runActor("D7O1SA2EqwHGsGr1P", "GTM Hiring Signal Scraper", compact({ domain, role_filter, ats_slug, mode, include_role_details, previous_gtm_role_count, previous_run_date })));
|
|
109
235
|
// 2. GTM Tech Stack Signal Enrichment
|
|
110
236
|
server.registerTool("detect_gtm_tech_stack", {
|
|
111
237
|
title: "Detect GTM Tech Stack",
|
|
@@ -118,13 +244,39 @@ server.registerTool("detect_gtm_tech_stack", {
|
|
|
118
244
|
openWorldHint: true,
|
|
119
245
|
},
|
|
120
246
|
inputSchema: {
|
|
121
|
-
domain: z
|
|
247
|
+
domain: z
|
|
248
|
+
.string()
|
|
249
|
+
.optional()
|
|
250
|
+
.describe("Bare company domain, e.g. stripe.com. Supply this, company_domain or url."),
|
|
251
|
+
company_domain: z
|
|
252
|
+
.string()
|
|
253
|
+
.optional()
|
|
254
|
+
.describe("Deprecated alias for domain, accepted by the actor for older callers. Prefer domain."),
|
|
255
|
+
url: z
|
|
256
|
+
.string()
|
|
257
|
+
.optional()
|
|
258
|
+
.describe("Deprecated alias for domain, accepted by the actor as a full company website URL. Prefer domain."),
|
|
122
259
|
crawl_additional_pages: z
|
|
123
260
|
.boolean()
|
|
124
261
|
.optional()
|
|
125
262
|
.describe("Crawl up to 2 extra pages for better coverage. Defaults to true when omitted."),
|
|
263
|
+
skipCache: z
|
|
264
|
+
.boolean()
|
|
265
|
+
.optional()
|
|
266
|
+
.describe("By default a clean detection is cached for 7 days and reused. Set true to force a fresh detection."),
|
|
126
267
|
},
|
|
127
|
-
}, async ({ domain,
|
|
268
|
+
}, async ({ domain, company_domain, url, crawl_additional_pages, skipCache }) => {
|
|
269
|
+
// Measured 2026-08-13: the actor's built schema marks nothing required, but
|
|
270
|
+
// with no company named at all the run throws and exits FAILED. Rejecting
|
|
271
|
+
// here rejects only what the actor itself rejects.
|
|
272
|
+
if (domain === undefined && company_domain === undefined && url === undefined) {
|
|
273
|
+
return {
|
|
274
|
+
isError: true,
|
|
275
|
+
content: [{ type: "text", text: "Provide domain, company_domain or url. The actor cannot run without one of them." }],
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
return runActor("qyd7nNyqFPelQViBx", "GTM Tech Stack Signal Enrichment", compact({ domain, company_domain, url, crawl_additional_pages, skipCache }));
|
|
279
|
+
});
|
|
128
280
|
// 3. GTM Signals Aggregator
|
|
129
281
|
server.registerTool("aggregate_gtm_signals", {
|
|
130
282
|
title: "Aggregate GTM Signals",
|
|
@@ -200,8 +352,16 @@ server.registerTool("resolve_linkedin_url", {
|
|
|
200
352
|
.optional()
|
|
201
353
|
.describe("Bare company domain, e.g. stripe.com. Required if company_name is not provided."),
|
|
202
354
|
company_name: z.string().optional().describe("Company name. Required if company_domain is not provided."),
|
|
355
|
+
includeFirmographics: z
|
|
356
|
+
.enum(["false", "true"])
|
|
357
|
+
.optional()
|
|
358
|
+
.describe("When \"true\", also fetches the public LinkedIn company page to add employee count, industry, HQ, follower count and description. Off by default because it is the most expensive step. Sent as a string for Clay compatibility."),
|
|
359
|
+
skipCache: z
|
|
360
|
+
.enum(["false", "true"])
|
|
361
|
+
.optional()
|
|
362
|
+
.describe("When \"false\", the default, a successful resolution is cached for 7 days and reused. Set \"true\" to force a fresh resolution. Sent as a string for Clay compatibility."),
|
|
203
363
|
},
|
|
204
|
-
}, async ({ company_domain, company_name }) => {
|
|
364
|
+
}, async ({ company_domain, company_name, includeFirmographics, skipCache }) => {
|
|
205
365
|
if ((company_domain === undefined || company_domain === "") &&
|
|
206
366
|
(company_name === undefined || company_name === "")) {
|
|
207
367
|
return {
|
|
@@ -209,7 +369,7 @@ server.registerTool("resolve_linkedin_url", {
|
|
|
209
369
|
content: [{ type: "text", text: "Provide at least one of company_domain or company_name." }],
|
|
210
370
|
};
|
|
211
371
|
}
|
|
212
|
-
return runActor("3HtnSaqPHOg1Qg5gx", "Domain to LinkedIn URL Resolver", compact({ company_domain, company_name }));
|
|
372
|
+
return runActor("3HtnSaqPHOg1Qg5gx", "Domain to LinkedIn URL Resolver", compact({ company_domain, company_name, includeFirmographics, skipCache }));
|
|
213
373
|
});
|
|
214
374
|
// 6. ICP Fit Scorer (single-company scoring surface)
|
|
215
375
|
server.registerTool("score_icp_fit", {
|
|
@@ -241,6 +401,40 @@ server.registerTool("score_icp_fit", {
|
|
|
241
401
|
.boolean()
|
|
242
402
|
.optional()
|
|
243
403
|
.describe("If true, adds a score_explanation string to the output."),
|
|
404
|
+
tier_thresholds: z.record(z.any()).optional().describe("Optional. Minimum score for each tier as { \"tier_a\": number, \"tier_b\": number, \"tier_c\": number }. Scores at or above tier_a are A, tier_b are B, tier_c are C, else D. Defaults to 80 / 60 / 40."),
|
|
405
|
+
funded_within_days: z.number().int().optional().describe("Optional. How recent a funding round must be to count for the recently_funded signal, in days. Defaults to 540 (18 months)."),
|
|
406
|
+
min_score_to_output: z.number().int().optional().describe("If set, rows scoring below this threshold are skipped from output (not pushed to dataset). Skipped rows are logged only."),
|
|
407
|
+
previous_score: z.number().int().optional().describe("Previous ICP score for this company. If provided, output includes score_change and score_trend fields."),
|
|
408
|
+
gtm_hiring_signal: z.string().optional().describe("Whether the company is actively hiring for GTM/sales roles. Accepts a boolean-like string (\"true\"/\"false\"). Sent as a string for Clay compatibility and coerced to boolean at runtime."),
|
|
409
|
+
gtm_role_count: z.string().optional().describe("Number of open GTM/sales roles. Scores via the gtm_role_count_strong signal when at or above min_gtm_roles (default 2). Accepts a numeric string (e.g. \"8\"). Sent as a string for Clay compatibility and coerced to integer at runtime."),
|
|
410
|
+
uses_hubspot: z.string().optional().describe("Whether the company uses HubSpot. Accepts a boolean-like string (\"true\"/\"false\"). Sent as a string for Clay compatibility and coerced to boolean at runtime."),
|
|
411
|
+
uses_salesforce: z.string().optional().describe("Whether the company uses Salesforce. Accepts a boolean-like string (\"true\"/\"false\"). Sent as a string for Clay compatibility and coerced to boolean at runtime."),
|
|
412
|
+
uses_clay: z.string().optional().describe("Whether the company uses Clay. Accepts a boolean-like string (\"true\"/\"false\"). Sent as a string for Clay compatibility and coerced to boolean at runtime."),
|
|
413
|
+
crm_detected: z.string().optional().describe("Whether any CRM was detected. Accepts a boolean-like string (\"true\"/\"false\") or any non-empty CRM name (e.g. \"Salesforce\"). Sent as a string for Clay compatibility and coerced to boolean at runtime. Auto-derived from uses_hubspot/uses_salesforce if not set."),
|
|
414
|
+
seq_tool_detected: z.string().optional().describe("Whether a sales sequencing tool (Outreach, SalesLoft, Apollo, Lemlist) was detected. Accepts a boolean-like string (\"true\"/\"false\") or any non-empty tool name (e.g. \"Outreach\"). Sent as a string for Clay compatibility and coerced to boolean at runtime."),
|
|
415
|
+
tech_stack: z.string().optional().describe("Comma-separated list of technologies. Used to auto-detect CRM/sequencing tools if booleans are not set."),
|
|
416
|
+
headcount: z.string().optional().describe("Current employee headcount. Accepts a numeric string (e.g. \"3000\"). Sent as a string for Clay compatibility and coerced to integer at runtime."),
|
|
417
|
+
headcount_min: z.number().int().optional().describe("Minimum headcount for the headcount_in_range signal."),
|
|
418
|
+
headcount_max: z.number().int().optional().describe("Maximum headcount for the headcount_in_range signal."),
|
|
419
|
+
headcount_in_range: z.boolean().optional().describe("Override: whether headcount is in your target range."),
|
|
420
|
+
employee_band: z.string().optional().describe("Firmographic employee band from the Company Firmographic Enricher (Actor ID YlUtLWjfPpqykmB8g), e.g. \"201-500\". Scores via employee_band_match when it is in target_employee_bands."),
|
|
421
|
+
revenue_estimate: z.string().optional().describe("Estimated annual revenue in dollars from the Company Firmographic Enricher (Actor ID YlUtLWjfPpqykmB8g). Scores via revenue_in_range. Accepts a numeric string (e.g. \"50000000\"). Coerced to integer at runtime."),
|
|
422
|
+
hq_location: z.string().optional().describe("Headquarters location from the Company Firmographic Enricher (Actor ID YlUtLWjfPpqykmB8g). Carried for reference; not currently scored."),
|
|
423
|
+
founded_year: z.string().optional().describe("Year the company was founded, from the Company Firmographic Enricher (Actor ID YlUtLWjfPpqykmB8g). Carried for reference; not currently scored. Accepts a numeric string (e.g. \"2015\")."),
|
|
424
|
+
recently_funded: z.boolean().optional().describe("Override: whether the company was recently funded (within funded_within_days, default 540)."),
|
|
425
|
+
last_funding_date: z.string().optional().describe("ISO date of last funding round (legacy field; latest_funding_date is preferred). Used to auto-detect recently_funded if the boolean is not set."),
|
|
426
|
+
latest_funding_date: z.string().optional().describe("ISO date of the latest funding round (from C1 Funding & Press Signal Scanner when it ships). Drives recently_funded against funded_within_days."),
|
|
427
|
+
latest_funding_amount: z.string().optional().describe("Dollar amount of the latest funding round (from C1 when it ships). Scores via well_funded when at or above min_funding_amount (default 1000000). Accepts a numeric string (e.g. \"50000000\")."),
|
|
428
|
+
funding_stage: z.string().optional().describe("Funding stage (e.g. seed, series_a, series_b, growth). Used to infer recently_funded."),
|
|
429
|
+
industry: z.string().optional().describe("The company's industry (from the Company Firmographic Enricher, Actor ID YlUtLWjfPpqykmB8g)."),
|
|
430
|
+
industry_match: z.boolean().optional().describe("Override: whether the company's industry matches your target list."),
|
|
431
|
+
target_industries: z.string().optional().describe("Comma-separated list of target industries for the industry_match signal."),
|
|
432
|
+
social_platforms_found: z.string().optional().describe("Number of official social platforms found, from the Company Social Presence Mapper (Actor ID 4k6CCemkgBDz18m2h). Scores via social_presence when at or above min_social_platforms (default 2). Accepts a numeric string."),
|
|
433
|
+
total_followers: z.string().optional().describe("Total social followers across platforms, from the Company Social Presence Mapper (Actor ID 4k6CCemkgBDz18m2h). Scores via strong_social_following when at or above min_total_followers (default 1000). Accepts a numeric string."),
|
|
434
|
+
has_linkedin: z.string().optional().describe("Whether a company LinkedIn page was found, from the Company Social Presence Mapper (Actor ID 4k6CCemkgBDz18m2h) or the Domain to LinkedIn URL Resolver (Actor ID 3HtnSaqPHOg1Qg5gx). Contributes to social_presence. Accepts a boolean-like string."),
|
|
435
|
+
has_twitter: z.string().optional().describe("Whether a company X/Twitter profile was found, from the Company Social Presence Mapper (Actor ID 4k6CCemkgBDz18m2h). Contributes to social_presence. Accepts a boolean-like string."),
|
|
436
|
+
job_count: z.string().optional().describe("Number of open jobs found, from the Job Board Keyword Signal Scanner (Actor ID 4DvqpvhMR74NLcDDY). Scores via active_hiring_volume when at or above min_job_count (default 3). Accepts a numeric string."),
|
|
437
|
+
keyword_match_count: z.string().optional().describe("Number of target-keyword matches found, from the Job Board Keyword Signal Scanner (Actor ID 4DvqpvhMR74NLcDDY). Scores via keyword_signal_match when at or above min_keyword_matches (default 1). Accepts a numeric string."),
|
|
244
438
|
},
|
|
245
439
|
}, async (args) => runActor("W161DT8W4kW55dMFh", "ICP Fit Scorer", compact({
|
|
246
440
|
company_domain: args.company_domain,
|
|
@@ -252,6 +446,40 @@ server.registerTool("score_icp_fit", {
|
|
|
252
446
|
llm_provider: args.llm_provider,
|
|
253
447
|
fetch_signals: args.fetch_signals,
|
|
254
448
|
include_explanation: args.include_explanation,
|
|
449
|
+
tier_thresholds: args.tier_thresholds,
|
|
450
|
+
funded_within_days: args.funded_within_days,
|
|
451
|
+
min_score_to_output: args.min_score_to_output,
|
|
452
|
+
previous_score: args.previous_score,
|
|
453
|
+
gtm_hiring_signal: args.gtm_hiring_signal,
|
|
454
|
+
gtm_role_count: args.gtm_role_count,
|
|
455
|
+
uses_hubspot: args.uses_hubspot,
|
|
456
|
+
uses_salesforce: args.uses_salesforce,
|
|
457
|
+
uses_clay: args.uses_clay,
|
|
458
|
+
crm_detected: args.crm_detected,
|
|
459
|
+
seq_tool_detected: args.seq_tool_detected,
|
|
460
|
+
tech_stack: args.tech_stack,
|
|
461
|
+
headcount: args.headcount,
|
|
462
|
+
headcount_min: args.headcount_min,
|
|
463
|
+
headcount_max: args.headcount_max,
|
|
464
|
+
headcount_in_range: args.headcount_in_range,
|
|
465
|
+
employee_band: args.employee_band,
|
|
466
|
+
revenue_estimate: args.revenue_estimate,
|
|
467
|
+
hq_location: args.hq_location,
|
|
468
|
+
founded_year: args.founded_year,
|
|
469
|
+
recently_funded: args.recently_funded,
|
|
470
|
+
last_funding_date: args.last_funding_date,
|
|
471
|
+
latest_funding_date: args.latest_funding_date,
|
|
472
|
+
latest_funding_amount: args.latest_funding_amount,
|
|
473
|
+
funding_stage: args.funding_stage,
|
|
474
|
+
industry: args.industry,
|
|
475
|
+
industry_match: args.industry_match,
|
|
476
|
+
target_industries: args.target_industries,
|
|
477
|
+
social_platforms_found: args.social_platforms_found,
|
|
478
|
+
total_followers: args.total_followers,
|
|
479
|
+
has_linkedin: args.has_linkedin,
|
|
480
|
+
has_twitter: args.has_twitter,
|
|
481
|
+
job_count: args.job_count,
|
|
482
|
+
keyword_match_count: args.keyword_match_count,
|
|
255
483
|
})));
|
|
256
484
|
// 7. Company Identity Resolver
|
|
257
485
|
server.registerTool("resolve_company_identity", {
|
|
@@ -438,15 +666,24 @@ server.registerTool("get_company_changes", {
|
|
|
438
666
|
.string()
|
|
439
667
|
.optional()
|
|
440
668
|
.describe("Optional company name hint, used when the domain does not match the brand name, e.g. Deel for deel.com."),
|
|
669
|
+
previous_snapshot: z
|
|
670
|
+
.record(z.unknown())
|
|
671
|
+
.optional()
|
|
672
|
+
.describe("Snapshot object returned by a prior run. Supply it and it is the baseline instead of stored state, which is what makes a scheduled run cheap."),
|
|
673
|
+
sub_actor_timeout_secs: z
|
|
674
|
+
.number()
|
|
675
|
+
.int()
|
|
676
|
+
.optional()
|
|
677
|
+
.describe("Per-child run timeout in seconds. Children run in parallel, so total wall time is about the slowest child. Default: 90."),
|
|
441
678
|
},
|
|
442
|
-
}, async ({ domain, company_name }) => {
|
|
679
|
+
}, async ({ domain, company_name, previous_snapshot, sub_actor_timeout_secs }) => {
|
|
443
680
|
if (domain === undefined || domain.trim() === "") {
|
|
444
681
|
return {
|
|
445
682
|
isError: true,
|
|
446
683
|
content: [{ type: "text", text: "Provide a company domain, e.g. stripe.com." }],
|
|
447
684
|
};
|
|
448
685
|
}
|
|
449
|
-
return runActor("oX44rS0fkEJ3rXLWe", "Company Change-Event Feed", compact({ domain, company_name }));
|
|
686
|
+
return runActor("oX44rS0fkEJ3rXLWe", "Company Change-Event Feed", compact({ domain, company_name, previous_snapshot, sub_actor_timeout_secs }));
|
|
450
687
|
});
|
|
451
688
|
// 12. AI Tooling Detector
|
|
452
689
|
server.registerTool("detect_ai_tooling", {
|
|
@@ -472,8 +709,17 @@ server.registerTool("detect_ai_tooling", {
|
|
|
472
709
|
.boolean()
|
|
473
710
|
.optional()
|
|
474
711
|
.describe("Fetch and score the pricing page. Default true. Setting this false is faster but caps the result at 'deployed', because 'commercialized' can only be proven on a pricing page."),
|
|
712
|
+
skipCache: z
|
|
713
|
+
.boolean()
|
|
714
|
+
.optional()
|
|
715
|
+
.describe("Force a fresh analysis and ignore the 7 day result cache."),
|
|
716
|
+
request_timeout_ms: z
|
|
717
|
+
.number()
|
|
718
|
+
.int()
|
|
719
|
+
.optional()
|
|
720
|
+
.describe("Per-request timeout in milliseconds. 3000 to 20000. Default: 9000."),
|
|
475
721
|
},
|
|
476
|
-
}, async ({ domain, domains, check_pricing }) => {
|
|
722
|
+
}, async ({ domain, domains, check_pricing, skipCache, request_timeout_ms }) => {
|
|
477
723
|
const hasBatch = Array.isArray(domains) && domains.length > 0;
|
|
478
724
|
if (!hasBatch && (domain === undefined || domain.trim() === "")) {
|
|
479
725
|
return {
|
|
@@ -485,6 +731,8 @@ server.registerTool("detect_ai_tooling", {
|
|
|
485
731
|
domain: hasBatch ? undefined : domain,
|
|
486
732
|
domains: hasBatch ? domains : undefined,
|
|
487
733
|
check_pricing,
|
|
734
|
+
skipCache,
|
|
735
|
+
request_timeout_ms,
|
|
488
736
|
}));
|
|
489
737
|
});
|
|
490
738
|
// 13. Outbound Infrastructure Fingerprint
|
|
@@ -519,8 +767,27 @@ server.registerTool("fingerprint_outbound_infrastructure", {
|
|
|
519
767
|
.boolean()
|
|
520
768
|
.optional()
|
|
521
769
|
.describe("Add a blacklist check and a 0-100 health score by running the separate Domain Deliverability Checker actor, which bills its own per-domain rate on top of this one. Default false. SPF, DKIM and DMARC are read from DNS either way."),
|
|
770
|
+
skipCache: z
|
|
771
|
+
.boolean()
|
|
772
|
+
.optional()
|
|
773
|
+
.describe("Force a fresh analysis and ignore the 7 day result cache."),
|
|
774
|
+
max_sending_domain_probes: z
|
|
775
|
+
.number()
|
|
776
|
+
.int()
|
|
777
|
+
.optional()
|
|
778
|
+
.describe("Cap on how many candidate sending domains are probed per company. Lower it to bound run time on companies with many lookalike domains."),
|
|
779
|
+
request_timeout_ms: z
|
|
780
|
+
.number()
|
|
781
|
+
.int()
|
|
782
|
+
.optional()
|
|
783
|
+
.describe("Per-HTTP-request timeout in milliseconds."),
|
|
784
|
+
dns_timeout_ms: z
|
|
785
|
+
.number()
|
|
786
|
+
.int()
|
|
787
|
+
.optional()
|
|
788
|
+
.describe("Per-DNS-lookup timeout in milliseconds."),
|
|
522
789
|
},
|
|
523
|
-
}, async ({ domain, domains, scan_sending_domains, sending_domain_depth, check_deliverability }) => {
|
|
790
|
+
}, async ({ domain, domains, scan_sending_domains, sending_domain_depth, check_deliverability, skipCache, max_sending_domain_probes, request_timeout_ms, dns_timeout_ms }) => {
|
|
524
791
|
const hasBatch = Array.isArray(domains) && domains.length > 0;
|
|
525
792
|
if (!hasBatch && (domain === undefined || domain.trim() === "")) {
|
|
526
793
|
return {
|
|
@@ -534,6 +801,10 @@ server.registerTool("fingerprint_outbound_infrastructure", {
|
|
|
534
801
|
scan_sending_domains,
|
|
535
802
|
sending_domain_depth,
|
|
536
803
|
check_deliverability,
|
|
804
|
+
skipCache,
|
|
805
|
+
max_sending_domain_probes,
|
|
806
|
+
request_timeout_ms,
|
|
807
|
+
dns_timeout_ms,
|
|
537
808
|
}));
|
|
538
809
|
});
|
|
539
810
|
// 14. Publication Cadence Tracker
|
|
@@ -570,8 +841,27 @@ server.registerTool("track_publication_cadence", {
|
|
|
570
841
|
.max(240000)
|
|
571
842
|
.optional()
|
|
572
843
|
.describe("Hard wall-clock ceiling per domain, default 75000. When nearly spent the crawl stops and the row is returned with partial_result true rather than timing out."),
|
|
844
|
+
skipCache: z
|
|
845
|
+
.boolean()
|
|
846
|
+
.optional()
|
|
847
|
+
.describe("Force a fresh crawl and ignore the 3 day result cache."),
|
|
848
|
+
page_concurrency: z
|
|
849
|
+
.number()
|
|
850
|
+
.int()
|
|
851
|
+
.optional()
|
|
852
|
+
.describe("How many pages are fetched concurrently within one domain."),
|
|
853
|
+
max_sitemap_fetches: z
|
|
854
|
+
.number()
|
|
855
|
+
.int()
|
|
856
|
+
.optional()
|
|
857
|
+
.describe("Cap on how many sitemap files are fetched per domain. Lower it to bound run time on deeply nested sitemap indexes."),
|
|
858
|
+
request_timeout_ms: z
|
|
859
|
+
.number()
|
|
860
|
+
.int()
|
|
861
|
+
.optional()
|
|
862
|
+
.describe("Per-HTTP-request timeout in milliseconds."),
|
|
573
863
|
},
|
|
574
|
-
}, async ({ domain, domains, max_pages_to_date, domain_time_budget_ms }) => {
|
|
864
|
+
}, async ({ domain, domains, max_pages_to_date, domain_time_budget_ms, skipCache, page_concurrency, max_sitemap_fetches, request_timeout_ms }) => {
|
|
575
865
|
const hasBatch = Array.isArray(domains) && domains.length > 0;
|
|
576
866
|
if (!hasBatch && (domain === undefined || domain.trim() === "")) {
|
|
577
867
|
return {
|
|
@@ -584,6 +874,10 @@ server.registerTool("track_publication_cadence", {
|
|
|
584
874
|
domains: hasBatch ? domains : undefined,
|
|
585
875
|
max_pages_to_date,
|
|
586
876
|
domain_time_budget_ms,
|
|
877
|
+
skipCache,
|
|
878
|
+
page_concurrency,
|
|
879
|
+
max_sitemap_fetches,
|
|
880
|
+
request_timeout_ms,
|
|
587
881
|
}));
|
|
588
882
|
});
|
|
589
883
|
// 15. Sequencer Lead Push
|
package/package.json
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mambalabsdev/mcp-gtm-suite",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "MCP server for the full Mamba Labs GTM Suite.
|
|
3
|
+
"version": "1.9.0",
|
|
4
|
+
"description": "MCP server for the full Mamba Labs GTM Suite. One server exposing eleven account-intelligence actors on Apify as tools: identity, firmographics, social presence, hiring, tech stack, job boards, funding, change feed, LinkedIn, signals and ICP scoring.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"mcp-gtm-suite": "./build/index.js"
|
|
8
8
|
},
|
|
9
|
+
"files": [
|
|
10
|
+
"build",
|
|
11
|
+
"README.md",
|
|
12
|
+
"LICENSE"
|
|
13
|
+
],
|
|
9
14
|
"scripts": {
|
|
10
15
|
"build": "tsc && chmod +x build/index.js",
|
|
11
16
|
"prepublishOnly": "npm run build"
|
package/.github/dependabot.yml
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
version: 2
|
|
2
|
-
updates:
|
|
3
|
-
- package-ecosystem: "npm"
|
|
4
|
-
directory: "/"
|
|
5
|
-
schedule:
|
|
6
|
-
interval: "weekly"
|
|
7
|
-
open-pull-requests-limit: 5
|
|
8
|
-
commit-message:
|
|
9
|
-
prefix: "deps"
|
|
10
|
-
- package-ecosystem: "github-actions"
|
|
11
|
-
directory: "/"
|
|
12
|
-
schedule:
|
|
13
|
-
interval: "weekly"
|
package/.github/workflows/ci.yml
DELETED
package/glama.json
DELETED
package/logo.png
DELETED
|
Binary file
|
package/manifest.json
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"manifest_version": "0.3",
|
|
3
|
-
"name": "mcp-gtm-suite",
|
|
4
|
-
"version": "1.4.0",
|
|
5
|
-
"description": "The full Mamba Labs GTM Suite in one MCP server: 11 account-intelligence tools spanning the go-to-market workflow. Resolve company identity, enrich firmographics, map social presence, resolve LinkedIn URLs; detect hiring, tech-stack, job-board, funding/press, and change-event signals; aggregate them and score ICP fit. Each tool wraps a Mamba Labs Apify actor and returns flat, Clay-ready JSON.",
|
|
6
|
-
"author": {
|
|
7
|
-
"name": "Mamba Labs"
|
|
8
|
-
},
|
|
9
|
-
"license": "MIT",
|
|
10
|
-
"homepage": "https://github.com/mambalabsdev/mcp-gtm-suite",
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "https://github.com/mambalabsdev/mcp-gtm-suite"
|
|
14
|
-
},
|
|
15
|
-
"server": {
|
|
16
|
-
"type": "node",
|
|
17
|
-
"entry_point": "build/index.js",
|
|
18
|
-
"mcp_config": {
|
|
19
|
-
"command": "node",
|
|
20
|
-
"args": [
|
|
21
|
-
"${__dirname}/build/index.js"
|
|
22
|
-
],
|
|
23
|
-
"env": {
|
|
24
|
-
"APIFY_TOKEN": "${user_config.apify_token}"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
"user_config": {
|
|
29
|
-
"apify_token": {
|
|
30
|
-
"type": "string",
|
|
31
|
-
"title": "Apify API Token",
|
|
32
|
-
"description": "Apify API token for running the actors that back each tool",
|
|
33
|
-
"sensitive": true,
|
|
34
|
-
"required": false
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
package/mcp-gtm-suite.mcpb
DELETED
|
Binary file
|
package/server.json
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
|
-
"name": "com.mambabuilt/mcp-gtm-suite",
|
|
4
|
-
"description": "11 Mamba Labs account-intelligence MCP tools in one server: identity, signals, ICP. Clay-ready.",
|
|
5
|
-
"version": "1.7.0",
|
|
6
|
-
"repository": {
|
|
7
|
-
"url": "https://github.com/mambalabsdev/mcp-gtm-suite",
|
|
8
|
-
"source": "github"
|
|
9
|
-
},
|
|
10
|
-
"packages": [
|
|
11
|
-
{
|
|
12
|
-
"registryType": "npm",
|
|
13
|
-
"identifier": "@mambalabsdev/mcp-gtm-suite",
|
|
14
|
-
"version": "1.7.0",
|
|
15
|
-
"transport": {
|
|
16
|
-
"type": "stdio"
|
|
17
|
-
},
|
|
18
|
-
"environmentVariables": [
|
|
19
|
-
{
|
|
20
|
-
"name": "APIFY_TOKEN",
|
|
21
|
-
"description": "Apify API token from https://console.apify.com/account/integrations",
|
|
22
|
-
"isRequired": true,
|
|
23
|
-
"isSecret": true,
|
|
24
|
-
"format": "string"
|
|
25
|
-
}
|
|
26
|
-
]
|
|
27
|
-
}
|
|
28
|
-
]
|
|
29
|
-
}
|