hevy-mcp 1.13.0 → 1.13.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 +24 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -15,11 +15,22 @@ A Model Context Protocol (MCP) server implementation that interfaces with the [H
|
|
|
15
15
|
|
|
16
16
|
> **Note:** HTTP transport and Docker images remain deprecated. Smithery deployment now uses the official TypeScript runtime flow (no Docker required), or you can run the server locally via stdio (e.g., `npx hevy-mcp`). Existing GHCR images remain available but are no longer updated.
|
|
17
17
|
|
|
18
|
+
## Quick start
|
|
19
|
+
|
|
20
|
+
Pick the workflow that fits your setup:
|
|
21
|
+
|
|
22
|
+
| Scenario | Command | Requirements |
|
|
23
|
+
| --- | --- | --- |
|
|
24
|
+
| One-off stdio run | `HEVY_API_KEY=sk_live... npx -y hevy-mcp` | Node.js ≥ 20, Hevy API key |
|
|
25
|
+
| Local development | `pnpm install && pnpm run dev` | `.env` with `HEVY_API_KEY`, pnpm via Corepack |
|
|
26
|
+
| Smithery playground / deploy | `pnpm run smithery:dev` / `pnpm run smithery:build` | `HEVY_API_KEY`, `SMITHERY_API_KEY` (or `pnpm dlx @smithery/cli login`) |
|
|
27
|
+
|
|
18
28
|
## Prerequisites
|
|
19
29
|
|
|
20
30
|
- Node.js (v20 or higher)
|
|
21
31
|
- pnpm (via Corepack)
|
|
22
32
|
- A Hevy API key
|
|
33
|
+
- Optional: A Smithery account + API key/login if you plan to deploy via Smithery
|
|
23
34
|
|
|
24
35
|
## Installation
|
|
25
36
|
|
|
@@ -39,8 +50,11 @@ cd hevy-mcp
|
|
|
39
50
|
|
|
40
51
|
# Install dependencies
|
|
41
52
|
corepack use pnpm@10.22.0
|
|
53
|
+
pnpm install
|
|
54
|
+
|
|
55
|
+
# Create .env and add your keys (never commit real keys)
|
|
42
56
|
cp .env.sample .env
|
|
43
|
-
# Edit .env and add
|
|
57
|
+
# Edit .env and add at least HEVY_API_KEY. Add SMITHERY_API_KEY if you use Smithery CLI.
|
|
44
58
|
```
|
|
45
59
|
|
|
46
60
|
### Integration with Cursor
|
|
@@ -104,6 +118,8 @@ Smithery can bundle and host `hevy-mcp` without Docker by importing the exported
|
|
|
104
118
|
|
|
105
119
|
4. Connect the repository to Smithery and trigger a deployment from their dashboard. Configuration is handled entirely through the exported Zod schema, so no additional `smithery.yaml` env mapping is required.
|
|
106
120
|
|
|
121
|
+
> **Why are `chalk`, `cors`, and `@smithery/sdk` dependencies?** Smithery’s TypeScript runtime injects its own Express bootstrap that imports these packages. Declaring them in `package.json` ensures the Smithery CLI can bundle your server successfully.
|
|
122
|
+
|
|
107
123
|
hevy-mcp now runs exclusively over stdio, which works seamlessly with MCP-aware clients like Claude Desktop and Cursor. HTTP transport has been removed to simplify deployment.
|
|
108
124
|
|
|
109
125
|
## Usage
|
|
@@ -265,6 +281,13 @@ Kubb generates TypeScript types, API clients, Zod schemas, and mock data from th
|
|
|
265
281
|
|
|
266
282
|
- **Rollup optional dependency missing**: If you see an error similar to `Cannot find module @rollup/rollup-linux-x64-gnu`, set the environment variable `ROLLUP_SKIP_NODEJS_NATIVE_BUILD=true` before running `pnpm run build`. This forces Rollup to use the pure JavaScript fallback and avoids the npm optional dependency bug on some Linux runners.
|
|
267
283
|
|
|
284
|
+
### Troubleshooting Smithery deployments
|
|
285
|
+
|
|
286
|
+
- **`smithery.yaml` validation failed (unexpected fields)**: Only `runtime`, `target`, and `env` are allowed for the TypeScript runtime. Remove `entry`, `name`, or other fields.
|
|
287
|
+
- **`Could not resolve "chalk"/"cors"`**: Run `pnpm install` so the runtime dependencies listed in `package.json` are present before invoking Smithery.
|
|
288
|
+
- **`Failed to connect to Smithery API: Unauthorized`**: Log in via `pnpm dlx @smithery/cli login` or set `SMITHERY_API_KEY` in `.env`.
|
|
289
|
+
- **Tunnel crashes with `RangeError: Invalid count value`**: This is a known issue in certain `@smithery/cli` builds. Upgrade/downgrade the CLI (e.g., `pnpm add -D @smithery/cli@latest`) or contact Smithery support.
|
|
290
|
+
|
|
268
291
|
## License
|
|
269
292
|
|
|
270
293
|
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|