hevy-mcp 6.1.2 → 6.1.3
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 +29 -0
- package/dist/cli.mjs +2 -2
- package/dist/index.mjs +3 -3
- package/dist/{runtime-C0tBW0Rj.mjs → runtime-BefToK0H.mjs} +344 -211
- package/dist/{src-ITv7b8-Y.mjs → src-Cb_gblD1.mjs} +454 -300
- package/package.json +1 -1
- package/server.json +2 -2
package/README.md
CHANGED
|
@@ -345,6 +345,35 @@ can request confirmation.
|
|
|
345
345
|
| Body measurements | `create-body-measurement` | Create a dated body measurement. |
|
|
346
346
|
| Body measurements | `update-body-measurement` | Update the body measurement for an existing date. |
|
|
347
347
|
|
|
348
|
+
`create-routine` requires a top-level `routine` envelope with a required `exercises` array; fields use snake_case at every level:
|
|
349
|
+
|
|
350
|
+
```json
|
|
351
|
+
{
|
|
352
|
+
"routine": {
|
|
353
|
+
"title": "Full Body A",
|
|
354
|
+
"folder_id": 123,
|
|
355
|
+
"notes": "First four exercises are the minimum viable workout",
|
|
356
|
+
"exercises": [
|
|
357
|
+
{
|
|
358
|
+
"exercise_template_id": "30E293E3",
|
|
359
|
+
"superset_id": null,
|
|
360
|
+
"rest_seconds": 120,
|
|
361
|
+
"notes": "Controlled active ROM",
|
|
362
|
+
"sets": [
|
|
363
|
+
{
|
|
364
|
+
"type": "normal",
|
|
365
|
+
"rep_range": {
|
|
366
|
+
"start": 6,
|
|
367
|
+
"end": 10
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
]
|
|
371
|
+
}
|
|
372
|
+
]
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
```
|
|
376
|
+
|
|
348
377
|
The Hevy API currently exposes no delete endpoints for workouts, routines,
|
|
349
378
|
routine folders, exercise templates, or body measurements, so there are no
|
|
350
379
|
corresponding delete tools.
|
package/dist/cli.mjs
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "d805d34c-9cce-4622-8b67-728aa0cacb5d", e._sentryDebugIdIdentifier = "sentry-dbid-d805d34c-9cce-4622-8b67-728aa0cacb5d");
|
|
9
9
|
} catch (e) {}
|
|
10
10
|
})();
|
|
11
|
-
import { i as flushTelemetry, r as MissingHevyApiKeyError, t as runServer } from "./runtime-
|
|
12
|
-
import { a as createSafeErrorDiagnostic } from "./src-
|
|
11
|
+
import { i as flushTelemetry, r as MissingHevyApiKeyError, t as runServer } from "./runtime-BefToK0H.mjs";
|
|
12
|
+
import { a as createSafeErrorDiagnostic } from "./src-Cb_gblD1.mjs";
|
|
13
13
|
//#region src/cli.ts
|
|
14
14
|
runServer().catch(async (error) => {
|
|
15
15
|
if (error instanceof MissingHevyApiKeyError) console.error(error.message);
|
package/dist/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// Generated with tsdown
|
|
3
3
|
// https://tsdown.dev
|
|
4
|
-
import { o as createHevyClient, t as createHevyMcpServer } from "./src-
|
|
4
|
+
import { o as createHevyClient, t as createHevyMcpServer } from "./src-Cb_gblD1.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region src/index.ts
|
|
7
7
|
const serverConfigSchema = z.object({ apiKey: z.string().min(1, "Hevy API key is required").describe("Your Hevy API key (available in the Hevy app settings).") });
|
|
@@ -32,7 +32,7 @@ function createNodeMcpServer({ apiKey }, _transport = "stdio", lifecycleSignal)
|
|
|
32
32
|
* does not evaluate the runtime bootstrap; it is loaded only when invoked.
|
|
33
33
|
*/
|
|
34
34
|
async function runStdioServer() {
|
|
35
|
-
const { runStdioServer: run } = await import("./runtime-
|
|
35
|
+
const { runStdioServer: run } = await import("./runtime-BefToK0H.mjs").then((n) => n.n);
|
|
36
36
|
return run();
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
@@ -40,7 +40,7 @@ async function runStdioServer() {
|
|
|
40
40
|
* does not evaluate the runtime bootstrap; it is loaded only when invoked.
|
|
41
41
|
*/
|
|
42
42
|
async function runServer() {
|
|
43
|
-
const { runServer: run } = await import("./runtime-
|
|
43
|
+
const { runServer: run } = await import("./runtime-BefToK0H.mjs").then((n) => n.n);
|
|
44
44
|
return run();
|
|
45
45
|
}
|
|
46
46
|
//#endregion
|