hevy-mcp 3.3.0 → 3.4.0
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/dist/cli.mjs
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
(function() {
|
|
5
5
|
try {
|
|
6
6
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {};
|
|
7
|
-
e.SENTRY_RELEASE = { id: "hevy-mcp@3.
|
|
7
|
+
e.SENTRY_RELEASE = { id: "hevy-mcp@3.4.0" };
|
|
8
8
|
var n = new e.Error().stack;
|
|
9
9
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "47a79c69-c982-44cf-abda-d010f962b955", e._sentryDebugIdIdentifier = "sentry-dbid-47a79c69-c982-44cf-abda-d010f962b955");
|
|
10
10
|
} catch (e) {}
|
|
11
11
|
})();
|
|
12
|
-
import { i as createSafeErrorDiagnostic, r as runServer } from "./src-
|
|
12
|
+
import { i as createSafeErrorDiagnostic, r as runServer } from "./src-86dub6ti.mjs";
|
|
13
13
|
//#region src/cli.ts
|
|
14
14
|
runServer().catch((error) => {
|
|
15
15
|
console.error("Fatal error in main()", createSafeErrorDiagnostic(error));
|
package/dist/index.mjs
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
(function() {
|
|
5
5
|
try {
|
|
6
6
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {};
|
|
7
|
-
e.SENTRY_RELEASE = { id: "hevy-mcp@3.
|
|
7
|
+
e.SENTRY_RELEASE = { id: "hevy-mcp@3.4.0" };
|
|
8
8
|
var n = new e.Error().stack;
|
|
9
9
|
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "5b077b94-9ef8-4f24-a0b0-8dcfbf491be1", e._sentryDebugIdIdentifier = "sentry-dbid-5b077b94-9ef8-4f24-a0b0-8dcfbf491be1");
|
|
10
10
|
} catch (e) {}
|
|
11
11
|
})();
|
|
12
|
-
import { n as createServer, r as runServer, t as configSchema } from "./src-
|
|
12
|
+
import { n as createServer, r as runServer, t as configSchema } from "./src-86dub6ti.mjs";
|
|
13
13
|
export { configSchema, createServer, createServer as default, runServer };
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
(function() {
|
|
5
5
|
try {
|
|
6
6
|
var e = "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof globalThis ? globalThis : "undefined" != typeof self ? self : {};
|
|
7
|
-
e.SENTRY_RELEASE = { id: "hevy-mcp@3.
|
|
7
|
+
e.SENTRY_RELEASE = { id: "hevy-mcp@3.4.0" };
|
|
8
8
|
var n = new e.Error().stack;
|
|
9
|
-
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "
|
|
9
|
+
n && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[n] = "6d0f4903-ba12-4a80-99f1-595d5d373fb9", e._sentryDebugIdIdentifier = "sentry-dbid-6d0f4903-ba12-4a80-99f1-595d5d373fb9");
|
|
10
10
|
} catch (e) {}
|
|
11
11
|
})();
|
|
12
12
|
import * as Sentry from "@sentry/node";
|
|
@@ -40,10 +40,10 @@ import semver from "semver";
|
|
|
40
40
|
* OTel Collector → Honeycomb: performance traces, metrics
|
|
41
41
|
*/
|
|
42
42
|
const name$1 = "hevy-mcp";
|
|
43
|
-
const version$1 = "3.
|
|
43
|
+
const version$1 = "3.4.0";
|
|
44
44
|
const collectorToken = "NH9vOela-HYreQxAbJa68cjEmORoEKM57EvneUDVcOo";
|
|
45
45
|
const COLLECTOR_ENDPOINT = "https://otel.chrisdoc.dev/v1";
|
|
46
|
-
const sentryRelease = process.env.SENTRY_RELEASE ?? `hevy-mcp@3.
|
|
46
|
+
const sentryRelease = process.env.SENTRY_RELEASE ?? `hevy-mcp@3.4.0`;
|
|
47
47
|
const resource = resourceFromAttributes({
|
|
48
48
|
"service.name": name$1,
|
|
49
49
|
"service.version": version$1
|
|
@@ -1126,7 +1126,7 @@ function registerHevyResources(server, runtime) {
|
|
|
1126
1126
|
//#endregion
|
|
1127
1127
|
//#region src/server-metadata.ts
|
|
1128
1128
|
const SERVER_NAME = "hevy-mcp";
|
|
1129
|
-
const SERVER_VERSION = "3.
|
|
1129
|
+
const SERVER_VERSION = "3.4.0";
|
|
1130
1130
|
const SERVER_INSTRUCTIONS = [
|
|
1131
1131
|
"Hevy MCP connects clients to the authenticated user's Hevy workout-tracking data, including workouts, routines, exercise templates, routine folders, body measurements, and profile information. HEVY_API_KEY must contain a valid Hevy API key for local stdio use.",
|
|
1132
1132
|
"Safety: all get-* and search-* tools are read-only. create-* and update-* tools mutate Hevy data. Creates are additive and non-idempotent, so repeating one can create duplicates. Updates can overwrite existing data. Delete operations are not available.",
|
|
@@ -3855,14 +3855,27 @@ function withTelemetry(fn, context) {
|
|
|
3855
3855
|
* Wrap an MCP tool handler with telemetry inside error response handling.
|
|
3856
3856
|
*/
|
|
3857
3857
|
function withObservability(fn, context) {
|
|
3858
|
-
return withErrorHandling(withTelemetry(fn, context), context, (error,
|
|
3858
|
+
return withErrorHandling(withTelemetry(fn, context), context, (error, toolContext, argumentKeyCount) => {
|
|
3859
3859
|
const { diagnostic } = resolveErrorPolicy(error, "");
|
|
3860
3860
|
Sentry.withScope((scope) => {
|
|
3861
|
+
scope.setTag("mcp.tool.context", toolContext);
|
|
3861
3862
|
scope.setTag("error.category", diagnostic.category);
|
|
3862
3863
|
if (diagnostic.code) scope.setTag("error.code", diagnostic.code);
|
|
3863
3864
|
if (diagnostic.status !== void 0) scope.setTag("http.status_code", String(diagnostic.status));
|
|
3864
|
-
scope.
|
|
3865
|
+
if (diagnostic.endpoint) scope.setTag("hevy.api.endpoint", diagnostic.endpoint);
|
|
3866
|
+
scope.setContext("mcpTool", {
|
|
3867
|
+
context: toolContext,
|
|
3868
|
+
argumentKeyCount
|
|
3869
|
+
});
|
|
3865
3870
|
scope.setContext("safeError", { ...diagnostic });
|
|
3871
|
+
scope.setFingerprint([
|
|
3872
|
+
"mcp-tool-failure",
|
|
3873
|
+
toolContext,
|
|
3874
|
+
diagnostic.category,
|
|
3875
|
+
diagnostic.code ?? "none",
|
|
3876
|
+
String(diagnostic.status ?? "none"),
|
|
3877
|
+
diagnostic.endpoint ?? "none"
|
|
3878
|
+
]);
|
|
3866
3879
|
Sentry.captureMessage("MCP tool failure", "error");
|
|
3867
3880
|
});
|
|
3868
3881
|
});
|
|
@@ -4337,4 +4350,4 @@ async function runServer() {
|
|
|
4337
4350
|
//#endregion
|
|
4338
4351
|
export { createSafeErrorDiagnostic as i, createServer as n, runServer as r, configSchema as t };
|
|
4339
4352
|
|
|
4340
|
-
//# sourceMappingURL=src-
|
|
4353
|
+
//# sourceMappingURL=src-86dub6ti.mjs.map
|