本项目可实现对网站性能的精确监控,同时追踪其对环境的影响,为您提供全面的网站数据洞察。
本项目为您提供了网站可用性和性能监控、二氧化碳排放与环境影响追踪等功能,您可通过以下步骤快速体验。
git clone https://github.com/yourusername/botnbot_mcp.git
cd botnbot_mcp
npm install
.env:API_URL=your_api_url
API_TOKEN=your_api_token
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 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"
GET /monitors:获取所有监控项列表。GET /monitor/:id/co2:查看特定监控的 CO2 指标。GET /monitor/:id/health:查询特定监控的健康状态。GET /monitor/:id/performance:获得特定监控的性能数据。本项目遵循 MIT 许可证,详情请参阅 LICENSE 文件。
欢迎任何贡献!请随意提交 Pull Request。