@avallon-labs/mcp 67.2.0 → 68.1.0-staging.1417
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/index.js
CHANGED
|
@@ -523,28 +523,6 @@ var deleteArtifact = async (id, options) => {
|
|
|
523
523
|
const data = body ? JSON.parse(body) : {};
|
|
524
524
|
return { data, status: res.status, headers: res.headers };
|
|
525
525
|
};
|
|
526
|
-
var getGetArtifactMetadataKeysUrl = (params) => {
|
|
527
|
-
const normalizedParams = new URLSearchParams();
|
|
528
|
-
Object.entries(params || {}).forEach(([key, value]) => {
|
|
529
|
-
if (value !== void 0) {
|
|
530
|
-
normalizedParams.append(key, value === null ? "null" : String(value));
|
|
531
|
-
}
|
|
532
|
-
});
|
|
533
|
-
const stringifiedParams = normalizedParams.toString();
|
|
534
|
-
return stringifiedParams.length > 0 ? `/v1/artifacts/metadata/keys?${stringifiedParams}` : `/v1/artifacts/metadata/keys`;
|
|
535
|
-
};
|
|
536
|
-
var getArtifactMetadataKeys = async (params, options) => {
|
|
537
|
-
const res = await fetch(
|
|
538
|
-
getGetArtifactMetadataKeysUrl(params),
|
|
539
|
-
{
|
|
540
|
-
...options,
|
|
541
|
-
method: "GET"
|
|
542
|
-
}
|
|
543
|
-
);
|
|
544
|
-
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
545
|
-
const data = body ? JSON.parse(body) : {};
|
|
546
|
-
return { data, status: res.status, headers: res.headers };
|
|
547
|
-
};
|
|
548
526
|
var getGetArtifactStatusSummaryUrl = (params) => {
|
|
549
527
|
const normalizedParams = new URLSearchParams();
|
|
550
528
|
const deepObjectEntries = [];
|
|
@@ -4920,29 +4898,6 @@ var deleteArtifactHandler = async (args, options) => {
|
|
|
4920
4898
|
structuredContent: res.data
|
|
4921
4899
|
};
|
|
4922
4900
|
};
|
|
4923
|
-
var getArtifactMetadataKeysHandler = async (args, options) => {
|
|
4924
|
-
const res = await getArtifactMetadataKeys(args.queryParams, options);
|
|
4925
|
-
if (res.status >= 400) {
|
|
4926
|
-
return {
|
|
4927
|
-
content: [
|
|
4928
|
-
{
|
|
4929
|
-
type: "text",
|
|
4930
|
-
text: JSON.stringify(res.data ?? null)
|
|
4931
|
-
}
|
|
4932
|
-
],
|
|
4933
|
-
isError: true
|
|
4934
|
-
};
|
|
4935
|
-
}
|
|
4936
|
-
return {
|
|
4937
|
-
content: [
|
|
4938
|
-
{
|
|
4939
|
-
type: "text",
|
|
4940
|
-
text: JSON.stringify(res.data ?? null)
|
|
4941
|
-
}
|
|
4942
|
-
],
|
|
4943
|
-
structuredContent: res.data
|
|
4944
|
-
};
|
|
4945
|
-
};
|
|
4946
4901
|
var getArtifactStatusSummaryHandler = async (args, options) => {
|
|
4947
4902
|
const res = await getArtifactStatusSummary(args.queryParams, options);
|
|
4948
4903
|
if (res.status >= 400) {
|
|
@@ -10191,20 +10146,6 @@ var DeleteArtifactResponse = zod.object({
|
|
|
10191
10146
|
"data": zod.object({}),
|
|
10192
10147
|
"message": zod.string()
|
|
10193
10148
|
});
|
|
10194
|
-
var getArtifactMetadataKeysQueryLimitDefault = 100;
|
|
10195
|
-
var getArtifactMetadataKeysQueryLimitMax = 500;
|
|
10196
|
-
var GetArtifactMetadataKeysQueryParams = zod.object({
|
|
10197
|
-
"limit": zod.number().min(1).max(getArtifactMetadataKeysQueryLimitMax).default(getArtifactMetadataKeysQueryLimitDefault)
|
|
10198
|
-
});
|
|
10199
|
-
var GetArtifactMetadataKeysResponse = zod.object({
|
|
10200
|
-
"data": zod.object({
|
|
10201
|
-
"data": zod.object({
|
|
10202
|
-
"keys": zod.array(zod.string()),
|
|
10203
|
-
"values": zod.record(zod.string(), zod.array(zod.unknown()))
|
|
10204
|
-
})
|
|
10205
|
-
}),
|
|
10206
|
-
"message": zod.string()
|
|
10207
|
-
});
|
|
10208
10149
|
var GetArtifactStatusSummaryQueryParams = zod.object({
|
|
10209
10150
|
"scope": zod.record(zod.string(), zod.string()).describe("Scope to summarize, using bracket notation (e.g. scope[email_id]=abc-123). At least one key is required. Multiple keys are combined with AND logic.")
|
|
10210
10151
|
});
|
|
@@ -12820,6 +12761,7 @@ var ListChatAgentsResponse = zod.object({
|
|
|
12820
12761
|
"data": zod.array(zod.object({
|
|
12821
12762
|
"id": zod.string(),
|
|
12822
12763
|
"name": zod.string(),
|
|
12764
|
+
"evaluator_slug": zod.union([zod.string(), zod.null()]),
|
|
12823
12765
|
"created_at": zod.string().datetime({ "offset": true }),
|
|
12824
12766
|
"updated_at": zod.string().datetime({ "offset": true })
|
|
12825
12767
|
})),
|
|
@@ -12835,6 +12777,7 @@ var GetChatAgentResponse = zod.object({
|
|
|
12835
12777
|
"data": zod.object({
|
|
12836
12778
|
"id": zod.string(),
|
|
12837
12779
|
"name": zod.string(),
|
|
12780
|
+
"evaluator_slug": zod.union([zod.string(), zod.null()]),
|
|
12838
12781
|
"created_at": zod.string().datetime({ "offset": true }),
|
|
12839
12782
|
"updated_at": zod.string().datetime({ "offset": true }),
|
|
12840
12783
|
"tool_ids": zod.array(zod.string())
|
|
@@ -12844,13 +12787,17 @@ var GetChatAgentResponse = zod.object({
|
|
|
12844
12787
|
var UpdateChatAgentParams = zod.object({
|
|
12845
12788
|
"chatAgentId": zod.string().uuid()
|
|
12846
12789
|
});
|
|
12790
|
+
var updateChatAgentBodyEvaluatorSlugOneMax = 100;
|
|
12791
|
+
var updateChatAgentBodyEvaluatorSlugOneRegExp = new RegExp("^[a-z0-9]+(?:[-_][a-z0-9]+)*$");
|
|
12847
12792
|
var UpdateChatAgentBody = zod.object({
|
|
12848
|
-
"tools": zod.array(zod.string().uuid()).optional().describe("Replace the agent's attached code tool set. Omit to leave unchanged; pass [] to clear.")
|
|
12793
|
+
"tools": zod.array(zod.string().uuid()).optional().describe("Replace the agent's attached code tool set. Omit to leave unchanged; pass [] to clear."),
|
|
12794
|
+
"evaluator_slug": zod.union([zod.string().max(updateChatAgentBodyEvaluatorSlugOneMax).regex(updateChatAgentBodyEvaluatorSlugOneRegExp), zod.null()]).optional().describe("Evaluator that scores this agent's chats, created with `POST /v1/evaluators`. null detaches it. Omit to leave unchanged.")
|
|
12849
12795
|
});
|
|
12850
12796
|
var UpdateChatAgentResponse = zod.object({
|
|
12851
12797
|
"data": zod.object({
|
|
12852
12798
|
"id": zod.string(),
|
|
12853
12799
|
"name": zod.string(),
|
|
12800
|
+
"evaluator_slug": zod.union([zod.string(), zod.null()]),
|
|
12854
12801
|
"created_at": zod.string().datetime({ "offset": true }),
|
|
12855
12802
|
"updated_at": zod.string().datetime({ "offset": true })
|
|
12856
12803
|
}),
|
|
@@ -15670,22 +15617,6 @@ var createMcpServer = (options) => {
|
|
|
15670
15617
|
signal: options?.signal ? AbortSignal.any([options.signal, ctx.signal]) : ctx.signal
|
|
15671
15618
|
})
|
|
15672
15619
|
);
|
|
15673
|
-
tools.getArtifactMetadataKeys = server2.registerTool(
|
|
15674
|
-
"getArtifactMetadataKeys",
|
|
15675
|
-
{
|
|
15676
|
-
title: "Get artifact metadata keys",
|
|
15677
|
-
description: "Retrieve all unique metadata keys and their values across artifacts. Useful for building filter UIs.",
|
|
15678
|
-
inputSchema: {
|
|
15679
|
-
queryParams: GetArtifactMetadataKeysQueryParams
|
|
15680
|
-
},
|
|
15681
|
-
outputSchema: GetArtifactMetadataKeysResponse,
|
|
15682
|
-
annotations: { readOnlyHint: true }
|
|
15683
|
-
},
|
|
15684
|
-
(args, ctx) => getArtifactMetadataKeysHandler(args, {
|
|
15685
|
-
...options,
|
|
15686
|
-
signal: options?.signal ? AbortSignal.any([options.signal, ctx.signal]) : ctx.signal
|
|
15687
|
-
})
|
|
15688
|
-
);
|
|
15689
15620
|
tools.getArtifactStatusSummary = server2.registerTool(
|
|
15690
15621
|
"getArtifactStatusSummary",
|
|
15691
15622
|
{
|
|
@@ -17111,7 +17042,7 @@ var createMcpServer = (options) => {
|
|
|
17111
17042
|
"updateChatAgent",
|
|
17112
17043
|
{
|
|
17113
17044
|
title: "Update chat agent",
|
|
17114
|
-
description: "Patch a chat agent's
|
|
17045
|
+
description: "Patch a chat agent's attached code tool set and evaluator. The response does not include the resulting tool list; the agent's `updated_at` is not bumped when only the tool set changes.\n\nSet `evaluator_slug` to score the agent's chats with that evaluator when they end. It applies to every chat that ends afterwards.",
|
|
17115
17046
|
inputSchema: {
|
|
17116
17047
|
pathParams: UpdateChatAgentParams,
|
|
17117
17048
|
bodyParams: UpdateChatAgentBody.optional()
|
|
@@ -17795,7 +17726,7 @@ var createMcpServer = (options) => {
|
|
|
17795
17726
|
"createEvaluator",
|
|
17796
17727
|
{
|
|
17797
17728
|
title: "Create an evaluator",
|
|
17798
|
-
description: "Create an evaluator: a named set of metrics that an LLM judge scores every call of the
|
|
17729
|
+
description: "Create an evaluator: a named set of metrics that an LLM judge scores every call or chat of the agents it is attached to.\n\nEvaluators can't be changed after creation, so past scores keep their meaning. To change the criteria, create a new evaluator (e.g. `support-quality-v2`) and attach that instead. A slug that already exists returns 409.\n\nAttach it to a voice agent with `PATCH /v1/voice-agents/{voiceAgentId}` (`evaluator_slug`), then promote that version, or to a chat agent with `PATCH /v1/chat-agents/{chatAgentId}` (`evaluator_slug`). Requires the `evaluators:write` permission.",
|
|
17799
17730
|
inputSchema: {
|
|
17800
17731
|
bodyParams: CreateEvaluatorBody.optional()
|
|
17801
17732
|
},
|
|
@@ -18712,4 +18643,4 @@ var transport = new StdioServerTransport();
|
|
|
18712
18643
|
server.connect(transport).then(() => {
|
|
18713
18644
|
console.error("MCP server running on stdio");
|
|
18714
18645
|
}).catch(console.error);
|
|
18715
|
-
//# sourceMappingURL=server-
|
|
18646
|
+
//# sourceMappingURL=server-UUCKYVAU.js.map
|