Skip to content

Commit a838a30

Browse files
Copilotalexec
andcommitted
Update README with MCP server configuration example
Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
1 parent 1a75235 commit a838a30

1 file changed

Lines changed: 16 additions & 15 deletions

File tree

README.md

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,22 @@ Usage:
5555

5656
The MCP (Model Context Protocol) server allows AI assistants and other tools to interact with Slack through a standardized JSON-RPC protocol over stdio. This enables seamless integration with AI coding assistants and other automation tools.
5757

58-
To use the MCP server:
59-
60-
```bash
61-
slack mcp-server
62-
```
63-
64-
The server implements the following MCP methods:
65-
- `initialize` - Initialize the MCP connection
66-
- `tools/list` - List available tools (returns `send_message` tool)
67-
- `tools/call` - Call a tool to send Slack messages
68-
69-
Example MCP client interaction:
58+
Example MCP server configuration:
7059

7160
```json
72-
{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2024-11-05","capabilities":{},"clientInfo":{"name":"client","version":"1.0"}}}
73-
{"jsonrpc":"2.0","id":2,"method":"tools/list"}
74-
{"jsonrpc":"2.0","id":3,"method":"tools/call","params":{"name":"send_message","arguments":{"identifier":"user@example.com","message":"Hello!"}}}
61+
{
62+
"mcpServers": {
63+
"slack": {
64+
"command": "slack",
65+
"args": ["mcp-server"],
66+
"env": {
67+
"SLACK_TOKEN": "xoxb-your-slack-token"
68+
}
69+
}
70+
}
71+
}
7572
```
73+
74+
The server exposes a `send_message` tool that accepts:
75+
- `identifier` - Slack channel ID (e.g., 'C1234567890') or user email address (e.g., 'user@example.com')
76+
- `message` - The message to send (supports Markdown formatting)

0 commit comments

Comments
 (0)