@avallon-labs/mcp 47.3.0 → 47.4.0-staging.1083
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
|
@@ -2620,6 +2620,90 @@ var listNotifications = async (params, options) => {
|
|
|
2620
2620
|
headers: res.headers
|
|
2621
2621
|
};
|
|
2622
2622
|
};
|
|
2623
|
+
var getCreateInformationRequestUrl = () => {
|
|
2624
|
+
return `/v1/information-requests`;
|
|
2625
|
+
};
|
|
2626
|
+
var createInformationRequest = async (createInformationRequestBody, options) => {
|
|
2627
|
+
const res = await fetch(getCreateInformationRequestUrl(), {
|
|
2628
|
+
...options,
|
|
2629
|
+
method: "POST",
|
|
2630
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
2631
|
+
body: JSON.stringify(createInformationRequestBody)
|
|
2632
|
+
});
|
|
2633
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
2634
|
+
const data = body ? JSON.parse(body) : {};
|
|
2635
|
+
return {
|
|
2636
|
+
data,
|
|
2637
|
+
status: res.status,
|
|
2638
|
+
headers: res.headers
|
|
2639
|
+
};
|
|
2640
|
+
};
|
|
2641
|
+
var getListInformationRequestsUrl = (params) => {
|
|
2642
|
+
const normalizedParams = new URLSearchParams();
|
|
2643
|
+
Object.entries(params || {}).forEach(([key, value]) => {
|
|
2644
|
+
if (value !== void 0) {
|
|
2645
|
+
if (typeof value === "object" && value !== null && !Array.isArray(value)) {
|
|
2646
|
+
for (const [sk, sv] of Object.entries(value)) {
|
|
2647
|
+
if (sv !== void 0) normalizedParams.append(`${key}[${sk}]`, String(sv));
|
|
2648
|
+
}
|
|
2649
|
+
} else {
|
|
2650
|
+
normalizedParams.append(key, value === null ? "null" : String(value));
|
|
2651
|
+
}
|
|
2652
|
+
}
|
|
2653
|
+
});
|
|
2654
|
+
const stringifiedParams = normalizedParams.toString();
|
|
2655
|
+
return stringifiedParams.length > 0 ? `/v1/information-requests?${stringifiedParams}` : `/v1/information-requests`;
|
|
2656
|
+
};
|
|
2657
|
+
var listInformationRequests = async (params, options) => {
|
|
2658
|
+
const res = await fetch(getListInformationRequestsUrl(params), {
|
|
2659
|
+
...options,
|
|
2660
|
+
method: "GET"
|
|
2661
|
+
});
|
|
2662
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
2663
|
+
const data = body ? JSON.parse(body) : {};
|
|
2664
|
+
return {
|
|
2665
|
+
data,
|
|
2666
|
+
status: res.status,
|
|
2667
|
+
headers: res.headers
|
|
2668
|
+
};
|
|
2669
|
+
};
|
|
2670
|
+
var getGetInformationRequestUrl = (informationRequestId) => {
|
|
2671
|
+
return `/v1/information-requests/${informationRequestId}`;
|
|
2672
|
+
};
|
|
2673
|
+
var getInformationRequest = async (informationRequestId, options) => {
|
|
2674
|
+
const res = await fetch(getGetInformationRequestUrl(informationRequestId), {
|
|
2675
|
+
...options,
|
|
2676
|
+
method: "GET"
|
|
2677
|
+
});
|
|
2678
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
2679
|
+
const data = body ? JSON.parse(body) : {};
|
|
2680
|
+
return {
|
|
2681
|
+
data,
|
|
2682
|
+
status: res.status,
|
|
2683
|
+
headers: res.headers
|
|
2684
|
+
};
|
|
2685
|
+
};
|
|
2686
|
+
var getResolveInformationRequestUrl = (informationRequestId) => {
|
|
2687
|
+
return `/v1/information-requests/${informationRequestId}/resolve`;
|
|
2688
|
+
};
|
|
2689
|
+
var resolveInformationRequest = async (informationRequestId, resolveInformationRequestBody, options) => {
|
|
2690
|
+
const res = await fetch(
|
|
2691
|
+
getResolveInformationRequestUrl(informationRequestId),
|
|
2692
|
+
{
|
|
2693
|
+
...options,
|
|
2694
|
+
method: "POST",
|
|
2695
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
2696
|
+
body: JSON.stringify(resolveInformationRequestBody)
|
|
2697
|
+
}
|
|
2698
|
+
);
|
|
2699
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
2700
|
+
const data = body ? JSON.parse(body) : {};
|
|
2701
|
+
return {
|
|
2702
|
+
data,
|
|
2703
|
+
status: res.status,
|
|
2704
|
+
headers: res.headers
|
|
2705
|
+
};
|
|
2706
|
+
};
|
|
2623
2707
|
var getCreateToolUrl = () => {
|
|
2624
2708
|
return `/v1/tools`;
|
|
2625
2709
|
};
|
|
@@ -4544,6 +4628,53 @@ var listNotificationsHandler = async (args) => {
|
|
|
4544
4628
|
]
|
|
4545
4629
|
};
|
|
4546
4630
|
};
|
|
4631
|
+
var createInformationRequestHandler = async (args) => {
|
|
4632
|
+
const res = await createInformationRequest(args.bodyParams);
|
|
4633
|
+
return {
|
|
4634
|
+
content: [
|
|
4635
|
+
{
|
|
4636
|
+
type: "text",
|
|
4637
|
+
text: JSON.stringify(res)
|
|
4638
|
+
}
|
|
4639
|
+
]
|
|
4640
|
+
};
|
|
4641
|
+
};
|
|
4642
|
+
var listInformationRequestsHandler = async (args) => {
|
|
4643
|
+
const res = await listInformationRequests(args.queryParams);
|
|
4644
|
+
return {
|
|
4645
|
+
content: [
|
|
4646
|
+
{
|
|
4647
|
+
type: "text",
|
|
4648
|
+
text: JSON.stringify(res)
|
|
4649
|
+
}
|
|
4650
|
+
]
|
|
4651
|
+
};
|
|
4652
|
+
};
|
|
4653
|
+
var getInformationRequestHandler = async (args) => {
|
|
4654
|
+
const res = await getInformationRequest(args.pathParams.informationRequestId);
|
|
4655
|
+
return {
|
|
4656
|
+
content: [
|
|
4657
|
+
{
|
|
4658
|
+
type: "text",
|
|
4659
|
+
text: JSON.stringify(res)
|
|
4660
|
+
}
|
|
4661
|
+
]
|
|
4662
|
+
};
|
|
4663
|
+
};
|
|
4664
|
+
var resolveInformationRequestHandler = async (args) => {
|
|
4665
|
+
const res = await resolveInformationRequest(
|
|
4666
|
+
args.pathParams.informationRequestId,
|
|
4667
|
+
args.bodyParams
|
|
4668
|
+
);
|
|
4669
|
+
return {
|
|
4670
|
+
content: [
|
|
4671
|
+
{
|
|
4672
|
+
type: "text",
|
|
4673
|
+
text: JSON.stringify(res)
|
|
4674
|
+
}
|
|
4675
|
+
]
|
|
4676
|
+
};
|
|
4677
|
+
};
|
|
4547
4678
|
var createToolHandler = async (args) => {
|
|
4548
4679
|
const res = await createTool(args.bodyParams);
|
|
4549
4680
|
return {
|
|
@@ -7445,7 +7576,8 @@ var CreateWorkerResponse = zod.object({
|
|
|
7445
7576
|
"artifacts:write",
|
|
7446
7577
|
"outbound-jobs:schedule",
|
|
7447
7578
|
"cases:write",
|
|
7448
|
-
"schedules:write"
|
|
7579
|
+
"schedules:write",
|
|
7580
|
+
"information-requests:write"
|
|
7449
7581
|
])
|
|
7450
7582
|
).describe(
|
|
7451
7583
|
"Core Plane operations the worker's runs are authorized to perform. Executing a tool attached to the worker is governed by the attachment, not by this list."
|
|
@@ -7568,7 +7700,8 @@ var GetWorkerResponse = zod.object({
|
|
|
7568
7700
|
"artifacts:write",
|
|
7569
7701
|
"outbound-jobs:schedule",
|
|
7570
7702
|
"cases:write",
|
|
7571
|
-
"schedules:write"
|
|
7703
|
+
"schedules:write",
|
|
7704
|
+
"information-requests:write"
|
|
7572
7705
|
])
|
|
7573
7706
|
).describe(
|
|
7574
7707
|
"Core Plane operations the worker's runs are authorized to perform. Executing a tool attached to the worker is governed by the attachment, not by this list."
|
|
@@ -7611,7 +7744,8 @@ var UpdateWorkerBody = zod.object({
|
|
|
7611
7744
|
"artifacts:write",
|
|
7612
7745
|
"outbound-jobs:schedule",
|
|
7613
7746
|
"cases:write",
|
|
7614
|
-
"schedules:write"
|
|
7747
|
+
"schedules:write",
|
|
7748
|
+
"information-requests:write"
|
|
7615
7749
|
])
|
|
7616
7750
|
).optional().describe("Permissions granted to the worker on each run")
|
|
7617
7751
|
});
|
|
@@ -7666,7 +7800,8 @@ var UpdateWorkerResponse = zod.object({
|
|
|
7666
7800
|
"artifacts:write",
|
|
7667
7801
|
"outbound-jobs:schedule",
|
|
7668
7802
|
"cases:write",
|
|
7669
|
-
"schedules:write"
|
|
7803
|
+
"schedules:write",
|
|
7804
|
+
"information-requests:write"
|
|
7670
7805
|
])
|
|
7671
7806
|
).describe(
|
|
7672
7807
|
"Core Plane operations the worker's runs are authorized to perform. Executing a tool attached to the worker is governed by the attachment, not by this list."
|
|
@@ -7781,7 +7916,8 @@ var UpdateWorkerMcpsResponse = zod.object({
|
|
|
7781
7916
|
"artifacts:write",
|
|
7782
7917
|
"outbound-jobs:schedule",
|
|
7783
7918
|
"cases:write",
|
|
7784
|
-
"schedules:write"
|
|
7919
|
+
"schedules:write",
|
|
7920
|
+
"information-requests:write"
|
|
7785
7921
|
])
|
|
7786
7922
|
).describe(
|
|
7787
7923
|
"Core Plane operations the worker's runs are authorized to perform. Executing a tool attached to the worker is governed by the attachment, not by this list."
|
|
@@ -7859,7 +7995,8 @@ var GetWorkerVersionResponse = zod.object({
|
|
|
7859
7995
|
"artifacts:write",
|
|
7860
7996
|
"outbound-jobs:schedule",
|
|
7861
7997
|
"cases:write",
|
|
7862
|
-
"schedules:write"
|
|
7998
|
+
"schedules:write",
|
|
7999
|
+
"information-requests:write"
|
|
7863
8000
|
])
|
|
7864
8001
|
),
|
|
7865
8002
|
model: zod.string(),
|
|
@@ -8106,6 +8243,7 @@ var AddCaseLinksBody = zod.object({
|
|
|
8106
8243
|
"chat",
|
|
8107
8244
|
"email",
|
|
8108
8245
|
"extract",
|
|
8246
|
+
"information_request",
|
|
8109
8247
|
"schedule",
|
|
8110
8248
|
"worker_run"
|
|
8111
8249
|
]),
|
|
@@ -8124,6 +8262,7 @@ var AddCaseLinksResponse = zod.object({
|
|
|
8124
8262
|
"chat",
|
|
8125
8263
|
"email",
|
|
8126
8264
|
"extract",
|
|
8265
|
+
"information_request",
|
|
8127
8266
|
"schedule",
|
|
8128
8267
|
"worker_run"
|
|
8129
8268
|
]),
|
|
@@ -8150,6 +8289,7 @@ var ListCaseLinksQueryParams = zod.object({
|
|
|
8150
8289
|
"chat",
|
|
8151
8290
|
"email",
|
|
8152
8291
|
"extract",
|
|
8292
|
+
"information_request",
|
|
8153
8293
|
"schedule",
|
|
8154
8294
|
"worker_run"
|
|
8155
8295
|
]).optional().describe("Filter links by entity type."),
|
|
@@ -8168,6 +8308,7 @@ var ListCaseLinksResponse = zod.object({
|
|
|
8168
8308
|
"chat",
|
|
8169
8309
|
"email",
|
|
8170
8310
|
"extract",
|
|
8311
|
+
"information_request",
|
|
8171
8312
|
"schedule",
|
|
8172
8313
|
"worker_run"
|
|
8173
8314
|
]),
|
|
@@ -8188,6 +8329,7 @@ var RemoveCaseLinkParams = zod.object({
|
|
|
8188
8329
|
"chat",
|
|
8189
8330
|
"email",
|
|
8190
8331
|
"extract",
|
|
8332
|
+
"information_request",
|
|
8191
8333
|
"schedule",
|
|
8192
8334
|
"worker_run"
|
|
8193
8335
|
]),
|
|
@@ -8513,6 +8655,8 @@ var GetProfileResponse = zod.object({
|
|
|
8513
8655
|
"api-keys:write",
|
|
8514
8656
|
"teams:write",
|
|
8515
8657
|
"cases:write",
|
|
8658
|
+
"information-requests:write",
|
|
8659
|
+
"information-requests:resolve",
|
|
8516
8660
|
"feedback:write",
|
|
8517
8661
|
"outbound-jobs:write",
|
|
8518
8662
|
"outbound-jobs:schedule",
|
|
@@ -9159,7 +9303,7 @@ var listDispatchesQueryOffsetMin = 0;
|
|
|
9159
9303
|
var listDispatchesQuerySortByDefault = `due_at`;
|
|
9160
9304
|
var listDispatchesQuerySortOrderDefault = `desc`;
|
|
9161
9305
|
var ListDispatchesQueryParams = zod.object({
|
|
9162
|
-
trigger_type: zod.enum(["schedule", "email"]).optional().describe("Only dispatches produced by this kind of trigger"),
|
|
9306
|
+
trigger_type: zod.enum(["schedule", "email", "information_request"]).optional().describe("Only dispatches produced by this kind of trigger"),
|
|
9163
9307
|
trigger_id: zod.string().uuid().optional().describe(
|
|
9164
9308
|
"Only dispatches produced by this trigger. Requires `trigger_type`."
|
|
9165
9309
|
),
|
|
@@ -9175,7 +9319,7 @@ var ListDispatchesResponse = zod.object({
|
|
|
9175
9319
|
zod.object({
|
|
9176
9320
|
id: zod.string(),
|
|
9177
9321
|
trigger: zod.object({
|
|
9178
|
-
type: zod.enum(["schedule", "email"]),
|
|
9322
|
+
type: zod.enum(["schedule", "email", "information_request"]),
|
|
9179
9323
|
id: zod.string()
|
|
9180
9324
|
}),
|
|
9181
9325
|
target: zod.union([
|
|
@@ -9234,6 +9378,123 @@ var ListNotificationsResponse = zod.object({
|
|
|
9234
9378
|
total: zod.number()
|
|
9235
9379
|
})
|
|
9236
9380
|
});
|
|
9381
|
+
var createInformationRequestBodyQuestionMax = 2e3;
|
|
9382
|
+
var CreateInformationRequestBody = zod.object({
|
|
9383
|
+
question: zod.string().min(1).max(createInformationRequestBodyQuestionMax).describe(
|
|
9384
|
+
"The single fact you need, as one question. Write it for a person who is not watching this run: say what you were doing, what you could not determine, and what would let you continue."
|
|
9385
|
+
),
|
|
9386
|
+
metadata: zod.record(zod.string(), zod.unknown()).optional().describe(
|
|
9387
|
+
"Context to store alongside the question, for whoever picks it up."
|
|
9388
|
+
)
|
|
9389
|
+
});
|
|
9390
|
+
var listInformationRequestsQueryCountDefault = 50;
|
|
9391
|
+
var listInformationRequestsQueryCountMax = 100;
|
|
9392
|
+
var listInformationRequestsQueryOffsetDefault = 0;
|
|
9393
|
+
var listInformationRequestsQueryOffsetMin = 0;
|
|
9394
|
+
var listInformationRequestsQuerySortByDefault = `created_at`;
|
|
9395
|
+
var listInformationRequestsQuerySortOrderDefault = `desc`;
|
|
9396
|
+
var ListInformationRequestsQueryParams = zod.object({
|
|
9397
|
+
resolved: zod.enum(["true", "false"]).optional().describe(
|
|
9398
|
+
"Only resolved (`true`) or only open (`false`) requests. Omit for both."
|
|
9399
|
+
),
|
|
9400
|
+
case_id: zod.string().min(1).optional().describe(
|
|
9401
|
+
"Only requests linked to this case. Values are normalized server-side (trimmed and lowercased)."
|
|
9402
|
+
),
|
|
9403
|
+
count: zod.number().min(1).max(listInformationRequestsQueryCountMax).default(listInformationRequestsQueryCountDefault),
|
|
9404
|
+
offset: zod.number().min(listInformationRequestsQueryOffsetMin).default(listInformationRequestsQueryOffsetDefault),
|
|
9405
|
+
sort_by: zod.enum(["created_at"]).default(listInformationRequestsQuerySortByDefault),
|
|
9406
|
+
sort_order: zod.enum(["asc", "desc"]).default(listInformationRequestsQuerySortOrderDefault)
|
|
9407
|
+
});
|
|
9408
|
+
var listInformationRequestsResponseDataItemResolvedByOneRegExp = new RegExp(
|
|
9409
|
+
"^(?:worker|user):[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
9410
|
+
);
|
|
9411
|
+
var listInformationRequestsResponseDataItemCreatedByRegExp = new RegExp(
|
|
9412
|
+
"^(?:worker|user):[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
9413
|
+
);
|
|
9414
|
+
var ListInformationRequestsResponse = zod.object({
|
|
9415
|
+
data: zod.array(
|
|
9416
|
+
zod.object({
|
|
9417
|
+
id: zod.string(),
|
|
9418
|
+
question: zod.string().describe("What the asker needs to know"),
|
|
9419
|
+
resolution: zod.union([zod.string(), zod.null()]).describe("Null while the request is open"),
|
|
9420
|
+
resolved_by: zod.union([
|
|
9421
|
+
zod.string().regex(listInformationRequestsResponseDataItemResolvedByOneRegExp).describe(
|
|
9422
|
+
'Actor string, e.g. "worker:<workerId>" or "user:<profileId>".'
|
|
9423
|
+
),
|
|
9424
|
+
zod.null()
|
|
9425
|
+
]),
|
|
9426
|
+
resolved_at: zod.union([zod.string().datetime({}), zod.null()]),
|
|
9427
|
+
metadata: zod.record(zod.string(), zod.unknown()),
|
|
9428
|
+
environment: zod.enum(["live", "test"]),
|
|
9429
|
+
created_by: zod.string().regex(listInformationRequestsResponseDataItemCreatedByRegExp).describe("Actor that raised the request"),
|
|
9430
|
+
created_at: zod.string().datetime({})
|
|
9431
|
+
})
|
|
9432
|
+
),
|
|
9433
|
+
message: zod.string(),
|
|
9434
|
+
meta: zod.object({
|
|
9435
|
+
total: zod.number()
|
|
9436
|
+
})
|
|
9437
|
+
});
|
|
9438
|
+
var GetInformationRequestParams = zod.object({
|
|
9439
|
+
informationRequestId: zod.string().uuid()
|
|
9440
|
+
});
|
|
9441
|
+
var getInformationRequestResponseDataResolvedByOneRegExp = new RegExp(
|
|
9442
|
+
"^(?:worker|user):[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
9443
|
+
);
|
|
9444
|
+
var getInformationRequestResponseDataCreatedByRegExp = new RegExp(
|
|
9445
|
+
"^(?:worker|user):[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
9446
|
+
);
|
|
9447
|
+
var GetInformationRequestResponse = zod.object({
|
|
9448
|
+
data: zod.object({
|
|
9449
|
+
id: zod.string(),
|
|
9450
|
+
question: zod.string().describe("What the asker needs to know"),
|
|
9451
|
+
resolution: zod.union([zod.string(), zod.null()]).describe("Null while the request is open"),
|
|
9452
|
+
resolved_by: zod.union([
|
|
9453
|
+
zod.string().regex(getInformationRequestResponseDataResolvedByOneRegExp).describe(
|
|
9454
|
+
'Actor string, e.g. "worker:<workerId>" or "user:<profileId>".'
|
|
9455
|
+
),
|
|
9456
|
+
zod.null()
|
|
9457
|
+
]),
|
|
9458
|
+
resolved_at: zod.union([zod.string().datetime({}), zod.null()]),
|
|
9459
|
+
metadata: zod.record(zod.string(), zod.unknown()),
|
|
9460
|
+
environment: zod.enum(["live", "test"]),
|
|
9461
|
+
created_by: zod.string().regex(getInformationRequestResponseDataCreatedByRegExp).describe("Actor that raised the request"),
|
|
9462
|
+
created_at: zod.string().datetime({})
|
|
9463
|
+
}),
|
|
9464
|
+
message: zod.string()
|
|
9465
|
+
});
|
|
9466
|
+
var ResolveInformationRequestParams = zod.object({
|
|
9467
|
+
informationRequestId: zod.string().uuid()
|
|
9468
|
+
});
|
|
9469
|
+
var resolveInformationRequestBodyResolutionMax = 1e4;
|
|
9470
|
+
var ResolveInformationRequestBody = zod.object({
|
|
9471
|
+
resolution: zod.string().min(1).max(resolveInformationRequestBodyResolutionMax).describe("The information the asker was missing, in plain language")
|
|
9472
|
+
});
|
|
9473
|
+
var resolveInformationRequestResponseDataResolvedByOneRegExp = new RegExp(
|
|
9474
|
+
"^(?:worker|user):[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
9475
|
+
);
|
|
9476
|
+
var resolveInformationRequestResponseDataCreatedByRegExp = new RegExp(
|
|
9477
|
+
"^(?:worker|user):[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
|
|
9478
|
+
);
|
|
9479
|
+
var ResolveInformationRequestResponse = zod.object({
|
|
9480
|
+
data: zod.object({
|
|
9481
|
+
id: zod.string(),
|
|
9482
|
+
question: zod.string().describe("What the asker needs to know"),
|
|
9483
|
+
resolution: zod.union([zod.string(), zod.null()]).describe("Null while the request is open"),
|
|
9484
|
+
resolved_by: zod.union([
|
|
9485
|
+
zod.string().regex(resolveInformationRequestResponseDataResolvedByOneRegExp).describe(
|
|
9486
|
+
'Actor string, e.g. "worker:<workerId>" or "user:<profileId>".'
|
|
9487
|
+
),
|
|
9488
|
+
zod.null()
|
|
9489
|
+
]),
|
|
9490
|
+
resolved_at: zod.union([zod.string().datetime({}), zod.null()]),
|
|
9491
|
+
metadata: zod.record(zod.string(), zod.unknown()),
|
|
9492
|
+
environment: zod.enum(["live", "test"]),
|
|
9493
|
+
created_by: zod.string().regex(resolveInformationRequestResponseDataCreatedByRegExp).describe("Actor that raised the request"),
|
|
9494
|
+
created_at: zod.string().datetime({})
|
|
9495
|
+
}),
|
|
9496
|
+
message: zod.string()
|
|
9497
|
+
});
|
|
9237
9498
|
var CreateToolBody = zod.object({
|
|
9238
9499
|
name: zod.string().min(1),
|
|
9239
9500
|
code: zod.string().min(1),
|
|
@@ -10858,6 +11119,39 @@ server.tool(
|
|
|
10858
11119
|
},
|
|
10859
11120
|
listNotificationsHandler
|
|
10860
11121
|
);
|
|
11122
|
+
server.tool(
|
|
11123
|
+
"createInformationRequest",
|
|
11124
|
+
"Ask for information",
|
|
11125
|
+
{
|
|
11126
|
+
bodyParams: CreateInformationRequestBody
|
|
11127
|
+
},
|
|
11128
|
+
createInformationRequestHandler
|
|
11129
|
+
);
|
|
11130
|
+
server.tool(
|
|
11131
|
+
"listInformationRequests",
|
|
11132
|
+
"List information requests",
|
|
11133
|
+
{
|
|
11134
|
+
queryParams: ListInformationRequestsQueryParams
|
|
11135
|
+
},
|
|
11136
|
+
listInformationRequestsHandler
|
|
11137
|
+
);
|
|
11138
|
+
server.tool(
|
|
11139
|
+
"getInformationRequest",
|
|
11140
|
+
"Get information request",
|
|
11141
|
+
{
|
|
11142
|
+
pathParams: GetInformationRequestParams
|
|
11143
|
+
},
|
|
11144
|
+
getInformationRequestHandler
|
|
11145
|
+
);
|
|
11146
|
+
server.tool(
|
|
11147
|
+
"resolveInformationRequest",
|
|
11148
|
+
"Resolve information request",
|
|
11149
|
+
{
|
|
11150
|
+
pathParams: ResolveInformationRequestParams,
|
|
11151
|
+
bodyParams: ResolveInformationRequestBody
|
|
11152
|
+
},
|
|
11153
|
+
resolveInformationRequestHandler
|
|
11154
|
+
);
|
|
10861
11155
|
server.tool(
|
|
10862
11156
|
"createTool",
|
|
10863
11157
|
"Create tool",
|
|
@@ -11050,4 +11344,4 @@ var transport = new StdioServerTransport();
|
|
|
11050
11344
|
server.connect(transport).then(() => {
|
|
11051
11345
|
console.error("MCP server running on stdio");
|
|
11052
11346
|
}).catch(console.error);
|
|
11053
|
-
//# sourceMappingURL=server-
|
|
11347
|
+
//# sourceMappingURL=server-DG4VTFPP.js.map
|