yt-slack-mcp 0.3.2 → 0.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.
Files changed (4) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +6 -4
  3. package/index.js +18 -1
  4. package/package.json +2 -2
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Maksim Korinets
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.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Maksim Korinets
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
@@ -8,7 +8,7 @@ A host-agnostic [Model Context Protocol](https://modelcontextprotocol.io) server
8
8
  - Read message permalinks from channels, DMs, and group DMs.
9
9
  - Return image attachments inline, extract text from PDFs, and return `text/*` attachment contents inline.
10
10
  - Retrieve private attachment contents through the authenticated Slack browser session.
11
- - Reply to a thread, add a reaction, edit an authored message or thread reply, or upload local files only in explicitly allowed channel IDs.
11
+ - Reply to a thread, add or remove a reaction, edit an authored message or thread reply, or upload local files only in explicitly allowed channel IDs.
12
12
 
13
13
  Attachment limits: images and text files are limited to 10 MB; text attachments are truncated at 100,000 characters. PDFs are limited to 20 MB, 50 pages, and 100,000 extracted characters.
14
14
 
@@ -21,6 +21,7 @@ Attachment limits: images and text files are limited to 10 MB; text attachments
21
21
  | `slack_get_history` | Read recent channel history. |
22
22
  | `slack_reply_to_thread` | Reply to a thread; restricted to allowed channels. |
23
23
  | `slack_add_reaction` | Add a reaction; restricted to allowed channels. |
24
+ | `slack_remove_reaction` | Remove a reaction added by this account; restricted to allowed channels. |
24
25
  | `slack_upload_files` | Upload up to 10 local files to a channel or thread, with an optional initial comment; returns file and message permalinks; restricted to allowed channels. |
25
26
  | `slack_edit_message` | Edit an authored message or thread reply by channel ID and timestamp; replaces the message text (Slack removes any existing Block Kit blocks) and returns the updated timestamp and permalink; restricted to allowed channels. |
26
27
 
@@ -60,9 +61,10 @@ All configuration can live in a JSON config file at
60
61
  ```
61
62
 
62
63
  By default the write tools (`slack_reply_to_thread`, `slack_add_reaction`,
63
- `slack_edit_message`) and `slack_upload_files` are locked down — no channel is
64
- writable. Each upload is limited to 10 MB. Every field is optional; a
65
- missing file just means defaults. Env vars always override the config file.
64
+ `slack_remove_reaction`, `slack_edit_message`) and `slack_upload_files` are
65
+ locked down — no channel is writable. Each upload is limited to 10 MB. Every
66
+ field is optional; a missing file just means defaults. Env vars always override
67
+ the config file.
66
68
 
67
69
  ## Configuration
68
70
 
package/index.js CHANGED
@@ -440,6 +440,11 @@ const TOOLS = [
440
440
  description: "Add a reaction to a Slack message. Restricted to allowed channels.",
441
441
  inputSchema: zodToJsonSchema(AddReactionSchema),
442
442
  },
443
+ {
444
+ name: "slack_remove_reaction",
445
+ description: "Remove a reaction added by this account from a Slack message. Restricted to allowed channels.",
446
+ inputSchema: zodToJsonSchema(AddReactionSchema),
447
+ },
443
448
  {
444
449
  name: "slack_upload_files",
445
450
  description: "Upload one or more local files to a channel or thread. Restricted to allowed channels.",
@@ -512,6 +517,18 @@ function createExecuteToolCall({ slackApi, formatMessages, uploadSlackFiles, all
512
517
  return { content: [{ type: "text", text: "added reaction" }] };
513
518
  }
514
519
 
520
+ case "slack_remove_reaction": {
521
+ const a = AddReactionSchema.parse(args);
522
+ const channelId = requireString(a.channel_id, "channel_id");
523
+ assertAllowedWriteChannel(channelId, allowed);
524
+ await slackApi("reactions.remove", {
525
+ channel: channelId,
526
+ timestamp: requireString(a.timestamp, "timestamp"),
527
+ name: requireString(a.reaction, "reaction"),
528
+ }, "POST");
529
+ return { content: [{ type: "text", text: "removed reaction" }] };
530
+ }
531
+
515
532
  case "slack_upload_files": {
516
533
  const a = UploadFilesSchema.parse(args);
517
534
  const channelId = requireString(a.channel_id, "channel_id");
@@ -599,7 +616,7 @@ async function main() {
599
616
  {
600
617
  capabilities: { tools: {} },
601
618
  instructions:
602
- "MCP server for Slack. Read with slack_read_permalink, slack_get_replies, slack_get_history; write with slack_reply_to_thread, slack_add_reaction, slack_upload_files, slack_edit_message (restricted to allowed channels).",
619
+ "MCP server for Slack. Read with slack_read_permalink, slack_get_replies, slack_get_history; write with slack_reply_to_thread, slack_add_reaction, slack_remove_reaction, slack_upload_files, slack_edit_message (restricted to allowed channels).",
603
620
  }
604
621
  );
605
622
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yt-slack-mcp",
3
- "version": "0.3.2",
4
- "description": "MCP server for Slack — read permalinks, threads, and channel history; reply to threads; add reactions; edit messages.",
3
+ "version": "0.4.0",
4
+ "description": "MCP server for Slack — read permalinks, threads, and channel history; reply to threads; add or remove reactions; edit messages.",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "bin": {