@indaco/garmin-personal-mcp 0.3.0 → 0.3.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 +6 -5
- package/dist/index.js +34 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -343,11 +343,12 @@ does not endorse this project, and the project has no affiliation with Garmin.
|
|
|
343
343
|
|
|
344
344
|
## Problems and solutions
|
|
345
345
|
|
|
346
|
-
| Problem | Solution
|
|
347
|
-
| ---------------------------------- |
|
|
348
|
-
| The server does not start | Make sure that Node.js is version 22 or later: `node --version`.
|
|
349
|
-
| Claude Desktop does not find `npx` | GUI apps do not read your shell profile. Use the absolute path of `npx` (`which npx`) as the `command`.
|
|
350
|
-
| Changes have no effect | The client keeps the old server process. Restart the client: a new Claude Code session, or quit and start Claude Desktop again.
|
|
346
|
+
| Problem | Solution |
|
|
347
|
+
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
|
|
348
|
+
| The server does not start | Make sure that Node.js is version 22 or later: `node --version`. |
|
|
349
|
+
| Claude Desktop does not find `npx` | GUI apps do not read your shell profile. Use the absolute path of `npx` (`which npx`) as the `command`. |
|
|
350
|
+
| Changes have no effect | The client keeps the old server process. Restart the client: a new Claude Code session, or quit and start Claude Desktop again. |
|
|
351
|
+
| Which version runs | `npx -y @indaco/garmin-personal-mcp@latest --version` (or `-v`) prints the version and stops. `--help` (or `-h`) lists the commands. |
|
|
351
352
|
|
|
352
353
|
[Problems and solutions](guide/troubleshooting.md) has more problems, the log files, and commands
|
|
353
354
|
that test the key and the server.
|
package/dist/index.js
CHANGED
|
@@ -24096,7 +24096,7 @@ function toError(value) {
|
|
|
24096
24096
|
}
|
|
24097
24097
|
// package.json
|
|
24098
24098
|
var name = "@indaco/garmin-personal-mcp";
|
|
24099
|
-
var version = "0.3.
|
|
24099
|
+
var version = "0.3.1";
|
|
24100
24100
|
// src/log.ts
|
|
24101
24101
|
/** Past this size the log moves to `<file>.1`, replacing the one before, and a new log starts. */
|
|
24102
24102
|
const MAX_BYTES = 1e6;
|
|
@@ -64580,13 +64580,43 @@ function registerSchedule(server, auto) {
|
|
|
64580
64580
|
}
|
|
64581
64581
|
// src/cli.ts
|
|
64582
64582
|
/** The commands for a terminal or a scheduler; any other start is the MCP server. */
|
|
64583
|
-
const COMMANDS = [
|
|
64584
|
-
|
|
64585
|
-
|
|
64583
|
+
const COMMANDS = [
|
|
64584
|
+
"refresh",
|
|
64585
|
+
"schedule",
|
|
64586
|
+
"--version",
|
|
64587
|
+
"-v",
|
|
64588
|
+
"--help",
|
|
64589
|
+
"-h"
|
|
64590
|
+
];
|
|
64591
|
+
const HELP = `Usage: garmin-personal-mcp [command]
|
|
64592
|
+
|
|
64593
|
+
Without a command, the MCP server starts on stdin and stdout.
|
|
64594
|
+
|
|
64595
|
+
Commands:
|
|
64596
|
+
refresh [page.html] update a dashboard page
|
|
64597
|
+
(default: <data-dir>/garmin-dashboard.html)
|
|
64598
|
+
refresh --auto update the pages that have a schedule
|
|
64599
|
+
schedule show the schedule
|
|
64600
|
+
schedule [daily|weekdays|weekly <day>] [HH:MM] [page.html]
|
|
64601
|
+
update a page automatically
|
|
64602
|
+
schedule "<cron>" [page.html] the same, with a cron expression
|
|
64603
|
+
schedule off [page.html] stop the automatic update
|
|
64604
|
+
-v, --version show the version
|
|
64605
|
+
-h, --help show this help`;
|
|
64606
|
+
/**
|
|
64607
|
+
* Runs `--version` (`-v`), `--help` (`-h`), `refresh [page.html | --auto]` or
|
|
64586
64608
|
* `schedule [daily|weekdays|weekly <day>] [HH:MM] | "<cron>" | off`, each with an optional page.
|
|
64587
64609
|
* Not MCP, so the result may go to stdout.
|
|
64588
64610
|
*/
|
|
64589
64611
|
async function cli(command, args, auto, writer) {
|
|
64612
|
+
if (command === "--version" || command === "-v") return {
|
|
64613
|
+
code: 0,
|
|
64614
|
+
stdout: version
|
|
64615
|
+
};
|
|
64616
|
+
if (command === "--help" || command === "-h") return {
|
|
64617
|
+
code: 0,
|
|
64618
|
+
stdout: HELP
|
|
64619
|
+
};
|
|
64590
64620
|
try {
|
|
64591
64621
|
if (command === "refresh") {
|
|
64592
64622
|
const pages = args[0] === "--auto" ? await auto.pages() : [args[0] ?? ""];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indaco/garmin-personal-mcp",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "MCP server for the official Garmin Connect Personal API",
|
|
5
5
|
"homepage": "https://github.com/indaco/garmin-personal-mcp#readme",
|
|
6
6
|
"bugs": "https://github.com/indaco/garmin-personal-mcp/issues",
|