Slackbot MCP
一个强大的Slack机器人,由LLM提供支持,具有MCP集成功能。
特性
- Slack与事件API的集成
- LLM供电响应
- MCP工具集成
- 多机器人管理
- 线程感知对话
- 通道特定配置
先决条件
- Python 3.9+
- 依赖管理诗
- Docker和Docker Compose
- PostgreSQL
- 雷迪斯
开发设置
- 克隆存储库:
git clone
cd slackbot-mcp- 安装依赖项:
poetry install- 设置预提交挂钩:
poetry run pre-commit install- 复制示例环境文件:
cp .env.example .env- 启动开发环境:
docker-compose up -d- 运行迁移:
poetry run alembic upgrade head- 启动开发服务器:
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贡献
- 为您的功能创建新分支
- 进行更改
- 运行测试:
poetry run pytest - 提交拉取请求
许可证
\[您选择的许可证\]
