@armature-tech/mcp-analytics 0.6.41 → 0.6.43
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 +39 -42
- package/SKILL.md +6 -5
- package/dist/cjs/doctor.js +10 -6
- package/dist/cjs/events.js +3 -2
- package/dist/cjs/fastmcp.js +2 -5
- package/dist/cjs/mastra.js +6 -10
- package/dist/cjs/recorder.js +3 -5
- package/dist/cjs/request-capability.d.ts +5 -2
- package/dist/cjs/request-capability.js +27 -12
- package/dist/cjs/schema.d.ts +13 -12
- package/dist/cjs/schema.js +41 -172
- package/dist/cjs/server.js +8 -62
- package/dist/cjs/types.d.ts +7 -3
- package/dist/cjs/v2.js +2 -5
- package/dist/esm/doctor.js +11 -7
- package/dist/esm/events.js +3 -2
- package/dist/esm/fastmcp.js +3 -6
- package/dist/esm/mastra.js +7 -11
- package/dist/esm/recorder.js +3 -5
- package/dist/esm/request-capability.d.ts +5 -2
- package/dist/esm/request-capability.js +26 -11
- package/dist/esm/schema.d.ts +13 -12
- package/dist/esm/schema.js +39 -170
- package/dist/esm/server.js +9 -63
- package/dist/esm/types.d.ts +7 -3
- package/dist/esm/v2.js +3 -6
- package/package.json +1 -1
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 {
|
|
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
|
-
//
|
|
416
|
-
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),
|