babylitics-mcp 0.10.0 → 0.11.0
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 +40 -19
- package/dist/graphql/queries.d.ts +1 -0
- package/dist/graphql/queries.d.ts.map +1 -1
- package/dist/graphql/queries.js +12 -1
- package/dist/graphql/queries.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/tools/diapers.d.ts.map +1 -1
- package/dist/tools/diapers.js +11 -0
- package/dist/tools/diapers.js.map +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,22 @@ 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) |
|
|
97
|
+
|
|
98
|
+
## Medical Guidelines
|
|
99
|
+
|
|
100
|
+
The guideline tools return evidence-based pediatric data from WHO and AAP sources. Agents can use these to compare a baby's actual data against age-appropriate recommendations.
|
|
101
|
+
|
|
102
|
+
| Tool | Source | Reference |
|
|
103
|
+
|------|--------|-----------|
|
|
104
|
+
| `get_weight_vs_guideline` | WHO | [WHO Child Growth Standards](https://www.who.int/tools/child-growth-standards/standards/weight-for-age) |
|
|
105
|
+
| `get_length_vs_guideline` | WHO | [WHO Child Growth Standards](https://www.who.int/tools/child-growth-standards/standards/length-height-for-age) |
|
|
106
|
+
| `get_feeding_vs_guideline` | AAP/WHO/NHS | [AAP Formula Feeding](https://www.healthychildren.org/English/ages-stages/baby/formula-feeding/Pages/amount-and-schedule-of-formula-feedings.aspx) |
|
|
107
|
+
| `get_sleep_vs_guideline` | AAP | [AAP Sleep Recommendations](https://www.healthychildren.org/English/healthy-living/sleep/Pages/healthy-sleep-habits-how-many-hours-does-your-child-need.aspx) |
|
|
108
|
+
| `get_temperature_guidelines` | AAP | [AAP Fever Guidelines](https://www.healthychildren.org/English/health-issues/conditions/fever/Pages/default.aspx) |
|
|
109
|
+
| `get_diaper_guidelines` | AAP | [AAP Diaper Guidelines](https://www.healthychildren.org/English/ages-stages/baby/diapers-clothing/Pages/Changing-Diapers.aspx) |
|
|
110
|
+
|
|
111
|
+
> **Disclaimer:** These guidelines are for informational purposes only and should not replace professional medical advice.
|
|
91
112
|
|
|
92
113
|
## Configuration
|
|
93
114
|
|
|
@@ -22,5 +22,6 @@ export declare const CREATE_LENGTH = "\n mutation CreateLength(\n $babyId: I
|
|
|
22
22
|
export declare const CREATE_TEMPERATURE = "\n mutation CreateTemperature(\n $babyId: ID!,\n $temperature: Float!,\n $unit: TemperatureUnitEnum!,\n $measuredAt: ISO8601DateTime!,\n $notes: String\n ) {\n createTemperature(\n babyId: $babyId,\n temperature: $temperature,\n unit: $unit,\n measuredAt: $measuredAt,\n notes: $notes\n ) {\n temperature {\n id\n temperature\n unit\n measuredAt\n }\n errors\n }\n }\n";
|
|
23
23
|
export declare const GET_DIAPERS = "\n query GetDiapers($babyId: ID!, $date: ISO8601Date, $startDate: ISO8601Date, $endDate: ISO8601Date) {\n diaperChanges(babyId: $babyId, date: $date, startDate: $startDate, endDate: $endDate) {\n nodes {\n id\n diaperType\n changedAt\n notes\n }\n }\n }\n";
|
|
24
24
|
export declare const CREATE_DIAPER = "\n mutation CreateDiaperChange(\n $babyId: ID!,\n $diaperType: DiaperTypeEnum!,\n $changedAt: ISO8601DateTime!,\n $notes: String\n ) {\n createDiaperChange(\n babyId: $babyId,\n diaperType: $diaperType,\n changedAt: $changedAt,\n notes: $notes\n ) {\n diaperChange {\n id\n diaperType\n changedAt\n }\n errors\n }\n }\n";
|
|
25
|
+
export declare const DIAPER_GUIDELINES = "\n query DiaperGuidelines {\n diaperGuidelines {\n ageMonthStart\n ageMonthEnd\n minChangesPerDay\n maxChangesPerDay\n source\n }\n }\n";
|
|
25
26
|
export declare const GET_USER_SETTINGS = "\n query GetUserSettings {\n me {\n userSetting {\n preferredUnit\n preferredWeightUnit\n preferredLengthUnit\n preferredTemperatureUnit\n preferredLanguage\n }\n }\n }\n";
|
|
26
27
|
//# sourceMappingURL=queries.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../src/graphql/queries.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,WAAW,sVAoBvB,CAAC;AAEF,eAAO,MAAM,eAAe,m3BA0C3B,CAAC;AAGF,eAAO,MAAM,YAAY,sYAgBxB,CAAC;AAEF,eAAO,MAAM,kBAAkB,6fAgB9B,CAAC;AAGF,eAAO,MAAM,UAAU,kTAatB,CAAC;AAEF,eAAO,MAAM,gBAAgB,gcAa5B,CAAC;AAGF,eAAO,MAAM,WAAW,sRAYvB,CAAC;AAEF,eAAO,MAAM,iBAAi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AAGF,eAAO,MAAM,WAAW,sRAYvB,CAAC;AAEF,eAAO,MAAM,kBAAkB,2YAqB9B,CAAC;AAEF,eAAO,MAAM,oBAAoB,kTAahC,CAAC;AAEF,eAAO,MAAM,sBAAsB,+NAYlC,CAAC;AAEF,eAAO,MAAM,sBAAsB,ghBAgBlC,CAAC;AAGF,eAAO,MAAM,gBAAgB,0TAa5B,CAAC;AAGF,eAAO,MAAM,cAAc,8rBAkC1B,CAAC;AAEF,eAAO,MAAM,YAAY,qcAwBxB,CAAC;AAEF,eAAO,MAAM,aAAa,waAwBzB,CAAC;AAEF,eAAO,MAAM,aAAa,waAwBzB,CAAC;AAEF,eAAO,MAAM,kBAAkB,odAwB9B,CAAC;AAGF,eAAO,MAAM,WAAW,kTAWvB,CAAC;AAEF,eAAO,MAAM,aAAa,oZAqBzB,CAAC;AAEF,eAAO,MAAM,iBAAiB,6KAU7B,CAAC;AAGF,eAAO,MAAM,iBAAiB,oOAY7B,CAAC"}
|
package/dist/graphql/queries.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GET_USER_SETTINGS = exports.CREATE_DIAPER = exports.GET_DIAPERS = exports.CREATE_TEMPERATURE = exports.CREATE_LENGTH = exports.CREATE_WEIGHT = exports.CREATE_SLEEP = exports.CREATE_FEEDING = exports.GET_TEMPERATURES = exports.TEMPERATURE_STATISTICS = exports.TEMPERATURE_GUIDELINES = exports.FEEDING_VS_GUIDELINE = exports.SLEEP_VS_GUIDELINE = exports.GET_LENGTHS = exports.LENGTH_STATISTICS = exports.LENGTH_VS_GUIDELINE = exports.WEIGHT_VS_GUIDELINE = exports.WEIGHT_STATISTICS = exports.GET_WEIGHTS = exports.SLEEP_STATISTICS = exports.GET_SLEEPS = exports.FEEDING_STATISTICS = exports.GET_FEEDINGS = exports.DASHBOARD_STATS = exports.LIST_BABIES = void 0;
|
|
3
|
+
exports.GET_USER_SETTINGS = exports.DIAPER_GUIDELINES = exports.CREATE_DIAPER = exports.GET_DIAPERS = exports.CREATE_TEMPERATURE = exports.CREATE_LENGTH = exports.CREATE_WEIGHT = exports.CREATE_SLEEP = exports.CREATE_FEEDING = exports.GET_TEMPERATURES = exports.TEMPERATURE_STATISTICS = exports.TEMPERATURE_GUIDELINES = exports.FEEDING_VS_GUIDELINE = exports.SLEEP_VS_GUIDELINE = exports.GET_LENGTHS = exports.LENGTH_STATISTICS = exports.LENGTH_VS_GUIDELINE = exports.WEIGHT_VS_GUIDELINE = exports.WEIGHT_STATISTICS = exports.GET_WEIGHTS = exports.SLEEP_STATISTICS = exports.GET_SLEEPS = exports.FEEDING_STATISTICS = exports.GET_FEEDINGS = exports.DASHBOARD_STATS = exports.LIST_BABIES = void 0;
|
|
4
4
|
// Baby queries
|
|
5
5
|
exports.LIST_BABIES = `
|
|
6
6
|
query ListBabies {
|
|
@@ -494,6 +494,17 @@ exports.CREATE_DIAPER = `
|
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
496
|
`;
|
|
497
|
+
exports.DIAPER_GUIDELINES = `
|
|
498
|
+
query DiaperGuidelines {
|
|
499
|
+
diaperGuidelines {
|
|
500
|
+
ageMonthStart
|
|
501
|
+
ageMonthEnd
|
|
502
|
+
minChangesPerDay
|
|
503
|
+
maxChangesPerDay
|
|
504
|
+
source
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
`;
|
|
497
508
|
// User settings
|
|
498
509
|
exports.GET_USER_SETTINGS = `
|
|
499
510
|
query GetUserSettings {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.js","sourceRoot":"","sources":["../../src/graphql/queries.ts"],"names":[],"mappings":";;;AAAA,eAAe;AACF,QAAA,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;CAoB1B,CAAC;AAEW,QAAA,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0C9B,CAAC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AAEW,QAAA,sBAAsB,GAAG;;;;;;;;;;;;CAYrC,CAAC;AAEW,QAAA,sBAAsB,GAAG;;;;;;;;;;;;;;;;CAgBrC,CAAC;AAEF,sBAAsB;AACT,QAAA,gBAAgB,GAAG;;;;;;;;;;;;;CAa/B,CAAC;AAEF,qDAAqD;AACxC,QAAA,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkC7B,CAAC;AAEW,QAAA,YAAY,GAAG;;;;;;;;;;;;;;;;;;;;;;;;CAwB3B,CAAC;AAEW,QAAA,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;CAwB5B,CAAC;AAEW,QAAA,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;CAwB5B,CAAC;AAEW,QAAA,kBAAkB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;CAwBjC,CAAC;AAEF,iBAAiB;AACJ,QAAA,WAAW,GAAG;;;;;;;;;;;CAW1B,CAAC;AAEW,QAAA,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;CAqB5B,CAAC;AAEW,QAAA,iBAAiB,GAAG;;;;;;;;;;CAUhC,CAAC;AAEF,gBAAgB;AACH,QAAA,iBAAiB,GAAG;;;;;;;;;;;;CAYhC,CAAC"}
|
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.
|
|
17
|
+
version: "0.11.0",
|
|
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.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diapers.d.ts","sourceRoot":"","sources":["../../src/tools/diapers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAKpE,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"diapers.d.ts","sourceRoot":"","sources":["../../src/tools/diapers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AAKpE,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAqC/D;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI,CAuBhE"}
|
package/dist/tools/diapers.js
CHANGED
|
@@ -29,6 +29,17 @@ function registerDiaperReadTools(server) {
|
|
|
29
29
|
content: [{ type: "text", text: (0, helpers_js_1.formatToolResult)(data) }],
|
|
30
30
|
};
|
|
31
31
|
}));
|
|
32
|
+
server.registerTool("get_diaper_guidelines", {
|
|
33
|
+
title: "Get Diaper Guidelines",
|
|
34
|
+
description: "Get diaper change frequency guidelines by age range, showing recommended minimum and maximum changes per day.",
|
|
35
|
+
inputSchema: {},
|
|
36
|
+
annotations: { readOnlyHint: true },
|
|
37
|
+
}, (0, helpers_js_1.withAuth)(async () => {
|
|
38
|
+
const data = await (0, client_js_1.graphqlRequest)(queries_js_1.DIAPER_GUIDELINES);
|
|
39
|
+
return {
|
|
40
|
+
content: [{ type: "text", text: (0, helpers_js_1.formatToolResult)(data) }],
|
|
41
|
+
};
|
|
42
|
+
}));
|
|
32
43
|
}
|
|
33
44
|
function registerDiaperWriteTools(server) {
|
|
34
45
|
server.registerTool("log_diaper", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diapers.js","sourceRoot":"","sources":["../../src/tools/diapers.ts"],"names":[],"mappings":";;AAMA,
|
|
1
|
+
{"version":3,"file":"diapers.js","sourceRoot":"","sources":["../../src/tools/diapers.ts"],"names":[],"mappings":";;AAMA,0DAqCC;AAED,4DAuBC;AApED,6BAAwB;AAExB,oDAAsD;AACtD,sDAAsF;AACtF,6CAAyE;AAEzE,SAAgB,uBAAuB,C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