- Add vitals table (type, timestamp_utc, value JSON, source) with UNIQUE (type,timestamp_utc) for idempotent upserts. - POST /ingest: Bearer-protected HTTP endpoint accepting batched health samples (weight, blood_pressure, heart_rate, spo2, steps, sleep, ...). Weight samples are mirrored into weight_log so existing weight tools see them. - recent_vitals MCP tool: reads back ingested vitals, grouped by type with min/avg/max/units over a configurable window. - 6 new tests (31 integration + 2 unit total, all passing). - Verify live: /ingest POST -> recent_vitals round-trip over MCP protocol.
8 lines
62 B
Text
8 lines
62 B
Text
/target
|
|
*.db
|
|
*.db-journal
|
|
*.db-wal
|
|
*.db-shm
|
|
.env
|
|
# IDE
|
|
.idea/
|