@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 ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 jtalk22
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 CHANGED
@@ -1,3 +1,147 @@
1
- # Temporary Holding Version
1
+ # Slack MCP
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Read Slack channels, threads and search results, and perform explicitly
4
+ authorized writes through your user session. This server is maintained as
5
+ part of Jiyuu. It preserves the imported stdio, HTTP and web entrypoints.
6
+
7
+ ## Install
8
+
9
+ Requirements: [Bun](https://bun.sh) 1.4.3 or newer and a Slack account signed
10
+ in through a browser. Store credentials once, then run the published package
11
+ with an exact version pin:
12
+
13
+ ```sh
14
+ bunx @uniquedivine/mcp-slack@4.4.3 --setup
15
+ bunx @uniquedivine/mcp-slack@4.4.3
16
+ ```
17
+
18
+ Flag `--setup` writes file `~/.slack-mcp-tokens.json`. To pass environment
19
+ variables `SLACK_TOKEN` and `SLACK_COOKIE` instead, see
20
+ [Authenticate](#authenticate). CI in
21
+ [Unique-Divine/jiyuu](https://github.com/Unique-Divine/jiyuu) builds and
22
+ publishes `@uniquedivine/mcp-slack` to npm from this directory when its version
23
+ changes on `main`. The version pin selects the exact reviewed release that runs.
24
+
25
+ ### Claude Code
26
+
27
+ ```sh
28
+ claude mcp add slack -- bunx @uniquedivine/mcp-slack@4.4.3
29
+ ```
30
+
31
+ ### Codex
32
+
33
+ Add this entry to file `~/.codex/config.toml`:
34
+
35
+ ```toml
36
+ [mcp_servers.slack]
37
+ command = "bunx"
38
+ args = ["@uniquedivine/mcp-slack@4.4.3"]
39
+ ```
40
+
41
+ ### Cursor
42
+
43
+ Add this entry to file `~/.cursor/mcp.json`, or to file `.cursor/mcp.json` in
44
+ a project:
45
+
46
+ ```json
47
+ {
48
+ "mcpServers": {
49
+ "slack": {
50
+ "command": "bunx",
51
+ "args": ["@uniquedivine/mcp-slack@4.4.3"]
52
+ }
53
+ }
54
+ }
55
+ ```
56
+
57
+ ### Update
58
+
59
+ 1. Find the newest version with command
60
+ `npm view @uniquedivine/mcp-slack version`.
61
+ 2. Change the `@4.4.3` pin in the client configuration to that version.
62
+ 3. Restart the MCP server in the client, or restart the client. In Claude
63
+ Code, run `/mcp` and reconnect the server. Command `bunx` downloads the new
64
+ version on the next launch.
65
+
66
+ The token store and workflow files live in your home directory, so an update
67
+ needs no new credentials.
68
+
69
+ ## Install From Source
70
+
71
+ Requirements: Git and Bun 1.4.3 or newer. Linked executables, package scripts,
72
+ tests and CI use Bun directly; no Node installation or `node` shim is needed.
73
+
74
+ ```sh
75
+ git clone https://github.com/Unique-Divine/jiyuu.git
76
+ cd jiyuu
77
+ just --justfile mcp/slack/justfile install
78
+ ```
79
+
80
+ Without Just, run `bun install --frozen-lockfile` inside `mcp/slack`.
81
+ To make the existing command names available, run `just link` in that directory.
82
+ This uses `bun link` and points them at this source checkout. The executable
83
+ shebangs launch Bun directly.
84
+
85
+ ## Authenticate
86
+
87
+ Use the setup helper, which stores credentials outside the source tree:
88
+
89
+ ```sh
90
+ cd mcp/slack
91
+ bun src/cli.js --setup
92
+ ```
93
+
94
+ The server accepts `SLACK_TOKEN` and `SLACK_COOKIE`, or uses the existing
95
+ `~/.slack-mcp-tokens.json` store. Existing local token, workflow and cache
96
+ locations are retained. No new credentials are needed for a checkout move.
97
+ Do not commit tokens, cookies, browser profiles or local exports.
98
+
99
+ ## Configure an MCP Client From Source
100
+
101
+ After `just link`, the existing configuration remains valid:
102
+
103
+ ```json
104
+ {
105
+ "mcpServers": {
106
+ "slack": { "command": "slack-mcp" }
107
+ }
108
+ }
109
+ ```
110
+
111
+ For a direct source launch, use `bun` with the absolute path to `src/cli.js`.
112
+ Restart the MCP connection after relinking or changing code. Verify the
113
+ connected Slack identity before performing writes.
114
+
115
+ ## Develop
116
+
117
+ ```sh
118
+ just install
119
+ just test
120
+ just check
121
+ just run
122
+ ```
123
+
124
+ Run these commands from `mcp/slack`. The native `bun:test` suite uses `expect`
125
+ matchers and covers tool/handler parity, rich
126
+ message fields and authentication-error handling without sending Slack messages.
127
+ `check` builds the entrypoints to an ignored cache to catch import and syntax
128
+ errors. TypeScript conversion and native `bun check` coverage are follow-ups.
129
+
130
+ The inherited Dockerfile still describes the upstream Node image and is not
131
+ the supported Jiyuu installation. Its conversion is tracked separately.
132
+
133
+ HTTP and web modes remain available through `bun src/cli.js http` and
134
+ `bun src/cli.js web`. The inherited hosted-service, pricing and marketing code
135
+ has not been removed in this compatibility import. Keeping it is not a
136
+ recommendation to deploy or purchase the original hosted service.
137
+
138
+ Report issues in [Unique-Divine/jiyuu](https://github.com/Unique-Divine/jiyuu/issues)
139
+ with `mcp/slack` in the title. The version continues from the imported
140
+ `@jtalk22/slack-mcp` 4.4.3. Package metadata `jiyuu.upstream` in file
141
+ `package.json` records that baseline.
142
+
143
+ ## Origin and License
144
+
145
+ Imported from `Unique-Divine/slack-mcp-server`, originally forked from
146
+ `jtalk22/slack-mcp-server`. [IMPORT.json](IMPORT.json) pins the source commit.
147
+ The original [MIT license and copyright notice](LICENSE) are retained.
package/docs/API.md ADDED
@@ -0,0 +1,484 @@
1
+ # API Reference
2
+
3
+ ## Tools
4
+
5
+ ### slack_health_check
6
+
7
+ Check if Slack tokens are valid.
8
+
9
+ **Parameters:** None
10
+
11
+ **Returns:**
12
+ ```json
13
+ {
14
+ "status": "ok",
15
+ "code": "ok",
16
+ "message": "Slack auth valid",
17
+ "user": "james",
18
+ "team": "Rêvasser",
19
+ "token_source": "environment",
20
+ "token_updated": "2026-01-03T00:00:00Z"
21
+ }
22
+ ```
23
+
24
+ ---
25
+
26
+ ### slack_token_status
27
+
28
+ Get detailed token health, age, and cache statistics.
29
+
30
+ **Parameters:** None
31
+
32
+ **Returns:**
33
+ ```json
34
+ {
35
+ "status": "healthy",
36
+ "code": "ok",
37
+ "message": "Token is healthy",
38
+ "next_action": null,
39
+ "token": {
40
+ "status": "healthy",
41
+ "age_hours": 2.5,
42
+ "source": "file",
43
+ "updated_at": "2026-01-08T12:00:00Z"
44
+ },
45
+ "auto_refresh": {
46
+ "enabled": true,
47
+ "interval": "4 hours",
48
+ "requires": "Slack tab open in Chrome"
49
+ },
50
+ "cache": {
51
+ "users": { "size": 25, "maxSize": 500, "ttlMs": 3600000 },
52
+ "dms": { "count": 10, "age_hours": 1.2 }
53
+ }
54
+ }
55
+ ```
56
+
57
+ ---
58
+
59
+ ### slack_refresh_tokens
60
+
61
+ Force refresh tokens from Chrome.
62
+
63
+ **Prerequisites:** Chrome must be running with a Slack tab open (app.slack.com).
64
+
65
+ **Parameters:** None
66
+
67
+ **Returns:**
68
+ ```json
69
+ {
70
+ "status": "ok",
71
+ "code": "refreshed",
72
+ "message": "Tokens refreshed from Chrome.",
73
+ "user": "james",
74
+ "team": "Rêvasser"
75
+ }
76
+ ```
77
+
78
+ ---
79
+
80
+ ### slack_list_conversations
81
+
82
+ List all DMs and channels.
83
+
84
+ **Parameters:**
85
+ | Name | Type | Default | Description |
86
+ |------|------|---------|-------------|
87
+ | types | string | "im,mpim" | Conversation types to include |
88
+ | limit | number | 100 | Maximum results |
89
+
90
+ **Types:**
91
+ - `im` - Direct messages
92
+ - `mpim` - Group DMs
93
+ - `public_channel` - Public channels
94
+ - `private_channel` - Private channels
95
+
96
+ **Returns:**
97
+ ```json
98
+ {
99
+ "count": 5,
100
+ "conversations": [
101
+ {
102
+ "id": "D063M4403MW",
103
+ "name": "Gwen Santos",
104
+ "type": "dm",
105
+ "user_id": "U05GPEVH7J9"
106
+ }
107
+ ]
108
+ }
109
+ ```
110
+
111
+ ---
112
+
113
+ ### slack_conversations_history
114
+
115
+ Get messages from a channel or DM.
116
+
117
+ **Parameters:**
118
+ | Name | Type | Default | Description |
119
+ |------|------|---------|-------------|
120
+ | channel_id | string | *required* | Channel or DM ID |
121
+ | limit | number | 50 | Messages to fetch (max 100) |
122
+ | oldest | string | - | Unix timestamp, get messages after; matching boundary timestamp is included |
123
+ | latest | string | - | Unix timestamp, get messages before; matching boundary timestamp is included |
124
+ | resolve_users | boolean | true | Convert user IDs to names |
125
+ | include_rich_message_fields | boolean | false | Include Slack attachments, blocks, metadata, files, and reactions when present |
126
+ | include_all_metadata | boolean | false | Pass Slack's `include_all_metadata` option to `conversations.history` |
127
+
128
+ **Returns:**
129
+ ```json
130
+ {
131
+ "channel": "D063M4403MW",
132
+ "message_count": 50,
133
+ "has_more": true,
134
+ "messages": [
135
+ {
136
+ "ts": "1767368030.607599",
137
+ "user": "Gwen Santos",
138
+ "user_id": "U05GPEVH7J9",
139
+ "text": "Hello!",
140
+ "datetime": "2026-01-02T15:33:50.000Z",
141
+ "has_thread": false,
142
+ "attachments": [
143
+ {
144
+ "text": "Additional message context"
145
+ }
146
+ ]
147
+ }
148
+ ]
149
+ }
150
+ ```
151
+
152
+ `include_rich_message_fields` changes this tool's **output shape only** — it surfaces fields Slack
153
+ already returns on the message object: `attachments`, `blocks`, `files`, `reactions`, `metadata`,
154
+ plus `subtype`, `bot_id`, `app_id` (markers that flag automated / bot / app messages) and `team`
155
+ (the workspace id, present on all messages). Especially `blocks` can be large, so it's opt-in per
156
+ call to keep MCP client context lean.
157
+
158
+ `include_all_metadata` is a **separate, independent** Slack request flag: its only effect is to add
159
+ the full `event_payload` inside a message's developer `metadata` (without it you still get
160
+ `metadata.event_type`). The two are orthogonal — set `include_rich_message_fields` to see `metadata`
161
+ in the output at all; additionally set `include_all_metadata` for the full payload.
162
+
163
+ Note: `slack_search_messages` matches are thin — Slack's search API does not return these rich
164
+ fields on matches (only `team`). To read rich content for a search hit, call
165
+ `slack_conversations_history` or `slack_get_thread` on the match's channel/ts.
166
+
167
+ ---
168
+
169
+ ### slack_get_full_conversation
170
+
171
+ Export full conversation with threads.
172
+
173
+ **Parameters:**
174
+ | Name | Type | Default | Description |
175
+ |------|------|---------|-------------|
176
+ | channel_id | string | *required* | Channel or DM ID |
177
+ | oldest | string | - | Unix timestamp start; matching boundary timestamp is included |
178
+ | latest | string | - | Unix timestamp end; matching boundary timestamp is included |
179
+ | max_messages | number | 2000 | Max messages (up to 10000) |
180
+ | include_threads | boolean | true | Fetch thread replies |
181
+ | include_rich_message_fields | boolean | false | Include Slack attachments, blocks, metadata, files, and reactions when present |
182
+ | include_all_metadata | boolean | false | Pass Slack's `include_all_metadata` option to `conversations.history` and `conversations.replies` |
183
+ | output_file | string | - | Filename (saved to ~/.slack-mcp-exports/) |
184
+
185
+ **Timestamps:**
186
+ - Dec 1, 2025 = `1733011200`
187
+ - Jan 1, 2026 = `1735689600`
188
+
189
+ **Returns:**
190
+ ```json
191
+ {
192
+ "channel": "D063M4403MW",
193
+ "exported_at": "2026-01-03T16:00:00Z",
194
+ "total_messages": 150,
195
+ "date_range": {
196
+ "oldest": "2025-12-01T00:00:00Z",
197
+ "latest": "now"
198
+ },
199
+ "saved_to": "/Users/james/export.json",
200
+ "messages": [...]
201
+ }
202
+ ```
203
+
204
+ ---
205
+
206
+ ### slack_search_messages
207
+
208
+ Search messages across the workspace.
209
+
210
+ **Parameters:**
211
+ | Name | Type | Default | Description |
212
+ |------|------|---------|-------------|
213
+ | query | string | *required* | Search query |
214
+ | count | number | 20 | Number of results (max 100) |
215
+ | include_rich_message_fields | boolean | false | Include Slack attachments, blocks, metadata, files, and reactions when present |
216
+
217
+ **Query Syntax:**
218
+ - `from:@username` - From specific user
219
+ - `in:#channel` - In specific channel
220
+ - `has:link` - Has links
221
+ - `before:2026-01-01` - Before date
222
+ - `after:2025-12-01` - After date
223
+
224
+ **Returns:**
225
+ ```json
226
+ {
227
+ "query": "project update",
228
+ "total": 25,
229
+ "matches": [
230
+ {
231
+ "ts": "1767368030.607599",
232
+ "channel": "general",
233
+ "channel_id": "C05GPEVH7J9",
234
+ "user": "Example User",
235
+ "text": "Here's the project update...",
236
+ "datetime": "2026-01-02T15:33:50.000Z",
237
+ "permalink": "https://..."
238
+ }
239
+ ]
240
+ }
241
+ ```
242
+
243
+ ---
244
+
245
+ ### slack_send_message
246
+
247
+ Send a message.
248
+
249
+ **Parameters:**
250
+ | Name | Type | Default | Description |
251
+ |------|------|---------|-------------|
252
+ | channel_id | string | *required* | Channel or DM ID |
253
+ | text | string | *required* | Message text |
254
+ | thread_ts | string | - | Thread to reply to |
255
+
256
+ **Returns:**
257
+ ```json
258
+ {
259
+ "status": "sent",
260
+ "channel": "D063M4403MW",
261
+ "ts": "1767368030.607599",
262
+ "message": "Hello!"
263
+ }
264
+ ```
265
+
266
+ ---
267
+
268
+ ### slack_get_thread
269
+
270
+ Get all replies in a thread.
271
+
272
+ **Parameters:**
273
+ | Name | Type | Default | Description |
274
+ |------|------|---------|-------------|
275
+ | channel_id | string | *required* | Channel or DM ID |
276
+ | thread_ts | string | *required* | Thread parent timestamp |
277
+ | include_rich_message_fields | boolean | false | Include Slack attachments, blocks, metadata, files, and reactions when present |
278
+ | include_all_metadata | boolean | false | Pass Slack's `include_all_metadata` option to `conversations.replies` |
279
+
280
+ **Returns:**
281
+ ```json
282
+ {
283
+ "channel": "D063M4403MW",
284
+ "thread_ts": "1767368030.607599",
285
+ "message_count": 5,
286
+ "messages": [
287
+ {
288
+ "ts": "1767368030.607599",
289
+ "user": "Example User",
290
+ "text": "Original message",
291
+ "datetime": "2026-01-02T15:33:50.000Z",
292
+ "is_parent": true
293
+ }
294
+ ]
295
+ }
296
+ ```
297
+
298
+ ---
299
+
300
+ ### slack_users_info
301
+
302
+ Get user details.
303
+
304
+ **Parameters:**
305
+ | Name | Type | Default | Description |
306
+ |------|------|---------|-------------|
307
+ | user_id | string | *required* | Slack user ID |
308
+
309
+ **Returns:**
310
+ ```json
311
+ {
312
+ "id": "U05GPEVH7J9",
313
+ "name": "gwen",
314
+ "real_name": "Gwen Santos",
315
+ "display_name": "Gwen",
316
+ "email": "gwen@example.com",
317
+ "title": "Assistant",
318
+ "timezone": "America/New_York",
319
+ "is_bot": false,
320
+ "is_admin": false
321
+ }
322
+ ```
323
+
324
+ ---
325
+
326
+ ### slack_list_users
327
+
328
+ List all workspace users.
329
+
330
+ **Parameters:**
331
+ | Name | Type | Default | Description |
332
+ |------|------|---------|-------------|
333
+ | limit | number | 100 | Maximum users to return |
334
+
335
+ **Returns:**
336
+ ```json
337
+ {
338
+ "count": 10,
339
+ "users": [
340
+ {
341
+ "id": "U05GPEVH7J9",
342
+ "name": "gwen",
343
+ "real_name": "Gwen Santos",
344
+ "display_name": "Gwen",
345
+ "email": "gwen@example.com",
346
+ "is_admin": false
347
+ }
348
+ ]
349
+ }
350
+ ```
351
+
352
+ ---
353
+
354
+ ### slack_add_reaction
355
+
356
+ Add an emoji reaction to a message.
357
+
358
+ **Parameters:**
359
+ | Name | Type | Default | Description |
360
+ |------|------|---------|-------------|
361
+ | channel_id | string | *required* | Channel or DM ID |
362
+ | timestamp | string | *required* | Message timestamp to react to |
363
+ | reaction | string | *required* | Emoji name without colons (e.g. `thumbsup`, `heart`, `eyes`) |
364
+
365
+ **Returns:**
366
+ ```json
367
+ {
368
+ "status": "added",
369
+ "channel": "D063M4403MW",
370
+ "timestamp": "1767368030.607599",
371
+ "reaction": "thumbsup"
372
+ }
373
+ ```
374
+
375
+ ---
376
+
377
+ ### slack_remove_reaction
378
+
379
+ Remove an emoji reaction from a message.
380
+
381
+ **Parameters:**
382
+ | Name | Type | Default | Description |
383
+ |------|------|---------|-------------|
384
+ | channel_id | string | *required* | Channel or DM ID |
385
+ | timestamp | string | *required* | Message timestamp |
386
+ | reaction | string | *required* | Emoji name without colons |
387
+
388
+ **Returns:**
389
+ ```json
390
+ {
391
+ "status": "removed",
392
+ "channel": "D063M4403MW",
393
+ "timestamp": "1767368030.607599",
394
+ "reaction": "thumbsup"
395
+ }
396
+ ```
397
+
398
+ ---
399
+
400
+ ### slack_conversations_mark
401
+
402
+ Mark a conversation as read up to a specific message timestamp.
403
+
404
+ **Parameters:**
405
+ | Name | Type | Default | Description |
406
+ |------|------|---------|-------------|
407
+ | channel_id | string | *required* | Channel or DM ID to mark as read |
408
+ | timestamp | string | *required* | Message timestamp to mark as read up to |
409
+
410
+ **Returns:**
411
+ ```json
412
+ {
413
+ "status": "marked",
414
+ "channel": "D063M4403MW",
415
+ "read_up_to": "1767368030.607599"
416
+ }
417
+ ```
418
+
419
+ ---
420
+
421
+ ### slack_conversations_unreads
422
+
423
+ Get channels and DMs with unread messages, sorted by unread count (highest first).
424
+
425
+ **Parameters:**
426
+ | Name | Type | Default | Description |
427
+ |------|------|---------|-------------|
428
+ | types | string | "im,mpim,public_channel,private_channel" | Comma-separated conversation types |
429
+ | limit | number | 50 | Maximum conversations to return |
430
+
431
+ **Returns:**
432
+ ```json
433
+ {
434
+ "total_unread_conversations": 3,
435
+ "conversations": [
436
+ {
437
+ "id": "C05GPEVH7J9",
438
+ "name": "engineering",
439
+ "type": "public_channel",
440
+ "unread_count": 12,
441
+ "latest_ts": "1767368030.607599"
442
+ },
443
+ {
444
+ "id": "D063M4403MW",
445
+ "name": "Gwen Santos",
446
+ "type": "dm",
447
+ "unread_count": 5,
448
+ "latest_ts": "1767368025.123456"
449
+ }
450
+ ]
451
+ }
452
+ ```
453
+
454
+ ---
455
+
456
+ ### slack_users_search
457
+
458
+ Search workspace users by name, display name, or email. Case-insensitive partial match.
459
+
460
+ **Parameters:**
461
+ | Name | Type | Default | Description |
462
+ |------|------|---------|-------------|
463
+ | query | string | *required* | Search term to match against name, display name, real name, or email |
464
+ | limit | number | 20 | Maximum results to return |
465
+
466
+ **Returns:**
467
+ ```json
468
+ {
469
+ "query": "gwen",
470
+ "count": 1,
471
+ "total_matches": 1,
472
+ "users": [
473
+ {
474
+ "id": "U05GPEVH7J9",
475
+ "name": "gwen",
476
+ "real_name": "Gwen Santos",
477
+ "display_name": "Gwen",
478
+ "email": "gwen@example.com",
479
+ "title": "Assistant",
480
+ "is_admin": false
481
+ }
482
+ ]
483
+ }
484
+ ```
@@ -0,0 +1,56 @@
1
+ # Deployment Modes
2
+
3
+ Use this guide to choose the right operating mode before rollout.
4
+
5
+ ## Quick Chooser
6
+
7
+ - Choose `stdio` for personal self-hosted use in Claude Desktop/Claude Code.
8
+ - Choose local `web` for browser workflows and manual Slack browsing.
9
+ - Choose hosted HTTP only when you need remote execution and can handle token operations.
10
+ - Choose Smithery/Worker only when your consumers require registry-hosted MCP transport.
11
+ - A managed **Hosted** version is live at [mcp.revasserlabs.com](https://mcp.revasserlabs.com) — Free tier (no card), Pro $19/mo, Team $49/mo flat, Safeguard $199/mo (waitlist). See [pricing](https://mcp.revasserlabs.com/pricing).
12
+
13
+ ## Mode Matrix
14
+
15
+ | Mode | Start Command | Best For | Auth Material | Exposure | Notes |
16
+ |------|---------------|----------|---------------|----------|-------|
17
+ | Local MCP (`stdio`) | `bunx @uniquedivine/mcp-slack` | Individual daily usage in Claude | `SLACK_TOKEN` + `SLACK_COOKIE` via token file/env | Local process | Lowest ops burden. Free. 21 tools (16 read/write + 2 workflow profile primitives + 3 discoverable upgrade stubs to hosted). |
18
+ | Local Web UI (`web`) | `bunx @uniquedivine/mcp-slack web` | Browser-first usage, manual search/send | Same as above + generated API key | `localhost` by default | Useful when MCP is not available |
19
+ | Hosted MCP (`http`) | `bun src/server-http.js` | Controlled hosted integration | Env-injected Slack token/cookie + HTTP bearer token | Remote endpoint | `/mcp` is bearer-protected by default; configure CORS allowlist |
20
+ | Smithery/Worker | `wrangler deploy` + Smithery publish flow | Registry distribution for hosted consumers | Query/env token handoff | Remote endpoint | Keep worker version parity with npm release |
21
+
22
+ ## Team Deployment Guidance
23
+
24
+ If you are deploying for more than one operator:
25
+
26
+ 1. Start with one maintainer on local `stdio`.
27
+ 2. Document token lifecycle and rotation ownership.
28
+ 3. Define support window and incident contact before enabling hosted mode.
29
+ 4. Validate `/health` and MCP initialize responses on every release.
30
+
31
+ ## Release Checklist by Mode
32
+
33
+ ### Local `stdio`
34
+
35
+ 1. `bunx @uniquedivine/mcp-slack --status`
36
+ 2. `bunx @uniquedivine/mcp-slack --help`
37
+ 3. Confirm tool list in Claude client.
38
+
39
+ ### Local `web`
40
+
41
+ 1. `bunx @uniquedivine/mcp-slack web`
42
+ 2. Verify API key generation at `~/.slack-mcp-api-key`.
43
+ 3. Verify `/health`, `/conversations`, and `/search` endpoints.
44
+
45
+ ### Hosted (`http` or Worker)
46
+
47
+ 1. Verify `version` parity across `package.json`, server metadata, and health responses.
48
+ 2. Verify HTTP auth behavior:
49
+ - missing `SLACK_MCP_HTTP_AUTH_TOKEN` returns `503`
50
+ - bad bearer token returns `401`
51
+ - valid bearer token succeeds
52
+ 3. Verify CORS behavior:
53
+ - denied by default
54
+ - allowed origins work when listed in `SLACK_MCP_HTTP_ALLOWED_ORIGINS`
55
+ 4. Confirm `slack_get_thread`, `slack_search_messages`, and `slack_users_info` behavior.
56
+ 5. Confirm token handling mode (ephemeral vs env persistence) is documented.