Labsco
mkusaka logo

Slack Notify

from mkusaka

Send notifications to Slack using OAuth bot tokens.

πŸ”₯πŸ”₯πŸ”₯βœ“ VerifiedAccount requiredNeeds API keys

@mkusaka/mcp-server-slack-notify

MCP server for sending notifications to Slack using OAuth bot tokens.

Features

  • Send formatted messages to Slack channels with title and description
  • Mention specific users automatically with the mention parameter
  • Support for Slack's markdown formatting
  • Clean message formatting with optional header
  • TypeScript support with full type safety

Available Tools

send_slack_notification

Sends a notification to a Slack channel.

Parameters:

  • channel (optional): The Slack channel (e.g., #general or C1234567890)
  • title (optional): The notification title (if provided, displays with header formatting)
  • description (required): The notification body (supports Slack markdown)
  • mention (optional): User ID(s) to mention. Can be a single user ID (e.g., U1234567890) or multiple IDs separated by commas (e.g., U1234567890,U0987654321)

Formatting Guide

The description field supports Slack's mrkdwn formatting:

  • Mentions:
    • User: <@U1234567890> (use the user's ID)
    • Channel: <#C1234567890> (use the channel's ID)
    • @here: <!here>
    • @channel: <!channel>
    • User groups: <!subteam^S1234567890> (use the subteam's ID)
    • Note: When using the mention parameter or SLACK_MENTIONS environment variable, user mentions are automatically added at the beginning of the message
  • Text formatting:
    • Bold: *bold text*
    • Italic: _italic text_
    • Strikethrough: ~strikethrough text~
    • Code: `inline code`
    • Code block: ```code block```
    • Quote: > quoted text
    • Link: <https://example.com|Link text>

Development

# Install dependencies
pnpm install

# Run tests
pnpm test

# Build
pnpm build

# Run in development mode
pnpm start

# Debug with MCP Inspector
pnpm debug

Testing

The project includes comprehensive tests using Vitest with mocked Slack API calls.

# Run tests
pnpm test

# Run tests in watch mode
pnpm test:watch

License

MIT