hevy-mcp 3.4.0 → 4.0.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/package.json CHANGED
@@ -1,30 +1,11 @@
1
1
  {
2
2
  "name": "hevy-mcp",
3
- "version": "3.4.0",
3
+ "version": "4.0.1",
4
+ "private": false,
4
5
  "description": "A Model Context Protocol (MCP) server implementation that interfaces with the Hevy fitness tracking app and its API.",
5
- "keywords": [
6
- "api",
7
- "exercise",
8
- "fitness",
9
- "fitness-tracker",
10
- "health",
11
- "hevy",
12
- "mcp",
13
- "model context protocol",
14
- "training",
15
- "workout",
16
- "workout-planner",
17
- "workout-tracker"
18
- ],
19
- "homepage": "https://github.com/chrisdoc/hevy-mcp#readme",
20
- "bugs": {
21
- "url": "https://github.com/chrisdoc/hevy-mcp/issues"
22
- },
23
- "license": "MIT",
24
- "author": "Christoph Kieslich",
25
6
  "repository": {
26
7
  "type": "git",
27
- "url": "git+https://github.com/chrisdoc/hevy-mcp.git"
8
+ "url": "https://github.com/chrisdoc/hevy-mcp"
28
9
  },
29
10
  "bin": {
30
11
  "hevy-mcp": "dist/cli.mjs"
@@ -36,54 +17,23 @@
36
17
  ],
37
18
  "type": "module",
38
19
  "main": "dist/index.mjs",
39
- "module": "src/index.ts",
40
20
  "types": "dist/index.d.mts",
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/index.d.mts",
24
+ "import": "./dist/index.mjs"
25
+ }
26
+ },
41
27
  "publishConfig": {
42
28
  "access": "public"
43
29
  },
44
30
  "scripts": {
45
- "inspect": "npm run build && npx @modelcontextprotocol/inspector@latest node --env-file .env dist/cli.mjs",
46
- "inspect:npm": "npx @modelcontextprotocol/inspector@latest npx hevy-mcp@latest",
47
- "measure:tokens": "tsx scripts/measure-token-cost.ts",
48
- "test": "npm run build && node --env-file-if-exists=.env node_modules/vitest/vitest.mjs --run",
49
- "test:unit": "vitest run --exclude 'tests/integration/**' --exclude 'tests/performance/**'",
50
- "test:mcp": "vitest run tests/integration/mocked",
51
- "test:contract": "vitest run src/index.test.ts src/utils/output-schemas.test.ts tests/unit/server-manifest.test.ts",
52
- "test:stdio": "vitest run src/utils/stdio-observability.test.ts src/utils/graceful-shutdown.test.ts src/utils/graceful-shutdown.child-process.test.ts",
53
- "test:worker-http": "vitest run tests/integration/worker-http.integration.test.ts",
54
- "test:worker-http:live": "node --env-file-if-exists=.env scripts/run-live-worker-http-tests.mjs",
55
- "test:pack": "node tests/package/npm-pack-smoke.mjs",
56
- "test:live": "node --env-file-if-exists=.env scripts/run-live-tests.mjs",
57
- "test:nightly": "node --env-file-if-exists=.env tests/nightly/test_hevy_mcp.mjs",
58
- "test:performance": "npm run build && vitest run tests/performance/performance.test.ts",
59
- "test:coverage": "npm run test:unit -- --coverage --coverage.reportsDirectory=coverage/unit && npm run test:mcp -- --coverage --coverage.reportsDirectory=coverage/mocked",
60
- "test:pr": "npm run test:unit && npm run test:mcp && npm run test:contract && npm run test:stdio && npm run test:worker-http && npm run test:pack",
61
- "openapi": "node ./scripts/openapi-spec.js",
62
- "build": "tsdown",
63
- "build:standalone": "cross-env HEVY_MCP_BUILD_MODE=standalone tsdown",
64
- "build:client": "kubb generate",
65
- "prepack": "npm run check:server-manifest && npm run build",
66
- "start": "node --env-file .env dist/cli.mjs",
67
- "dev": "tsx watch --env-file .env --clear-screen=false src/cli.ts",
68
- "check": "oxlint . --type-aware --type-check && oxfmt . --check",
69
- "check:fix": "oxlint . --type-aware --type-check && oxfmt . --write",
70
- "check:types": "tsc --noEmit",
71
- "check:changeset": "changeset status --since=origin/main",
72
- "check:server-manifest": "node scripts/server-manifest.mjs check",
73
- "sync:server-manifest": "node scripts/server-manifest.mjs sync",
74
- "version:changesets": "changeset version && npm run sync:server-manifest",
75
- "version": "npm run sync:server-manifest && git add server.json",
76
- "version:patch": "npm version patch",
77
- "version:minor": "npm version minor",
78
- "version:major": "npm version major",
79
- "release": "changeset publish",
80
- "commit": "commit",
81
- "worker:dev": "wrangler dev",
82
- "worker:deploy": "wrangler deploy",
83
- "worker:dry-run": "wrangler deploy --dry-run --outdir .wrangler/dry-run"
31
+ "build": "tsdown -c tsdown.config.ts",
32
+ "prepack": "node ../../scripts/server-manifest.mjs check && npm run build",
33
+ "check:types": "tsc --noEmit -p tsconfig.json",
34
+ "build:standalone": "cross-env HEVY_MCP_BUILD_MODE=standalone tsdown -c tsdown.config.ts"
84
35
  },
