@avallon-labs/mcp 27.4.0-staging.778 → 27.6.0-staging.780
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
|
@@ -1134,6 +1134,22 @@ var getEmail = async (emailId, options) => {
|
|
|
1134
1134
|
const data = body ? JSON.parse(body) : {};
|
|
1135
1135
|
return { data, status: res.status, headers: res.headers };
|
|
1136
1136
|
};
|
|
1137
|
+
var getDeleteEmailUrl = (emailId) => {
|
|
1138
|
+
return `/v1/emails/${emailId}`;
|
|
1139
|
+
};
|
|
1140
|
+
var deleteEmail = async (emailId, options) => {
|
|
1141
|
+
const res = await fetch(getDeleteEmailUrl(emailId), {
|
|
1142
|
+
...options,
|
|
1143
|
+
method: "DELETE"
|
|
1144
|
+
});
|
|
1145
|
+
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
1146
|
+
const data = body ? JSON.parse(body) : {};
|
|
1147
|
+
return {
|
|
1148
|
+
data,
|
|
1149
|
+
status: res.status,
|
|
1150
|
+
headers: res.headers
|
|
1151
|
+
};
|
|
1152
|
+
};
|
|
1137
1153
|
var getListEmailThreadsUrl = (params) => {
|
|
1138
1154
|
const normalizedParams = new URLSearchParams();
|
|
1139
1155
|
Object.entries(params || {}).forEach(([key, value]) => {
|
|
@@ -3055,6 +3071,17 @@ var getEmailHandler = async (args) => {
|
|
|
3055
3071
|
]
|
|
3056
3072
|
};
|
|
3057
3073
|
};
|
|
3074
|
+
var deleteEmailHandler = async (args) => {
|
|
3075
|
+
const res = await deleteEmail(args.pathParams.emailId);
|
|
3076
|
+
return {
|
|
3077
|
+
content: [
|
|
3078
|
+
{
|
|
3079
|
+
type: "text",
|
|
3080
|
+
text: JSON.stringify(res)
|
|
3081
|
+
}
|
|
3082
|
+
]
|
|
3083
|
+
};
|
|
3084
|
+
};
|
|
3058
3085
|
var listEmailThreadsHandler = async (args) => {
|
|
3059
3086
|
const res = await listEmailThreads(args.queryParams);
|
|
3060
3087
|
return {
|
|
@@ -5254,7 +5281,10 @@ var GetArtifactResponse = zod.object({
|
|
|
5254
5281
|
created_at: zod.string().datetime({}),
|
|
5255
5282
|
created_at_document: zod.union([zod.string(), zod.null()]),
|
|
5256
5283
|
updated_at: zod.string().datetime({}),
|
|
5257
|
-
content_md: zod.union([zod.string(), zod.null()])
|
|
5284
|
+
content_md: zod.union([zod.string(), zod.null()]),
|
|
5285
|
+
content_with_chunkids_md: zod.union([zod.string(), zod.null()]).describe(
|
|
5286
|
+
"Parsed content annotated with [chunk_id=...] markers, always included when the artifact has parsed chunks. Chunk IDs are stable citation anchors usable to attribute extracted values to their source location. Null when the artifact has no parsed chunks."
|
|
5287
|
+
)
|
|
5258
5288
|
})
|
|
5259
5289
|
});
|
|
5260
5290
|
var getArtifactMetadataKeysQueryLimitDefault = 100;
|
|
@@ -5291,7 +5321,10 @@ var UpdateArtifactMetadataResponse = zod.object({
|
|
|
5291
5321
|
created_at: zod.string().datetime({}),
|
|
5292
5322
|
created_at_document: zod.union([zod.string(), zod.null()]),
|
|
5293
5323
|
updated_at: zod.string().datetime({}),
|
|
5294
|
-
content_md: zod.union([zod.string(), zod.null()])
|
|
5324
|
+
content_md: zod.union([zod.string(), zod.null()]),
|
|
5325
|
+
content_with_chunkids_md: zod.union([zod.string(), zod.null()]).describe(
|
|
5326
|
+
"Parsed content annotated with [chunk_id=...] markers, always included when the artifact has parsed chunks. Chunk IDs are stable citation anchors usable to attribute extracted values to their source location. Null when the artifact has no parsed chunks."
|
|
5327
|
+
)
|
|
5295
5328
|
})
|
|
5296
5329
|
});
|
|
5297
5330
|
var SignUpBody = zod.object({
|
|
@@ -5845,6 +5878,10 @@ var GetEmailResponse = zod.object({
|
|
|
5845
5878
|
received_at: zod.string(),
|
|
5846
5879
|
created_at: zod.string().datetime({})
|
|
5847
5880
|
});
|
|
5881
|
+
var DeleteEmailParams = zod.object({
|
|
5882
|
+
emailId: zod.string().min(1)
|
|
5883
|
+
});
|
|
5884
|
+
var DeleteEmailResponse = zod.object({});
|
|
5848
5885
|
var listEmailThreadsQueryCountDefault = 50;
|
|
5849
5886
|
var listEmailThreadsQueryCountMax = 100;
|
|
5850
5887
|
var listEmailThreadsQueryOffsetDefault = 0;
|
|
@@ -7595,6 +7632,14 @@ server.tool(
|
|
|
7595
7632
|
},
|
|
7596
7633
|
getEmailHandler
|
|
7597
7634
|
);
|
|
7635
|
+
server.tool(
|
|
7636
|
+
"deleteEmail",
|
|
7637
|
+
"Delete email",
|
|
7638
|
+
{
|
|
7639
|
+
pathParams: DeleteEmailParams
|
|
7640
|
+
},
|
|
7641
|
+
deleteEmailHandler
|
|
7642
|
+
);
|
|
7598
7643
|
server.tool(
|
|
7599
7644
|
"listEmailThreads",
|
|
7600
7645
|
"List email threads",
|
|
@@ -8133,4 +8178,4 @@ var transport = new StdioServerTransport();
|
|
|
8133
8178
|
server.connect(transport).then(() => {
|
|
8134
8179
|
console.error("MCP server running on stdio");
|
|
8135
8180
|
}).catch(console.error);
|
|
8136
|
-
//# sourceMappingURL=server-
|
|
8181
|
+
//# sourceMappingURL=server-U62TTJ4P.js.map
|