@avallon-labs/mcp 27.6.0-staging.780 → 27.8.0-staging.783
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
|
@@ -1817,6 +1817,22 @@ var updateChatAgent = async (chatAgentId, updateChatAgentRequest, options) => {
|
|
|
1817
1817
|
headers: res.headers
|
|
1818
1818
|
};
|
|
1819
1819
|
};
|
|
1820
|
+
var getDeleteChatAgentUrl = (chatAgentId) => {
|
|
1821
|
+
return `/v1/chat-agents/${chatAgentId}`;
|
|
1822
|
+
};
|
|
1823
|
+
var deleteChatAgent = async (chatAgentId, options) => {
|
|
1824
|
+
const res = await fetch(getDeleteChatAgentUrl(chatAgentId), {
|
|
1825
|
+
...options,
|
|
1826
|
+
method: "DELETE"
|
|
1827
|
+
});
|
|
1828
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
1829
|
+
const data = body ? JSON.parse(body) : {};
|
|
1830
|
+
return {
|
|
1831
|
+
data,
|
|
1832
|
+
status: res.status,
|
|
1833
|
+
headers: res.headers
|
|
1834
|
+
};
|
|
1835
|
+
};
|
|
1820
1836
|
var getGetChatAgentPromptUrl = (chatAgentId) => {
|
|
1821
1837
|
return `/v1/chat-agents/${chatAgentId}/prompt`;
|
|
1822
1838
|
};
|
|
@@ -2147,15 +2163,13 @@ var listTools = async (params, options) => {
|
|
|
2147
2163
|
headers: res.headers
|
|
2148
2164
|
};
|
|
2149
2165
|
};
|
|
2150
|
-
var
|
|
2151
|
-
return `/v1/tools/${id}
|
|
2166
|
+
var getDeleteToolUrl = (id) => {
|
|
2167
|
+
return `/v1/tools/${id}`;
|
|
2152
2168
|
};
|
|
2153
|
-
var
|
|
2154
|
-
const res = await fetch(
|
|
2169
|
+
var deleteTool = async (id, options) => {
|
|
2170
|
+
const res = await fetch(getDeleteToolUrl(id), {
|
|
2155
2171
|
...options,
|
|
2156
|
-
method: "
|
|
2157
|
-
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
2158
|
-
body: JSON.stringify(executeCodeBody)
|
|
2172
|
+
method: "DELETE"
|
|
2159
2173
|
});
|
|
2160
2174
|
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
2161
2175
|
const data = body ? JSON.parse(body) : {};
|
|
@@ -2195,6 +2209,24 @@ var updateTool = async (id, updateToolBody, options) => {
|
|
|
2195
2209
|
headers: res.headers
|
|
2196
2210
|
};
|
|
2197
2211
|
};
|
|
2212
|
+
var getExecuteCodeUrl = (id) => {
|
|
2213
|
+
return `/v1/tools/${id}/execute`;
|
|
2214
|
+
};
|
|
2215
|
+
var executeCode = async (id, executeCodeBody, options) => {
|
|
2216
|
+
const res = await fetch(getExecuteCodeUrl(id), {
|
|
2217
|
+
...options,
|
|
2218
|
+
method: "POST",
|
|
2219
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
2220
|
+
body: JSON.stringify(executeCodeBody)
|
|
2221
|
+
});
|
|
2222
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
2223
|
+
const data = body ? JSON.parse(body) : {};
|
|
2224
|
+
return {
|
|
2225
|
+
data,
|
|
2226
|
+
status: res.status,
|
|
2227
|
+
headers: res.headers
|
|
2228
|
+
};
|
|
2229
|
+
};
|
|
2198
2230
|
var getWorkerListToolsUrl = () => {
|
|
2199
2231
|
return `/worker/v1/tools`;
|
|
2200
2232
|
};
|
|
@@ -3460,6 +3492,17 @@ var updateChatAgentHandler = async (args) => {
|
|
|
3460
3492
|
]
|
|
3461
3493
|
};
|
|
3462
3494
|
};
|
|
3495
|
+
var deleteChatAgentHandler = async (args) => {
|
|
3496
|
+
const res = await deleteChatAgent(args.pathParams.chatAgentId);
|
|
3497
|
+
return {
|
|
3498
|
+
content: [
|
|
3499
|
+
{
|
|
3500
|
+
type: "text",
|
|
3501
|
+
text: JSON.stringify(res)
|
|
3502
|
+
}
|
|
3503
|
+
]
|
|
3504
|
+
};
|
|
3505
|
+
};
|
|
3463
3506
|
var getChatAgentPromptHandler = async (args) => {
|
|
3464
3507
|
const res = await getChatAgentPrompt(args.pathParams.chatAgentId);
|
|
3465
3508
|
return {
|
|
@@ -3650,8 +3693,8 @@ var listToolsHandler = async (args) => {
|
|
|
3650
3693
|
]
|
|
3651
3694
|
};
|
|
3652
3695
|
};
|
|
3653
|
-
var
|
|
3654
|
-
const res = await
|
|
3696
|
+
var deleteToolHandler = async (args) => {
|
|
3697
|
+
const res = await deleteTool(args.pathParams.id);
|
|
3655
3698
|
return {
|
|
3656
3699
|
content: [
|
|
3657
3700
|
{
|
|
@@ -3683,6 +3726,17 @@ var updateToolHandler = async (args) => {
|
|
|
3683
3726
|
]
|
|
3684
3727
|
};
|
|
3685
3728
|
};
|
|
3729
|
+
var executeCodeHandler = async (args) => {
|
|
3730
|
+
const res = await executeCode(args.pathParams.id, args.bodyParams);
|
|
3731
|
+
return {
|
|
3732
|
+
content: [
|
|
3733
|
+
{
|
|
3734
|
+
type: "text",
|
|
3735
|
+
text: JSON.stringify(res)
|
|
3736
|
+
}
|
|
3737
|
+
]
|
|
3738
|
+
};
|
|
3739
|
+
};
|
|
3686
3740
|
var workerListToolsHandler = async () => {
|
|
3687
3741
|
const res = await workerListTools();
|
|
3688
3742
|
return {
|
|
@@ -6518,6 +6572,10 @@ var UpdateChatAgentResponse = zod.object({
|
|
|
6518
6572
|
created_at: zod.string().datetime({}),
|
|
6519
6573
|
updated_at: zod.string().datetime({})
|
|
6520
6574
|
});
|
|
6575
|
+
var DeleteChatAgentParams = zod.object({
|
|
6576
|
+
chatAgentId: zod.string().uuid()
|
|
6577
|
+
});
|
|
6578
|
+
var DeleteChatAgentResponse = zod.object({});
|
|
6521
6579
|
var GetChatAgentPromptParams = zod.object({
|
|
6522
6580
|
chatAgentId: zod.string().uuid()
|
|
6523
6581
|
});
|
|
@@ -6795,26 +6853,10 @@ var ListToolsResponse = zod.object({
|
|
|
6795
6853
|
})
|
|
6796
6854
|
)
|
|
6797
6855
|
});
|
|
6798
|
-
var
|
|
6856
|
+
var DeleteToolParams = zod.object({
|
|
6799
6857
|
id: zod.string().uuid()
|
|
6800
6858
|
});
|
|
6801
|
-
var
|
|
6802
|
-
var ExecuteCodeBody = zod.object({
|
|
6803
|
-
params: zod.record(zod.string(), zod.unknown()).default(executeCodeBodyParamsDefault)
|
|
6804
|
-
});
|
|
6805
|
-
var ExecuteCodeResponse = zod.object({
|
|
6806
|
-
result: zod.string().optional(),
|
|
6807
|
-
error: zod.object({
|
|
6808
|
-
name: zod.string(),
|
|
6809
|
-
message: zod.string()
|
|
6810
|
-
}).optional(),
|
|
6811
|
-
traces: zod.array(
|
|
6812
|
-
zod.object({
|
|
6813
|
-
text: zod.string(),
|
|
6814
|
-
timestamp: zod.string()
|
|
6815
|
-
})
|
|
6816
|
-
)
|
|
6817
|
-
});
|
|
6859
|
+
var DeleteToolResponse = zod.object({});
|
|
6818
6860
|
var GetToolParams = zod.object({
|
|
6819
6861
|
id: zod.string().uuid()
|
|
6820
6862
|
});
|
|
@@ -6847,6 +6889,26 @@ var UpdateToolResponse = zod.object({
|
|
|
6847
6889
|
has_api_key: zod.boolean()
|
|
6848
6890
|
})
|
|
6849
6891
|
});
|
|
6892
|
+
var ExecuteCodeParams = zod.object({
|
|
6893
|
+
id: zod.string().uuid()
|
|
6894
|
+
});
|
|
6895
|
+
var executeCodeBodyParamsDefault = {};
|
|
6896
|
+
var ExecuteCodeBody = zod.object({
|
|
6897
|
+
params: zod.record(zod.string(), zod.unknown()).default(executeCodeBodyParamsDefault)
|
|
6898
|
+
});
|
|
6899
|
+
var ExecuteCodeResponse = zod.object({
|
|
6900
|
+
result: zod.string().optional(),
|
|
6901
|
+
error: zod.object({
|
|
6902
|
+
name: zod.string(),
|
|
6903
|
+
message: zod.string()
|
|
6904
|
+
}).optional(),
|
|
6905
|
+
traces: zod.array(
|
|
6906
|
+
zod.object({
|
|
6907
|
+
text: zod.string(),
|
|
6908
|
+
timestamp: zod.string()
|
|
6909
|
+
})
|
|
6910
|
+
)
|
|
6911
|
+
});
|
|
6850
6912
|
var WorkerListToolsResponse = zod.object({
|
|
6851
6913
|
tools: zod.array(
|
|
6852
6914
|
zod.object({
|
|
@@ -7912,6 +7974,14 @@ server.tool(
|
|
|
7912
7974
|
},
|
|
7913
7975
|
updateChatAgentHandler
|
|
7914
7976
|
);
|
|
7977
|
+
server.tool(
|
|
7978
|
+
"deleteChatAgent",
|
|
7979
|
+
"Delete chat agent",
|
|
7980
|
+
{
|
|
7981
|
+
pathParams: DeleteChatAgentParams
|
|
7982
|
+
},
|
|
7983
|
+
deleteChatAgentHandler
|
|
7984
|
+
);
|
|
7915
7985
|
server.tool(
|
|
7916
7986
|
"getChatAgentPrompt",
|
|
7917
7987
|
"Get chat agent prompt",
|
|
@@ -8039,13 +8109,12 @@ server.tool(
|
|
|
8039
8109
|
listToolsHandler
|
|
8040
8110
|
);
|
|
8041
8111
|
server.tool(
|
|
8042
|
-
"
|
|
8043
|
-
"
|
|
8112
|
+
"deleteTool",
|
|
8113
|
+
"Delete tool",
|
|
8044
8114
|
{
|
|
8045
|
-
pathParams:
|
|
8046
|
-
bodyParams: ExecuteCodeBody
|
|
8115
|
+
pathParams: DeleteToolParams
|
|
8047
8116
|
},
|
|
8048
|
-
|
|
8117
|
+
deleteToolHandler
|
|
8049
8118
|
);
|
|
8050
8119
|
server.tool(
|
|
8051
8120
|
"getTool",
|
|
@@ -8064,6 +8133,15 @@ server.tool(
|
|
|
8064
8133
|
},
|
|
8065
8134
|
updateToolHandler
|
|
8066
8135
|
);
|
|
8136
|
+
server.tool(
|
|
8137
|
+
"executeCode",
|
|
8138
|
+
"Execute tool",
|
|
8139
|
+
{
|
|
8140
|
+
pathParams: ExecuteCodeParams,
|
|
8141
|
+
bodyParams: ExecuteCodeBody
|
|
8142
|
+
},
|
|
8143
|
+
executeCodeHandler
|
|
8144
|
+
);
|
|
8067
8145
|
server.tool("workerListTools", "List worker tools", workerListToolsHandler);
|
|
8068
8146
|
server.tool(
|
|
8069
8147
|
"workerGetTool",
|
|
@@ -8178,4 +8256,4 @@ var transport = new StdioServerTransport();
|
|
|
8178
8256
|
server.connect(transport).then(() => {
|
|
8179
8257
|
console.error("MCP server running on stdio");
|
|
8180
8258
|
}).catch(console.error);
|
|
8181
|
-
//# sourceMappingURL=server-
|
|
8259
|
+
//# sourceMappingURL=server-VWVO263K.js.map
|