85
36
  "dependencies": {
86
- "@cloudflare/workers-oauth-provider": "^0.8.2",
87
37
  "@modelcontextprotocol/sdk": "^1.29.0",
88
38
  "@opentelemetry/api": "^1.9.0",
89
39
  "@opentelemetry/exporter-metrics-otlp-http": "^0.220.0",
@@ -98,34 +48,12 @@
98
48
  "zod": "^4.4.3"
99
49
  },
100
50
  "devDependencies": {
101
- "@changesets/changelog-github": "^0.7.0",
102
- "@changesets/cli": "^2.31.0",
103
- "@commitlint/cli": "^21.0.2",
104
- "@commitlint/config-conventional": "^21.0.2",
105
- "@commitlint/prompt-cli": "^21.0.2",
106
- "@kubb/cli": "^4.38.0",
107
- "@kubb/core": "^4.38.0",
108
- "@kubb/plugin-client": "^4.38.0",
109
- "@kubb/plugin-faker": "^4.38.0",
110
- "@kubb/plugin-oas": "^4.38.0",
111
- "@kubb/plugin-ts": "^4.38.0",
112
- "@kubb/plugin-zod": "^4.38.0",
113
- "@sentry/rollup-plugin": "^5.3.0",
51
+ "@hevy-mcp/core": "*",
52
+ "@hevy-mcp/hevy-client": "*",
114
53
  "@types/node": "^26.0.0",
115
- "@types/semver": "^7.7.1",
116
- "@vitest/coverage-v8": "^4.1.9",
117
- "abstract-syntax-tree": "^2.22.0",
118
54
  "cross-env": "^10.1.0",
119
- "nock": "^14.0.16",
120
- "oxfmt": "^0.58.0",
121
- "oxlint": "^1.70.0",
122
- "oxlint-tsgolint": "^0.24.0",
123
- "tiktoken": "^1.0.22",
124
55
  "tsdown": "^0.22.2",
125
- "tsx": "^4.22.4",
126
- "typescript": "^7.0.2",
127
- "vitest": "^4.1.9",
128
- "wrangler": "^4.110.0"
56
+ "typescript": "^7.0.2"
129
57
  },
130
58
  "engines": {
131
59
  "node": ">=20.0.0"
package/server.json CHANGED
@@ -7,12 +7,12 @@
7
7
  "url": "https://github.com/chrisdoc/hevy-mcp",
8
8
  "source": "github"
9
9
  },
10
- "version": "3.4.0",
10
+ "version": "4.0.1",
11
11
  "packages": [
12
12
  {
13
13
  "registryType": "npm",
14
14
  "identifier": "hevy-mcp",
15
- "version": "3.4.0",
15
+ "version": "4.0.1",
16
16
  "transport": {
17
17
  "type": "stdio"
18
18
  },
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Christoph Kieslich
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
package/dist/cli.mjs.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"cli.mjs","names":[],"sources":["../src/cli.ts"],"sourcesContent":["import { runServer } from \"./index.js\";\nimport { createSafeErrorDiagnostic } from \"./utils/safe-error-diagnostic.js\";\n\nvoid runServer().catch((error) => {\n\tconsole.error(\"Fatal error in main()\", createSafeErrorDiagnostic(error));\n\tprocess.exit(1);\n});\n"],"mappings":";;;;;;;;;;;;;AAGK,UAAU,CAAC,CAAC,OAAO,UAAU;CACjC,QAAQ,MAAM,yBAAyB,0BAA0B,KAAK,CAAC;CACvE,QAAQ,KAAK,CAAC;AACf,CAAC"}