@armature-tech/mcp-analytics 0.6.21 → 0.6.22
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/cjs/recorder.js +12 -0
- package/dist/cjs/types.d.ts +2 -0
- package/dist/esm/recorder.js +12 -0
- package/dist/esm/types.d.ts +2 -0
- package/package.json +1 -1
package/dist/cjs/recorder.js
CHANGED
|
@@ -334,6 +334,12 @@ const createAnalyticsRecorder = (config = emit_js_1.defaultMcpAnalyticsConfig) =
|
|
|
334
334
|
...(registration.title !== undefined ? { title: registration.title } : {}),
|
|
335
335
|
...(description !== undefined ? { description } : {}),
|
|
336
336
|
...(registeredHasInputSchema ? { inputSchema: plan.inputSchema } : {}),
|
|
337
|
+
...(registration.outputSchema !== undefined
|
|
338
|
+
? { outputSchema: registration.outputSchema }
|
|
339
|
+
: {}),
|
|
340
|
+
...(registration.annotations !== undefined
|
|
341
|
+
? { annotations: registration.annotations }
|
|
342
|
+
: {}),
|
|
337
343
|
}, (async (...callbackArgs) => {
|
|
338
344
|
const argsOrExtra = callbackArgs[0];
|
|
339
345
|
const maybeExtra = callbackArgs[1];
|
|
@@ -398,6 +404,12 @@ const createAnalyticsRecorder = (config = emit_js_1.defaultMcpAnalyticsConfig) =
|
|
|
398
404
|
if (registration.inputSchema !== undefined) {
|
|
399
405
|
definition.inputSchema = registration.inputSchema;
|
|
400
406
|
}
|
|
407
|
+
if (registration.outputSchema !== undefined) {
|
|
408
|
+
definition.outputSchema = registration.outputSchema;
|
|
409
|
+
}
|
|
410
|
+
if (registration.annotations !== undefined) {
|
|
411
|
+
definition.annotations = registration.annotations;
|
|
412
|
+
}
|
|
401
413
|
definitions.push(...decorateDefinitions([definition]));
|
|
402
414
|
}
|
|
403
415
|
return definitions;
|
package/dist/cjs/types.d.ts
CHANGED
package/dist/esm/recorder.js
CHANGED
|
@@ -331,6 +331,12 @@ export const createAnalyticsRecorder = (config = defaultMcpAnalyticsConfig) => {
|
|
|
331
331
|
...(registration.title !== undefined ? { title: registration.title } : {}),
|
|
332
332
|
...(description !== undefined ? { description } : {}),
|
|
333
333
|
...(registeredHasInputSchema ? { inputSchema: plan.inputSchema } : {}),
|
|
334
|
+
...(registration.outputSchema !== undefined
|
|
335
|
+
? { outputSchema: registration.outputSchema }
|
|
336
|
+
: {}),
|
|
337
|
+
...(registration.annotations !== undefined
|
|
338
|
+
? { annotations: registration.annotations }
|
|
339
|
+
: {}),
|
|
334
340
|
}, (async (...callbackArgs) => {
|
|
335
341
|
const argsOrExtra = callbackArgs[0];
|
|
336
342
|
const maybeExtra = callbackArgs[1];
|
|
@@ -395,6 +401,12 @@ export const createAnalyticsRecorder = (config = defaultMcpAnalyticsConfig) => {
|
|
|
395
401
|
if (registration.inputSchema !== undefined) {
|
|
396
402
|
definition.inputSchema = registration.inputSchema;
|
|
397
403
|
}
|
|
404
|
+
if (registration.outputSchema !== undefined) {
|
|
405
|
+
definition.outputSchema = registration.outputSchema;
|
|
406
|
+
}
|
|
407
|
+
if (registration.annotations !== undefined) {
|
|
408
|
+
definition.annotations = registration.annotations;
|
|
409
|
+
}
|
|
398
410
|
definitions.push(...decorateDefinitions([definition]));
|
|
399
411
|
}
|
|
400
412
|
return definitions;
|
package/dist/esm/types.d.ts
CHANGED