Slack To Laptop
БесплатноНе проверенEnables Claude Code to interact with Slack via MCP tools, allowing thinking steps, text streaming, status updates, and stream closure in Slack threads.
Описание
Enables Claude Code to interact with Slack via MCP tools, allowing thinking steps, text streaming, status updates, and stream closure in Slack threads.
README
One long-lived local process, three hats: Slack @mention listener (Socket Mode),
remote HTTP MCP server that Claude Code worktree jobs call to drive the native
Slack stream, and SwiftBar menubar status.
threadTs is the correlation key: the worktree job only ever knows threadTs;
this process maps it to the real Slack stream id in memory.
Slack app (one-time)
- https://api.slack.com/apps → Create New App → From scratch.
- Agents & AI Apps feature → toggle ON (grants
assistant:write, required for streams + setStatus). - Socket Mode → ON → create app-level token with scope
connections:write→ that'sappToken(xapp-…). - OAuth & Permissions → bot scopes:
app_mentions:read,chat:write,assistant:write. - Event Subscriptions → subscribe to bot event
app_mention. - Install to workspace →
botToken(xoxb-…). Invite the bot to your channel:/invite @YourApp.
Note: Slack docs say setStatus is migrating from assistant:write to chat:write — both scopes above cover either.
Run
mkdir -p ~/.config/slack-trigger
cp config.example.json ~/.config/slack-trigger/config.json
# fill botToken + appToken
bun run server.ts
allowedUserIds (Slack user IDs): when non-empty, only those users can trigger
jobs — anyone else gets a threaded "only
With jobCommand: null, mentioning the bot runs a smoke demo: instant thinking
checklist, two task cards ticking, "hi", stream closed. That validates the whole
Slack side before wiring any jobs.
Wire real jobs
Set jobCommand in the config — a zsh command run per mention with env:
| var | value |
|---|---|
SLACK_THREAD_TS |
correlation token — pass to every MCP tool call |
SLACK_CHANNEL |
channel id |
SLACK_PROMPT |
mention text, bot mention stripped |
SLACK_EVENT_TS |
unique per mention — use for the worktree name |
SLACK_MCP_URL |
http://127.0.0.1:8365/mcp |
Example: "jobCommand": "cd ~/projects/teetsh && g wtc \"slack-$SLACK_EVENT_TS\" --no-linear \"/go slack-ta $SLACK_PROMPT\""
Connect the worktree's Claude to the MCP (once, user scope):
claude mcp add --transport http --scope user slack-stream http://127.0.0.1:8365/mcp
MCP tools
All take threadTs (from SLACK_THREAD_TS):
thinking_step({threadTs, title, status, id?, details?})— task card;status ∈ pending|in_progress|complete|error; sameid/title updates the cardappend_text({threadTs, markdown})— stream proseset_status({threadTs, text})— grey "is …" line;""clearsfinish({threadTs, markdown?})— final block + close stream. Call exactly once, last.
A job that dies without finish gets swept: streams idle > staleStreamMinutes are stopped and cleared.
GET /healthz lists active streams.
SwiftBar
cp swiftbar/slack-to-laptop.sh ~/Library/Application\ Support/SwiftBar/Plugins/ # or your plugin dir
chmod +x .../slack-to-laptop.sh
Streamable plugin: SwiftBar owns the process lifecycle; menubar shows 🛰️ + active
stream count. Don't also run bun run server.ts manually (port collision).
Test from a terminal first: ./swiftbar/slack-to-laptop.sh — you should see
blocks separated by ~~~. Logs: ~/.cache/slack-to-laptop/server.log.
Установка Slack To Laptop
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/ArnaudRinquin/slack-to-laptopFAQ
Slack To Laptop MCP бесплатный?
Да, Slack To Laptop MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Slack To Laptop?
Нет, Slack To Laptop работает без API-ключей и переменных окружения.
Slack To Laptop — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Slack To Laptop в Claude Desktop, Claude Code или Cursor?
Открой Slack To Laptop на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Gmail
Read, send and search emails from Claude
автор: GoogleSlack
Send, search and summarize Slack messages
автор: SlackRunbear
No-code MCP client for team chat platforms, such as Slack, Microsoft Teams, and Discord.
Discord Server
A community discord server dedicated to MCP by [Frank Fiegel](https://github.com/punkpeye)
Compare Slack To Laptop with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории communication
