Listed from the MCP registry; nobody on Odel publishes it.
Manage SockDock rules: Slack posts that run Claude Code, Codex or a program on your Mac.
Runs on your machine from its package; the steps are below.
At most: moves money, runs code or commands, deletes data, or sends messages for you.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Distributed as an MCP bundle (`https://github.com/iwamatsu0430/sock-dock-slack/releases/download/v0.3.0/SockDock-0.3.0.mcpb`) — download it and import the bundle in your MCP client.
Run Slack apps locally: one Socket Mode connection, many handlers.
SockDock (sockdock) is a small gateway that runs on your Mac. It receives messages from your Slack workspace over Socket Mode — nothing needs to be reachable from the internet — and hands them to handlers you configure:
Think of it as a power strip: Slack apps allow one socket, and SockDock lets you plug many things into it. A top-level message that matches a route (a channel, or DMs to the app, plus a condition) starts a thread; every reply in that thread goes to the same handler.
It comes with a CLI and an optional menu bar app.
SockDock is not affiliated with, created by, or supported by Slack Technologies, LLC.
Status: early development. macOS 13+ is the main target (the CLI also works on Linux).
With Homebrew:
brew install --cask iwamatsu0430/tap/sockdock # menu bar app
brew install --formula iwamatsu0430/tap/sockdock # CLI (macOS, Linux)
The app is not notarized by Apple, so the first time you open it, macOS stops it with “SockDock” Not Opened:
This allows SockDock only; the rest of your Mac's protection stays on. Homebrew checks the download against the checksum recorded in the tap before installing it. See also Safely open apps on your Mac.
Or build from source. Tools are managed with mise.
git clone https://github.com/iwamatsu0430/sock-dock-slack.git
cd sock-dock-slack
mise install # Go, Node, wails3
mise run build # -> bin/sockdock
mise run app # optional: -> dist/SockDock.app (menu bar app, CLI bundled)
If you built it, put bin/sockdock somewhere on your PATH (the examples below assume sockdock is on it).
sockdock manifest
connections:write scope (xapp-…).xoxb-…)./invite @SockDock. DMs to the app need no invite.Optional: to show SockDock's icon on its replies, upload assets/slack-icon.png as the app icon (Basic Information → Display Information). Slack manifests can't set it.
sockdock auth set # prompts for both tokens and stores them in the macOS Keychain
sockdock auth status
Alternatively, export SLACK_APP_TOKEN and SLACK_BOT_TOKEN, or point settings.secrets_file at a chmod 600 .env file.
sockdock init # writes a starter config with an "echo" route
mkdir -p ~/sockdock-handlers
cp examples/echo.sh ~/sockdock-handlers/ # the handler that route runs
Edit the config and replace C0123456789 with your channel's ID.
The config lives at ~/Library/Application Support/sockdock/config.yaml (Linux: $XDG_CONFIG_HOME/sockdock/config.yaml). A minimal route:
routes:
- name: echo
channel: C0123456789 # channel ID (channel details → bottom of the About tab)
starts_with: echo # posts that start with "echo"
handler:
type: command
cwd: ~/sockdock-handlers
command: ["./echo.sh"]
A route reacts to top-level posts that meet one of these conditions. Within a channel, routes are tried from the top and the first match runs (routes that are off are skipped).
| Key | Posts it runs on | groups |
|---|---|---|
starts_with: echo | Posts starting with the keyword | text: what follows the keyword |
contains: review | Posts containing the keyword | text: the whole post |
match: '^deploy (?P<env>\w+)$' | Posts matching the regular expression (RE2) | the named groups |
all_posts: true | Every post | text: the whole post |
Keywords ignore case, full-width vs half-width characters, repeated spaces and a leading mention of the Slack app. A keyword of letters and digits does not match inside a word (entry does not match entryx). Regular expressions are case sensitive. Add mention_only: true to run a route only for posts that mention the Slack app, and use channel: dm for DMs (see "DMs and mentions" below). A route can also run when someone adds an emoji reaction to a post, instead of looking at the post's text: reaction: eyes (see "Reactions" below).
Check it:
sockdock check
sockdock match C0123456789 "echo hello"
sockdock run # in the foreground (Ctrl-C to stop)
sockdock service install # or, without the menu bar app: start at login, restart on failure (launchd / systemd)
sockdock status
Post echo hello in the channel: SockDock reacts with 👀, runs the handler and replies in the thread.
With the app you do not need steps 3–5 above or any YAML. Open SockDock from Applications (built from source: open dist/SockDock.app or mise run gui):
connections:write, then paste both tokens and press Connect to Slack. The tokens are checked with Slack first and saved to the Keychain only if both work. To use a Slack app you already have, open Use a Slack app you already have in setup: it lists the settings (Socket Mode, the message.channels/message.groups events, Bot Token scopes, for DMs the optional message.im event, im:history scope and Messages tab, and for attached files the optional files:read scope) and copies the part to add to its App Manifest. With Socket Mode on, that app's events go only to SockDock. If required scopes are missing, Connect to Slack names them.channels:read/groups:read scopes, enter a channel ID or link) or DM, choose who can run it (everyone in the channel, or people you choose by name), choose which posts it reacts to (starting with, containing, a regular expression, or all; tick Only when mentioned to need a mention of the Slack app), and choose what runs — an AI agent (Claude Code or Codex) in a working folder, with instructions and what it may do, or a program. The list is grouped by channel and shows each rule's last run. Within a channel the rule higher up comes first; drag ⠿ to reorder. Open a rule for recent runs, thread links and Stop.<keyword> … in the channel.The app runs the gateway while it is open — there is no separate service to install. Clicking the menu bar icon shows the connection, running and recent runs; There is one window: switch between Rules and Settings at the top. Settings (⌘,) has the Slack connection and who you are in Slack (see "Notifications by DM"), Open at login, notifications (Mac and Slack DM), the language (also used for the messages posted to Slack), MCP and Reset SockDock…, which removes the tokens, rules, run history and app settings and starts over from setup (the config file goes to the Trash; logs are kept). Open Config File opens the YAML in your editor for anything the form does not cover. A rule with a problem (e.g. a missing folder, or a rule above that always matches first) is shown in red and left out; the other rules keep running.
If a sockdock service install service is already running, the app shows its state and does not start its own gateway.
Anyone who can post in a channel can trigger its rules. To limit a rule to some people, list their Slack member IDs:
routes:
- name: deploy
channel: C0123456789
starts_with: deploy
allowed_users: [U0123ABCD, U0456EFGH]
handler: { type: command, cwd: ~/ops, command: ./deploy.sh }
users:read scope, which the bundled manifest includes. Without it, enter member IDs (in Slack, a profile's ⋮ menu → Copy member ID). users:read lets the app read the profiles of the workspace's members; SockDock uses it only for this list.Every handler receives this JSON (on stdin for command handlers):
{
"route": "echo",
"turn": 1,
"channel": "C0123456789",
"thread_ts": "1762920000.000100",
"permalink": "https://example.slack.com/archives/C0123456789/p1762920000000100",
"groups": { "text": "hello" },
"messages": [{ "ts": "1762920000.000100", "user": "U0123", "text": "echo hello" }]
}
groups holds the values taken from the first message (see the table above) and is passed on every turn of the thread.
Files attached to a post or a thread reply (screenshots, logs, PDFs, …) are handed over with it, so you can ask "look at this screenshot". A message with files gets a files list:
"messages": [{ "ts": "1762920000.000100", "user": "U0123", "text": "check this log",
"files": [
{ "name": "app.log", "mimetype": "text/plain", "size": 18233, "path": "/Users/me/Library/Caches/sockdock/files/812/app.log" },
{ "name": "build.zip", "mimetype": "application/zip", "size": 73400320, "skipped": "too_large" }
] }]
~/Library/Caches/sockdock/files/, outside the rule's folder) and deleted when it ends. Copy them if you need them later.skipped instead of path: too_large (over settings.max_file_mb, 20 MB by default), external (stored outside Slack, e.g. Google Drive), unsupported (Slack posts and canvases), no_scope (the Slack app lacks files:read) or failed. The run goes ahead with the text and the other files; SockDock posts nothing about it, so the handler decides whether to mention it.files:read Bot Token scope, which the bundled manifest includes. Without it, the rule's recent runs say the files were not passed on. files:read can read files in the channels and DMs the Slack app is in; SockDock reads only the files of posts that run a rule.handler:
type: command
cwd: ~/my-handlers
command: ["uv", "run", "python", "bot.py"] # no shell is involved
env_file: .env # optional, relative to cwd
timeout_sec: 300
SLACK_CHANNEL, SLACK_THREAD_TS, SOCKDOCK_ROUTE, SOCKDOCK_TURN, plus env_file/env. Slack tokens are never passed: the reply is whatever the handler prints.handler:
type: claude
cwd: ~/projects/my-project
prompt: prompts/slack.md # appended to the system prompt every turn
allowed_tools: ["Bash(make test *)", "WebSearch", "WebFetch"]
model: opus
timeout_sec: 600
claude -p --output-format json --permission-mode dontAsk with your allowed_tools; anything else that needs approval is denied. Read, Glob and Grep are available; MCP tools are off unless allow_mcp: true.Read(//…/**) is added to the allowed tools). Claude Code's Read shows images and PDFs too. Files from earlier turns are gone, but what the agent read stays in the conversation.--bare is not used, the project's .claude/settings.json, CLAUDE.md and hooks apply too — take them into account when deciding what a route may do.settings.claude_command to an absolute path: version-manager shims (mise, asdf, …) often fail when SockDock starts Claude Code. The menu bar app gives handlers your login shell's PATH; sockdock service install records the PATH it was run with.handler:
type: codex
cwd: ~/projects/my-project
instructions: List at most three likely causes. # or prompt: a file
allow_web: true # web search (off unless set)
allow_edit: false # edit files in cwd (off unless set)
model: gpt-6-luna # optional
timeout_sec: 600
codex exec --json and resumes the thread's conversation (codex exec resume) on every reply, like the claude handler. Sign in once with codex login (ChatGPT or an API key).cwd and only with allow_edit. In your home folder it can read only cwd, the turn's attached files and the folders on PATH; outside your home folder (system tools, Homebrew) it can read. allowed_tools is for Claude Code and is rejected here. If a rule should run only some commands, use Claude Code.~/.codex/config.toml (its MCP servers and plugins) is not loaded, and ChatGPT apps are off, unless allow_mcp: true. The project's AGENTS.md applies; its .codex/ settings apply only if you trusted that folder in Codex.settings.codex_command to an absolute path, as for Claude Code (the app fills it in when you save a Codex rule).A rule can react to DMs sent to the Slack app instead of a channel's posts, and a channel rule can require a mention of the app:
routes:
- name: todo
channel: dm # DMs to the Slack app, from anyone allowed below
starts_with: todo
allowed_users: [U0123ABCD]
handler: { type: claude, cwd: ~/notes }
- name: review
channel: C0123456789
starts_with: review
mention_only: true # only "@SockDock review …"; plain "review …" does nothing
handler: { type: claude, cwd: ~/projects/web-app }
allowed_users, anyone in the workspace can run a DM rule. In the app a new DM rule starts limited to you (see "Notifications by DM").im:history Bot Token scope and the message.im event. The bundled manifest has them; the rule page and Settings say when im:history is missing. im:history reads only DMs sent to the Slack app. Mentions need nothing new.A rule can start from an emoji reaction instead of the post's text. Whoever reads a post decides to run the rule, so the post needs no keyword and can be another app's, such as an alert:
routes:
- name: look-into
channel: C0123456789
reaction: mag # someone adds :mag: (🔍) to a post in the channel
handler:
type: claude
cwd: ~/projects/infra
instructions: Look into the alert in this post and reply with the likely cause.
- name: ticket
channel: C0123456789
reaction: ticket
reaction_removed: true # also runs when the reaction is gone from the post
handler: { type: command, cwd: ~/bin, command: ./ticket.sh }
mag, :mag: or a custom emoji's name). Skin tones are ignored, and another name of the same emoji works too (thumbsup is +1).allowed_users is about them, not about who wrote the post. Reactions from people a rule does not allow are ignored and not counted.instructions.reaction_removed: true the rule runs again, in the same thread, when nobody who may run it has the reaction on the post any more (with no allowed_users: when everyone has removed it), and again each time it is added back. The handler is told which happened: a command handler gets "reaction": {"name": "ticket", "user": "U0123ABCD", "action": "added"} (or "removed"; user is who added it, or who removed it last) with the reacted post in messages, and an agent sees the same as <slack_reaction … action="removed" /> before the post. A program that ignores action does the same thing twice.eyes (the 👀 SockDock adds while it works) as a rule's emoji is safe: the count goes to 2 while the rule runs and back to 1.reactions:read Bot Token scope and the reaction_added and reaction_removed events. The bundled manifest has them; the rule page says when the scope is missing. reactions:read lets the Slack app see reactions in the channels and DMs it is in; SockDock reads a post only when a rule runs for it (with the history scopes it already has).SockDock can also send its notices to you as Slack DMs, not only as Mac notifications. Register who you are in Slack once:
sockdock owner register). A six-digit code appears; it changes every 30 seconds. Copy copies it.Codes are accepted for 10 minutes after you start, and five wrong codes end it. If the wrong person got registered, press Remove and register again. Settings shows your name when the Slack app has users:read; without it, your member ID.
Settings → Notifications has a switch for the Mac and one for Slack DMs. By DM you get: Claude Code or Codex being signed out (once each, until it is signed in again) and rules changed through MCP. Turn on Also send failed runs to get a DM for every failed run too (there can be many). In the config these are settings.owner, settings.notify_dm and settings.notify_dm_failures.
SockDock checks GitHub for a newer release when it starts and once a day, and tells you once per version: a Mac notification and a Slack DM (each follows its switch in Settings → Notifications). While a newer version is out, the menu bar menu has Update to SockDock 0.2.0…: it shows the release notes in your language, then Update opens Terminal and runs brew upgrade --cask iwamatsu0430/tap/sockdock, which quits the app and opens it again when done. If a rule is running, the dialog says that updating stops it.
Turn the check off in Settings → General → Check for Updates (settings.check_updates: false). Only the request to GitHub leaves your Mac; tokens, settings and rules are not sent. Builds from source never check. Without the app, sockdock status shows a newer version.
settings:
max_concurrency: 3 # handlers running at the same time (restart to change)
thread_ttl_days: 30 # how long a thread stays bound to its route
max_file_mb: 20 # larger attached files are not handed over
ack_reaction: eyes
claude_command: claude # string or list; per-route `command` overrides it
codex_command: codex # the same, for codex handlers
language: auto # canned replies posted to Slack: auto, en, ja
path: ["/opt/homebrew/bin"]
secrets_file: secrets.env
messages: # override canned replies; placeholders {route} {timeout_sec}
timeout: "Timed out after {timeout_sec}s."
# timeout_reaction, interrupted_reaction: the same for a run a reaction started
owner: U0123ABCD # you, registered with a code (sockdock owner register)
notify_dm: true # notices by Slack DM to the owner
notify_dm_failures: false # also a DM for every failed run
check_updates: true # look for a newer SockDock once a day
${VAR} in a route is read from its env_file, then from the environment.sockdock check.sockdock reload (or SIGHUP, or saving in the app).| Command | |
|---|---|
sockdock run | Run the gateway in the foreground |
sockdock init / check / match | Create, validate and test the config (match dm "<text>" tries a DM; --mention a post that mentions the app) |
sockdock owner / owner register / owner clear | Show, register or remove who gets notices by DM |
sockdock status | Gateway status, and a newer version if one is out (exit code 1 if not running or not connected) |
sockdock reload | Re-read the config |
sockdock threads / turns / logs | Recent threads, handler runs and log lines |
sockdock pause <route> / resume <route> | Pause or resume a route |
sockdock auth set / status / delete | Manage tokens in the Keychain |
sockdock service install / uninstall / status | Background service for use without the menu bar app (launchd / systemd) |
sockdock manifest | Print the Slack app manifest |
sockdock mcp | Serve MCP over stdio (see "MCP" below) |
Files: data and the control socket are in ~/Library/Application Support/sockdock/, logs in ~/Library/Logs/sockdock/, attached files (only while a run uses them) in ~/Library/Caches/sockdock/files/.
While SockDock runs (the app or sockdock run), MCP clients such as Claude Code and Codex can control it — e.g. "add a rule that runs Claude Code in ~/app for posts in #ask".
The easiest way to register it is Settings → MCP in the app: pick your client and copy. To register by hand (<sockdock> is the CLI's absolute path; in the app, SockDock.app/Contents/MacOS/sockdock):
| Client | Register with |
|---|---|
| Claude Code | claude mcp add -s user sockdock -- <sockdock> mcp |
| Codex | codex mcp add sockdock -- <sockdock> mcp |
| Antigravity | agy mcp add sockdock <sockdock> mcp |
| VS Code | code --add-mcp '{"name":"sockdock","command":"<sockdock>","args":["mcp"]}' |
| Claude Desktop | in the app, Settings → MCP, choose Claude Desktop and press Add to Claude Desktop (it builds and opens the SockDock.mcpb extension) |
| Cursor / others | add "sockdock": {"command": "<sockdock>", "args": ["mcp"]} to mcpServers in its config file |
The tools show the status, rules, recent runs and channels, test which rule a post would hit, find people by name for who can run a rule, add, change, delete, reorder and turn rules on or off, and stop runs.
sockdock mcp refuses to start inside a run started by SockDock (an agent answering a Slack post).mise tasks # list tasks
mise run ci # vet, tests, frontend type check
mise run gateway # build and run the gateway
mise run gui # build and open SockDock.app
mise run gui-preview # the GUI in a browser at http://localhost:8080 (no tray)
mise run preview # the same against a fake Slack, with sample rules; real data untouched
mise run preview (scripts/preview.sh) keeps its data in ~/.cache/sockdock-preview. PREVIEW_RESET=1 starts over, PREVIEW_NO_IM=1 plays a Slack app without im:history (PREVIEW_NO_REACTIONS=1: without reactions:read), PREVIEW_NO_UPDATE=1 hides the fake newer version (v0.2.0) it otherwise offers, curl 'http://127.0.0.1:8766/dm?text=…' sends a DM from the fake person, and curl 'http://127.0.0.1:8766/react?name=mag' adds their reaction to a post (&removed=1 takes it off).
To keep development away from your real config, set SOCKDOCK_DATA_DIR and SOCKDOCK_CONFIG (see the [env] section of mise.toml).
Layout: cmd/sockdock (CLI), internal/ (gateway, handlers, control API, …), gui/ (Wails v3 + Svelte), examples/ (sample handlers), scripts/ (app bundling, also usable without mise).