@leadshark/mcp-server 1.2.1 → 1.4.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/dist/index.js +9 -309
- package/dist/index.js.map +1 -1
- package/dist/tools/definitions.d.ts +32 -0
- package/dist/tools/definitions.d.ts.map +1 -0
- package/dist/tools/definitions.js +422 -0
- package/dist/tools/definitions.js.map +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
const index_js_1 = require("@modelcontextprotocol/sdk/server/index.js");
|
|
5
5
|
const stdio_js_1 = require("@modelcontextprotocol/sdk/server/stdio.js");
|
|
6
6
|
const types_js_1 = require("@modelcontextprotocol/sdk/types.js");
|
|
7
|
+
const definitions_1 = require("./tools/definitions");
|
|
7
8
|
const API_BASE_URL = process.env.LEADSHARK_API_URL || 'https://apex.leadshark.io';
|
|
8
9
|
const API_KEY = process.env.LEADSHARK_API_KEY;
|
|
9
10
|
if (!API_KEY) {
|
|
@@ -29,313 +30,6 @@ async function apiRequest(endpoint, method = 'GET', body) {
|
|
|
29
30
|
}
|
|
30
31
|
return data;
|
|
31
32
|
}
|
|
32
|
-
/**
|
|
33
|
-
* Tool definitions matching MCP spec
|
|
34
|
-
*/
|
|
35
|
-
const TOOLS = [
|
|
36
|
-
{
|
|
37
|
-
name: 'list_recent_posts',
|
|
38
|
-
description: 'Fetch your latest LinkedIn posts with engagement stats. Returns whether an automation already exists for each post.',
|
|
39
|
-
inputSchema: {
|
|
40
|
-
type: 'object',
|
|
41
|
-
properties: {
|
|
42
|
-
limit: {
|
|
43
|
-
type: 'number',
|
|
44
|
-
description: 'Number of posts to fetch (1-20, default: 5)',
|
|
45
|
-
minimum: 1,
|
|
46
|
-
maximum: 20,
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
name: 'create_automation',
|
|
53
|
-
description: 'Create a new automation for a LinkedIn post. Always created as Draft - you must activate it separately. Supports keywords, DM templates, comment replies, and settings like auto-connect and auto-like.',
|
|
54
|
-
inputSchema: {
|
|
55
|
-
type: 'object',
|
|
56
|
-
properties: {
|
|
57
|
-
post_url: {
|
|
58
|
-
type: 'string',
|
|
59
|
-
description: 'LinkedIn post URL to automate',
|
|
60
|
-
},
|
|
61
|
-
instruction: {
|
|
62
|
-
type: 'string',
|
|
63
|
-
description: 'Natural language instruction describing what the automation should do',
|
|
64
|
-
},
|
|
65
|
-
keywords: {
|
|
66
|
-
type: 'array',
|
|
67
|
-
items: { type: 'string' },
|
|
68
|
-
description: 'Trigger keywords (e.g., ["interested", "send", "want"])',
|
|
69
|
-
},
|
|
70
|
-
dm_templates: {
|
|
71
|
-
type: 'array',
|
|
72
|
-
items: { type: 'string' },
|
|
73
|
-
description: 'DM message templates. Use {{firstName}}, {{fullName}}, {{linkedinUsername}}',
|
|
74
|
-
},
|
|
75
|
-
comment_reply_templates: {
|
|
76
|
-
type: 'array',
|
|
77
|
-
items: { type: 'string' },
|
|
78
|
-
description: 'Comment reply templates. Use {{fullNameMention}} for @mentions',
|
|
79
|
-
},
|
|
80
|
-
offer_url: {
|
|
81
|
-
type: 'string',
|
|
82
|
-
description: 'URL to include in DM (e.g., lead magnet link)',
|
|
83
|
-
},
|
|
84
|
-
settings: {
|
|
85
|
-
type: 'object',
|
|
86
|
-
properties: {
|
|
87
|
-
auto_connect: { type: 'boolean', description: 'Send connection requests to commenters' },
|
|
88
|
-
auto_like: { type: 'boolean', description: 'Like all comments automatically' },
|
|
89
|
-
partially_engage: {
|
|
90
|
-
type: 'boolean',
|
|
91
|
-
description: 'WARNING: Only engage with comments the user has NOT manually replied to. CRITICAL: Enable this (true) if: (1) The post is older than 1 day, OR (2) The user has already manually responded to some comments. Default: false (engage with all comments). If post.posted_at is >24h ago, ASK USER before proceeding or default to true.'
|
|
92
|
-
},
|
|
93
|
-
follow_up_enabled: { type: 'boolean', description: 'Enable follow-up DMs' },
|
|
94
|
-
follow_up_delay_minutes: { type: 'number', description: 'Delay before follow-up (1-10080)' },
|
|
95
|
-
follow_up_template: { type: 'string', description: 'Follow-up message template' },
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
},
|
|
99
|
-
required: ['post_url'],
|
|
100
|
-
},
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
name: 'list_automations',
|
|
104
|
-
description: 'List all your automations with status, settings, and performance stats. Filter by status if needed.',
|
|
105
|
-
inputSchema: {
|
|
106
|
-
type: 'object',
|
|
107
|
-
properties: {
|
|
108
|
-
status: {
|
|
109
|
-
type: 'string',
|
|
110
|
-
enum: ['all', 'Running', 'Paused', 'Draft'],
|
|
111
|
-
description: 'Filter by status (default: all)',
|
|
112
|
-
},
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
name: 'edit_automation',
|
|
118
|
-
description: 'Update an automation. Can change status (Running/Paused/Draft), keywords, DM templates, comment replies, and all settings. Only include fields you want to change.',
|
|
119
|
-
inputSchema: {
|
|
120
|
-
type: 'object',
|
|
121
|
-
properties: {
|
|
122
|
-
automation_id: {
|
|
123
|
-
type: 'string',
|
|
124
|
-
description: 'UUID of the automation to edit',
|
|
125
|
-
},
|
|
126
|
-
updates: {
|
|
127
|
-
type: 'object',
|
|
128
|
-
properties: {
|
|
129
|
-
status: {
|
|
130
|
-
type: 'string',
|
|
131
|
-
enum: ['Running', 'Paused', 'Draft'],
|
|
132
|
-
description: 'New status',
|
|
133
|
-
},
|
|
134
|
-
keywords: {
|
|
135
|
-
type: 'array',
|
|
136
|
-
items: { type: 'string' },
|
|
137
|
-
description: 'Updated keywords',
|
|
138
|
-
},
|
|
139
|
-
dm_templates: {
|
|
140
|
-
type: 'array',
|
|
141
|
-
items: { type: 'string' },
|
|
142
|
-
description: 'Updated DM templates',
|
|
143
|
-
},
|
|
144
|
-
comment_reply_templates: {
|
|
145
|
-
type: 'array',
|
|
146
|
-
items: { type: 'string' },
|
|
147
|
-
description: 'Updated comment reply templates',
|
|
148
|
-
},
|
|
149
|
-
settings: {
|
|
150
|
-
type: 'object',
|
|
151
|
-
properties: {
|
|
152
|
-
auto_connect: { type: 'boolean' },
|
|
153
|
-
auto_like: { type: 'boolean' },
|
|
154
|
-
partially_engage: {
|
|
155
|
-
type: 'boolean',
|
|
156
|
-
description: 'WARNING: Only engage with comments the user has NOT manually replied to. CRITICAL: Enable this (true) if the post is older than 1 day OR if the user has already manually responded to some comments. Check automation.post_url posted_at date before changing this.'
|
|
157
|
-
},
|
|
158
|
-
follow_up_enabled: { type: 'boolean' },
|
|
159
|
-
follow_up_delay_minutes: { type: 'number' },
|
|
160
|
-
follow_up_template: { type: 'string' },
|
|
161
|
-
},
|
|
162
|
-
},
|
|
163
|
-
},
|
|
164
|
-
},
|
|
165
|
-
},
|
|
166
|
-
required: ['automation_id', 'updates'],
|
|
167
|
-
},
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
name: 'schedule_post_with_automation',
|
|
171
|
-
description: 'Schedule a LinkedIn post for future publishing with optional automation and image. The automation activates automatically when the post goes live. Supports attaching an image via URL.',
|
|
172
|
-
inputSchema: {
|
|
173
|
-
type: 'object',
|
|
174
|
-
properties: {
|
|
175
|
-
post_content: {
|
|
176
|
-
type: 'string',
|
|
177
|
-
description: 'The LinkedIn post content (max 3000 chars)',
|
|
178
|
-
},
|
|
179
|
-
scheduled_for: {
|
|
180
|
-
type: 'string',
|
|
181
|
-
description: 'ISO 8601 datetime for publishing (e.g., 2026-02-03T09:00:00Z)',
|
|
182
|
-
},
|
|
183
|
-
timezone: {
|
|
184
|
-
type: 'string',
|
|
185
|
-
description: 'Timezone (e.g., America/New_York). Defaults to UTC.',
|
|
186
|
-
},
|
|
187
|
-
image_url: {
|
|
188
|
-
type: 'string',
|
|
189
|
-
description: 'URL of an image to attach to the post. Supports JPEG, PNG, GIF, WebP (max 5MB). The image will be downloaded and attached to the scheduled post.',
|
|
190
|
-
},
|
|
191
|
-
automation: {
|
|
192
|
-
type: 'object',
|
|
193
|
-
description: 'Optional automation to attach',
|
|
194
|
-
properties: {
|
|
195
|
-
keywords: { type: 'array', items: { type: 'string' } },
|
|
196
|
-
offer_url: { type: 'string' },
|
|
197
|
-
dm_template: { type: 'string' },
|
|
198
|
-
comment_reply: { type: 'string' },
|
|
199
|
-
settings: {
|
|
200
|
-
type: 'object',
|
|
201
|
-
properties: {
|
|
202
|
-
auto_connect: { type: 'boolean' },
|
|
203
|
-
auto_like: { type: 'boolean' },
|
|
204
|
-
partially_engage: { type: 'boolean' },
|
|
205
|
-
follow_up_enabled: { type: 'boolean' },
|
|
206
|
-
follow_up_delay_minutes: { type: 'number' },
|
|
207
|
-
follow_up_template: { type: 'string' },
|
|
208
|
-
},
|
|
209
|
-
},
|
|
210
|
-
},
|
|
211
|
-
},
|
|
212
|
-
},
|
|
213
|
-
required: ['post_content', 'scheduled_for'],
|
|
214
|
-
},
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
name: 'list_scheduled_posts',
|
|
218
|
-
description: 'List all your scheduled posts with status, timing, and automation details. Filter by status (pending, published, failed, all).',
|
|
219
|
-
inputSchema: {
|
|
220
|
-
type: 'object',
|
|
221
|
-
properties: {
|
|
222
|
-
status: {
|
|
223
|
-
type: 'string',
|
|
224
|
-
enum: ['pending', 'published', 'failed', 'all'],
|
|
225
|
-
description: 'Filter by status (default: pending)',
|
|
226
|
-
},
|
|
227
|
-
},
|
|
228
|
-
},
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
name: 'edit_scheduled_post',
|
|
232
|
-
description: 'Update a scheduled post\'s content, scheduled time, or pre-automation settings. Can edit post copy, reschedule, or modify automation keywords, templates, and settings. Can only edit pending posts (not published/failed).',
|
|
233
|
-
inputSchema: {
|
|
234
|
-
type: 'object',
|
|
235
|
-
properties: {
|
|
236
|
-
post_id: {
|
|
237
|
-
type: 'string',
|
|
238
|
-
description: 'UUID of the scheduled post to edit',
|
|
239
|
-
},
|
|
240
|
-
updates: {
|
|
241
|
-
type: 'object',
|
|
242
|
-
properties: {
|
|
243
|
-
content: {
|
|
244
|
-
type: 'string',
|
|
245
|
-
description: 'New post content (max 3000 chars)',
|
|
246
|
-
},
|
|
247
|
-
scheduled_time: {
|
|
248
|
-
type: 'string',
|
|
249
|
-
description: 'New scheduled time (ISO 8601 format)',
|
|
250
|
-
},
|
|
251
|
-
automation: {
|
|
252
|
-
type: 'object',
|
|
253
|
-
description: 'Update pre-automation settings (keywords, templates, etc.)',
|
|
254
|
-
properties: {
|
|
255
|
-
keywords: {
|
|
256
|
-
type: 'array',
|
|
257
|
-
items: { type: 'string' },
|
|
258
|
-
description: 'Trigger keywords',
|
|
259
|
-
},
|
|
260
|
-
dm_templates: {
|
|
261
|
-
type: 'array',
|
|
262
|
-
items: { type: 'string' },
|
|
263
|
-
description: 'DM message templates',
|
|
264
|
-
},
|
|
265
|
-
comment_reply_templates: {
|
|
266
|
-
type: 'array',
|
|
267
|
-
items: { type: 'string' },
|
|
268
|
-
description: 'Comment reply templates',
|
|
269
|
-
},
|
|
270
|
-
non_first_degree_reply_templates: {
|
|
271
|
-
type: 'array',
|
|
272
|
-
items: { type: 'string' },
|
|
273
|
-
description: 'Reply templates for non-first-degree connections',
|
|
274
|
-
},
|
|
275
|
-
offer_url: {
|
|
276
|
-
type: 'string',
|
|
277
|
-
description: 'URL to include in DMs',
|
|
278
|
-
},
|
|
279
|
-
settings: {
|
|
280
|
-
type: 'object',
|
|
281
|
-
properties: {
|
|
282
|
-
auto_connect: { type: 'boolean' },
|
|
283
|
-
auto_like: { type: 'boolean' },
|
|
284
|
-
partially_engage: { type: 'boolean' },
|
|
285
|
-
link_tracking: { type: 'boolean' },
|
|
286
|
-
follow_up_enabled: { type: 'boolean' },
|
|
287
|
-
follow_up_delay_minutes: { type: 'number' },
|
|
288
|
-
follow_up_template: { type: 'string' },
|
|
289
|
-
follow_up_only_if_no_response: { type: 'boolean' },
|
|
290
|
-
},
|
|
291
|
-
},
|
|
292
|
-
},
|
|
293
|
-
},
|
|
294
|
-
},
|
|
295
|
-
},
|
|
296
|
-
},
|
|
297
|
-
required: ['post_id', 'updates'],
|
|
298
|
-
},
|
|
299
|
-
},
|
|
300
|
-
{
|
|
301
|
-
name: 'cancel_scheduled_post',
|
|
302
|
-
description: 'Cancel a scheduled post. DESTRUCTIVE: Requires confirm: true. Deletes post content and attachments permanently. Pre-automation templates are preserved and can be reused. Can only cancel pending posts.',
|
|
303
|
-
inputSchema: {
|
|
304
|
-
type: 'object',
|
|
305
|
-
properties: {
|
|
306
|
-
post_id: {
|
|
307
|
-
type: 'string',
|
|
308
|
-
description: 'UUID of the scheduled post to cancel',
|
|
309
|
-
},
|
|
310
|
-
confirm: {
|
|
311
|
-
type: 'boolean',
|
|
312
|
-
description: 'REQUIRED: Must be true to confirm cancellation. Post content and attachments will be deleted, but pre-automation templates are preserved.',
|
|
313
|
-
},
|
|
314
|
-
},
|
|
315
|
-
required: ['post_id', 'confirm'],
|
|
316
|
-
},
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
name: 'set_daily_dm_limit',
|
|
320
|
-
description: 'Set your daily DM sending limit. Setting to 0 is an emergency stop - all DM sending pauses immediately. Requires confirm: true for destructive changes.',
|
|
321
|
-
inputSchema: {
|
|
322
|
-
type: 'object',
|
|
323
|
-
properties: {
|
|
324
|
-
limit: {
|
|
325
|
-
type: 'number',
|
|
326
|
-
description: 'New daily DM limit (0-250). Use 0 for emergency stop.',
|
|
327
|
-
minimum: 0,
|
|
328
|
-
maximum: 250,
|
|
329
|
-
},
|
|
330
|
-
confirm: {
|
|
331
|
-
type: 'boolean',
|
|
332
|
-
description: 'Required when setting limit to 0',
|
|
333
|
-
},
|
|
334
|
-
},
|
|
335
|
-
required: ['limit'],
|
|
336
|
-
},
|
|
337
|
-
},
|
|
338
|
-
];
|
|
339
33
|
/**
|
|
340
34
|
* Handle tool calls
|
|
341
35
|
*/
|
|
@@ -394,6 +88,12 @@ async function handleToolCall(name, args) {
|
|
|
394
88
|
confirm: args.confirm,
|
|
395
89
|
});
|
|
396
90
|
}
|
|
91
|
+
case 'suggest_automation_settings': {
|
|
92
|
+
return apiRequest('/api/mcp/automate/assist', 'POST', {
|
|
93
|
+
post_text: args.post_text,
|
|
94
|
+
post_url: args.post_url,
|
|
95
|
+
});
|
|
96
|
+
}
|
|
397
97
|
default:
|
|
398
98
|
throw new types_js_1.McpError(types_js_1.ErrorCode.MethodNotFound, `Unknown tool: ${name}`);
|
|
399
99
|
}
|
|
@@ -404,7 +104,7 @@ async function handleToolCall(name, args) {
|
|
|
404
104
|
async function main() {
|
|
405
105
|
const server = new index_js_1.Server({
|
|
406
106
|
name: 'leadshark',
|
|
407
|
-
version: '1.
|
|
107
|
+
version: '1.4.0',
|
|
408
108
|
}, {
|
|
409
109
|
capabilities: {
|
|
410
110
|
tools: {},
|
|
@@ -412,7 +112,7 @@ async function main() {
|
|
|
412
112
|
});
|
|
413
113
|
// List available tools
|
|
414
114
|
server.setRequestHandler(types_js_1.ListToolsRequestSchema, async () => ({
|
|
415
|
-
tools:
|
|
115
|
+
tools: definitions_1.tools,
|
|
416
116
|
}));
|
|
417
117
|
// Handle tool calls
|
|
418
118
|
server.setRequestHandler(types_js_1.CallToolRequestSchema, async (request) => {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAEA,wEAAmE;AACnE,wEAAiF;AACjF,iEAK4C;AAE5C,MAAM,YAAY,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,2BAA2B,CAAC;AAClF,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;AAE9C,IAAI,CAAC,OAAO,EAAE,CAAC;IACb,OAAO,CAAC,KAAK,CAAC,2DAA2D,CAAC,CAAC;IAC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K,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,eAAe,CAAC;YACzE,OAAO;gBACL,OAAO,EAAE;oBACP;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;qBAClD;iBACF;gBACD,OAAO,EAAE,IAAI;aACd,CAAC;QACJ,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,oCAAoC;IACpC,MAAM,SAAS,GAAG,IAAI,+BAAoB,EAAE,CAAC;IAC7C,MAAM,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAEhC,OAAO,CAAC,KAAK,CAAC,uCAAuC,CAAC,CAAC;AACzD,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACrB,OAAO,CAAC,KAAK,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;IACrC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single source of truth for every tool LeadShark exposes over MCP.
|
|
3
|
+
*
|
|
4
|
+
* Input schemas are JSON Schema literals, byte-identical to what the
|
|
5
|
+
* /api/mcp/* handlers accept. Annotations describe behavior (read-only,
|
|
6
|
+
* destructive, idempotent, open-world) so MCP clients can surface
|
|
7
|
+
* confirmation UI for write tools without inspecting the schema.
|
|
8
|
+
*
|
|
9
|
+
* All tools touch LinkedIn, an external system, so openWorldHint is
|
|
10
|
+
* true across the board.
|
|
11
|
+
*/
|
|
12
|
+
export type ToolAnnotations = {
|
|
13
|
+
title: string;
|
|
14
|
+
readOnlyHint: boolean;
|
|
15
|
+
destructiveHint: boolean;
|
|
16
|
+
idempotentHint: boolean;
|
|
17
|
+
openWorldHint: boolean;
|
|
18
|
+
};
|
|
19
|
+
export type LeadSharkTool = {
|
|
20
|
+
name: string;
|
|
21
|
+
title: string;
|
|
22
|
+
description: string;
|
|
23
|
+
inputSchema: {
|
|
24
|
+
type: 'object';
|
|
25
|
+
properties?: Record<string, unknown>;
|
|
26
|
+
required?: string[];
|
|
27
|
+
};
|
|
28
|
+
annotations: ToolAnnotations;
|
|
29
|
+
};
|
|
30
|
+
export declare const tools: LeadSharkTool[];
|
|
31
|
+
export declare const toolByName: Record<string, LeadSharkTool>;
|
|
32
|
+
//# sourceMappingURL=definitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../src/tools/definitions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,EAAE,OAAO,CAAC;IACzB,cAAc,EAAE,OAAO,CAAC;IACxB,aAAa,EAAE,OAAO,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ,CAAC;QACf,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QACrC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;KACrB,CAAC;IACF,WAAW,EAAE,eAAe,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,aAAa,EAqZhC,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAEpD,CAAC"}
|
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Single source of truth for every tool LeadShark exposes over MCP.
|
|
4
|
+
*
|
|
5
|
+
* Input schemas are JSON Schema literals, byte-identical to what the
|
|
6
|
+
* /api/mcp/* handlers accept. Annotations describe behavior (read-only,
|
|
7
|
+
* destructive, idempotent, open-world) so MCP clients can surface
|
|
8
|
+
* confirmation UI for write tools without inspecting the schema.
|
|
9
|
+
*
|
|
10
|
+
* All tools touch LinkedIn, an external system, so openWorldHint is
|
|
11
|
+
* true across the board.
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.toolByName = exports.tools = void 0;
|
|
15
|
+
exports.tools = [
|
|
16
|
+
{
|
|
17
|
+
name: 'list_recent_posts',
|
|
18
|
+
title: 'List Recent LinkedIn Posts',
|
|
19
|
+
description: 'Fetch your latest LinkedIn posts with engagement stats. Returns whether an automation already exists for each post.',
|
|
20
|
+
inputSchema: {
|
|
21
|
+
type: 'object',
|
|
22
|
+
properties: {
|
|
23
|
+
limit: {
|
|
24
|
+
type: 'number',
|
|
25
|
+
description: 'Number of posts to fetch (1-20, default: 5)',
|
|
26
|
+
minimum: 1,
|
|
27
|
+
maximum: 20,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
annotations: {
|
|
32
|
+
title: 'List Recent LinkedIn Posts',
|
|
33
|
+
readOnlyHint: true,
|
|
34
|
+
destructiveHint: false,
|
|
35
|
+
idempotentHint: true,
|
|
36
|
+
openWorldHint: true,
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: 'create_automation',
|
|
41
|
+
title: 'Create Automation',
|
|
42
|
+
description: 'Create a new automation for a LinkedIn post. Always created as Draft - you must activate it separately. Supports keywords, DM templates, comment replies, and settings like auto-connect and auto-like.',
|
|
43
|
+
inputSchema: {
|
|
44
|
+
type: 'object',
|
|
45
|
+
properties: {
|
|
46
|
+
post_url: {
|
|
47
|
+
type: 'string',
|
|
48
|
+
description: 'LinkedIn post URL to automate',
|
|
49
|
+
},
|
|
50
|
+
instruction: {
|
|
51
|
+
type: 'string',
|
|
52
|
+
description: 'Natural language instruction describing what the automation should do',
|
|
53
|
+
},
|
|
54
|
+
keywords: {
|
|
55
|
+
type: 'array',
|
|
56
|
+
items: { type: 'string' },
|
|
57
|
+
description: 'Trigger keywords (e.g., ["interested", "send", "want"])',
|
|
58
|
+
},
|
|
59
|
+
dm_templates: {
|
|
60
|
+
type: 'array',
|
|
61
|
+
items: { type: 'string' },
|
|
62
|
+
description: 'DM message templates. Use {{firstName}}, {{fullName}}, {{linkedinUsername}}',
|
|
63
|
+
},
|
|
64
|
+
comment_reply_templates: {
|
|
65
|
+
type: 'array',
|
|
66
|
+
items: { type: 'string' },
|
|
67
|
+
description: 'Comment reply templates. Use {{fullNameMention}} for @mentions',
|
|
68
|
+
},
|
|
69
|
+
offer_url: {
|
|
70
|
+
type: 'string',
|
|
71
|
+
description: 'URL to include in DM (e.g., lead magnet link)',
|
|
72
|
+
},
|
|
73
|
+
settings: {
|
|
74
|
+
type: 'object',
|
|
75
|
+
properties: {
|
|
76
|
+
auto_connect: { type: 'boolean', description: 'Send connection requests to commenters' },
|
|
77
|
+
auto_like: { type: 'boolean', description: 'Like all comments automatically' },
|
|
78
|
+
auto_enrich: { type: 'boolean', description: 'Automatically enrich lead profiles with full LinkedIn data after DM is sent (Apex only)' },
|
|
79
|
+
partially_engage: {
|
|
80
|
+
type: 'boolean',
|
|
81
|
+
description: 'WARNING: Only engage with comments the user has NOT manually replied to. CRITICAL: Enable this (true) if: (1) The post is older than 1 day, OR (2) The user has already manually responded to some comments. Default: false (engage with all comments). If post.posted_at is >24h ago, ASK USER before proceeding or default to true.'
|
|
82
|
+
},
|
|
83
|
+
follow_up_enabled: { type: 'boolean', description: 'Enable follow-up DMs' },
|
|
84
|
+
follow_up_delay_minutes: { type: 'number', description: 'Delay before follow-up (1-10080)' },
|
|
85
|
+
follow_up_template: { type: 'string', description: 'Follow-up message template' },
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
required: ['post_url'],
|
|
90
|
+
},
|
|
91
|
+
annotations: {
|
|
92
|
+
title: 'Create Automation',
|
|
93
|
+
readOnlyHint: false,
|
|
94
|
+
destructiveHint: true,
|
|
95
|
+
idempotentHint: false,
|
|
96
|
+
openWorldHint: true,
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: 'list_automations',
|
|
101
|
+
title: 'List Automations',
|
|
102
|
+
description: 'List all your automations with status, settings, and performance stats. Filter by status if needed.',
|
|
103
|
+
inputSchema: {
|
|
104
|
+
type: 'object',
|
|
105
|
+
properties: {
|
|
106
|
+
status: {
|
|
107
|
+
type: 'string',
|
|
108
|
+
enum: ['all', 'Running', 'Paused', 'Draft'],
|
|
109
|
+
description: 'Filter by status (default: all)',
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
annotations: {
|
|
114
|
+
title: 'List Automations',
|
|
115
|
+
readOnlyHint: true,
|
|
116
|
+
destructiveHint: false,
|
|
117
|
+
idempotentHint: true,
|
|
118
|
+
openWorldHint: true,
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: 'edit_automation',
|
|
123
|
+
title: 'Edit Automation',
|
|
124
|
+
description: 'Update an automation. Can change status (Running/Paused/Draft), keywords, DM templates, comment replies, and all settings. Only include fields you want to change.',
|
|
125
|
+
inputSchema: {
|
|
126
|
+
type: 'object',
|
|
127
|
+
properties: {
|
|
128
|
+
automation_id: {
|
|
129
|
+
type: 'string',
|
|
130
|
+
description: 'UUID of the automation to edit',
|
|
131
|
+
},
|
|
132
|
+
updates: {
|
|
133
|
+
type: 'object',
|
|
134
|
+
properties: {
|
|
135
|
+
status: {
|
|
136
|
+
type: 'string',
|
|
137
|
+
enum: ['Running', 'Paused', 'Draft'],
|
|
138
|
+
description: 'New status',
|
|
139
|
+
},
|
|
140
|
+
keywords: {
|
|
141
|
+
type: 'array',
|
|
142
|
+
items: { type: 'string' },
|
|
143
|
+
description: 'Updated keywords',
|
|
144
|
+
},
|
|
145
|
+
dm_templates: {
|
|
146
|
+
type: 'array',
|
|
147
|
+
items: { type: 'string' },
|
|
148
|
+
description: 'Updated DM templates',
|
|
149
|
+
},
|
|
150
|
+
comment_reply_templates: {
|
|
151
|
+
type: 'array',
|
|
152
|
+
items: { type: 'string' },
|
|
153
|
+
description: 'Updated comment reply templates',
|
|
154
|
+
},
|
|
155
|
+
settings: {
|
|
156
|
+
type: 'object',
|
|
157
|
+
properties: {
|
|
158
|
+
auto_connect: { type: 'boolean' },
|
|
159
|
+
auto_like: { type: 'boolean' },
|
|
160
|
+
auto_enrich: { type: 'boolean' },
|
|
161
|
+
partially_engage: {
|
|
162
|
+
type: 'boolean',
|
|
163
|
+
description: 'WARNING: Only engage with comments the user has NOT manually replied to. CRITICAL: Enable this (true) if the post is older than 1 day OR if the user has already manually responded to some comments. Check automation.post_url posted_at date before changing this.'
|
|
164
|
+
},
|
|
165
|
+
follow_up_enabled: { type: 'boolean' },
|
|
166
|
+
follow_up_delay_minutes: { type: 'number' },
|
|
167
|
+
follow_up_template: { type: 'string' },
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
required: ['automation_id', 'updates'],
|
|
174
|
+
},
|
|
175
|
+
annotations: {
|
|
176
|
+
title: 'Edit Automation',
|
|
177
|
+
readOnlyHint: false,
|
|
178
|
+
destructiveHint: true,
|
|
179
|
+
idempotentHint: true,
|
|
180
|
+
openWorldHint: true,
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
name: 'schedule_post_with_automation',
|
|
185
|
+
title: 'Schedule LinkedIn Post',
|
|
186
|
+
description: 'Schedule a LinkedIn post for future publishing with optional automation and image. The automation activates automatically when the post goes live. Supports attaching an image via URL.',
|
|
187
|
+
inputSchema: {
|
|
188
|
+
type: 'object',
|
|
189
|
+
properties: {
|
|
190
|
+
post_content: {
|
|
191
|
+
type: 'string',
|
|
192
|
+
description: 'The LinkedIn post content (max 3000 chars)',
|
|
193
|
+
},
|
|
194
|
+
scheduled_for: {
|
|
195
|
+
type: 'string',
|
|
196
|
+
description: 'ISO 8601 datetime for publishing (e.g., 2026-02-03T09:00:00Z)',
|
|
197
|
+
},
|
|
198
|
+
timezone: {
|
|
199
|
+
type: 'string',
|
|
200
|
+
description: 'Timezone (e.g., America/New_York). Defaults to UTC.',
|
|
201
|
+
},
|
|
202
|
+
image_url: {
|
|
203
|
+
type: 'string',
|
|
204
|
+
description: 'URL of an image to attach to the post. Supports JPEG, PNG, GIF, WebP (max 5MB). The image will be downloaded and attached to the scheduled post.',
|
|
205
|
+
},
|
|
206
|
+
automation: {
|
|
207
|
+
type: 'object',
|
|
208
|
+
description: 'Optional automation to attach',
|
|
209
|
+
properties: {
|
|
210
|
+
keywords: { type: 'array', items: { type: 'string' } },
|
|
211
|
+
offer_url: { type: 'string' },
|
|
212
|
+
dm_template: { type: 'string' },
|
|
213
|
+
comment_reply: { type: 'string' },
|
|
214
|
+
settings: {
|
|
215
|
+
type: 'object',
|
|
216
|
+
properties: {
|
|
217
|
+
auto_connect: { type: 'boolean' },
|
|
218
|
+
auto_like: { type: 'boolean' },
|
|
219
|
+
auto_enrich: { type: 'boolean' },
|
|
220
|
+
partially_engage: { type: 'boolean' },
|
|
221
|
+
follow_up_enabled: { type: 'boolean' },
|
|
222
|
+
follow_up_delay_minutes: { type: 'number' },
|
|
223
|
+
follow_up_template: { type: 'string' },
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
},
|
|
228
|
+
},
|
|
229
|
+
required: ['post_content', 'scheduled_for'],
|
|
230
|
+
},
|
|
231
|
+
annotations: {
|
|
232
|
+
title: 'Schedule LinkedIn Post',
|
|
233
|
+
readOnlyHint: false,
|
|
234
|
+
destructiveHint: true,
|
|
235
|
+
idempotentHint: false,
|
|
236
|
+
openWorldHint: true,
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
name: 'list_scheduled_posts',
|
|
241
|
+
title: 'List Scheduled Posts',
|
|
242
|
+
description: 'List all your scheduled posts with status, timing, and automation details. Filter by status (pending, published, failed, all).',
|
|
243
|
+
inputSchema: {
|
|
244
|
+
type: 'object',
|
|
245
|
+
properties: {
|
|
246
|
+
status: {
|
|
247
|
+
type: 'string',
|
|
248
|
+
enum: ['pending', 'published', 'failed', 'all'],
|
|
249
|
+
description: 'Filter by status (default: pending)',
|
|
250
|
+
},
|
|
251
|
+
},
|
|
252
|
+
},
|
|
253
|
+
annotations: {
|
|
254
|
+
title: 'List Scheduled Posts',
|
|
255
|
+
readOnlyHint: true,
|
|
256
|
+
destructiveHint: false,
|
|
257
|
+
idempotentHint: true,
|
|
258
|
+
openWorldHint: true,
|
|
259
|
+
},
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
name: 'edit_scheduled_post',
|
|
263
|
+
title: 'Edit Scheduled Post',
|
|
264
|
+
description: 'Update a scheduled post\'s content, scheduled time, or pre-automation settings. Can edit post copy, reschedule, or modify automation keywords, templates, and settings. Can only edit pending posts (not published/failed).',
|
|
265
|
+
inputSchema: {
|
|
266
|
+
type: 'object',
|
|
267
|
+
properties: {
|
|
268
|
+
post_id: {
|
|
269
|
+
type: 'string',
|
|
270
|
+
description: 'UUID of the scheduled post to edit',
|
|
271
|
+
},
|
|
272
|
+
updates: {
|
|
273
|
+
type: 'object',
|
|
274
|
+
properties: {
|
|
275
|
+
content: {
|
|
276
|
+
type: 'string',
|
|
277
|
+
description: 'New post content (max 3000 chars)',
|
|
278
|
+
},
|
|
279
|
+
scheduled_time: {
|
|
280
|
+
type: 'string',
|
|
281
|
+
description: 'New scheduled time (ISO 8601 format)',
|
|
282
|
+
},
|
|
283
|
+
automation: {
|
|
284
|
+
type: 'object',
|
|
285
|
+
description: 'Update pre-automation settings (keywords, templates, etc.)',
|
|
286
|
+
properties: {
|
|
287
|
+
keywords: {
|
|
288
|
+
type: 'array',
|
|
289
|
+
items: { type: 'string' },
|
|
290
|
+
description: 'Trigger keywords',
|
|
291
|
+
},
|
|
292
|
+
dm_templates: {
|
|
293
|
+
type: 'array',
|
|
294
|
+
items: { type: 'string' },
|
|
295
|
+
description: 'DM message templates',
|
|
296
|
+
},
|
|
297
|
+
comment_reply_templates: {
|
|
298
|
+
type: 'array',
|
|
299
|
+
items: { type: 'string' },
|
|
300
|
+
description: 'Comment reply templates',
|
|
301
|
+
},
|
|
302
|
+
non_first_degree_reply_templates: {
|
|
303
|
+
type: 'array',
|
|
304
|
+
items: { type: 'string' },
|
|
305
|
+
description: 'Reply templates for non-first-degree connections',
|
|
306
|
+
},
|
|
307
|
+
offer_url: {
|
|
308
|
+
type: 'string',
|
|
309
|
+
description: 'URL to include in DMs',
|
|
310
|
+
},
|
|
311
|
+
settings: {
|
|
312
|
+
type: 'object',
|
|
313
|
+
properties: {
|
|
314
|
+
auto_connect: { type: 'boolean' },
|
|
315
|
+
auto_like: { type: 'boolean' },
|
|
316
|
+
auto_enrich: { type: 'boolean' },
|
|
317
|
+
partially_engage: { type: 'boolean' },
|
|
318
|
+
link_tracking: { type: 'boolean' },
|
|
319
|
+
follow_up_enabled: { type: 'boolean' },
|
|
320
|
+
follow_up_delay_minutes: { type: 'number' },
|
|
321
|
+
follow_up_template: { type: 'string' },
|
|
322
|
+
follow_up_only_if_no_response: { type: 'boolean' },
|
|
323
|
+
},
|
|
324
|
+
},
|
|
325
|
+
},
|
|
326
|
+
},
|
|
327
|
+
},
|
|
328
|
+
},
|
|
329
|
+
},
|
|
330
|
+
required: ['post_id', 'updates'],
|
|
331
|
+
},
|
|
332
|
+
annotations: {
|
|
333
|
+
title: 'Edit Scheduled Post',
|
|
334
|
+
readOnlyHint: false,
|
|
335
|
+
destructiveHint: true,
|
|
336
|
+
idempotentHint: true,
|
|
337
|
+
openWorldHint: true,
|
|
338
|
+
},
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
name: 'cancel_scheduled_post',
|
|
342
|
+
title: 'Cancel Scheduled Post',
|
|
343
|
+
description: 'Cancel a scheduled post. DESTRUCTIVE: Requires confirm: true. Deletes post content and attachments permanently. Pre-automation templates are preserved and can be reused. Can only cancel pending posts.',
|
|
344
|
+
inputSchema: {
|
|
345
|
+
type: 'object',
|
|
346
|
+
properties: {
|
|
347
|
+
post_id: {
|
|
348
|
+
type: 'string',
|
|
349
|
+
description: 'UUID of the scheduled post to cancel',
|
|
350
|
+
},
|
|
351
|
+
confirm: {
|
|
352
|
+
type: 'boolean',
|
|
353
|
+
description: 'REQUIRED: Must be true to confirm cancellation. Post content and attachments will be deleted, but pre-automation templates are preserved.',
|
|
354
|
+
},
|
|
355
|
+
},
|
|
356
|
+
required: ['post_id', 'confirm'],
|
|
357
|
+
},
|
|
358
|
+
annotations: {
|
|
359
|
+
title: 'Cancel Scheduled Post',
|
|
360
|
+
readOnlyHint: false,
|
|
361
|
+
destructiveHint: true,
|
|
362
|
+
idempotentHint: true,
|
|
363
|
+
openWorldHint: true,
|
|
364
|
+
},
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
name: 'set_daily_dm_limit',
|
|
368
|
+
title: 'Set Daily DM Limit',
|
|
369
|
+
description: 'Set your daily DM sending limit. Setting to 0 is an emergency stop - all DM sending pauses immediately. Requires confirm: true for destructive changes.',
|
|
370
|
+
inputSchema: {
|
|
371
|
+
type: 'object',
|
|
372
|
+
properties: {
|
|
373
|
+
limit: {
|
|
374
|
+
type: 'number',
|
|
375
|
+
description: 'New daily DM limit (0-250). Use 0 for emergency stop.',
|
|
376
|
+
minimum: 0,
|
|
377
|
+
maximum: 250,
|
|
378
|
+
},
|
|
379
|
+
confirm: {
|
|
380
|
+
type: 'boolean',
|
|
381
|
+
description: 'Required when setting limit to 0',
|
|
382
|
+
},
|
|
383
|
+
},
|
|
384
|
+
required: ['limit'],
|
|
385
|
+
},
|
|
386
|
+
annotations: {
|
|
387
|
+
title: 'Set Daily DM Limit',
|
|
388
|
+
readOnlyHint: false,
|
|
389
|
+
destructiveHint: true,
|
|
390
|
+
idempotentHint: true,
|
|
391
|
+
openWorldHint: true,
|
|
392
|
+
},
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
name: 'suggest_automation_settings',
|
|
396
|
+
title: 'Suggest Automation Settings',
|
|
397
|
+
description: 'AI-powered tool that analyzes a LinkedIn post and generates suggested automation settings — name, trigger keyword, DM template, comment replies, and non-connected replies. Returns suggestions only; nothing is created. Use this before create_automation or schedule_post_with_automation to get AI-recommended settings based on the post content.',
|
|
398
|
+
inputSchema: {
|
|
399
|
+
type: 'object',
|
|
400
|
+
properties: {
|
|
401
|
+
post_text: {
|
|
402
|
+
type: 'string',
|
|
403
|
+
description: 'The LinkedIn post content to analyze. This is the primary input for AI analysis.',
|
|
404
|
+
},
|
|
405
|
+
post_url: {
|
|
406
|
+
type: 'string',
|
|
407
|
+
description: 'LinkedIn post URL (optional, provides additional context)',
|
|
408
|
+
},
|
|
409
|
+
},
|
|
410
|
+
required: ['post_text'],
|
|
411
|
+
},
|
|
412
|
+
annotations: {
|
|
413
|
+
title: 'Suggest Automation Settings',
|
|
414
|
+
readOnlyHint: true,
|
|
415
|
+
destructiveHint: false,
|
|
416
|
+
idempotentHint: true,
|
|
417
|
+
openWorldHint: true,
|
|
418
|
+
},
|
|
419
|
+
},
|
|
420
|
+
];
|
|
421
|
+
exports.toolByName = Object.fromEntries(exports.tools.map((t) => [t.name, t]));
|
|
422
|
+
//# sourceMappingURL=definitions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/tools/definitions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;AAsBU,QAAA,KAAK,GAAoB;IACpC;QACE,IAAI,EAAE,mBAAmB;QACzB,KAAK,EAAE,4BAA4B;QACnC,WAAW,EAAE,qHAAqH;QAClI,WAAW,EAAE;YACX,IAAI,EAAE,QAAiB;YACvB,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