Setup Slack App
One Slack App serves all y0mcp agents. Each agent filters messages by its own SLACK_CHANNEL_ID.
Create the App
Section titled “Create the App”- Go to api.slack.com/apps
- Click Create New App → From scratch
- Name:
y0mcp(or your preference) - Select your workspace
Enable Socket Mode
Section titled “Enable Socket Mode”- Go to Socket Mode → Enable
- Generate an App-Level Token with
connections:writescope - Save the token (
xapp-...) — this is yourSLACK_APP_TOKEN
Bot Token Scopes
Section titled “Bot Token Scopes”Go to OAuth & Permissions → Bot Token Scopes and add:
channels:historychannels:readchat:writechat:write.publicreactions:addreactions:readreactions:write
Event Subscriptions
Section titled “Event Subscriptions”Go to Event Subscriptions → Enable → Subscribe to bot events:
message.channelsreaction_added
Install to Workspace
Section titled “Install to Workspace”- Go to Install App → Install to Workspace
- Save the Bot User OAuth Token (
xoxb-...) — this is yourSLACK_BOT_TOKEN
Invite the bot
Section titled “Invite the bot”In each Slack channel you want to use:
/invite @y0mcpToken summary
Section titled “Token summary”| Token | Env variable | Format |
|---|---|---|
| Bot User OAuth Token | SLACK_BOT_TOKEN | xoxb-... |
| App-Level Token | SLACK_APP_TOKEN | xapp-... |