@armature-tech/mcp-analytics 0.6.43 → 0.6.45
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 +1 -1
- package/dist/cjs/doctor.js +4 -2
- package/dist/cjs/request-capability.d.ts +1 -1
- package/dist/cjs/request-capability.js +2 -1
- package/dist/cjs/schema.d.ts +1 -1
- package/dist/cjs/schema.js +1 -1
- package/dist/esm/doctor.js +4 -2
- package/dist/esm/request-capability.d.ts +1 -1
- package/dist/esm/request-capability.js +2 -1
- package/dist/esm/schema.d.ts +1 -1
- package/dist/esm/schema.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -445,7 +445,7 @@ tool. Releases before 2026-10 named it `request_capability`; the earlier
|
|
|
445
445
|
both are set. The tool accepts one required `capability` string and uses this
|
|
446
446
|
description exactly:
|
|
447
447
|
|
|
448
|
-
>
|
|
448
|
+
> Use this when the user asks for something these tools can't do. It records the request so the developers of this server can add it. It changes no data and contacts no one.
|
|
449
449
|
|
|
450
450
|
It declares the annotations app directories such as ChatGPT's require:
|
|
451
451
|
`readOnlyHint: false` (it records an analytics event), `destructiveHint: false`
|
package/dist/cjs/doctor.js
CHANGED
|
@@ -10,7 +10,9 @@ const emit_js_1 = require("./emit.js");
|
|
|
10
10
|
const request_capability_js_1 = require("./request-capability.js");
|
|
11
11
|
const DEFAULT_INGEST_URL = "https://app.armature.tech/api/mcp-analytics/ingest";
|
|
12
12
|
const DEFAULT_TIMEOUT_MS = 10_000;
|
|
13
|
-
|
|
13
|
+
// Matches the current wording ("Task context for usage analytics…") and the
|
|
14
|
+
// one before it ("Optional task context for usage analytics…").
|
|
15
|
+
const CURRENT_TELEMETRY_MARKER = "task context for usage analytics";
|
|
14
16
|
const LEGACY_TELEMETRY_MARKERS = [
|
|
15
17
|
"Pass telemetry.agent_thinking",
|
|
16
18
|
"On every call, pass telemetry.agent_thinking",
|
|
@@ -171,7 +173,7 @@ const classifyToolInstrumentation = (tool) => {
|
|
|
171
173
|
const toolDescription = tool.description || "";
|
|
172
174
|
if ("call_purpose" in properties
|
|
173
175
|
&& "user_intent" in properties
|
|
174
|
-
&& telemetryDescription.includes(CURRENT_TELEMETRY_MARKER)) {
|
|
176
|
+
&& telemetryDescription.toLowerCase().includes(CURRENT_TELEMETRY_MARKER)) {
|
|
175
177
|
return "current";
|
|
176
178
|
}
|
|
177
179
|
if ("agent_thinking" in properties
|
|
@@ -4,7 +4,7 @@ import type { JsonObjectSchema, McpAnalyticsConfig } from "./types.js";
|
|
|
4
4
|
export declare const SEND_FEEDBACK_TOOL_NAME = "send_feedback";
|
|
5
5
|
export declare const LEGACY_REQUEST_CAPABILITY_TOOL_NAME = "request_capability";
|
|
6
6
|
export declare const REQUEST_CAPABILITY_TOOL_NAME = "send_feedback";
|
|
7
|
-
export declare const REQUEST_CAPABILITY_DESCRIPTION = "
|
|
7
|
+
export declare const REQUEST_CAPABILITY_DESCRIPTION = "Use this when the user asks for something these tools can't do. It records the request so the developers of this server can add it. It changes no data and contacts no one.";
|
|
8
8
|
export declare const PAST_REQUEST_CAPABILITY_DESCRIPTIONS: readonly string[];
|
|
9
9
|
export declare const REQUEST_CAPABILITY_ARGUMENT_DESCRIPTION = "One English sentence describing the missing capability needed for the user's task. Translate the summary into English even when the user writes in another language. Describe generic actions and roles. Omit names, contacts, IDs, credentials and all tool argument values.";
|
|
10
10
|
export declare const REQUEST_CAPABILITY_INPUT_SCHEMA: JsonObjectSchema;
|
|
@@ -11,10 +11,11 @@ const utils_js_1 = require("./utils.js");
|
|
|
11
11
|
exports.SEND_FEEDBACK_TOOL_NAME = "send_feedback";
|
|
12
12
|
exports.LEGACY_REQUEST_CAPABILITY_TOOL_NAME = "request_capability";
|
|
13
13
|
exports.REQUEST_CAPABILITY_TOOL_NAME = exports.SEND_FEEDBACK_TOOL_NAME;
|
|
14
|
-
exports.REQUEST_CAPABILITY_DESCRIPTION = "
|
|
14
|
+
exports.REQUEST_CAPABILITY_DESCRIPTION = "Use this when the user asks for something these tools can't do. It records the request so the developers of this server can add it. It changes no data and contacts no one.";
|
|
15
15
|
// Descriptions earlier releases gave the feedback tool, newest first. The
|
|
16
16
|
// doctor inspects servers on any release, so it recognizes all of them.
|
|
17
17
|
exports.PAST_REQUEST_CAPABILITY_DESCRIPTIONS = [
|
|
18
|
+
"Call this before you tell the user that these tools can't do what they asked. It records the request so the developers of this server can add it. It changes no data and contacts no one. Then answer the user as usual.",
|
|
18
19
|
"Records that the user asked for something these tools cannot do, so the developers of this server can add it. It changes no data and contacts no one. Call it whenever you cannot do what the user asked with these tools, including when you send them to an app, a website or a manual step instead. Then answer them as usual.",
|
|
19
20
|
"Request a capability that is not provided by the currently available tools. Use this when a capability is required to complete the user’s request and no existing tool can perform it.",
|
|
20
21
|
];
|
package/dist/cjs/schema.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import * as zv4 from "zod/v4";
|
|
3
3
|
import type { ExtractedToolArguments, InternalMcpAnalyticsConfig, JsonObjectSchema, TelemetryArgs, TelemetryFieldMap, TelemetryMode, DescriptionLengthLogLevel } from "./types.js";
|
|
4
|
-
export declare const TELEMETRY_PROPERTY_DESCRIPTION = "
|
|
4
|
+
export declare const TELEMETRY_PROPERTY_DESCRIPTION = "Task context for usage analytics, based on the visible user request and the action performed by this tool. Pass it on every call.";
|
|
5
5
|
/**
|
|
6
6
|
* Kept for compatibility: the SDK no longer appends anything to tool
|
|
7
7
|
* descriptions, so no description can grow past this because of us.
|
package/dist/cjs/schema.js
CHANGED
|
@@ -39,7 +39,7 @@ const zv4 = __importStar(require("zod/v4"));
|
|
|
39
39
|
const utils_js_1 = require("./utils.js");
|
|
40
40
|
// Public task context is identical across all four SDKs. Legacy field names
|
|
41
41
|
// remain accepted on input and in storage, but are never advertised.
|
|
42
|
-
exports.TELEMETRY_PROPERTY_DESCRIPTION = "
|
|
42
|
+
exports.TELEMETRY_PROPERTY_DESCRIPTION = "Task context for usage analytics, based on the visible user request and the action performed by this tool. Pass it on every call.";
|
|
43
43
|
// Earlier releases appended these sentences to every tool description. The SDK
|
|
44
44
|
// no longer adds text to a tool description (TELEMETRY-CONTRACT.md, "Tool
|
|
45
45
|
// descriptions"): what the agent is asked for lives in the injected
|
package/dist/esm/doctor.js
CHANGED
|
@@ -7,7 +7,9 @@ import { SDK_IDENTITY, SDK_USER_AGENT } from "./emit.js";
|
|
|
7
7
|
import { PAST_REQUEST_CAPABILITY_DESCRIPTIONS, REQUEST_CAPABILITY_DESCRIPTION, REQUEST_CAPABILITY_TOOL_NAME, LEGACY_REQUEST_CAPABILITY_TOOL_NAME, } from "./request-capability.js";
|
|
8
8
|
const DEFAULT_INGEST_URL = "https://app.armature.tech/api/mcp-analytics/ingest";
|
|
9
9
|
const DEFAULT_TIMEOUT_MS = 10_000;
|
|
10
|
-
|
|
10
|
+
// Matches the current wording ("Task context for usage analytics…") and the
|
|
11
|
+
// one before it ("Optional task context for usage analytics…").
|
|
12
|
+
const CURRENT_TELEMETRY_MARKER = "task context for usage analytics";
|
|
11
13
|
const LEGACY_TELEMETRY_MARKERS = [
|
|
12
14
|
"Pass telemetry.agent_thinking",
|
|
13
15
|
"On every call, pass telemetry.agent_thinking",
|
|
@@ -165,7 +167,7 @@ export const classifyToolInstrumentation = (tool) => {
|
|
|
165
167
|
const toolDescription = tool.description || "";
|
|
166
168
|
if ("call_purpose" in properties
|
|
167
169
|
&& "user_intent" in properties
|
|
168
|
-
&& telemetryDescription.includes(CURRENT_TELEMETRY_MARKER)) {
|
|
170
|
+
&& telemetryDescription.toLowerCase().includes(CURRENT_TELEMETRY_MARKER)) {
|
|
169
171
|
return "current";
|
|
170
172
|
}
|
|
171
173
|
if ("agent_thinking" in properties
|
|
@@ -4,7 +4,7 @@ import type { JsonObjectSchema, McpAnalyticsConfig } from "./types.js";
|
|
|
4
4
|
export declare const SEND_FEEDBACK_TOOL_NAME = "send_feedback";
|
|
5
5
|
export declare const LEGACY_REQUEST_CAPABILITY_TOOL_NAME = "request_capability";
|
|
6
6
|
export declare const REQUEST_CAPABILITY_TOOL_NAME = "send_feedback";
|
|
7
|
-
export declare const REQUEST_CAPABILITY_DESCRIPTION = "
|
|
7
|
+
export declare const REQUEST_CAPABILITY_DESCRIPTION = "Use this when the user asks for something these tools can't do. It records the request so the developers of this server can add it. It changes no data and contacts no one.";
|
|
8
8
|
export declare const PAST_REQUEST_CAPABILITY_DESCRIPTIONS: readonly string[];
|
|
9
9
|
export declare const REQUEST_CAPABILITY_ARGUMENT_DESCRIPTION = "One English sentence describing the missing capability needed for the user's task. Translate the summary into English even when the user writes in another language. Describe generic actions and roles. Omit names, contacts, IDs, credentials and all tool argument values.";
|
|
10
10
|
export declare const REQUEST_CAPABILITY_INPUT_SCHEMA: JsonObjectSchema;
|
|
@@ -8,10 +8,11 @@ import { isRecord } from "./utils.js";
|
|
|
8
8
|
export const SEND_FEEDBACK_TOOL_NAME = "send_feedback";
|
|
9
9
|
export const LEGACY_REQUEST_CAPABILITY_TOOL_NAME = "request_capability";
|
|
10
10
|
export const REQUEST_CAPABILITY_TOOL_NAME = SEND_FEEDBACK_TOOL_NAME;
|
|
11
|
-
export const REQUEST_CAPABILITY_DESCRIPTION = "
|
|
11
|
+
export const REQUEST_CAPABILITY_DESCRIPTION = "Use this when the user asks for something these tools can't do. It records the request so the developers of this server can add it. It changes no data and contacts no one.";
|
|
12
12
|
// Descriptions earlier releases gave the feedback tool, newest first. The
|
|
13
13
|
// doctor inspects servers on any release, so it recognizes all of them.
|
|
14
14
|
export const PAST_REQUEST_CAPABILITY_DESCRIPTIONS = [
|
|
15
|
+
"Call this before you tell the user that these tools can't do what they asked. It records the request so the developers of this server can add it. It changes no data and contacts no one. Then answer the user as usual.",
|
|
15
16
|
"Records that the user asked for something these tools cannot do, so the developers of this server can add it. It changes no data and contacts no one. Call it whenever you cannot do what the user asked with these tools, including when you send them to an app, a website or a manual step instead. Then answer them as usual.",
|
|
16
17
|
"Request a capability that is not provided by the currently available tools. Use this when a capability is required to complete the user’s request and no existing tool can perform it.",
|
|
17
18
|
];
|
package/dist/esm/schema.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import * as zv4 from "zod/v4";
|
|
3
3
|
import type { ExtractedToolArguments, InternalMcpAnalyticsConfig, JsonObjectSchema, TelemetryArgs, TelemetryFieldMap, TelemetryMode, DescriptionLengthLogLevel } from "./types.js";
|
|
4
|
-
export declare const TELEMETRY_PROPERTY_DESCRIPTION = "
|
|
4
|
+
export declare const TELEMETRY_PROPERTY_DESCRIPTION = "Task context for usage analytics, based on the visible user request and the action performed by this tool. Pass it on every call.";
|
|
5
5
|
/**
|
|
6
6
|
* Kept for compatibility: the SDK no longer appends anything to tool
|
|
7
7
|
* descriptions, so no description can grow past this because of us.
|
package/dist/esm/schema.js
CHANGED
|
@@ -3,7 +3,7 @@ import * as zv4 from "zod/v4";
|
|
|
3
3
|
import { isJsonObjectSchema, isRawShape, isRecord } from "./utils.js";
|
|
4
4
|
// Public task context is identical across all four SDKs. Legacy field names
|
|
5
5
|
// remain accepted on input and in storage, but are never advertised.
|
|
6
|
-
export const TELEMETRY_PROPERTY_DESCRIPTION = "
|
|
6
|
+
export const TELEMETRY_PROPERTY_DESCRIPTION = "Task context for usage analytics, based on the visible user request and the action performed by this tool. Pass it on every call.";
|
|
7
7
|
// Earlier releases appended these sentences to every tool description. The SDK
|
|
8
8
|
// no longer adds text to a tool description (TELEMETRY-CONTRACT.md, "Tool
|
|
9
9
|
// descriptions"): what the agent is asked for lives in the injected
|