@uniquedivine/mcp-slack 0.0.0-stage → 4.4.3
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 +21 -0
- package/README.md +146 -2
- package/docs/API.md +484 -0
- package/docs/DEPLOYMENT-MODES.md +56 -0
- package/docs/SETUP.md +211 -0
- package/docs/TROUBLESHOOTING.md +289 -0
- package/docs/assets/icon-512.png +0 -0
- package/docs/assets/icon.svg +27 -0
- package/lib/handlers.js +945 -0
- package/lib/jiyuuMcpInfo.ts +415 -0
- package/lib/lifeboat.js +171 -0
- package/lib/public-metadata.js +22 -0
- package/lib/public-pages.js +139 -0
- package/lib/rich-message-fields.js +38 -0
- package/lib/slack-client.js +376 -0
- package/lib/token-store.js +641 -0
- package/lib/tools.js +591 -0
- package/lib/workflow-store.js +203 -0
- package/package.json +138 -4
- package/public/index.html +509 -0
- package/public/share.html +130 -0
- package/scripts/apply-template.js +117 -0
- package/scripts/setup-wizard.js +564 -0
- package/scripts/token-cli.js +160 -0
- package/server.json +48 -0
- package/src/cli.js +64 -0
- package/src/server-http.js +220 -0
- package/src/server.js +366 -0
- package/src/web-server.js +471 -0
- package/templates/workflow-profiles/customer-feedback.json +10 -0
- package/templates/workflow-profiles/exec-monday.json +10 -0
- package/templates/workflow-profiles/incident-room.json +10 -0
- package/templates/workflow-profiles/oncall-handoff.json +10 -0
- package/templates/workflow-profiles/sprint-tracker.json +10 -0
- package/templates/workflow-profiles/support-triage.json +16 -0
package/lib/tools.js
ADDED
|
@@ -0,0 +1,591 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP Tool Definitions
|
|
3
|
+
*
|
|
4
|
+
* All Slack MCP tools in one place for easy maintenance.
|
|
5
|
+
* Includes MCP annotations for better tool discovery and safety hints.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export const TOOLS = [
|
|
9
|
+
{
|
|
10
|
+
name: "slack_token_status",
|
|
11
|
+
description: "Check token health, age, auto-refresh status, and cache stats",
|
|
12
|
+
inputSchema: {
|
|
13
|
+
type: "object",
|
|
14
|
+
properties: {}
|
|
15
|
+
},
|
|
16
|
+
annotations: {
|
|
17
|
+
title: "Token Status",
|
|
18
|
+
readOnlyHint: true,
|
|
19
|
+
idempotentHint: true,
|
|
20
|
+
openWorldHint: false
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: "slack_health_check",
|
|
25
|
+
description: "Check if Slack tokens are valid and show authentication status",
|
|
26
|
+
inputSchema: {
|
|
27
|
+
type: "object",
|
|
28
|
+
properties: {}
|
|
29
|
+
},
|
|
30
|
+
annotations: {
|
|
31
|
+
title: "Health Check",
|
|
32
|
+
readOnlyHint: true,
|
|
33
|
+
idempotentHint: true,
|
|
34
|
+
openWorldHint: true
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: "slack_refresh_tokens",
|
|
39
|
+
description: "Force refresh tokens by extracting from Chrome (requires Slack tab open in Chrome)",
|
|
40
|
+
inputSchema: {
|
|
41
|
+
type: "object",
|
|
42
|
+
properties: {}
|
|
43
|
+
},
|
|
44
|
+
annotations: {
|
|
45
|
+
title: "Refresh Tokens",
|
|
46
|
+
readOnlyHint: false,
|
|
47
|
+
destructiveHint: false,
|
|
48
|
+
idempotentHint: true,
|
|
49
|
+
openWorldHint: false
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: "slack_list_conversations",
|
|
54
|
+
description: "List all DMs and channels with user names resolved. Uses cached DMs by default for speed.",
|
|
55
|
+
inputSchema: {
|
|
56
|
+
type: "object",
|
|
57
|
+
properties: {
|
|
58
|
+
types: {
|
|
59
|
+
type: "string",
|
|
60
|
+
description: "Comma-separated types: im, mpim, public_channel, private_channel",
|
|
61
|
+
default: "im,mpim"
|
|
62
|
+
},
|
|
63
|
+
limit: {
|
|
64
|
+
type: "number",
|
|
65
|
+
description: "Maximum results (default 100)"
|
|
66
|
+
},
|
|
67
|
+
discover_dms: {
|
|
68
|
+
type: "boolean",
|
|
69
|
+
description: "If true, actively discover all DMs (slower, may hit rate limits on large workspaces). Default false uses cached DMs."
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
annotations: {
|
|
74
|
+
title: "List Conversations",
|
|
75
|
+
readOnlyHint: true,
|
|
76
|
+
idempotentHint: true,
|
|
77
|
+
openWorldHint: true
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
name: "slack_conversations_history",
|
|
82
|
+
description: "Get messages from a channel or DM with user names resolved",
|
|
83
|
+
inputSchema: {
|
|
84
|
+
type: "object",
|
|
85
|
+
properties: {
|
|
86
|
+
channel_id: {
|
|
87
|
+
type: "string",
|
|
88
|
+
description: "Channel or DM ID (e.g., D063M4403MW)"
|
|
89
|
+
},
|
|
90
|
+
limit: {
|
|
91
|
+
type: "number",
|
|
92
|
+
description: "Messages to fetch (max 100, default 50)"
|
|
93
|
+
},
|
|
94
|
+
oldest: {
|
|
95
|
+
type: "string",
|
|
96
|
+
description: "Unix timestamp - get messages after this time (boundary timestamp included)"
|
|
97
|
+
},
|
|
98
|
+
latest: {
|
|
99
|
+
type: "string",
|
|
100
|
+
description: "Unix timestamp - get messages before this time (boundary timestamp included)"
|
|
101
|
+
},
|
|
102
|
+
resolve_users: {
|
|
103
|
+
type: "boolean",
|
|
104
|
+
description: "Convert user IDs to names (default true)"
|
|
105
|
+
},
|
|
106
|
+
include_rich_message_fields: {
|
|
107
|
+
type: "boolean",
|
|
108
|
+
description: "Include Slack message attachments, blocks, metadata, files, and reactions when present"
|
|
109
|
+
},
|
|
110
|
+
include_all_metadata: {
|
|
111
|
+
type: "boolean",
|
|
112
|
+
description: "Pass Slack's include_all_metadata option to conversations.history"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
required: ["channel_id"]
|
|
116
|
+
},
|
|
117
|
+
annotations: {
|
|
118
|
+
title: "Conversation History",
|
|
119
|
+
readOnlyHint: true,
|
|
120
|
+
idempotentHint: true,
|
|
121
|
+
openWorldHint: true
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
name: "slack_get_full_conversation",
|
|
126
|
+
description: "Export FULL conversation history with all messages, threads, and user names. Can save to file.",
|
|
127
|
+
inputSchema: {
|
|
128
|
+
type: "object",
|
|
129
|
+
properties: {
|
|
130
|
+
channel_id: {
|
|
131
|
+
type: "string",
|
|
132
|
+
description: "Channel or DM ID"
|
|
133
|
+
},
|
|
134
|
+
oldest: {
|
|
135
|
+
type: "string",
|
|
136
|
+
description: "Unix timestamp start (e.g., 1733011200 = Dec 1, 2025; boundary timestamp included)"
|
|
137
|
+
},
|
|
138
|
+
latest: {
|
|
139
|
+
type: "string",
|
|
140
|
+
description: "Unix timestamp end (boundary timestamp included)"
|
|
141
|
+
},
|
|
142
|
+
max_messages: {
|
|
143
|
+
type: "number",
|
|
144
|
+
description: "Maximum messages to retrieve (default 2000, max 10000)"
|
|
145
|
+
},
|
|
146
|
+
include_threads: {
|
|
147
|
+
type: "boolean",
|
|
148
|
+
description: "Fetch thread replies (default true)"
|
|
149
|
+
},
|
|
150
|
+
include_rich_message_fields: {
|
|
151
|
+
type: "boolean",
|
|
152
|
+
description: "Include Slack message attachments, blocks, metadata, files, and reactions when present"
|
|
153
|
+
},
|
|
154
|
+
include_all_metadata: {
|
|
155
|
+
type: "boolean",
|
|
156
|
+
description: "Pass Slack's include_all_metadata option to conversations.history and conversations.replies"
|
|
157
|
+
},
|
|
158
|
+
output_file: {
|
|
159
|
+
type: "string",
|
|
160
|
+
description: "Filename to save export (saved to ~/.slack-mcp-exports/)"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
required: ["channel_id"]
|
|
164
|
+
},
|
|
165
|
+
annotations: {
|
|
166
|
+
title: "Full Conversation Export",
|
|
167
|
+
readOnlyHint: true,
|
|
168
|
+
idempotentHint: true,
|
|
169
|
+
openWorldHint: true
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
name: "slack_search_messages",
|
|
174
|
+
description: "Search messages across the Slack workspace",
|
|
175
|
+
inputSchema: {
|
|
176
|
+
type: "object",
|
|
177
|
+
properties: {
|
|
178
|
+
query: {
|
|
179
|
+
type: "string",
|
|
180
|
+
description: "Search query (supports Slack syntax like from:@user, in:#channel)"
|
|
181
|
+
},
|
|
182
|
+
count: {
|
|
183
|
+
type: "number",
|
|
184
|
+
description: "Number of results (max 100, default 20)"
|
|
185
|
+
},
|
|
186
|
+
include_rich_message_fields: {
|
|
187
|
+
type: "boolean",
|
|
188
|
+
description: "Include Slack message attachments, blocks, metadata, files, and reactions when present"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
required: ["query"]
|
|
192
|
+
},
|
|
193
|
+
annotations: {
|
|
194
|
+
title: "Search Messages",
|
|
195
|
+
readOnlyHint: true,
|
|
196
|
+
idempotentHint: true,
|
|
197
|
+
openWorldHint: true
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
name: "slack_users_info",
|
|
202
|
+
description: "Get detailed information about a Slack user",
|
|
203
|
+
inputSchema: {
|
|
204
|
+
type: "object",
|
|
205
|
+
properties: {
|
|
206
|
+
user_id: {
|
|
207
|
+
type: "string",
|
|
208
|
+
description: "Slack user ID"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
required: ["user_id"]
|
|
212
|
+
},
|
|
213
|
+
annotations: {
|
|
214
|
+
title: "User Info",
|
|
215
|
+
readOnlyHint: true,
|
|
216
|
+
idempotentHint: true,
|
|
217
|
+
openWorldHint: true
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
name: "slack_send_message",
|
|
222
|
+
description: "Send a message to a channel or DM",
|
|
223
|
+
inputSchema: {
|
|
224
|
+
type: "object",
|
|
225
|
+
properties: {
|
|
226
|
+
channel_id: {
|
|
227
|
+
type: "string",
|
|
228
|
+
description: "Channel or DM ID to send to"
|
|
229
|
+
},
|
|
230
|
+
text: {
|
|
231
|
+
type: "string",
|
|
232
|
+
description: "Message text (supports Slack markdown)"
|
|
233
|
+
},
|
|
234
|
+
thread_ts: {
|
|
235
|
+
type: "string",
|
|
236
|
+
description: "Thread timestamp to reply to (optional)"
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
required: ["channel_id", "text"]
|
|
240
|
+
},
|
|
241
|
+
annotations: {
|
|
242
|
+
title: "Send Message",
|
|
243
|
+
readOnlyHint: false,
|
|
244
|
+
destructiveHint: true,
|
|
245
|
+
idempotentHint: false,
|
|
246
|
+
openWorldHint: true
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
name: "slack_get_thread",
|
|
251
|
+
description: "Get all replies in a message thread",
|
|
252
|
+
inputSchema: {
|
|
253
|
+
type: "object",
|
|
254
|
+
properties: {
|
|
255
|
+
channel_id: {
|
|
256
|
+
type: "string",
|
|
257
|
+
description: "Channel or DM ID"
|
|
258
|
+
},
|
|
259
|
+
thread_ts: {
|
|
260
|
+
type: "string",
|
|
261
|
+
description: "Thread parent message timestamp"
|
|
262
|
+
},
|
|
263
|
+
include_rich_message_fields: {
|
|
264
|
+
type: "boolean",
|
|
265
|
+
description: "Include Slack message attachments, blocks, metadata, files, and reactions when present"
|
|
266
|
+
},
|
|
267
|
+
include_all_metadata: {
|
|
268
|
+
type: "boolean",
|
|
269
|
+
description: "Pass Slack's include_all_metadata option to conversations.replies"
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
required: ["channel_id", "thread_ts"]
|
|
273
|
+
},
|
|
274
|
+
annotations: {
|
|
275
|
+
title: "Get Thread",
|
|
276
|
+
readOnlyHint: true,
|
|
277
|
+
idempotentHint: true,
|
|
278
|
+
openWorldHint: true
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
name: "slack_list_users",
|
|
283
|
+
description: "List all users in the workspace",
|
|
284
|
+
inputSchema: {
|
|
285
|
+
type: "object",
|
|
286
|
+
properties: {
|
|
287
|
+
limit: {
|
|
288
|
+
type: "number",
|
|
289
|
+
description: "Maximum users to return (default 500, supports pagination)"
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
annotations: {
|
|
294
|
+
title: "List Users",
|
|
295
|
+
readOnlyHint: true,
|
|
296
|
+
idempotentHint: true,
|
|
297
|
+
openWorldHint: true
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
name: "slack_add_reaction",
|
|
302
|
+
description: "Add an emoji reaction to a message",
|
|
303
|
+
inputSchema: {
|
|
304
|
+
type: "object",
|
|
305
|
+
properties: {
|
|
306
|
+
channel_id: {
|
|
307
|
+
type: "string",
|
|
308
|
+
description: "Channel or DM ID containing the message"
|
|
309
|
+
},
|
|
310
|
+
timestamp: {
|
|
311
|
+
type: "string",
|
|
312
|
+
description: "Message timestamp to react to"
|
|
313
|
+
},
|
|
314
|
+
reaction: {
|
|
315
|
+
type: "string",
|
|
316
|
+
description: "Emoji name without colons (e.g., 'thumbsup', 'eyes', 'white_check_mark')"
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
required: ["channel_id", "timestamp", "reaction"]
|
|
320
|
+
},
|
|
321
|
+
annotations: {
|
|
322
|
+
title: "Add Reaction",
|
|
323
|
+
readOnlyHint: false,
|
|
324
|
+
destructiveHint: true,
|
|
325
|
+
idempotentHint: true,
|
|
326
|
+
openWorldHint: true
|
|
327
|
+
}
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
name: "slack_remove_reaction",
|
|
331
|
+
description: "Remove an emoji reaction from a message",
|
|
332
|
+
inputSchema: {
|
|
333
|
+
type: "object",
|
|
334
|
+
properties: {
|
|
335
|
+
channel_id: {
|
|
336
|
+
type: "string",
|
|
337
|
+
description: "Channel or DM ID containing the message"
|
|
338
|
+
},
|
|
339
|
+
timestamp: {
|
|
340
|
+
type: "string",
|
|
341
|
+
description: "Message timestamp to remove reaction from"
|
|
342
|
+
},
|
|
343
|
+
reaction: {
|
|
344
|
+
type: "string",
|
|
345
|
+
description: "Emoji name without colons (e.g., 'thumbsup', 'eyes')"
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
required: ["channel_id", "timestamp", "reaction"]
|
|
349
|
+
},
|
|
350
|
+
annotations: {
|
|
351
|
+
title: "Remove Reaction",
|
|
352
|
+
readOnlyHint: false,
|
|
353
|
+
destructiveHint: true,
|
|
354
|
+
idempotentHint: true,
|
|
355
|
+
openWorldHint: true
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
name: "slack_conversations_mark",
|
|
360
|
+
description: "Mark a conversation as read up to a specific message timestamp",
|
|
361
|
+
inputSchema: {
|
|
362
|
+
type: "object",
|
|
363
|
+
properties: {
|
|
364
|
+
channel_id: {
|
|
365
|
+
type: "string",
|
|
366
|
+
description: "Channel or DM ID to mark as read"
|
|
367
|
+
},
|
|
368
|
+
timestamp: {
|
|
369
|
+
type: "string",
|
|
370
|
+
description: "Message timestamp to mark as read up to (all messages at or before this are marked read)"
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
required: ["channel_id", "timestamp"]
|
|
374
|
+
},
|
|
375
|
+
annotations: {
|
|
376
|
+
title: "Mark as Read",
|
|
377
|
+
readOnlyHint: false,
|
|
378
|
+
destructiveHint: true,
|
|
379
|
+
idempotentHint: true,
|
|
380
|
+
openWorldHint: true
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
name: "slack_conversations_unreads",
|
|
385
|
+
description: "Get channels and DMs with unread messages, sorted by unread count (highest first)",
|
|
386
|
+
inputSchema: {
|
|
387
|
+
type: "object",
|
|
388
|
+
properties: {
|
|
389
|
+
types: {
|
|
390
|
+
type: "string",
|
|
391
|
+
description: "Comma-separated types: im, mpim, public_channel, private_channel (default all)",
|
|
392
|
+
default: "im,mpim,public_channel,private_channel"
|
|
393
|
+
},
|
|
394
|
+
limit: {
|
|
395
|
+
type: "number",
|
|
396
|
+
description: "Maximum conversations to return (default 50)"
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
annotations: {
|
|
401
|
+
title: "Unread Conversations",
|
|
402
|
+
readOnlyHint: true,
|
|
403
|
+
idempotentHint: true,
|
|
404
|
+
openWorldHint: true
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
name: "slack_users_search",
|
|
409
|
+
description: "Search workspace users by name, display name, or email. Case-insensitive partial match.",
|
|
410
|
+
inputSchema: {
|
|
411
|
+
type: "object",
|
|
412
|
+
properties: {
|
|
413
|
+
query: {
|
|
414
|
+
type: "string",
|
|
415
|
+
description: "Search term to match against name, display name, real name, or email"
|
|
416
|
+
},
|
|
417
|
+
limit: {
|
|
418
|
+
type: "number",
|
|
419
|
+
description: "Maximum results to return (default 20)"
|
|
420
|
+
}
|
|
421
|
+
},
|
|
422
|
+
required: ["query"]
|
|
423
|
+
},
|
|
424
|
+
annotations: {
|
|
425
|
+
title: "Search Users",
|
|
426
|
+
readOnlyHint: true,
|
|
427
|
+
idempotentHint: true,
|
|
428
|
+
openWorldHint: true
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
// ============ Workflow Profile Primitives (OSS) ============
|
|
432
|
+
// Local JSON storage at ~/.slack-mcp-workflows.json. Defines the
|
|
433
|
+
// structural primitive that the hosted AI brain (smart_search,
|
|
434
|
+
// catch_me_up, triage) consumes to return structured JSON.
|
|
435
|
+
{
|
|
436
|
+
name: "slack_workflow_save",
|
|
437
|
+
description: "Save or update a workflow profile that binds a workflow_kind (support_inbox | incident_room | exec_brief | product_launch_watch | custom) to channels, priority people, retention mode, and summary cadence. Stored locally at ~/.slack-mcp-workflows.json. Hosted brain reads these to return structured JSON per the workflow_kind.",
|
|
438
|
+
inputSchema: {
|
|
439
|
+
type: "object",
|
|
440
|
+
properties: {
|
|
441
|
+
profile_name: {
|
|
442
|
+
type: "string",
|
|
443
|
+
description: "Unique name for this workflow profile (e.g. 'morning-exec-brief', 'on-call-rotation')"
|
|
444
|
+
},
|
|
445
|
+
workflow_kind: {
|
|
446
|
+
type: "string",
|
|
447
|
+
enum: ["support_inbox", "incident_room", "exec_brief", "product_launch_watch", "custom"],
|
|
448
|
+
description: "Workflow kind. Determines structured JSON output shape from the hosted AI brain."
|
|
449
|
+
},
|
|
450
|
+
channels: {
|
|
451
|
+
type: "array",
|
|
452
|
+
items: { type: "string" },
|
|
453
|
+
description: "Slack channel IDs to read (e.g. ['C012345', 'C067890'])"
|
|
454
|
+
},
|
|
455
|
+
priority_people: {
|
|
456
|
+
type: "array",
|
|
457
|
+
items: { type: "string" },
|
|
458
|
+
description: "Slack user IDs whose messages get extra weight in summaries"
|
|
459
|
+
},
|
|
460
|
+
retention_mode: {
|
|
461
|
+
type: "string",
|
|
462
|
+
enum: ["ephemeral", "persistent"],
|
|
463
|
+
description: "Token retention mode for hosted execution. Default ephemeral."
|
|
464
|
+
},
|
|
465
|
+
summary_cadence: {
|
|
466
|
+
type: "string",
|
|
467
|
+
enum: ["on_demand", "daily_8am", "weekly_monday"],
|
|
468
|
+
description: "When the hosted brain auto-runs slack_catch_me_up against this profile. on_demand only on hosted free; daily_8am and weekly_monday require Pro or Team."
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
required: ["profile_name", "workflow_kind"]
|
|
472
|
+
},
|
|
473
|
+
annotations: {
|
|
474
|
+
title: "Save Workflow Profile",
|
|
475
|
+
readOnlyHint: false,
|
|
476
|
+
destructiveHint: false,
|
|
477
|
+
idempotentHint: true,
|
|
478
|
+
openWorldHint: false
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
name: "slack_workflows",
|
|
483
|
+
description: "List all saved workflow profiles from ~/.slack-mcp-workflows.json. Optionally filter by workflow_kind. Returns profile_name, channels, priority_people, retention_mode, summary_cadence, structured_keys, created_at, updated_at.",
|
|
484
|
+
inputSchema: {
|
|
485
|
+
type: "object",
|
|
486
|
+
properties: {
|
|
487
|
+
workflow_kind: {
|
|
488
|
+
type: "string",
|
|
489
|
+
enum: ["support_inbox", "incident_room", "exec_brief", "product_launch_watch", "custom"],
|
|
490
|
+
description: "Optional filter — return only profiles of this workflow_kind"
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
annotations: {
|
|
495
|
+
title: "List Workflow Profiles",
|
|
496
|
+
readOnlyHint: true,
|
|
497
|
+
idempotentHint: true,
|
|
498
|
+
openWorldHint: false
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
// ============ Hosted-Only AI Tools (OSS = upgrade stubs) ============
|
|
502
|
+
// These tool definitions appear in every MCP client's tool list so users
|
|
503
|
+
// discover them. The OSS handlers return a structured upgrade message
|
|
504
|
+
// pointing at mcp.revasserlabs.com — the hosted worker actually runs them.
|
|
505
|
+
{
|
|
506
|
+
name: "slack_smart_search",
|
|
507
|
+
description: "Semantic + lexical hybrid search across your indexed Slack history. Returns ranked results with relevance scores, channel context, thread context, and matched terms. Hosted-only (requires Vectorize + Workers AI). Free tier ships 25 AI tool calls/month (shared across the hosted AI tools); upgrade to Pro $19/mo for unlimited at mcp.revasserlabs.com/pricing.",
|
|
508
|
+
inputSchema: {
|
|
509
|
+
type: "object",
|
|
510
|
+
properties: {
|
|
511
|
+
query: {
|
|
512
|
+
type: "string",
|
|
513
|
+
description: "Natural language or keyword query (semantic + lexical hybrid)"
|
|
514
|
+
},
|
|
515
|
+
channel_ids: {
|
|
516
|
+
type: "array",
|
|
517
|
+
items: { type: "string" },
|
|
518
|
+
description: "Optional — restrict search to these channel IDs"
|
|
519
|
+
},
|
|
520
|
+
days_back: {
|
|
521
|
+
type: "number",
|
|
522
|
+
description: "Optional — restrict search to the last N days (max 90 on Pro+, 7 on Free)"
|
|
523
|
+
},
|
|
524
|
+
limit: {
|
|
525
|
+
type: "number",
|
|
526
|
+
description: "Maximum results to return (default 10, max 50)"
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
required: ["query"]
|
|
530
|
+
},
|
|
531
|
+
annotations: {
|
|
532
|
+
title: "Smart Search (hosted)",
|
|
533
|
+
readOnlyHint: true,
|
|
534
|
+
idempotentHint: true,
|
|
535
|
+
openWorldHint: true
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
name: "slack_catch_me_up",
|
|
540
|
+
description: "Run a structured catch-up against a saved workflow profile. Returns structured JSON per the profile's workflow_kind: support_inbox returns {open_threads, ack_lag, owner_gaps, escalations, next_actions}; incident_room returns {incident_summary, timeline, open_risks, owner_gaps, next_actions}; exec_brief returns {summary, decisions, risks, asks, action_items}; product_launch_watch returns {launch_signals, feedback_themes, blockers, metrics, next_actions}; custom returns {summary, highlights, open_questions, next_actions}. Hosted-only. Free tier ships 25 AI tool calls/month (shared across the hosted AI tools); Pro $19/mo unlocks unlimited.",
|
|
541
|
+
inputSchema: {
|
|
542
|
+
type: "object",
|
|
543
|
+
properties: {
|
|
544
|
+
profile_name: {
|
|
545
|
+
type: "string",
|
|
546
|
+
description: "Name of a workflow profile saved via slack_workflow_save (or use --apply-template at install time to seed one)"
|
|
547
|
+
},
|
|
548
|
+
since: {
|
|
549
|
+
type: "string",
|
|
550
|
+
description: "Optional ISO8601 timestamp — only consider Slack messages newer than this. Default: 24 hours ago for daily-cadence profiles, 7 days for weekly."
|
|
551
|
+
}
|
|
552
|
+
},
|
|
553
|
+
required: ["profile_name"]
|
|
554
|
+
},
|
|
555
|
+
annotations: {
|
|
556
|
+
title: "Catch Me Up (hosted)",
|
|
557
|
+
readOnlyHint: true,
|
|
558
|
+
idempotentHint: false,
|
|
559
|
+
openWorldHint: true
|
|
560
|
+
}
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
name: "slack_triage",
|
|
564
|
+
description: "Classify and route Slack threads against a workflow profile. Returns triage decisions per thread: priority (low|medium|high|urgent), suggested owner, escalation flag, time-sensitivity, and a routing recommendation. Hosted-only. Free tier ships 25 AI tool calls/month (shared across the hosted AI tools); Pro $19/mo unlocks unlimited.",
|
|
565
|
+
inputSchema: {
|
|
566
|
+
type: "object",
|
|
567
|
+
properties: {
|
|
568
|
+
profile_name: {
|
|
569
|
+
type: "string",
|
|
570
|
+
description: "Name of a workflow profile saved via slack_workflow_save"
|
|
571
|
+
},
|
|
572
|
+
channel_ids: {
|
|
573
|
+
type: "array",
|
|
574
|
+
items: { type: "string" },
|
|
575
|
+
description: "Optional — restrict triage to these channels (defaults to profile's channels)"
|
|
576
|
+
},
|
|
577
|
+
thread_ts: {
|
|
578
|
+
type: "string",
|
|
579
|
+
description: "Optional — triage a specific thread instead of the full inbox"
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
required: ["profile_name"]
|
|
583
|
+
},
|
|
584
|
+
annotations: {
|
|
585
|
+
title: "Triage (hosted)",
|
|
586
|
+
readOnlyHint: true,
|
|
587
|
+
idempotentHint: false,
|
|
588
|
+
openWorldHint: true
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
];
|