@avallon-labs/mcp 67.2.0-staging.1413 → 68.0.0-staging.1416
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
|
});
|
|
@@ -15670,22 +15611,6 @@ var createMcpServer = (options) => {
|
|
|
15670
15611
|
signal: options?.signal ? AbortSignal.any([options.signal, ctx.signal]) : ctx.signal
|
|
15671
15612
|
})
|
|
15672
15613
|
);
|
|
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
15614
|
tools.getArtifactStatusSummary = server2.registerTool(
|
|
15690
15615
|
"getArtifactStatusSummary",
|
|
15691
15616
|
{
|
|
@@ -18712,4 +18637,4 @@ var transport = new StdioServerTransport();
|
|
|
18712
18637
|
server.connect(transport).then(() => {
|
|
18713
18638
|
console.error("MCP server running on stdio");
|
|
18714
18639
|
}).catch(console.error);
|
|
18715
|
-
//# sourceMappingURL=server-
|
|
18640
|
+
//# sourceMappingURL=server-IUMTYF25.js.map
|