Skip to content

docs: fix incorrect env var references for reactions and add missing tool env vars#245

Open
coolwuu wants to merge 1 commit intokorotovsky:masterfrom
coolwuu:docs/fix-reaction-attachment-tool-env-vars
Open

docs: fix incorrect env var references for reactions and add missing tool env vars#245
coolwuu wants to merge 1 commit intokorotovsky:masterfrom
coolwuu:docs/fix-reaction-attachment-tool-env-vars

Conversation

@coolwuu
Copy link
Copy Markdown

@coolwuu coolwuu commented Mar 20, 2026

Summary

The README incorrectly tells users to set SLACK_MCP_ADD_MESSAGE_TOOL to enable reactions_add and reactions_remove, but the code (pkg/server/server.go and pkg/handler/conversations.go) gates these tools behind SLACK_MCP_REACTION_TOOL. Users following the README cannot enable reaction tools.

Additionally, SLACK_MCP_REACTION_TOOL and SLACK_MCP_ATTACHMENT_TOOL are completely absent from the Environment Variables table.

Changes

  • Fix reactions_add tool note (line 91) to reference SLACK_MCP_REACTION_TOOL instead of SLACK_MCP_ADD_MESSAGE_TOOL
  • Fix reactions_remove tool note (line 101) to reference SLACK_MCP_REACTION_TOOL instead of SLACK_MCP_ADD_MESSAGE_TOOL
  • Add SLACK_MCP_REACTION_TOOL row to the Environment Variables table (supports true, channel ID whitelist, and ! exclusion — matching isChannelAllowedForConfig logic)
  • Add SLACK_MCP_ATTACHMENT_TOOL row to the Environment Variables table (supports true/1/yes only — no channel-level restrictions, matching parseParamsToolFilesGet logic)

Code references

  • pkg/server/server.go:189shouldAddTool(ToolReactionsAdd, enabledTools, "SLACK_MCP_REACTION_TOOL")
  • pkg/server/server.go:208shouldAddTool(ToolReactionsRemove, enabledTools, "SLACK_MCP_REACTION_TOOL")
  • pkg/server/server.go:227shouldAddTool(ToolAttachmentGetData, enabledTools, "SLACK_MCP_ATTACHMENT_TOOL")
  • pkg/handler/conversations.go:1721toolConfig := os.Getenv("SLACK_MCP_REACTION_TOOL")
  • pkg/handler/conversations.go:1769toolConfig := os.Getenv("SLACK_MCP_ATTACHMENT_TOOL")

…tool env vars

The `reactions_add` and `reactions_remove` tools are gated by
`SLACK_MCP_REACTION_TOOL` in the code (server.go), but the README
incorrectly references `SLACK_MCP_ADD_MESSAGE_TOOL` for enabling them.

Additionally, `SLACK_MCP_REACTION_TOOL` and `SLACK_MCP_ATTACHMENT_TOOL`
are missing from the Environment Variables table entirely.

Changes:
- Fix `reactions_add` note to reference `SLACK_MCP_REACTION_TOOL`
- Fix `reactions_remove` note to reference `SLACK_MCP_REACTION_TOOL`
- Add `SLACK_MCP_REACTION_TOOL` row to the env var table
- Add `SLACK_MCP_ATTACHMENT_TOOL` row to the env var table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant