What the plugin reads and does¶
The manifest in package.json is the source of truth; this page adds what each entry is for.
Methods¶
| Method | Class | Accounts | Operations |
|---|---|---|---|
status | read | none | auth.test |
accounts_list | read | none | auth.test |
probe | read | optional | auth.test, slack_read_user_profile |
events_list | read | optional | auth.test, slack_read_channel |
thread_read | read | optional | auth.test, slack_read_thread |
channels_list | read | optional | slack_list_user_channels |
mentions_list | read | optional | auth.test, assistant.search.context |
direct_list | read | optional | auth.test, assistant.search.context |
direct_thread_read | read | optional | auth.test, slack_read_thread |
plan_reply | read | optional | — |
reply | send | optional | auth.test, chat.postMessage |
plan_send | read | optional | auth.test, users.info, conversations.open, conversations.info |
send | send | optional | auth.test, chat.postMessage, files.completeUploadExternal |
plan_delete | read | optional | auth.test, conversations.replies, conversations.info, users.info |
delete | delete | optional | auth.test, conversations.replies, chat.delete |
mark_read | write | optional | conversations.mark |
channel_invite | share | optional | conversations.invite |
mcp:slack_add_list_record | write | optional | — |
mcp:slack_add_reaction | write | optional | — |
mcp:slack_complete_file_upload | send | optional | — |
mcp:slack_create_canvas | write | optional | — |
mcp:slack_create_conversation | share | optional | — |
mcp:slack_create_list | write | optional | — |
mcp:slack_get_file_upload_url | write | optional | — |
mcp:slack_get_reactions | read | optional | — |
mcp:slack_list_channel_members | read | optional | — |
mcp:slack_list_user_channels | read | optional | — |
mcp:slack_read_canvas | read | optional | — |
mcp:slack_read_channel | read | optional | — |
mcp:slack_read_file | read | optional | — |
mcp:slack_read_list | read | optional | — |
mcp:slack_read_thread | read | optional | — |
mcp:slack_read_user_profile | read | optional | — |
mcp:slack_schedule_message | send | optional | — |
mcp:slack_search_channels | read | optional | — |
mcp:slack_search_emojis | read | optional | — |
mcp:slack_search_public | read | optional | — |
mcp:slack_search_public_and_private | read | optional | — |
mcp:slack_search_users | read | optional | — |
mcp:slack_send_message | send | optional | — |
mcp:slack_send_message_draft | send | optional | — |
mcp:slack_update_canvas | write | optional | — |
mcp:slack_update_list | write | optional | — |
mcp:slack_update_list_record | write | optional | — |
Sources¶
| Source | Kind | Reads or output | Method | Cost |
|---|---|---|---|---|
slack.workspace | events | message | events_list | free |
slack.mentions | events | message | mentions_list | free |
slack.direct | events | message | direct_list | free |
Actions¶
| Action | Effect | Preview | Commit |
|---|---|---|---|
slack.reply | notify | plan_reply | reply |
slack.send | notify | plan_send | send |
slack.delete | irreversible | plan_delete | delete |
Bus events¶
rpc.slack.changed
The three sources¶
slack.workspace is the messages around a person: the channels and direct messages a call confirms, read with the account's own slack_read_channel tool. Its scope key is channels; channels_list suggests the values a person can confirm. A G… id that is a private channel needs groups:history, which is not a default scope. The source's detail read is thread_read, from a listed event's own thread field.
slack.mentions is the messages that mention the signed-in user, found with assistant.search.context as that user. It has no scope: the search is the person's own mentions, and nothing narrower is available. Each event carries its sender, its conversation and thread and its Slack permalink; when Slack's answer gives no permalink, the plugin builds one from the workspace's own address. That permalink is what the attention feed opens and what slack.reply targets.
slack.direct is the signed-in user's direct messages (to:me), group direct messages, <@self> mentions and own replies (from:me) across the workspace, read oldest first with assistant.search.context and deduplicated by channel_id:message_ts. Each call sends at most 9 search requests; when a busy window exceeds one call's page budget, direct_list stops at the earliest incomplete timestamp and answers more: true so the consumer drains the window over several pages, paced against Slack's 10 requests per minute user limit (a RATE_LIMITED refusal leaves the cursor where it was so nothing is lost). Messages authored by the signed-in user carry actors[].self: true so a consumer can close open loops when the person replies in Slack. Once caught up, its bound cursor keeps a 45-second overlap lookback window so late-indexed search results are not missed, and consumers deduplicate by external_id and hash. Its detail read is direct_thread_read (slack.direct.thread), from a listed event's own thread field, which returns source: "direct" and marks the signed-in user's own replies with actors[].self: true.
All three sources are private and free. A message that holds a secret is refused for good (refused[]) and the cursor moves past it.
The plugin's own methods¶
| Method | Reads | Notes |
|---|---|---|
status | nothing | The versions, each alias's state and owner, what a ready account cannot do yet as a shortfall with its fix, and the agents the access rules miss. |
accounts_list | auth.test, once per credential | Every signed-in account by OpenCode credential id, with Slack's workspace and user names and which credential is active. |
probe | auth.test (the profile read is declared for the inventory, not called) | The account and owner, with orgs naming the workspace and, on a grid, the organization. No content. |
events_list | the workspace source | Oldest first; the cursor is bound to the account and scope. |
thread_read | a listed workspace event's thread | The slack.workspace detail read. A thread over the source's limit is TOO_LARGE, never cut. |
channels_list | the account's conversations | Ids and names only, for a scope a person confirms. |
mentions_list | assistant.search.context | The user's mentions, oldest first, each with its sender, its conversation and thread and its permalink. effect: deny keeps it off at every level unless a later allow rule names it. |
direct_list | assistant.search.context | The user's direct messages, group direct messages, mentions and own replies (self: true), oldest first with a 45-second overlap lookback cursor. effect: deny keeps it off at every level unless a later allow rule names it. |
direct_thread_read | a listed direct event's thread | The slack.direct detail read, returning source: "direct" and marking own replies with self: true. A thread over the source's limit is TOO_LARGE, never cut. effect: deny keeps it off at every level unless a later allow rule names it. |
plan_reply | nothing | The preview of the slack.reply action: the conversation, thread and exact text a permalink names, ending with the line that says an agent sent it. It calls Slack not at all. |
reply | nothing; writes | chat.postMessage for one reply, after checking the account is signed in to the permalink's workspace. Emits changed for slack.workspace and slack.direct after the write. |
plan_send | auth.test, users.info, conversations.open, conversations.info | The preview of the slack.send action: it resolves the conversation from a user id or a channel id, names who it reaches, and shows the text ending with the line that says an agent sent it. It posts nothing. |
send | nothing; writes | chat.postMessage, or files.completeUploadExternal when the plan shares files, in the planned conversation only. Emits changed for slack.workspace and slack.direct after the write. |
plan_delete | auth.test, conversations.replies, conversations.info, users.info | The preview of the slack.delete action: the account's own message, its conversation and who it reached. It deletes nothing. |
delete | conversations.replies; writes | chat.delete for one of the account's own messages, after reading it again. Emits changed for slack.workspace and slack.direct after the write. |
mark_read | nothing; writes | conversations.mark for one conversation. Emits changed for slack.workspace and slack.direct after the write. |
channel_invite | nothing; writes | conversations.invite for between one and 100 people in an existing public or private channel. Emits changed for slack.workspace after the write. |
The actions¶
The plugin declares three actions. Each is previewed by a read that writes nothing and answers a planId, then committed by a method that takes only that planId after the person confirms. The conversation, the words and the files a person confirms are the ones the commit uses: nothing an agent passes later can change them.
Reply¶
slack.reply answers a message in its thread. A client previews it with plan_reply, whose input is a message's permalink and the text: the preview reads the permalink into the conversation and thread, shows the exact text and who it reaches, and calls Slack not at all. The text the preview shows ends with the line that says an agent sent it, so the person reads exactly what will be posted; a profile with "attribution": false turns that line off for its alias alone. The person then confirms, and the commit posts the same words with chat.postMessage as the account's own Slack user. The commit refuses a permalink from another workspace, and it answers the reply's ts and permalink.
The action is notify, because a reply reaches other people, and its commit asks at every access level. The chat:write scope is a default, so a sign-in can post.
Send¶
slack.send writes a new message to one person or one channel. Its input is to, the exact text, and optionally files:
tois one person's user id (U…,W…) or a channel id (C…,G…). A direct message's ownD…id is refused, because an id seen earlier can belong to someone else. A person is always addressed by their user id, looked up at the time of the send.fileslists up to ten files this account uploaded and has not shared yet, each by itsF…id with an optional title.
The preview, plan_send, resolves the conversation itself. For a person it opens, or finds, the direct message with conversations.open, reads it back with conversations.info, and refuses unless that person is its other member. For a channel it reads the channel with conversations.info and refuses an archived one. It answers reaches: the person's Slack name, or the channel's name and member count. It also answers the conversation, the exact text and the files. The text ends with the line that says an agent sent it, which a profile turns off for its alias alone with "attribution": false. It posts nothing.
The commit, send, takes only { planId }. It posts exactly the planned text with chat.postMessage, or shares the planned files with that text as their message with files.completeUploadExternal. It posts only in the planned conversation, after checking the account is still signed in to the workspace the preview resolved it in. It answers the message's ts and permalink when Slack gives them.
The action is notify, and its commit asks at every access level. It needs chat:write, im:write for a person and files:write for files; all three are default scopes.
Delete¶
slack.delete removes a message the account itself posted. Its input is the message's permalink, as send or reply answered it. The preview, plan_delete, reads the message with conversations.replies and refuses it unless the signed-in user wrote it, so a workspace admin's sign-in never deletes another person's message through it. It shows the conversation, who it reached and the text. The commit, delete, takes only { planId }, reads the message again, checks the same author, and deletes it with chat.delete.
The action is irreversible, and its commit asks at every access level. Reading a message in a private channel needs groups:history, which is not a default scope; without it the preview answers SCOPE_MISSING.
Attribution¶
Every message send and reply post through a person's Slack account ends with _Sent by an agent on your behalf._. Slack shows the signed-in person's name on a message its sign-in posts, so without the line a colleague reads it as the person's own words. The plugin adds the line when it plans the message, so the preview the person approves shows it, and the commit posts the planned text unchanged, so an agent cannot drop it. An alias turns the line off for itself alone with "attribution": false in its profile; the profile is part of the account a grant names.
Slack's tools, passed through¶
The 27 mcp:slack_* entries are Slack's own tools. Their server holds the tool and its sign-in; the plugin declares each one so access can be decided per alias and per tool, and never registers or proxies one. The classes follow what the tool does: slack_complete_file_upload is send (with a channel it shares the file there), slack_create_conversation is share (it can grant up to 1000 people membership), slack_send_message, slack_send_message_draft and slack_schedule_message are send, and the rest are read or write as their names and effects say.
The raw write tools are denied¶
slack_send_message, slack_send_message_draft, slack_schedule_message and slack_complete_file_upload carry effect: deny, so they are denied at every access level, all included. Each takes any conversation id the model supplies, and its ask shows the words but not who receives them. The slack.send action is the way an agent posts: it resolves the conversation and names who the message reaches before the person confirms. A later allow rule that a person writes for one agent is the only way to run a raw tool.
Creating a channel and inviting people¶
slack_create_conversation creates a channel when the call names channel_name, and invites the people in user_ids in the same call. It is a share, so a person approves it as they do every change. The default sign-in scopes include channels:write for a public channel and groups:write for a private one, which are the scopes Slack's MCP server needs to list the tool. For a channel that already exists, the plugin's own channel_invite invites between one and 100 people to a C… or G… conversation with conversations.invite. It is a share too: it asks at ask-changes and is off at read-only. It answers the channel id and the ids it invited. Slack refuses the whole list when any named person cannot join, and the plugin reports that refusal; a call that names one person already in the channel is its answer, because that person is already there. If a tool is missing, call status: it lists a shortfall for each default scope the sign-in lacks, with what the account cannot do and its fix. A sign_in shortfall asks for Read and write; a provider_admin one is a scope the Slack app does not offer, which its administrator adds from docs/slack-app-manifest.json.
The five narrow reads¶
mentions_list, direct_list, direct_thread_read, slack_search_public_and_private and slack_read_file reach private content or another person's file. The plugin's table gives them effect: deny, so they are denied at every level, all included: raising access does not run one, and a later allow rule for one agent or tool is the only way to. That is narrower than asking at ask-changes, and it is the choice the plugin makes on purpose.
The bus¶
The plugin emits rpc.slack.changed with { capability, account, reason } for both slack.workspace and slack.direct after mark_read, reply, send or delete writes, and for slack.workspace after channel_invite writes. It carries no content: an app re-reads the changed source for that account.