slack-to-laptop
Provides tools for interacting with Slack's API, enabling AI agents to listen to @mentions, send messages, and manage streamed thread responses in Slack channels.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@slack-to-laptopupdate the status in my Slack thread"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
slack-to-laptop
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.
Related MCP server: Slack Note Capture MCP Server
Run
mkdir -p ~/.config/slack-trigger
cp config.example.json ~/.config/slack-trigger/config.json
# fill botToken + appToken
bun run server.tsallowedUserIds (Slack user IDs): when non-empty, only those users can trigger
jobs — anyone else gets a threaded "only can trigger me" reply. Empty =
anyone in the channel.
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 |
| correlation token — pass to every MCP tool call |
| channel id |
| mention text, bot mention stripped |
| unique per mention — use for the worktree name |
|
|
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/mcpMCP 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.shStreamable 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.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ArnaudRinquin/slack-to-laptop'
If you have feedback or need assistance with the MCP directory API, please join our Discord server