agentic-slackbot

by agentika

304 downloads
Not rated
GitHub

About

A simple Slack bot that uses the OpenAI Agents SDK to interact with the Model Context Protocol (MCP) server.

Details

Author
agentika
Downloads
304
Categories
Other

- Slack bot using the OpenAI Agents SDK
- Interacts with an MCP server
- Supports OpenAI and Azure OpenAI providers
- Configurable via environment variables
- Docker deployment option available

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name agentic-slackbot
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install dependencies with uv sync, set environment variables (OPENAI_API_KEY, SLACK_BOT_TOKEN, SLACK_APP_TOKEN, etc.), and run the bot with uv run bot. A Docker build command is also provided.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "agentic-slackbot": {
            "agentic-slackbot": {
                "command": "uv",
                "args": [
                    "sync"
                ]
            }
        }
    }
}

McpServers

{
    "agentic-slackbot": {
        "command": "uv",
        "args": [
            "sync"
        ]
    }
}

agentic-slackbot

A simple Slack bot that uses the OpenAI Agents SDK to interact with the Model Context Protocol (MCP) server.

Install Dependencies

uv sync

Environment Variables

Create a .envrc file in the root directory of the project and add the following environment variables:

export OPENAI_API_KEY=""
export SLACK_BOT_TOKEN=""
export SLACK_APP_TOKEN=""
export OPENAI_MODEL="gpt-4o"
export HTTP_PROXY=""

If you are using Azure OpenAI, you can set the following environment variables instead:

AZURE_OPENAI_API_KEY=""
AZURE_OPENAI_ENDPOINT="https://<myopenai>.azure.com/"
OPENAI_MODEL="gpt-4o"
OPENAI_API_VERSION="2024-12-01-preview"

Running the Bot

uv run bot

Running the bot in docker

bash
docker build . -t telegram-bot

docker run -e SLACK_BOT_TOKEN="" \
-e SLACK_APP_TOKEN="" \
-e HTTP_PROXY="" \
-e OPENAI_PROXY_BASE_URL="" \
-e OPENAI_PROXY_API_KEY="" \
-e OPENAI_MODEL=gpt-4o \
-e FIRECRAWL_API_URL="" telegram-bot
```

Credit

This project is based on the sooperset/mcp-client-slackbot example.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.