@avallon-labs/mcp 23.20.0-staging.594 → 23.21.0
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
|
@@ -1535,11 +1535,24 @@ var listCases = async (params, options) => {
|
|
|
1535
1535
|
headers: res.headers
|
|
1536
1536
|
};
|
|
1537
1537
|
};
|
|
1538
|
-
var getGetCaseUrl = (id) => {
|
|
1539
|
-
|
|
1538
|
+
var getGetCaseUrl = (id, params) => {
|
|
1539
|
+
const normalizedParams = new URLSearchParams();
|
|
1540
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
1541
|
+
if (value !== void 0) {
|
|
1542
|
+
if (typeof value === "object" && value !== null && !Array.isArray(value)) {
|
|
1543
|
+
for (const [sk, sv] of Object.entries(value)) {
|
|
1544
|
+
if (sv !== void 0) normalizedParams.append(`${key}[${sk}]`, String(sv));
|
|
1545
|
+
}
|
|
1546
|
+
} else {
|
|
1547
|
+
normalizedParams.append(key, value === null ? "null" : String(value));
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
});
|
|
1551
|
+
const stringifiedParams = normalizedParams.toString();
|
|
1552
|
+
return stringifiedParams.length > 0 ? `/v1/cases/${id}?${stringifiedParams}` : `/v1/cases/${id}`;
|
|
1540
1553
|
};
|
|
1541
|
-
var getCase = async (id, options) => {
|
|
1542
|
-
const res = await fetch(getGetCaseUrl(id), {
|
|
1554
|
+
var getCase = async (id, params, options) => {
|
|
1555
|
+
const res = await fetch(getGetCaseUrl(id, params), {
|
|
1543
1556
|
...options,
|
|
1544
1557
|
method: "GET"
|
|
1545
1558
|
});
|
|
@@ -3231,7 +3244,7 @@ var listCasesHandler = async (args) => {
|
|
|
3231
3244
|
};
|
|
3232
3245
|
};
|
|
3233
3246
|
var getCaseHandler = async (args) => {
|
|
3234
|
-
const res = await getCase(args.pathParams.id);
|
|
3247
|
+
const res = await getCase(args.pathParams.id, args.queryParams);
|
|
3235
3248
|
return {
|
|
3236
3249
|
content: [
|
|
3237
3250
|
{
|
|
@@ -6188,6 +6201,10 @@ var ListCasesResponse = zod.array(ListCasesResponseItem);
|
|
|
6188
6201
|
var GetCaseParams = zod.object({
|
|
6189
6202
|
id: zod.string().min(1)
|
|
6190
6203
|
});
|
|
6204
|
+
var getCaseQuerySortOrderDefault = `desc`;
|
|
6205
|
+
var GetCaseQueryParams = zod.object({
|
|
6206
|
+
sort_order: zod.enum(["asc", "desc"]).default(getCaseQuerySortOrderDefault)
|
|
6207
|
+
});
|
|
6191
6208
|
var getCaseResponseWorkerRunsItemsItemWorkerVersionMin = -9007199254740991;
|
|
6192
6209
|
var getCaseResponseWorkerRunsItemsItemWorkerVersionMax = 9007199254740991;
|
|
6193
6210
|
var getCaseResponseWorkerRunsTotalMin = 0;
|
|
@@ -7764,7 +7781,8 @@ server.tool(
|
|
|
7764
7781
|
"getCase",
|
|
7765
7782
|
"Get case",
|
|
7766
7783
|
{
|
|
7767
|
-
pathParams: GetCaseParams
|
|
7784
|
+
pathParams: GetCaseParams,
|
|
7785
|
+
queryParams: GetCaseQueryParams
|
|
7768
7786
|
},
|
|
7769
7787
|
getCaseHandler
|
|
7770
7788
|
);
|
|
@@ -8103,4 +8121,4 @@ var transport = new StdioServerTransport();
|
|
|
8103
8121
|
server.connect(transport).then(() => {
|
|
8104
8122
|
console.error("MCP server running on stdio");
|
|
8105
8123
|
}).catch(console.error);
|
|
8106
|
-
//# sourceMappingURL=server-
|
|
8124
|
+
//# sourceMappingURL=server-SAOL5Q25.js.map
|