{"_id":"@dudztroyer/slack-mcp-server","_rev":"2-e0f9b2ddbeeb064e657cfd912f0380dc","name":"@dudztroyer/slack-mcp-server","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.4":{"name":"@dudztroyer/slack-mcp-server","version":"0.0.4","author":{"url":"eduardo_roeder@outlook.com","name":"Eduardo Roeder"},"license":"MIT","_id":"@dudztroyer/slack-mcp-server@0.0.4","maintainers":[{"name":"dudztroyer","email":"eduardo_roeder@outlook.com"}],"homepage":"https://github.com/dudztroyer/slack-mcp-server#readme","bugs":{"url":"https://github.com/dudztroyer/slack-mcp-server/issues"},"bin":{"slack-mcp":"dist/index.js"},"dist":{"shasum":"03e573437044cd90dc47d76a6d5ed2c7c6415875","tarball":"https://registry.npmjs.org/@dudztroyer/slack-mcp-server/-/slack-mcp-server-0.0.4.tgz","fileCount":5,"integrity":"sha512-Y3d0pjwShSgTyzsVrU+dwxsT+Bln+5KVXShd7OxMhQXgEWnTfNZ8ecLxZGVZtYhVE+WzDCPDqQHsnd02OxKwQw==","signatures":[{"sig":"MEQCIBmcAp9XrAwZl8Ibc2eXf9v2kvioo6UtNa/eCBsALd/7AiAMJXs0xG1oVGQpmqQofMxs8leRqE4esQriK/dg6Wngdw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":54664},"type":"module","gitHead":"c0d55492b3db823c31f91e5e3490ed75bebd23c1","scripts":{"test":"node --experimental-vm-modules node_modules/.bin/jest","build":"tsc && shx chmod +x dist/*.js","watch":"tsc --watch","test:watch":"node --experimental-vm-modules node_modules/.bin/jest --watch","test:coverage":"node --experimental-vm-modules node_modules/.bin/jest --coverage"},"_npmUser":{"name":"dudztroyer","email":"eduardo_roeder@outlook.com"},"repository":{"url":"git+https://github.com/dudztroyer/slack-mcp-server.git","type":"git"},"_npmVersion":"10.8.2","description":"MCP server for interacting with Slack","directories":{},"_nodeVersion":"20.19.4","dependencies":{"zod":"^3.22.4","express":"^5.1.0","@modelcontextprotocol/sdk":"1.15.1"},"_hasShrinkwrap":false,"devDependencies":{"shx":"^0.4.0","jest":"^30.0.4","ts-jest":"^29.4.0","typescript":"^5.8.3","@types/jest":"^30.0.0","@types/node":"^24","@jest/globals":"^30.0.4","@types/express":"^4.17.21"},"_npmOperationalInternal":{"tmp":"tmp/slack-mcp-server_0.0.4_1756968410258_0.5615520063196198","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@dudztroyer/slack-mcp-server","version":"0.0.5","description":"MCP server for interacting with Slack","license":"MIT","author":{"name":"Eduardo Roeder","url":"eduardo_roeder@outlook.com"},"repository":{"type":"git","url":"git+https://github.com/dudztroyer/slack-mcp-server.git"},"bugs":{"url":"https://github.com/dudztroyer/slack-mcp-server/issues"},"type":"module","bin":{"slack-mcp":"dist/index.js"},"scripts":{"build":"tsc && shx chmod +x dist/*.js","watch":"tsc --watch","test":"node --experimental-vm-modules node_modules/.bin/jest","test:watch":"node --experimental-vm-modules node_modules/.bin/jest --watch","test:coverage":"node --experimental-vm-modules node_modules/.bin/jest --coverage"},"dependencies":{"@modelcontextprotocol/sdk":"1.15.1","express":"^5.1.0","zod":"^3.22.4"},"devDependencies":{"@jest/globals":"^30.0.4","@types/express":"^4.17.21","@types/jest":"^30.0.0","@types/node":"^24","jest":"^30.0.4","shx":"^0.4.0","ts-jest":"^29.4.0","typescript":"^5.8.3"},"_id":"@dudztroyer/slack-mcp-server@0.0.5","gitHead":"dce6e6dab05f92246d54409b2e560ad758328aa8","homepage":"https://github.com/dudztroyer/slack-mcp-server#readme","_nodeVersion":"20.19.4","_npmVersion":"10.8.2","dist":{"integrity":"sha512-wVV/LOvsyB9TSgQ4nEGiiHdJMs2g8r7ADN0XPj9iH4aoQ8ZA26AFrDY+pFSn0OJjagsLFODulttY5Co1itlwQg==","shasum":"14f79b5b405296a5300dd61efea2ff5c187d76fc","tarball":"https://registry.npmjs.org/@dudztroyer/slack-mcp-server/-/slack-mcp-server-0.0.5.tgz","fileCount":5,"unpackedSize":55525,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDYLWeR5H/Sv5Avf8uK/aQkpt3F/FGCIFskcFxFAy/InwIhAJlObxUhidOqJK5PszaVsEetEzx6mzzBBeABjngJEDw3"}]},"_npmUser":{"name":"dudztroyer","email":"eduardo_roeder@outlook.com"},"directories":{},"maintainers":[{"name":"dudztroyer","email":"eduardo_roeder@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/slack-mcp-server_0.0.5_1756969060409_0.7706970768940296"},"_hasShrinkwrap":false}},"time":{"created":"2025-09-04T06:46:50.159Z","modified":"2025-09-04T06:57:40.764Z","0.0.4":"2025-09-04T06:46:50.423Z","0.0.5":"2025-09-04T06:57:40.590Z"},"bugs":{"url":"https://github.com/dudztroyer/slack-mcp-server/issues"},"author":{"name":"Eduardo Roeder","url":"eduardo_roeder@outlook.com"},"license":"MIT","homepage":"https://github.com/dudztroyer/slack-mcp-server#readme","repository":{"type":"git","url":"git+https://github.com/dudztroyer/slack-mcp-server.git"},"description":"MCP server for interacting with Slack","maintainers":[{"name":"dudztroyer","email":"eduardo_roeder@outlook.com"}],"readme":"# slack-mcp-server\n\n[![Build Status](https://github.com/dudztroyer/slack-mcp-server/workflows/Test/badge.svg)](https://github.com/dudztroyer/slack-mcp-server/actions)\n[![npm version](https://badge.fury.io/js/%40dudztroyer%2Fslack-mcp-server.svg)](https://www.npmjs.com/package/@dudztroyer/slack-mcp-server)\n\n## Disclaimer\n\nThis project includes [code](https://github.com/modelcontextprotocol/servers-archived/tree/main/src/slack) originally developed by Anthropic and released under the MIT License. Substantial modifications and new functionality have been added by dudztroyer, and are licensed under the Apache License, Version 2.0.\n\n## Overview\n\nA Model Context Protocol (MCP) server for interacting with Slack workspaces. This server provides tools to list channels, post messages (with optional markdown formatting), reply to threads (with optional markdown formatting), add reactions, get channel history, get thread replies, and manage users.\n\n## Available Tools\n\n1. **slack_list_channels**\n\n   - List public or pre-defined channels in the workspace\n   - Optional inputs:\n     - `limit` (number, default: 100, max: 200): Maximum number of channels to return\n     - `cursor` (string): Pagination cursor for next page\n   - Returns: List of channels with their IDs and information\n\n2. **slack_post_message**\n\n   - Post a new message to a Slack channel\n   - Required inputs:\n     - `channel_id` (string): The ID of the channel to post to\n     - `text` (string): The message text to post\n   - Returns: Message posting confirmation and timestamp\n\n3. **slack_reply_to_thread**\n\n   - Reply to a specific message thread\n   - Required inputs:\n     - `channel_id` (string): The channel containing the thread\n     - `thread_ts` (string): Timestamp of the parent message\n     - `text` (string): The reply text\n   - Returns: Reply confirmation and timestamp\n\n4. **slack_add_reaction**\n\n   - Add an emoji reaction to a message\n   - Required inputs:\n     - `channel_id` (string): The channel containing the message\n     - `timestamp` (string): Message timestamp to react to\n     - `reaction` (string): Emoji name without colons\n   - Returns: Reaction confirmation\n\n5. **slack_get_channel_history**\n\n   - Get recent messages from a channel\n   - Required inputs:\n     - `channel_id` (string): The channel ID\n   - Optional inputs:\n     - `limit` (number, default: 10): Number of messages to retrieve\n   - Returns: List of messages with their content and metadata\n\n6. **slack_get_thread_replies**\n\n   - Get all replies in a message thread\n   - Required inputs:\n     - `channel_id` (string): The channel containing the thread\n     - `thread_ts` (string): Timestamp of the parent message\n   - Returns: List of replies with their content and metadata\n\n7. **slack_get_users**\n\n   - Get list of workspace users with basic profile information\n   - Optional inputs:\n     - `cursor` (string): Pagination cursor for next page\n     - `limit` (number, default: 100, max: 200): Maximum users to return\n   - Returns: List of users with their basic profiles\n\n8. **slack_get_user_profile**\n\n   - Get detailed profile information for a specific user\n   - Required inputs:\n     - `user_id` (string): The user's ID\n   - Returns: Detailed user profile information\n\n9. **slack_post_markdown_message**\n\n   - Post a new message to a Slack channel with markdown formatting enabled\n   - Required inputs:\n     - `channel_id` (string): The ID of the channel or user to post to\n     - `text` (string): The message text with markdown formatting (mrkdwn). Supports _bold_, _italic_, `code`, `code blocks`, >quotes, <@user_id> mentions, <#channel_id> channel links, and <url|link text> links\n   - Returns: Message posting confirmation and timestamp\n\n10. **slack_reply_to_thread_markdown**\n    - Reply to a specific message thread in Slack with markdown formatting enabled\n    - Required inputs:\n      - `channel_id` (string): The ID of the channel containing the thread\n      - `thread_ts` (string): The timestamp of the parent message in the format '1234567890.123456'. Timestamps in the format without the period can be converted by adding the period such that 6 numbers come after it\n      - `text` (string): The reply text with markdown formatting (mrkdwn). Supports _bold_, _italic_, `code`, `code blocks`, >quotes, <@user_id> mentions, <#channel_id> channel links, and <url|link text> links\n    - Returns: Reply confirmation and timestamp\n\n## Slack Bot Setup\n\nTo use this MCP server, you need to create a Slack app and configure it with the necessary permissions:\n\n### 1. Create a Slack App\n\n- Visit the [Slack Apps page](https://api.slack.com/apps)\n- Click \"Create New App\"\n- Choose \"From scratch\"\n- Name your app and select your workspace\n\n### 2. Configure Bot Token Scopes\n\nNavigate to \"OAuth & Permissions\" and add these scopes:\n\n- `channels:history` - View messages and other content in public channels\n- `channels:read` - View basic channel information\n- `chat:write` - Send messages as the app\n- `reactions:write` - Add emoji reactions to messages\n- `users:read` - View users and their basic information\n- `users.profile:read` - View detailed profiles about users\n\n### 3. Install App to Workspace\n\n- Click \"Install to Workspace\" and authorize the app\n- Save the \"Bot User OAuth Token\" that starts with `xoxb-`\n\n### 4. Get Your Team ID\n\nGet your Team ID (starts with a `T`) by following [this guidance](https://slack.com/help/articles/221769328-Locate-your-Slack-URL-or-ID#find-your-workspace-or-org-id)\n\n### 5. Add Bot to Channels (Optional)\n\nFor the bot to access private channels or to post messages, you may need to invite it to specific channels using `/invite @your-bot-name`\n\n## Features\n\n- **Multiple Transport Support**: Supports both stdio and Streamable HTTP transports\n- **Modern MCP SDK**: Updated to use the latest MCP SDK (v1.13.2) with modern APIs\n- **Comprehensive Slack Integration**: Full set of Slack operations including:\n  - List channels (with predefined channel support)\n  - Post messages (plain text and markdown formatting)\n  - Reply to threads (plain text and markdown formatting)\n  - Add reactions\n  - Get channel history\n  - Get thread replies\n  - List users\n  - Get user profiles\n\n## Installation\n\n### Local Development\n\n```bash\nnpm install\nnpm run build\n```\n\n### Global Installation (NPM)\n\n```bash\nnpm install -g dudztroyer/slack-mcp-server\n```\n\n## Configuration\n\nSet the following environment variables:\n\n```bash\nexport SLACK_BOT_TOKEN=\"xoxb-your-bot-token\"\nexport SLACK_TEAM_ID=\"your-team-id\"\nexport SLACK_CHANNEL_IDS=\"channel1,channel2,channel3\"  # Optional: predefined channels\nexport AUTH_TOKEN=\"your-auth-token\"  # Optional: Bearer token for HTTP authorization (Streamable HTTP transport only)\n```\n\n## Usage\n\n### Command Line Options\n\n```bash\nslack-mcp [options]\n\nOptions:\n  --transport <type>     Transport type: 'stdio' or 'http' (default: stdio)\n  --port <number>        Port for HTTP server when using Streamable HTTP transport (default: 3000)\n  --token <token>        Bearer token for HTTP authorization (optional, can also use AUTH_TOKEN env var)\n  --help, -h             Show this help message\n```\n\n### Local Usage Examples\n\n#### Using the slack-mcp command (after global installation)\n\n```bash\n# Use stdio transport (default)\nslack-mcp\n\n# Use stdio transport explicitly\nslack-mcp --transport stdio\n\n# Use Streamable HTTP transport on default port 3000\nslack-mcp --transport http\n\n# Use Streamable HTTP transport on custom port\nslack-mcp --transport http --port 8080\n\n# Use Streamable HTTP transport with custom auth token\nslack-mcp --transport http --token mytoken\n\n# Use Streamable HTTP transport with auth token from environment variable\nAUTH_TOKEN=mytoken slack-mcp --transport http\n```\n\n#### Using node directly (for development)\n\n```bash\n# Use stdio transport (default)\nnode dist/index.js\n\n# Use stdio transport explicitly\nnode dist/index.js --transport stdio\n\n# Use Streamable HTTP transport on default port 3000\nnode dist/index.js --transport http\n\n# Use Streamable HTTP transport on custom port\nnode dist/index.js --transport http --port 8080\n\n# Use Streamable HTTP transport with custom auth token\nnode dist/index.js --transport http --token mytoken\n\n# Use Streamable HTTP transport with auth token from environment variable\nAUTH_TOKEN=mytoken node dist/index.js --transport http\n```\n\n## Transport Types\n\n### Stdio Transport\n\n- **Use case**: Command-line tools and direct integrations\n- **Communication**: Standard input/output streams\n- **Default**: Yes\n\n### Streamable HTTP Transport\n\n- **Use case**: Remote servers and web-based integrations\n- **Communication**: HTTP POST requests with optional Server-Sent Events streams\n- **Features**:\n  - Session management\n  - Bidirectional communication\n  - Resumable connections\n  - RESTful API endpoints\n  - Bearer token authentication\n\n## Authentication (Streamable HTTP Transport Only)\n\nWhen using Streamable HTTP transport, the server supports Bearer token authentication:\n\n1. **Command Line**: Use `--token <token>` to specify a custom token\n2. **Environment Variable**: Set `AUTH_TOKEN=<token>` as a fallback\n3. **Auto-generated**: If neither is provided, a random token is generated\n\nThe command line option takes precedence over the environment variable. Include the token in HTTP requests using the `Authorization: Bearer <token>` header.\n\n## Troubleshooting\n\nIf you encounter permission errors, verify that:\n\n1. All required scopes are added to your Slack app\n2. The app is properly installed to your workspace\n3. The tokens and workspace ID are correctly copied to your configuration\n4. The app has been added to the channels it needs to access\n\n## Development\n\n### Build\n\n```bash\nnpm run build\n```\n\n### Watch Mode\n\n```bash\nnpm run watch\n```\n\n### Creating Releases\n\nThis project includes an automated release workflow that can be triggered manually via GitHub Actions:\n\n#### How to Create a Release\n\n1. **Navigate to GitHub Actions**: Go to the \"Actions\" tab in your GitHub repository\n2. **Select Release Workflow**: Click on \"Create Release\" workflow\n3. **Run Workflow**: Click \"Run workflow\" button\n4. **Configure Release**:\n   - **Version bump type**: Choose from `patch`, `minor`, or `major`\n\n#### What the Release Workflow Does\n\nThe automated release process leverages [changelogen](https://github.com/unjs/changelogen) to handle most of the release process:\n\n1. **Quality Checks**: Ensures all tests pass and code builds successfully\n2. **Changelogen Release**: Uses `changelogen --release --push` and `changelogen gh release` to:\n   - Generate beautiful changelog from Conventional Commits\n   - Bump version in `package.json` according to your selection\n   - Create and push git tag\n   - Commit and push all changes\n   - Create GitHub release with changelog as release notes\n3. **Distribution & Assets**: Adds distribution archive to the GitHub release\n4. **Trigger Downstream**: Automatically triggers:\n   - Package publishing to GitHub Package Registry (`publish.yml`)\n\n#### Version Bump Types\n\n- **Patch** (`1.0.0` → `1.0.1`): Bug fixes and minor changes\n- **Minor** (`1.0.0` → `1.1.0`): New features that don't break existing functionality\n- **Major** (`1.0.0` → `2.0.0`): Breaking changes\n\n#### Conventional Commits for Better Changelogs\n\nThe release workflow uses [changelogen](https://github.com/unjs/changelogen) which works best with [Conventional Commits](https://www.conventionalcommits.org/). To get the most beautiful and informative changelogs, format your commit messages like:\n\n- `feat: add new slack reaction tool` - New features\n- `fix: resolve channel history pagination issue` - Bug fixes\n- `docs: update README with Docker instructions` - Documentation changes\n- `chore: update dependencies` - Maintenance tasks\n- `refactor: simplify error handling logic` - Code refactoring\n- `perf: optimize message processing` - Performance improvements\n\nThis will result in properly categorized and formatted changelog entries.\n\n## API Endpoints (Streamable HTTP Transport)\n\nWhen using Streamable HTTP transport, the server exposes the following endpoints:\n\n- `POST /mcp` - Client-to-server communication\n- `GET /mcp` - Server-to-client notifications (Server-Sent Events streams)\n- `DELETE /mcp` - Session termination\n\n## Changes from Previous Version\n\n- **Updated MCP SDK**: Upgraded from v1.0.1 to v1.13.2\n- **Modern API**: Migrated from low-level Server class to high-level McpServer class\n- **Zod Validation**: Added proper schema validation using Zod\n- **Transport Flexibility**: Added support for Streamable HTTP transport\n- **Command Line Interface**: Added CLI arguments for transport selection\n- **Session Management**: Implemented proper session handling for HTTP transport\n- **Better Error Handling**: Improved error handling and logging\n","readmeFilename":"README.md"}