babylitics-mcp 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -19
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -48,19 +48,16 @@ Add to your Cursor MCP settings:
|
|
|
48
48
|
|
|
49
49
|
## Authorization
|
|
50
50
|
|
|
51
|
-
On first
|
|
51
|
+
On first use, the agent will ask you to authorize via your browser:
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
[babylitics-mcp] Waiting for authorization...
|
|
60
|
-
[babylitics-mcp] Authorized successfully!
|
|
61
|
-
```
|
|
53
|
+
> 🔐 Authentication required to access Babylitics.
|
|
54
|
+
>
|
|
55
|
+
> Please visit: https://api.babylitics.io/oauth/device
|
|
56
|
+
> Enter this code: **ABCD-1234**
|
|
57
|
+
>
|
|
58
|
+
> Once you've approved access, try your request again.
|
|
62
59
|
|
|
63
|
-
Tokens are cached locally at `~/.babylitics/tokens.json` and refresh automatically.
|
|
60
|
+
Tokens are cached locally at `~/.babylitics/tokens.json` and refresh automatically. You only need to re-authorize when the refresh token expires (after 30 days).
|
|
64
61
|
|
|
65
62
|
## Available Tools
|
|
66
63
|
|
|
@@ -69,15 +66,23 @@ Tokens are cached locally at `~/.babylitics/tokens.json` and refresh automatical
|
|
|
69
66
|
| Tool | Description |
|
|
70
67
|
|------|-------------|
|
|
71
68
|
| `list_babies` | List all tracked babies |
|
|
72
|
-
| `get_dashboard` |
|
|
73
|
-
| `get_feedings` | Feeding records with optional date filter |
|
|
74
|
-
| `get_feeding_stats` | Feeding statistics and averages |
|
|
75
|
-
| `
|
|
76
|
-
| `
|
|
77
|
-
| `
|
|
69
|
+
| `get_dashboard` | Dashboard summary for a baby (defaults to today, pass `date` for past days) |
|
|
70
|
+
| `get_feedings` | Feeding records with optional `date` or `start_date`/`end_date` filter |
|
|
71
|
+
| `get_feeding_stats` | Feeding statistics and averages with optional date filter |
|
|
72
|
+
| `get_feeding_vs_guideline` | Compare feeding intake against age-appropriate guidelines |
|
|
73
|
+
| `get_sleeps` | Sleep records with optional date range filter |
|
|
74
|
+
| `get_sleep_stats` | Sleep statistics with optional `date` or `start_date`/`end_date` filter |
|
|
75
|
+
| `get_sleep_vs_guideline` | Compare sleep against age-appropriate guidelines |
|
|
76
|
+
| `get_weights` | Weight records with optional date range filter |
|
|
77
|
+
| `get_weight_stats` | Weight statistics (current, birth, gain, growth velocity) |
|
|
78
78
|
| `get_weight_vs_guideline` | Weight compared to WHO growth standards |
|
|
79
|
-
| `get_lengths` | Length/height records with optional date filter |
|
|
80
|
-
| `
|
|
79
|
+
| `get_lengths` | Length/height records with optional date range filter |
|
|
80
|
+
| `get_length_stats` | Length statistics (current, birth, growth, velocity) |
|
|
81
|
+
| `get_length_vs_guideline` | Length compared to WHO growth standards |
|
|
82
|
+
| `get_temperatures` | Temperature records with optional date range filter |
|
|
83
|
+
| `get_temperature_stats` | Temperature statistics (current, average, highest, fever status) |
|
|
84
|
+
| `get_temperature_guidelines` | AAP fever/hypothermia thresholds by age range |
|
|
85
|
+
| `get_diapers` | Diaper change records with optional `date` or `start_date`/`end_date` filter |
|
|
81
86
|
|
|
82
87
|
### Write Tools (requires `read:write` scope)
|
|
83
88
|
|
|
@@ -88,6 +93,7 @@ Tokens are cached locally at `~/.babylitics/tokens.json` and refresh automatical
|
|
|
88
93
|
| `log_weight` | Log a weight measurement |
|
|
89
94
|
| `log_length` | Log a length/height measurement |
|
|
90
95
|
| `log_temperature` | Log a temperature measurement |
|
|
96
|
+
| `log_diaper` | Log a diaper change (wet, dirty, or mixed) |
|
|
91
97
|
|
|
92
98
|
## Configuration
|
|
93
99
|
|
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ const diapers_js_1 = require("./tools/diapers.js");
|
|
|
14
14
|
async function main() {
|
|
15
15
|
const server = new mcp_js_1.McpServer({
|
|
16
16
|
name: "babylitics",
|
|
17
|
-
version: "0.10.
|
|
17
|
+
version: "0.10.1",
|
|
18
18
|
});
|
|
19
19
|
// Register all tools — auth happens lazily on first tool call.
|
|
20
20
|
// If auth is needed, the tool returns login instructions for the user.
|