hevy-mcp 1.13.2 → 1.14.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 +16 -1
- package/dist/cli.js +11 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -4,13 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
// src/index.ts
|
|
6
6
|
import dotenvx from "@dotenvx/dotenvx";
|
|
7
|
+
import * as Sentry from "@sentry/node";
|
|
7
8
|
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
8
9
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
9
10
|
import { z as z6 } from "zod";
|
|
10
11
|
|
|
11
12
|
// package.json
|
|
12
13
|
var name = "hevy-mcp";
|
|
13
|
-
var version = "1.
|
|
14
|
+
var version = "1.14.0";
|
|
14
15
|
|
|
15
16
|
// src/tools/folders.ts
|
|
16
17
|
import { z } from "zod";
|
|
@@ -1232,16 +1233,24 @@ function createClient2(apiKey, baseUrl) {
|
|
|
1232
1233
|
|
|
1233
1234
|
// src/index.ts
|
|
1234
1235
|
dotenvx.config({ quiet: true });
|
|
1236
|
+
var sentryConfig = {
|
|
1237
|
+
dsn: "https://ce696d8333b507acbf5203eb877bce0f@o4508975499575296.ingest.de.sentry.io/4509049671647312",
|
|
1238
|
+
// Tracing must be enabled for MCP monitoring to work
|
|
1239
|
+
tracesSampleRate: 1,
|
|
1240
|
+
sendDefaultPii: false
|
|
1241
|
+
};
|
|
1242
|
+
Sentry.init(sentryConfig);
|
|
1235
1243
|
var HEVY_API_BASEURL = "https://api.hevyapp.com";
|
|
1236
1244
|
var serverConfigSchema = z6.object({
|
|
1237
1245
|
apiKey: z6.string().min(1, "Hevy API key is required").describe("Your Hevy API key (available in the Hevy app settings).")
|
|
1238
1246
|
});
|
|
1239
1247
|
var configSchema = serverConfigSchema;
|
|
1240
1248
|
function buildServer(apiKey) {
|
|
1241
|
-
const
|
|
1249
|
+
const baseServer = new McpServer({
|
|
1242
1250
|
name,
|
|
1243
1251
|
version
|
|
1244
1252
|
});
|
|
1253
|
+
const server = Sentry.wrapMcpServerWithSentry(baseServer);
|
|
1245
1254
|
const hevyClient = createClient2(apiKey, HEVY_API_BASEURL);
|
|
1246
1255
|
console.error("Hevy client initialized with API key");
|
|
1247
1256
|
registerWorkoutTools(server, hevyClient);
|