# Vhealth MCP Setup Guide

Endpoint: https://vhealth-api.sumflowcloud.com/mcp (Streamable HTTP)
Auth: Bearer Personal Access Token (vhl_... with mcp scope)

## Tools

- `get_profile` (Free+) -> `GET /api/v1/profile`: Read calorie/macro targets, diet_type, allergies, and current weight
- `update_profile` (Free+) -> `PATCH /api/v1/profile`: Update weight goals, dietary constraints, or macro targets
- `log_meal_structured` (Free+) -> `POST /api/v1/meals`: Log itemized foods with agent-calculated macros (zero server LLM)
- `log_meal_nutrients` (Free+) -> `POST /api/v1/meals/nutrients`: Log exact nutrient totals directly from labels or agent estimates
- `update_meal_item` (Free+) -> `PATCH /api/v1/meals/{id}/items/{item_id}`: Adjust portion grams or macros on a previously logged item
- `list_meals` (Free+) -> `GET /api/v1/meals`: Inspect logged meals by date range, category, or search term
- `log_exercise` (Free+) -> `POST /api/v1/exercises`: Log workout activity, duration, and agent-estimated calories burned
- `list_exercises` (Free+) -> `GET /api/v1/exercises`: Inspect exercise outflow history
- `log_body_metric` (Free+) -> `POST /api/v1/body-metrics`: Record weight_kg, body_fat_pct, or waist_cm check-in
- `list_body_metrics` (Free+) -> `GET /api/v1/body-metrics`: Read longitudinal body weight trend
- `log_habit` (Free+) -> `POST /api/v1/habits`: Log hydration, sleep, steps, or custom habit check-ins
- `list_habits` (Free+) -> `GET /api/v1/habits`: Inspect habit history
- `get_daily_summary` (Free+) -> `GET /api/v1/meals/daily-summary`: Check today's intake, outflow, net calories, and remaining targets
- `get_dashboard` (Free+) -> `GET /api/v1/dashboard`: Read day/week/month time series so your agent can summarize trends & advise
