monacloud-mcp 0.6.0 → 0.7.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/mail.js +21 -0
- package/package.json +1 -1
package/dist/mail.js
CHANGED
|
@@ -237,4 +237,25 @@ export function registerMailTools(server, clients, config) {
|
|
|
237
237
|
}, ({ inbox_id, match, timeout }) => runTool(() => clients.mail(`/v1/inboxes/${encodeURIComponent(inbox_id)}/wait`, {
|
|
238
238
|
query: { match, timeout },
|
|
239
239
|
})));
|
|
240
|
+
server.registerTool('mail_inbox_update', {
|
|
241
|
+
title: 'Cấu hình hộp agent',
|
|
242
|
+
description: 'Khi cần đặt cách hộp xử lý thư: mode redirect (tự forward thư về email chủ) | store (chỉ lưu) | ai (để AI trực), địa chỉ forward_to, chat Telegram nhận báo, hoặc bật/tắt hộp. / Use to configure an inbox: redirect-forward email, Telegram chat, mode, active.',
|
|
243
|
+
inputSchema: z.object({
|
|
244
|
+
inbox_id: id,
|
|
245
|
+
forward_to: email.optional().describe('Email chủ nhận bản forward khi mode=redirect.'),
|
|
246
|
+
mode: z.enum(['redirect', 'store', 'ai']).optional().describe('redirect=tự forward về forward_to · store=chỉ lưu · ai=để AI trực.'),
|
|
247
|
+
notify_telegram: z.string().max(64).optional().describe('chat_id Telegram nhận ping khi có thư.'),
|
|
248
|
+
active: z.boolean().optional(),
|
|
249
|
+
}).strict().refine((v) => Object.keys(v).length > 1, 'Cần ít nhất một trường để cập nhật.'),
|
|
250
|
+
}, ({ inbox_id, ...body }) => runTool(() => clients.mail(`/v1/inboxes/${encodeURIComponent(inbox_id)}`, { method: 'PATCH', body })));
|
|
251
|
+
server.registerTool('mail_inbox_batch', {
|
|
252
|
+
title: 'Tạo nhiều hộp agent',
|
|
253
|
+
description: 'Khi cần tạo nhiều địa chỉ một lần (ví dụ mỗi nhân viên một hộp), tạo hàng loạt trong quota gói; lỗi từng hộp không hủy cả batch. / Use to create many inboxes at once.',
|
|
254
|
+
inputSchema: z.object({
|
|
255
|
+
agent_ids: z.array(agentId).min(1).max(100),
|
|
256
|
+
domain: domain.optional(),
|
|
257
|
+
forward_to: email.optional(),
|
|
258
|
+
mode: z.enum(['redirect', 'store', 'ai']).optional(),
|
|
259
|
+
}).strict(),
|
|
260
|
+
}, (body) => runTool(() => clients.mail('/v1/inboxes/batch', { method: 'POST', body })));
|
|
240
261
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "monacloud-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "MCP server for MONA Cloud \u2014 deploy apps (Vercel alternative), Supabase-compatible Postgres/Auth/Storage bases (Supabase alternative), VND wallet, MONA Pay & Mail \u2014 for AI agents (Claude, Cursor, Codex) in Vietnam.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://monacloud.vn",
|