Skip to content

Installation

Requirements

  • OpenCode >=2.4.1 <2.5.0, tested on 2.4.1.
  • A Slack workspace, and permission to install an app in it, or an app you already have.
  • Node 24 only for a development install; a release install needs no build.

Install a release

Install from a release tag:

opencode plugin add github:we-the-rebel-alliance/slack-plugin#v0.0.5

The current release is v0.0.5; a later release pins its own tag. A Git install does not update by itself: remove the exact tag you installed and add the next one. Start a new OpenCode session after the install.

Create the Slack app

The plugin signs in through one Slack app, and every workspace uses it. The manifest in docs/slack-app-manifest.json declares the app's scopes and redirect URL.

  1. Create an app from that manifest at api.slack.com/apps.
  2. Add the redirect URL http://localhost:8765/callback under OAuth & Permissions, unless it is already there.
  3. Keep PKCE on if you do not paste a client secret. A secret is only for an app that cannot use PKCE.

The plugin requests a subset of the manifest's scopes. Configuration lists every default scope. The alias's access is the person's choice: Read-only asks the read scopes, and Read and write (the default) asks the read and write scopes. The public and private channel write scopes (channels:write, groups:write) are in the write set, so Slack's create-conversation tool can create a channel and invite named people. chat:write, im:write and files:write are in it too, so the actions can post, open a person's direct message, share files and delete the account's own message. One power is deliberately not default: groups:history for a private channel's history. A group message marked read needs mpim:write, which is not default either.

Scopes are fixed when a sign-in is granted. After an upgrade that adds a scope, run /connect and sign in again.

Sign in

  1. In OpenCode, run /connect and choose Slack app client ID. Paste the app's client ID. This entry is global: every alias signs in through the same app.
  2. Restart OpenCode. The plugin registers one Slack MCP server per alias, slack for default and slack-<alias> for another, with that app's client ID.
  3. Run /connect again and choose that alias's server, then sign in to its workspace. Repeat for each alias.

If you would rather keep the client ID in configuration, set oauth.client_id instead of the first step. Configuration has the field and an example.

First check

Ask the agent to call tools.slack.status. It reports the plugin and OpenCode versions, one entry for each alias with ready, needs_sign_in or error, and one next step. tools.slack.probe confirms one alias with Slack and reports the signed-in owner, without content.

Next

Quick start reads a channel, a thread and the workspace feed.