Slack机器人集成工具

一个基于LLM的Slack机器人,具备MCP集成能力,支持多机器人管理和线程感知对话。

  • by adamkleingit
  • Python
  • 本地部署
  • 更新于
在 GitHub 查看 adamkleingit/slackagent

使用说明

Slackbot MCP

一个强大的Slack机器人,由LLM提供支持,具有MCP集成功能。

特性

  • Slack与事件API的集成
  • LLM供电响应
  • MCP工具集成
  • 多机器人管理
  • 线程感知对话
  • 通道特定配置

先决条件

  • Python 3.9+
  • 依赖管理诗
  • Docker和Docker Compose
  • PostgreSQL
  • 雷迪斯

开发设置

  1. 克隆存储库:
git clone <repository-url>
cd slackbot-mcp
  1. 安装依赖项:
poetry install
  1. 设置预提交挂钩:
poetry run pre-commit install
  1. 复制示例环境文件:
cp .env.example .env
  1. 启动开发环境:
docker-compose up -d
  1. 运行迁移:
poetry run alembic upgrade head
  1. 启动开发服务器:
poetry run uvicorn src.slackbot.api.main:app --reload

项目结构

slackbot-mcp/
├── src/
│   └── slackbot/
│       ├── api/        # FastAPI application and endpoints
│       ├── core/       # Core business logic
│       ├── models/     # SQLAlchemy models
│       ├── services/   # External service integrations
│       └── utils/      # Utility functions
├── tests/
│   ├── unit/          # Unit tests
│   └── integration/   # Integration tests
├── scripts/           # Utility scripts
├── alembic/           # Database migrations
└── docker/           # Docker configuration files

贡献

  1. 为您的功能创建新分支
  2. 进行更改
  3. 运行测试: poetry run pytest
  4. 提交拉取请求

许可证

[您选择的许可证]