使用说明
WHOOP MCP服务器
一个模型上下文协议(MCP)服务器,允许AI代理安全地查询WHOOP睡眠、恢复、疲劳和锻炼数据。
快速开始
# Install dependencies
uv sync
# Fetch and patch the WHOOP OpenAPI spec (adds missing info.version)
uv run whoop-fetch-openapi
# Run tests
uv run pytest
上游WHOOP OpenAPI规范 https://api.prod.whoop.com/developer/doc/openapi.json 缺少必需的 info.version 字段,这会导致Postman中的导入失败和Swagger Editor中的验证错误。这 whoop-fetch-openapi CLI获取规范、版本中的补丁,并写入更正后的 openapi.json.
