@armature-tech/mcp-analytics 0.6.40 → 0.6.42

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.
@@ -60,6 +60,7 @@ export type TelemetryFieldMap = {
60
60
  call_purpose?: string;
61
61
  /** @deprecated Accepted for compatibility. Prefer call_purpose. */
62
62
  agent_thinking?: string;
63
+ /** @deprecated `user_frustration` is no longer collected; this mapping is ignored. */
63
64
  user_frustration?: string;
64
65
  };
65
66
  export type McpAnalyticsConfig = {
@@ -83,10 +84,12 @@ export type McpAnalyticsConfig = {
83
84
  /** Register background work with a platform lifecycle primitive (for example waitUntil). */
84
85
  schedule?: (work: Promise<void>) => void;
85
86
  telemetryFieldMap?: TelemetryFieldMap;
87
+ sendFeedback?: boolean;
88
+ /** @deprecated Earlier name of `sendFeedback`; `sendFeedback` wins when both are set. */
86
89
  requestCapability?: boolean;
87
90
  /**
88
- * Level of the one-time notice for a tool description too long for the
89
- * full telemetry hint: "none", "debug", "info" or "warning" (default).
91
+ * @deprecated The SDK no longer adds text to tool descriptions, so there
92
+ * is no length notice. Accepted and ignored.
90
93
  */
91
94
  descriptionLengthLogLevel?: DescriptionLengthLogLevel;
92
95
  };
@@ -108,12 +111,13 @@ export type TelemetryArgs = {
108
111
  call_purpose?: string;
109
112
  /** @deprecated Accepted for compatibility. Prefer call_purpose. */
110
113
  agent_thinking?: string;
114
+ /** @deprecated No longer collected: accepted from cached clients and dropped. */
111
115
  user_frustration?: "low" | "medium" | "high";
112
116
  /** @deprecated Pre-V1 spelling of `user_intent`; still accepted. */
113
117
  intent?: string;
114
118
  /** @deprecated Pre-V1 spelling of `agent_thinking`; still accepted. */
115
119
  context?: string;
116
- /** @deprecated Pre-V1 spelling of `user_frustration`; still accepted. */
120
+ /** @deprecated No longer collected: accepted from cached clients and dropped. */
117
121
  frustration_level?: "low" | "medium" | "high";
118
122
  };
119
123
  export type ExtractedToolArguments = {
package/dist/esm/v2.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { BAGGAGE_META_KEY, CLIENT_CAPABILITIES_META_KEY, CLIENT_INFO_META_KEY, PROTOCOL_VERSION_META_KEY, fromJsonSchema, } from "@modelcontextprotocol/server";
2
2
  import { createAnalyticsRecorderCore, } from "./recorder-core.js";
3
3
  import { defaultMcpAnalyticsConfig } from "./emit.js";
4
- import { appendTelemetryHint, createTelemetryJsonSchema, isCaptureEnabled, schemaDeclaresTelemetry, } from "./schema.js";
4
+ import { stripSdkDescriptionHint, createTelemetryJsonSchema, isCaptureEnabled, schemaDeclaresTelemetry, } from "./schema.js";
5
5
  import { capCapabilities } from "./events.js";
6
6
  import { prepareForPreview } from "./sanitize.js";
7
7
  import { headerValue, isRecord, stringifyPreview, truncateUtf8 } from "./utils.js";
@@ -412,11 +412,8 @@ const instrumentRegisteredTool = (state, server, name, tool, defaults, options)
412
412
  ...(decoratedSchema !== undefined
413
413
  ? {
414
414
  paramsSchema: decoratedSchema,
415
- // Same idempotent description nudge as v1 (ARM-24).
416
- description: appendTelemetryHint(registered.description, {
417
- toolName: name,
418
- logLevel: state.config.armature?.descriptionLengthLogLevel,
419
- }),
415
+ // Never adds text; removes SDK hint suffixes from earlier releases.
416
+ description: stripSdkDescriptionHint(registered.description),
420
417
  }
421
418
  : {}),
422
419
  callback: wrapToolCallback(state, name, originalHasInputSchema, registeredHasInputSchema, handler, defaults, options),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@armature-tech/mcp-analytics",
3
- "version": "0.6.40",
3
+ "version": "0.6.42",
4
4
  "type": "module",
5
5
  "description": "MCP analytics wrapper SDK that instruments MCP tool declarations with telemetry.",
6
6
  "license": "Apache-2.0",