BotnBot MCP
用于监控网站性能和环境影响的模型上下文协议(MCP)服务器实现。
特性
- 监控网站可用性和性能
- 追踪二氧化碳排放和环境影响
- 获取有关网站性能的详细指标
- 支持多个监测周期(24小时、7天、30天)
安装
本地安装
- 克隆存储库:
git clone https://github.com/yourusername/botnbot_mcp.git
cd botnbot_mcp- 安装依赖项:
npm install- 创建一个
.env使用您的配置文件:
API_URL=your_api_url
API_TOKEN=your_api_tokenDocker安装
- 构建Docker镜像:
docker build -t botnbot_mcp .- 运行容器:
docker run -d \
--name botnbot_mcp \
-e API_URL=your_api_url \
-e API_TOKEN=your_api_token \
botnbot_mcp用法
本地使用
运行MCP服务器:
npm start您还可以通过命令行参数提供配置:
npm start -- --url "your_api_url" --token "your_api_token"Docker使用
使用环境变量运行容器:
docker run -d \
--name botnbot_mcp \
-e API_URL=your_api_url \
-e API_TOKEN=your_api_token \
botnbot_mcp或者使用命令行参数:
docker run -d \
--name botnbot_mcp \
botnbot_mcp npm start -- --url "your_api_url" --token "your_api_token"API终点
GET /monitors-列出所有监视器GET /monitor/:id/co2-获取特定监测仪的二氧化碳指标GET /monitor/:id/health-获取特定监视器的运行状况GET /monitor/:id/performance-获取特定监控器的性能指标
许可证
此项目根据MIT许可证获得许可-请参阅 许可证 文件以获取详细信息。
贡献
欢迎投稿!请随时提交拉取请求。
