signals-sortlist-mcp 1.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Sortlist
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,153 @@
1
+ # Signals MCP Server
2
+
3
+ [![npm](https://img.shields.io/npm/v/signals-sortlist-mcp)](https://www.npmjs.com/package/signals-sortlist-mcp) [![License: MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg)](LICENSE)
4
+
5
+ **MCP server for the [Signals](https://signals.sortlist.com/) lead intelligence API** — gives AI agents tools to discover leads, manage subscriptions, and automate sales workflows.
6
+
7
+ ---
8
+
9
+ ## Quick Setup
10
+
11
+ ### Claude Desktop
12
+
13
+ Add to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows):
14
+
15
+ ```json
16
+ {
17
+ "mcpServers": {
18
+ "signals": {
19
+ "command": "npx",
20
+ "args": ["-y", "signals-sortlist-mcp"],
21
+ "env": {
22
+ "SIGNALS_API_KEY": "your_api_key"
23
+ }
24
+ }
25
+ }
26
+ }
27
+ ```
28
+
29
+ ### Cursor
30
+
31
+ Add to your Cursor MCP settings (`.cursor/mcp.json`):
32
+
33
+ ```json
34
+ {
35
+ "mcpServers": {
36
+ "signals": {
37
+ "command": "npx",
38
+ "args": ["-y", "signals-sortlist-mcp"],
39
+ "env": {
40
+ "SIGNALS_API_KEY": "your_api_key"
41
+ }
42
+ }
43
+ }
44
+ }
45
+ ```
46
+
47
+ ### Claude Code
48
+
49
+ ```bash
50
+ claude mcp add signals -- npx -y signals-sortlist-mcp -e SIGNALS_API_KEY=your_api_key
51
+ ```
52
+
53
+ > Get your API key from **Settings > API Keys** in your [Signals dashboard](https://signals.sortlist.com/).
54
+
55
+ ---
56
+
57
+ ## Tools
58
+
59
+ The server exposes 19 tools covering the full Signals API:
60
+
61
+ ### Signals (catalog)
62
+
63
+ | Tool | Description |
64
+ |---|---|
65
+ | `list_signals` | List all available signal types |
66
+ | `get_signal` | Get details of a specific signal by slug |
67
+
68
+ ### Businesses
69
+
70
+ | Tool | Description |
71
+ |---|---|
72
+ | `list_businesses` | List all businesses in your team |
73
+ | `get_business` | Get a business with its Ideal Customer Profile |
74
+ | `create_business` | Create a business (auto-analyze from URL or manual) |
75
+ | `update_business` | Update a business and/or its ICP |
76
+
77
+ ### Subscriptions
78
+
79
+ | Tool | Description |
80
+ |---|---|
81
+ | `list_subscriptions` | List subscriptions for a business |
82
+ | `get_subscription` | Get subscription details and stats |
83
+ | `create_subscription` | Subscribe to a signal for a business |
84
+ | `update_subscription` | Update subscription name or config |
85
+ | `pause_subscription` | Pause lead collection |
86
+ | `resume_subscription` | Resume a paused subscription |
87
+ | `delete_subscription` | Delete a subscription permanently |
88
+
89
+ ### Leads
90
+
91
+ | Tool | Description |
92
+ |---|---|
93
+ | `list_leads` | List leads for a business (paginated) |
94
+ | `get_lead` | Get full lead details |
95
+ | `delete_lead` | Delete a lead |
96
+
97
+ ### Webhooks
98
+
99
+ | Tool | Description |
100
+ |---|---|
101
+ | `list_webhooks` | List webhook endpoints |
102
+ | `create_webhook` | Register a webhook URL |
103
+ | `delete_webhook` | Remove a webhook endpoint |
104
+
105
+ ---
106
+
107
+ ## Environment Variables
108
+
109
+ | Variable | Required | Description |
110
+ |---|---|---|
111
+ | `SIGNALS_API_KEY` | Yes | Your Signals API key |
112
+ | `SIGNALS_API_URL` | No | Override the API base URL (defaults to `https://api.meetsignals.ai`) |
113
+
114
+ ---
115
+
116
+ ## Development
117
+
118
+ ```bash
119
+ git clone https://github.com/sortlist/signals-mcp.git
120
+ cd signals-mcp
121
+ npm install
122
+ npm run dev # Watch mode
123
+ npm run build # Production build
124
+ ```
125
+
126
+ ### Project Structure
127
+
128
+ ```
129
+ src/
130
+ index.ts # MCP server entry point (stdio transport)
131
+ api.ts # SignalsAPI HTTP client
132
+ tools/
133
+ signals.ts # list_signals, get_signal
134
+ businesses.ts # Business CRUD + ICP management
135
+ subscriptions.ts # Subscription lifecycle
136
+ leads.ts # Lead retrieval and deletion
137
+ webhooks.ts # Webhook management
138
+ ```
139
+
140
+ ---
141
+
142
+ ## Links
143
+
144
+ - **Website:** [signals.sortlist.com](https://signals.sortlist.com/)
145
+ - **API Docs:** [signals.sortlist.com/docs/api](https://signals.sortlist.com/docs/api)
146
+ - **CLI:** [signals-sortlist-cli](https://www.npmjs.com/package/signals-sortlist-cli)
147
+ - **GitHub:** [sortlist/signals-mcp](https://github.com/sortlist/signals-mcp)
148
+
149
+ ---
150
+
151
+ ## License
152
+
153
+ MIT
package/dist/index.js ADDED
@@ -0,0 +1,362 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ var __create = Object.create;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getProtoOf = Object.getPrototypeOf;
8
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
18
+ // If the importer is in node compatibility mode or this is not an ESM
19
+ // file that has been converted to a CommonJS file using a Babel-
20
+ // compatible transform (i.e. "__esModule" has not been set), then set
21
+ // "default" to the CommonJS "module.exports" for node compatibility.
22
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
23
+ mod
24
+ ));
25
+
26
+ // src/index.ts
27
+ var import_mcp = require("@modelcontextprotocol/sdk/server/mcp.js");
28
+ var import_stdio = require("@modelcontextprotocol/sdk/server/stdio.js");
29
+
30
+ // src/api.ts
31
+ var import_node_fetch = __toESM(require("node-fetch"));
32
+ var SignalsAPI = class {
33
+ constructor(apiKey2) {
34
+ this.apiKey = apiKey2;
35
+ this.baseUrl = (process.env.SIGNALS_API_URL || "https://api.meetsignals.ai").replace(/\/$/, "");
36
+ }
37
+ async request(endpoint, options = {}) {
38
+ const url = `${this.baseUrl}/api/v1${endpoint}`;
39
+ const headers = {
40
+ "Content-Type": "application/json",
41
+ Authorization: `Bearer ${this.apiKey}`,
42
+ ...options.headers
43
+ };
44
+ const response = await (0, import_node_fetch.default)(url, { ...options, headers });
45
+ if (response.status === 204) {
46
+ return { success: true };
47
+ }
48
+ if (!response.ok) {
49
+ const body = await response.text();
50
+ let message;
51
+ try {
52
+ const json = JSON.parse(body);
53
+ message = json.error || json.errors?.join(", ") || body;
54
+ } catch {
55
+ message = body;
56
+ }
57
+ throw new Error(`API Error (${response.status}): ${message}`);
58
+ }
59
+ return await response.json();
60
+ }
61
+ businessPath(businessId) {
62
+ return `/businesses/${businessId}`;
63
+ }
64
+ };
65
+
66
+ // src/tools/signals.ts
67
+ var import_zod = require("zod");
68
+ function registerSignalTools(server2, api2) {
69
+ server2.tool(
70
+ "list_signals",
71
+ "List all available signals in the catalog",
72
+ {},
73
+ async () => {
74
+ const result = await api2.request("/signals", { method: "GET" });
75
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
76
+ }
77
+ );
78
+ server2.tool(
79
+ "get_signal",
80
+ "Get details of a specific signal by its slug",
81
+ { slug: import_zod.z.string().describe('The signal slug (e.g. "new-hire")') },
82
+ async ({ slug }) => {
83
+ const result = await api2.request(`/signals/${encodeURIComponent(slug)}`, { method: "GET" });
84
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
85
+ }
86
+ );
87
+ }
88
+
89
+ // src/tools/businesses.ts
90
+ var import_zod2 = require("zod");
91
+ var icpSchema = import_zod2.z.object({
92
+ target_locations: import_zod2.z.array(import_zod2.z.string()).optional().describe("Target geographic locations"),
93
+ target_industries: import_zod2.z.array(import_zod2.z.string()).optional().describe("Target industries"),
94
+ company_types: import_zod2.z.array(import_zod2.z.string()).optional().describe('Company types (e.g. "B2B SaaS", "E-commerce")'),
95
+ company_sizes: import_zod2.z.array(import_zod2.z.string()).optional().describe('Company sizes (e.g. "1-10", "11-50")'),
96
+ description: import_zod2.z.string().optional().describe("Free-text ICP description")
97
+ }).describe("Ideal Customer Profile attributes");
98
+ function registerBusinessTools(server2, api2) {
99
+ server2.tool(
100
+ "list_businesses",
101
+ "List all businesses belonging to your team",
102
+ {},
103
+ async () => {
104
+ const result = await api2.request("/businesses", { method: "GET" });
105
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
106
+ }
107
+ );
108
+ server2.tool(
109
+ "get_business",
110
+ "Get details of a specific business including its ICP",
111
+ { business_id: import_zod2.z.string().describe("The business ID") },
112
+ async ({ business_id }) => {
113
+ const result = await api2.request(`/businesses/${business_id}`, { method: "GET" });
114
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
115
+ }
116
+ );
117
+ server2.tool(
118
+ "create_business",
119
+ "Create a new business. Provide a website URL for auto-analysis, or supply name/description/ICP manually.",
120
+ {
121
+ website: import_zod2.z.string().optional().describe("Website URL \u2014 triggers AI auto-analysis of the business"),
122
+ name: import_zod2.z.string().optional().describe("Business name (for manual creation)"),
123
+ description: import_zod2.z.string().optional().describe("Business description"),
124
+ ideal_customer_profile_attributes: icpSchema.optional()
125
+ },
126
+ async (params) => {
127
+ const result = await api2.request("/businesses", {
128
+ method: "POST",
129
+ body: JSON.stringify(params)
130
+ });
131
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
132
+ }
133
+ );
134
+ server2.tool(
135
+ "update_business",
136
+ "Update an existing business and/or its ICP",
137
+ {
138
+ business_id: import_zod2.z.string().describe("The business ID"),
139
+ name: import_zod2.z.string().optional().describe("New business name"),
140
+ website: import_zod2.z.string().optional().describe("New website URL"),
141
+ description: import_zod2.z.string().optional().describe("New business description"),
142
+ ideal_customer_profile_attributes: icpSchema.optional()
143
+ },
144
+ async ({ business_id, ...data }) => {
145
+ const result = await api2.request(`/businesses/${business_id}`, {
146
+ method: "PATCH",
147
+ body: JSON.stringify(data)
148
+ });
149
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
150
+ }
151
+ );
152
+ }
153
+
154
+ // src/tools/subscriptions.ts
155
+ var import_zod3 = require("zod");
156
+ function registerSubscriptionTools(server2, api2) {
157
+ server2.tool(
158
+ "list_subscriptions",
159
+ "List all subscriptions (signal monitors) for a business",
160
+ { business_id: import_zod3.z.string().describe("The business ID") },
161
+ async ({ business_id }) => {
162
+ const result = await api2.request(`/businesses/${business_id}/subscriptions`, { method: "GET" });
163
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
164
+ }
165
+ );
166
+ server2.tool(
167
+ "get_subscription",
168
+ "Get details of a specific subscription",
169
+ {
170
+ business_id: import_zod3.z.string().describe("The business ID"),
171
+ subscription_id: import_zod3.z.string().describe("The subscription ID")
172
+ },
173
+ async ({ business_id, subscription_id }) => {
174
+ const result = await api2.request(`/businesses/${business_id}/subscriptions/${subscription_id}`, { method: "GET" });
175
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
176
+ }
177
+ );
178
+ server2.tool(
179
+ "create_subscription",
180
+ "Create a new subscription to a signal for a business",
181
+ {
182
+ business_id: import_zod3.z.string().describe("The business ID"),
183
+ signal_slug: import_zod3.z.string().describe("The signal slug to subscribe to"),
184
+ name: import_zod3.z.string().describe("A name for this subscription"),
185
+ config: import_zod3.z.record(import_zod3.z.any()).optional().describe("Signal-specific configuration")
186
+ },
187
+ async ({ business_id, ...data }) => {
188
+ const result = await api2.request(`/businesses/${business_id}/subscriptions`, {
189
+ method: "POST",
190
+ body: JSON.stringify(data)
191
+ });
192
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
193
+ }
194
+ );
195
+ server2.tool(
196
+ "update_subscription",
197
+ "Update an existing subscription",
198
+ {
199
+ business_id: import_zod3.z.string().describe("The business ID"),
200
+ subscription_id: import_zod3.z.string().describe("The subscription ID"),
201
+ name: import_zod3.z.string().optional().describe("New name"),
202
+ config: import_zod3.z.record(import_zod3.z.any()).optional().describe("Updated configuration")
203
+ },
204
+ async ({ business_id, subscription_id, ...data }) => {
205
+ const result = await api2.request(`/businesses/${business_id}/subscriptions/${subscription_id}`, {
206
+ method: "PATCH",
207
+ body: JSON.stringify(data)
208
+ });
209
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
210
+ }
211
+ );
212
+ server2.tool(
213
+ "pause_subscription",
214
+ "Pause a subscription (stops lead collection)",
215
+ {
216
+ business_id: import_zod3.z.string().describe("The business ID"),
217
+ subscription_id: import_zod3.z.string().describe("The subscription ID")
218
+ },
219
+ async ({ business_id, subscription_id }) => {
220
+ const result = await api2.request(`/businesses/${business_id}/subscriptions/${subscription_id}/pause`, { method: "POST" });
221
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
222
+ }
223
+ );
224
+ server2.tool(
225
+ "resume_subscription",
226
+ "Resume a paused subscription",
227
+ {
228
+ business_id: import_zod3.z.string().describe("The business ID"),
229
+ subscription_id: import_zod3.z.string().describe("The subscription ID")
230
+ },
231
+ async ({ business_id, subscription_id }) => {
232
+ const result = await api2.request(`/businesses/${business_id}/subscriptions/${subscription_id}/resume`, { method: "POST" });
233
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
234
+ }
235
+ );
236
+ server2.tool(
237
+ "delete_subscription",
238
+ "Delete a subscription permanently",
239
+ {
240
+ business_id: import_zod3.z.string().describe("The business ID"),
241
+ subscription_id: import_zod3.z.string().describe("The subscription ID")
242
+ },
243
+ async ({ business_id, subscription_id }) => {
244
+ const result = await api2.request(`/businesses/${business_id}/subscriptions/${subscription_id}`, { method: "DELETE" });
245
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
246
+ }
247
+ );
248
+ }
249
+
250
+ // src/tools/leads.ts
251
+ var import_zod4 = require("zod");
252
+ function registerLeadTools(server2, api2) {
253
+ server2.tool(
254
+ "list_leads",
255
+ "List leads for a business (paginated)",
256
+ {
257
+ business_id: import_zod4.z.string().describe("The business ID"),
258
+ page: import_zod4.z.number().optional().describe("Page number (default: 1)"),
259
+ per_page: import_zod4.z.number().optional().describe("Results per page (default: 25)")
260
+ },
261
+ async ({ business_id, page, per_page }) => {
262
+ const query = new URLSearchParams();
263
+ if (page) query.set("page", String(page));
264
+ if (per_page) query.set("per_page", String(per_page));
265
+ const qs = query.toString();
266
+ const result = await api2.request(`/businesses/${business_id}/leads${qs ? `?${qs}` : ""}`, { method: "GET" });
267
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
268
+ }
269
+ );
270
+ server2.tool(
271
+ "get_lead",
272
+ "Get details of a specific lead",
273
+ {
274
+ business_id: import_zod4.z.string().describe("The business ID"),
275
+ lead_id: import_zod4.z.string().describe("The lead ID")
276
+ },
277
+ async ({ business_id, lead_id }) => {
278
+ const result = await api2.request(`/businesses/${business_id}/leads/${lead_id}`, { method: "GET" });
279
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
280
+ }
281
+ );
282
+ server2.tool(
283
+ "delete_lead",
284
+ "Delete a lead permanently",
285
+ {
286
+ business_id: import_zod4.z.string().describe("The business ID"),
287
+ lead_id: import_zod4.z.string().describe("The lead ID")
288
+ },
289
+ async ({ business_id, lead_id }) => {
290
+ const result = await api2.request(`/businesses/${business_id}/leads/${lead_id}`, { method: "DELETE" });
291
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
292
+ }
293
+ );
294
+ }
295
+
296
+ // src/tools/webhooks.ts
297
+ var import_zod5 = require("zod");
298
+ function registerWebhookTools(server2, api2) {
299
+ server2.tool(
300
+ "list_webhooks",
301
+ "List all webhooks configured for a business",
302
+ { business_id: import_zod5.z.string().describe("The business ID") },
303
+ async ({ business_id }) => {
304
+ const result = await api2.request(`/businesses/${business_id}/webhooks`, { method: "GET" });
305
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
306
+ }
307
+ );
308
+ server2.tool(
309
+ "create_webhook",
310
+ "Create a new webhook endpoint for a business",
311
+ {
312
+ business_id: import_zod5.z.string().describe("The business ID"),
313
+ url: import_zod5.z.string().url().describe("The webhook URL to receive POST requests"),
314
+ secret: import_zod5.z.string().optional().describe("Optional shared secret for HMAC signature verification")
315
+ },
316
+ async ({ business_id, ...data }) => {
317
+ const result = await api2.request(`/businesses/${business_id}/webhooks`, {
318
+ method: "POST",
319
+ body: JSON.stringify(data)
320
+ });
321
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
322
+ }
323
+ );
324
+ server2.tool(
325
+ "delete_webhook",
326
+ "Delete a webhook endpoint",
327
+ {
328
+ business_id: import_zod5.z.string().describe("The business ID"),
329
+ webhook_id: import_zod5.z.string().describe("The webhook ID")
330
+ },
331
+ async ({ business_id, webhook_id }) => {
332
+ const result = await api2.request(`/businesses/${business_id}/webhooks/${webhook_id}`, { method: "DELETE" });
333
+ return { content: [{ type: "text", text: JSON.stringify(result, null, 2) }] };
334
+ }
335
+ );
336
+ }
337
+
338
+ // src/index.ts
339
+ var apiKey = process.env.SIGNALS_API_KEY;
340
+ if (!apiKey) {
341
+ console.error("SIGNALS_API_KEY environment variable is required");
342
+ process.exit(1);
343
+ }
344
+ var api = new SignalsAPI(apiKey);
345
+ var server = new import_mcp.McpServer({
346
+ name: "signals",
347
+ version: "1.0.0"
348
+ });
349
+ registerSignalTools(server, api);
350
+ registerBusinessTools(server, api);
351
+ registerSubscriptionTools(server, api);
352
+ registerLeadTools(server, api);
353
+ registerWebhookTools(server, api);
354
+ async function main() {
355
+ const transport = new import_stdio.StdioServerTransport();
356
+ await server.connect(transport);
357
+ }
358
+ main().catch((error) => {
359
+ console.error("Fatal error:", error);
360
+ process.exit(1);
361
+ });
362
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/index.ts","../src/api.ts","../src/tools/signals.ts","../src/tools/businesses.ts","../src/tools/subscriptions.ts","../src/tools/leads.ts","../src/tools/webhooks.ts"],"sourcesContent":["import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';\nimport { SignalsAPI } from './api.js';\nimport { registerSignalTools } from './tools/signals.js';\nimport { registerBusinessTools } from './tools/businesses.js';\nimport { registerSubscriptionTools } from './tools/subscriptions.js';\nimport { registerLeadTools } from './tools/leads.js';\nimport { registerWebhookTools } from './tools/webhooks.js';\n\nconst apiKey = process.env.SIGNALS_API_KEY;\nif (!apiKey) {\n console.error('SIGNALS_API_KEY environment variable is required');\n process.exit(1);\n}\n\nconst api = new SignalsAPI(apiKey);\n\nconst server = new McpServer({\n name: 'signals',\n version: '1.0.0',\n});\n\nregisterSignalTools(server, api);\nregisterBusinessTools(server, api);\nregisterSubscriptionTools(server, api);\nregisterLeadTools(server, api);\nregisterWebhookTools(server, api);\n\nasync function main() {\n const transport = new StdioServerTransport();\n await server.connect(transport);\n}\n\nmain().catch((error) => {\n console.error('Fatal error:', error);\n process.exit(1);\n});\n","import fetch from 'node-fetch';\n\nexport class SignalsAPI {\n private apiKey: string;\n private baseUrl: string;\n\n constructor(apiKey: string) {\n this.apiKey = apiKey;\n this.baseUrl = (process.env.SIGNALS_API_URL || 'https://api.meetsignals.ai').replace(/\\/$/, '');\n }\n\n async request(endpoint: string, options: any = {}) {\n const url = `${this.baseUrl}/api/v1${endpoint}`;\n const headers: Record<string, string> = {\n 'Content-Type': 'application/json',\n Authorization: `Bearer ${this.apiKey}`,\n ...options.headers,\n };\n\n const response = await fetch(url, { ...options, headers });\n\n if (response.status === 204) {\n return { success: true };\n }\n\n if (!response.ok) {\n const body = await response.text();\n let message: string;\n try {\n const json = JSON.parse(body);\n message = json.error || json.errors?.join(', ') || body;\n } catch {\n message = body;\n }\n throw new Error(`API Error (${response.status}): ${message}`);\n }\n\n return await response.json();\n }\n\n businessPath(businessId: string) {\n return `/businesses/${businessId}`;\n }\n}\n","import { z } from 'zod';\nimport { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { SignalsAPI } from '../api.js';\n\nexport function registerSignalTools(server: McpServer, api: SignalsAPI) {\n server.tool(\n 'list_signals',\n 'List all available signals in the catalog',\n {},\n async () => {\n const result = await api.request('/signals', { method: 'GET' });\n return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };\n }\n );\n\n server.tool(\n 'get_signal',\n 'Get details of a specific signal by its slug',\n { slug: z.string().describe('The signal slug (e.g. \"new-hire\")') },\n async ({ slug }) => {\n const result = await api.request(`/signals/${encodeURIComponent(slug)}`, { method: 'GET' });\n return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };\n }\n );\n}\n","import { z } from 'zod';\nimport { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { SignalsAPI } from '../api.js';\n\nconst icpSchema = z.object({\n target_locations: z.array(z.string()).optional().describe('Target geographic locations'),\n target_industries: z.array(z.string()).optional().describe('Target industries'),\n company_types: z.array(z.string()).optional().describe('Company types (e.g. \"B2B SaaS\", \"E-commerce\")'),\n company_sizes: z.array(z.string()).optional().describe('Company sizes (e.g. \"1-10\", \"11-50\")'),\n description: z.string().optional().describe('Free-text ICP description'),\n}).describe('Ideal Customer Profile attributes');\n\nexport function registerBusinessTools(server: McpServer, api: SignalsAPI) {\n server.tool(\n 'list_businesses',\n 'List all businesses belonging to your team',\n {},\n async () => {\n const result = await api.request('/businesses', { method: 'GET' });\n return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };\n }\n );\n\n server.tool(\n 'get_business',\n 'Get details of a specific business including its ICP',\n { business_id: z.string().describe('The business ID') },\n async ({ business_id }) => {\n const result = await api.request(`/businesses/${business_id}`, { method: 'GET' });\n return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };\n }\n );\n\n server.tool(\n 'create_business',\n 'Create a new business. Provide a website URL for auto-analysis, or supply name/description/ICP manually.',\n {\n website: z.string().optional().describe('Website URL — triggers AI auto-analysis of the business'),\n name: z.string().optional().describe('Business name (for manual creation)'),\n description: z.string().optional().describe('Business description'),\n ideal_customer_profile_attributes: icpSchema.optional(),\n },\n async (params) => {\n const result = await api.request('/businesses', {\n method: 'POST',\n body: JSON.stringify(params),\n });\n return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };\n }\n );\n\n server.tool(\n 'update_business',\n 'Update an existing business and/or its ICP',\n {\n business_id: z.string().describe('The business ID'),\n name: z.string().optional().describe('New business name'),\n website: z.string().optional().describe('New website URL'),\n description: z.string().optional().describe('New business description'),\n ideal_customer_profile_attributes: icpSchema.optional(),\n },\n async ({ business_id, ...data }) => {\n const result = await api.request(`/businesses/${business_id}`, {\n method: 'PATCH',\n body: JSON.stringify(data),\n });\n return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };\n }\n );\n}\n","import { z } from 'zod';\nimport { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { SignalsAPI } from '../api.js';\n\nexport function registerSubscriptionTools(server: McpServer, api: SignalsAPI) {\n server.tool(\n 'list_subscriptions',\n 'List all subscriptions (signal monitors) for a business',\n { business_id: z.string().describe('The business ID') },\n async ({ business_id }) => {\n const result = await api.request(`/businesses/${business_id}/subscriptions`, { method: 'GET' });\n return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };\n }\n );\n\n server.tool(\n 'get_subscription',\n 'Get details of a specific subscription',\n {\n business_id: z.string().describe('The business ID'),\n subscription_id: z.string().describe('The subscription ID'),\n },\n async ({ business_id, subscription_id }) => {\n const result = await api.request(`/businesses/${business_id}/subscriptions/${subscription_id}`, { method: 'GET' });\n return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };\n }\n );\n\n server.tool(\n 'create_subscription',\n 'Create a new subscription to a signal for a business',\n {\n business_id: z.string().describe('The business ID'),\n signal_slug: z.string().describe('The signal slug to subscribe to'),\n name: z.string().describe('A name for this subscription'),\n config: z.record(z.any()).optional().describe('Signal-specific configuration'),\n },\n async ({ business_id, ...data }) => {\n const result = await api.request(`/businesses/${business_id}/subscriptions`, {\n method: 'POST',\n body: JSON.stringify(data),\n });\n return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };\n }\n );\n\n server.tool(\n 'update_subscription',\n 'Update an existing subscription',\n {\n business_id: z.string().describe('The business ID'),\n subscription_id: z.string().describe('The subscription ID'),\n name: z.string().optional().describe('New name'),\n config: z.record(z.any()).optional().describe('Updated configuration'),\n },\n async ({ business_id, subscription_id, ...data }) => {\n const result = await api.request(`/businesses/${business_id}/subscriptions/${subscription_id}`, {\n method: 'PATCH',\n body: JSON.stringify(data),\n });\n return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };\n }\n );\n\n server.tool(\n 'pause_subscription',\n 'Pause a subscription (stops lead collection)',\n {\n business_id: z.string().describe('The business ID'),\n subscription_id: z.string().describe('The subscription ID'),\n },\n async ({ business_id, subscription_id }) => {\n const result = await api.request(`/businesses/${business_id}/subscriptions/${subscription_id}/pause`, { method: 'POST' });\n return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };\n }\n );\n\n server.tool(\n 'resume_subscription',\n 'Resume a paused subscription',\n {\n business_id: z.string().describe('The business ID'),\n subscription_id: z.string().describe('The subscription ID'),\n },\n async ({ business_id, subscription_id }) => {\n const result = await api.request(`/businesses/${business_id}/subscriptions/${subscription_id}/resume`, { method: 'POST' });\n return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };\n }\n );\n\n server.tool(\n 'delete_subscription',\n 'Delete a subscription permanently',\n {\n business_id: z.string().describe('The business ID'),\n subscription_id: z.string().describe('The subscription ID'),\n },\n async ({ business_id, subscription_id }) => {\n const result = await api.request(`/businesses/${business_id}/subscriptions/${subscription_id}`, { method: 'DELETE' });\n return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };\n }\n );\n}\n","import { z } from 'zod';\nimport { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { SignalsAPI } from '../api.js';\n\nexport function registerLeadTools(server: McpServer, api: SignalsAPI) {\n server.tool(\n 'list_leads',\n 'List leads for a business (paginated)',\n {\n business_id: z.string().describe('The business ID'),\n page: z.number().optional().describe('Page number (default: 1)'),\n per_page: z.number().optional().describe('Results per page (default: 25)'),\n },\n async ({ business_id, page, per_page }) => {\n const query = new URLSearchParams();\n if (page) query.set('page', String(page));\n if (per_page) query.set('per_page', String(per_page));\n const qs = query.toString();\n const result = await api.request(`/businesses/${business_id}/leads${qs ? `?${qs}` : ''}`, { method: 'GET' });\n return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };\n }\n );\n\n server.tool(\n 'get_lead',\n 'Get details of a specific lead',\n {\n business_id: z.string().describe('The business ID'),\n lead_id: z.string().describe('The lead ID'),\n },\n async ({ business_id, lead_id }) => {\n const result = await api.request(`/businesses/${business_id}/leads/${lead_id}`, { method: 'GET' });\n return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };\n }\n );\n\n server.tool(\n 'delete_lead',\n 'Delete a lead permanently',\n {\n business_id: z.string().describe('The business ID'),\n lead_id: z.string().describe('The lead ID'),\n },\n async ({ business_id, lead_id }) => {\n const result = await api.request(`/businesses/${business_id}/leads/${lead_id}`, { method: 'DELETE' });\n return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };\n }\n );\n}\n","import { z } from 'zod';\nimport { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';\nimport { SignalsAPI } from '../api.js';\n\nexport function registerWebhookTools(server: McpServer, api: SignalsAPI) {\n server.tool(\n 'list_webhooks',\n 'List all webhooks configured for a business',\n { business_id: z.string().describe('The business ID') },\n async ({ business_id }) => {\n const result = await api.request(`/businesses/${business_id}/webhooks`, { method: 'GET' });\n return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };\n }\n );\n\n server.tool(\n 'create_webhook',\n 'Create a new webhook endpoint for a business',\n {\n business_id: z.string().describe('The business ID'),\n url: z.string().url().describe('The webhook URL to receive POST requests'),\n secret: z.string().optional().describe('Optional shared secret for HMAC signature verification'),\n },\n async ({ business_id, ...data }) => {\n const result = await api.request(`/businesses/${business_id}/webhooks`, {\n method: 'POST',\n body: JSON.stringify(data),\n });\n return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };\n }\n );\n\n server.tool(\n 'delete_webhook',\n 'Delete a webhook endpoint',\n {\n business_id: z.string().describe('The business ID'),\n webhook_id: z.string().describe('The webhook ID'),\n },\n async ({ business_id, webhook_id }) => {\n const result = await api.request(`/businesses/${business_id}/webhooks/${webhook_id}`, { method: 'DELETE' });\n return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };\n }\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;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AAA,MAC3B,CAAC;AACD,aAAO,EAAE,SAAS,CAAC,EAAE,MAAM,QAAQ,MAAM,KAAK,UAAU,QAAQ,MAAM,CAAC,EAAE,CAAC,EAAE;AAAA,IAC9E;AAAA,EACF;AAEA,EAAAD,QAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,MACE,aAAa,cAAE,OAAO,EAAE,SAAS,iBAAiB;AAAA,MAClD,YAAY,cAAE,OAAO,EAAE,SAAS,gBAAgB;AAAA,IAClD;AAAA,IACA,OAAO,EAAE,aAAa,WAAW,MAAM;AACrC,YAAM,SAAS,MAAMC,KAAI,QAAQ,eAAe,WAAW,aAAa,UAAU,IAAI,EAAE,QAAQ,SAAS,CAAC;AAC1G,aAAO,EAAE,SAAS,CAAC,EAAE,MAAM,QAAQ,MAAM,KAAK,UAAU,QAAQ,MAAM,CAAC,EAAE,CAAC,EAAE;AAAA,IAC9E;AAAA,EACF;AACF;;;ANnCA,IAAM,SAAS,QAAQ,IAAI;AAC3B,IAAI,CAAC,QAAQ;AACX,UAAQ,MAAM,kDAAkD;AAChE,UAAQ,KAAK,CAAC;AAChB;AAEA,IAAM,MAAM,IAAI,WAAW,MAAM;AAEjC,IAAM,SAAS,IAAI,qBAAU;AAAA,EAC3B,MAAM;AAAA,EACN,SAAS;AACX,CAAC;AAED,oBAAoB,QAAQ,GAAG;AAC/B,sBAAsB,QAAQ,GAAG;AACjC,0BAA0B,QAAQ,GAAG;AACrC,kBAAkB,QAAQ,GAAG;AAC7B,qBAAqB,QAAQ,GAAG;AAEhC,eAAe,OAAO;AACpB,QAAM,YAAY,IAAI,kCAAqB;AAC3C,QAAM,OAAO,QAAQ,SAAS;AAChC;AAEA,KAAK,EAAE,MAAM,CAAC,UAAU;AACtB,UAAQ,MAAM,gBAAgB,KAAK;AACnC,UAAQ,KAAK,CAAC;AAChB,CAAC;","names":["apiKey","fetch","server","api","import_zod","server","api","import_zod","server","api","import_zod","server","api","import_zod","server","api"]}
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "signals-sortlist-mcp",
3
+ "version": "1.0.0",
4
+ "description": "MCP server for the Signals lead intelligence API. Gives AI agents (Claude, Cursor, etc.) tools to manage businesses, subscriptions, leads, and webhooks.",
5
+ "main": "dist/index.js",
6
+ "bin": {
7
+ "signals-mcp": "dist/index.js"
8
+ },
9
+ "scripts": {
10
+ "dev": "tsup --watch",
11
+ "build": "tsup",
12
+ "start": "node dist/index.js",
13
+ "prepublishOnly": "npm run build"
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "README.md",
18
+ "LICENSE"
19
+ ],
20
+ "keywords": [
21
+ "mcp",
22
+ "model-context-protocol",
23
+ "signals",
24
+ "leads",
25
+ "lead-generation",
26
+ "sales-intelligence",
27
+ "ai-agent",
28
+ "claude",
29
+ "cursor",
30
+ "automation"
31
+ ],
32
+ "author": "Sortlist",
33
+ "license": "MIT",
34
+ "repository": {
35
+ "type": "git",
36
+ "url": "git+https://github.com/sortlist/signals-mcp.git"
37
+ },
38
+ "homepage": "https://github.com/sortlist/signals-mcp#readme",
39
+ "bugs": {
40
+ "url": "https://github.com/sortlist/signals-mcp/issues"
41
+ },
42
+ "engines": {
43
+ "node": ">=18.0.0"
44
+ },
45
+ "dependencies": {
46
+ "@modelcontextprotocol/sdk": "^1.12.1",
47
+ "node-fetch": "^3.3.2",
48
+ "zod": "^3.24.4"
49
+ },
50
+ "devDependencies": {
51
+ "@types/node": "^20.11.19",
52
+ "tsup": "^8.5.1",
53
+ "typescript": "^5.3.3"
54
+ }
55
+ }