Add Dockerfiles for the 17 sample MCP servers

* add Dockerfiles and update README.md definitions
This commit is contained in:
Jim Clark 2024-12-10 11:56:46 -08:00
commit 368e3b23ca
No known key found for this signature in database
GPG key ID: 73305B2338AAA7BE

View file

@ -89,6 +89,8 @@ MCP Server for the Slack API, enabling Claude to interact with Slack workspaces.
Add the following to your `claude_desktop_config.json`:
#### npx
```json
{
"mcpServers": {
@ -107,6 +109,32 @@ Add the following to your `claude_desktop_config.json`:
}
```
#### docker
```json
{
"mcpServers": {
"slack": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e",
"SLACK_BOT_TOKEN=$SLACK_BOT_TOKEN",
"-e",
"SLACK_TEAM_ID=$SLACK_TEAM_ID",
"ai/mcp-slack"
],
"env": {
"SLACK_BOT_TOKEN": "xoxb-your-bot-token",
"SLACK_TEAM_ID": "T01234567"
}
}
}
}
```
### Troubleshooting
If you encounter permission errors, verify that:
@ -115,6 +143,14 @@ If you encounter permission errors, verify that:
3. The tokens and workspace ID are correctly copied to your configuration
4. The app has been added to the channels it needs to access
## Build
Docker build:
```bash
docker build -t ai/mcp-slack -f src/slack/Dockerfile .
```
## License
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.