{"id":47935352,"url":"https://github.com/jeremylongshore/claude-code-slack-channel","last_synced_at":"2026-04-04T07:40:46.744Z","repository":{"id":345816968,"uuid":"1187510688","full_name":"jeremylongshore/claude-code-slack-channel","owner":"jeremylongshore","description":"Slack channel for Claude Code — two-way chat via Socket Mode + MCP. First claude/channel implementation for Slack.","archived":false,"fork":false,"pushed_at":"2026-03-20T23:42:16.000Z","size":86,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-21T11:18:45.443Z","etag":null,"topics":["anthropic","channel","chatops","claude","claude-code","mcp","slack","socket-mode"],"latest_commit_sha":null,"homepage":"https://jeremylongshore.github.io/claude-code-slack-channel/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeremylongshore.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-20T20:11:14.000Z","updated_at":"2026-03-21T01:46:24.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jeremylongshore/claude-code-slack-channel","commit_stats":null,"previous_names":["jeremylongshore/claude-code-slack-channel"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jeremylongshore/claude-code-slack-channel","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremylongshore%2Fclaude-code-slack-channel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremylongshore%2Fclaude-code-slack-channel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremylongshore%2Fclaude-code-slack-channel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremylongshore%2Fclaude-code-slack-channel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeremylongshore","download_url":"https://codeload.github.com/jeremylongshore/claude-code-slack-channel/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeremylongshore%2Fclaude-code-slack-channel/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31392186,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T04:26:24.776Z","status":"ssl_error","status_checked_at":"2026-04-04T04:23:34.147Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["anthropic","channel","chatops","claude","claude-code","mcp","slack","socket-mode"],"created_at":"2026-04-04T07:40:46.646Z","updated_at":"2026-04-04T07:40:46.720Z","avatar_url":"https://github.com/jeremylongshore.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Slack Channel for the Claude Code\n\nTwo-way Slack ↔ Claude Code bridge. Chat with Claude from Slack DMs and channels, just like you'd chat in the terminal.\n\n[![CI](https://github.com/jeremylongshore/claude-code-slack-channel/actions/workflows/ci.yml/badge.svg)](https://github.com/jeremylongshore/claude-code-slack-channel/actions/workflows/ci.yml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)\n\n\u003e **Research Preview** — Channels require Claude Code v2.1.80+ and `claude.ai` login.\n\n## How It Works\n\n```\nSlack workspace (cloud)\n    ↕ WebSocket (Socket Mode — outbound only, no public URL)\nserver.ts (local MCP server, spawned by Claude Code)\n    ↕ stdio (MCP transport)\nClaude Code session\n```\n\nSocket Mode means **no public URL needed** — works behind firewalls, NAT, anywhere.\n\n## Quick Start\n\n### 1. Create a Slack App\n\n1. Go to [api.slack.com/apps](https://api.slack.com/apps) → **Create New App** → From scratch\n2. **Socket Mode**: Settings → Socket Mode → Enable → Generate App-Level Token (`xapp-...`) with `connections:write` scope\n3. **Event Subscriptions**: Enable → Subscribe to bot events:\n   - `message.im` — DMs\n   - `message.channels` — public channels\n   - `message.groups` — private channels\n   - `app_mention` — @ mentions\n4. **Bot Token Scopes** (OAuth \u0026 Permissions):\n   - `chat:write` — send messages\n   - `channels:history` — read public channels\n   - `groups:history` — read private channels\n   - `im:history` — read DMs\n   - `reactions:write` — add reactions\n   - `files:read` — download shared files\n   - `files:write` — upload files\n   - `users:read` — resolve display names\n5. **Install to Workspace** → Copy Bot Token (`xoxb-...`)\n\n### 2. Configure Tokens\n\n```bash\n/slack-channel:configure xoxb-your-bot-token xapp-your-app-token\n```\n\n### 3. Run\n\nPick your runtime:\n\n#### Option A: Bun (recommended)\n\n```bash\ncd slack \u0026\u0026 bun install\n# Current (claude-code-plugins marketplace):\nclaude --channels plugin:slack-channel@claude-code-plugins\n# Future (after upstream approval):\n# claude --channels plugin:slack-channel@claude-plugins-official\n```\n\n#### Option B: Node.js / npx\n\n```bash\ncd slack \u0026\u0026 npm install\n# In .mcp.json, change command to: \"npx\", args: [\"tsx\", \"server.ts\"]\nclaude --channels plugin:slack-channel@claude-code-plugins\n```\n\n#### Option C: Docker\n\n```bash\ncd slack \u0026\u0026 docker build -t claude-slack-channel .\n# In .mcp.json, change command to: \"docker\", args: [\"run\", \"--rm\", \"-i\", \"-v\", \"~/.claude/channels/slack:/state\", \"claude-slack-channel\"]\nclaude --channels plugin:slack-channel@claude-code-plugins\n```\n\n### 4. Pair Your Account\n\n1. DM the bot in Slack — you'll get a 6-character pairing code\n2. In your terminal: `/slack-channel:access pair \u003ccode\u003e`\n3. You're connected. Chat away.\n\n## Access Control\n\nSee [ACCESS.md](ACCESS.md) for the full schema.\n\n```bash\n/slack-channel:access policy allowlist       # Only pre-approved users\n/slack-channel:access add U12345678          # Add a user\n/slack-channel:access remove U12345678       # Remove a user\n/slack-channel:access channel C12345678      # Opt in a channel\n/slack-channel:access channel C12345678 --mention  # Require @mention\n/slack-channel:access status                 # Show current config\n```\n\n## Security\n\n- **Sender gating**: Every inbound message hits a gate. Ungated messages are silently dropped before reaching Claude.\n- **Outbound gate**: Replies only work to channels that passed the inbound gate.\n- **File exfiltration guard**: Cannot send `.env`, `access.json`, or other state files through the reply tool.\n- **Prompt injection defense**: System instructions explicitly tell Claude to refuse pairing/access requests from Slack messages.\n- **Bot filtering**: All `bot_id` messages are dropped (prevents bot-to-bot loops).\n- **Link unfurling disabled**: All outbound messages set `unfurl_links: false, unfurl_media: false`.\n- **Token security**: `.env` is `chmod 0o600`, never logged, never in tool results.\n- **Static mode**: Set `SLACK_ACCESS_MODE=static` to freeze access at boot (no runtime mutation).\n\n## Development\n\n```bash\n# Dev mode (bypasses plugin allowlist):\nclaude --dangerously-load-development-channels server:slack\n```\n\n## One-Pager \u0026 System Analysis\n\n[Full project one-pager and operator-grade system analysis](https://gist.github.com/jeremylongshore/2bef9c630d4269d2858a666ae75fca53)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremylongshore%2Fclaude-code-slack-channel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeremylongshore%2Fclaude-code-slack-channel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeremylongshore%2Fclaude-code-slack-channel/lists"}