@multimail/mcp-server 0.1.5 → 0.1.7
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 +8 -3
- package/package.json +1 -1
- package/LICENSE +0 -21
package/dist/index.js
CHANGED
|
@@ -68,7 +68,7 @@ function getMailboxId(argsMailboxId) {
|
|
|
68
68
|
// --- Server ---
|
|
69
69
|
const server = new McpServer({
|
|
70
70
|
name: "multimail",
|
|
71
|
-
version: "0.1.
|
|
71
|
+
version: "0.1.7",
|
|
72
72
|
});
|
|
73
73
|
// Tool 1: list_mailboxes
|
|
74
74
|
server.tool("list_mailboxes", "List all mailboxes available to this API key. Returns each mailbox's ID, email address, oversight mode, and display name. Use this to discover your mailbox ID if MULTIMAIL_MAILBOX_ID is not set.", {}, async () => {
|
|
@@ -76,7 +76,7 @@ server.tool("list_mailboxes", "List all mailboxes available to this API key. Ret
|
|
|
76
76
|
return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
|
|
77
77
|
});
|
|
78
78
|
// Tool 2: send_email
|
|
79
|
-
server.tool("send_email", "Send an email from your MultiMail address. The body is written in markdown and automatically converted to formatted HTML for delivery. If the mailbox uses gated oversight, the response status will be 'pending_approval' — this means the email is queued for human review. Do not retry or resend when you see pending_approval.", {
|
|
79
|
+
server.tool("send_email", "Send an email from your MultiMail address. The body is written in markdown and automatically converted to formatted HTML for delivery. If the mailbox is in read_only mode, this returns a 403 error with upgrade instructions — use request-upgrade to ask the operator for more autonomy. If the mailbox uses gated oversight, the response status will be 'pending_approval' — this means the email is queued for human review. Do not retry or resend when you see pending_approval.", {
|
|
80
80
|
to: z.array(z.string().email()).describe("Recipient email addresses"),
|
|
81
81
|
subject: z.string().describe("Email subject line"),
|
|
82
82
|
markdown: z.string().describe("Email body in markdown format"),
|
|
@@ -110,7 +110,7 @@ server.tool("read_email", "Get the full content of a specific email, including t
|
|
|
110
110
|
return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
|
|
111
111
|
});
|
|
112
112
|
// Tool 5: reply_email
|
|
113
|
-
server.tool("reply_email", "Reply to an email in its existing thread. Threading headers (In-Reply-To, References) are set automatically. The body is written in markdown. If the mailbox uses gated oversight, the response status will be 'pending_approval' — the reply is queued for human review. Do not retry or resend when you see pending_approval.", {
|
|
113
|
+
server.tool("reply_email", "Reply to an email in its existing thread. Threading headers (In-Reply-To, References) are set automatically. The body is written in markdown. If the mailbox is in read_only mode, this returns a 403 error with upgrade instructions. If the mailbox uses gated oversight, the response status will be 'pending_approval' — the reply is queued for human review. Do not retry or resend when you see pending_approval.", {
|
|
114
114
|
email_id: z.string().describe("The email ID to reply to"),
|
|
115
115
|
markdown: z.string().describe("Reply body in markdown format"),
|
|
116
116
|
cc: z.array(z.string().email()).optional().describe("CC email addresses"),
|
|
@@ -130,6 +130,11 @@ server.tool("search_identity", "Look up the public identity document for any Mul
|
|
|
130
130
|
const data = await publicFetch(`/.well-known/agent/${encodeURIComponent(address)}`);
|
|
131
131
|
return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
|
|
132
132
|
});
|
|
133
|
+
// Tool 7: resend_confirmation
|
|
134
|
+
server.tool("resend_confirmation", "Resend the operator anti-spam confirmation email. Use this if the account is stuck in 'pending_operator_confirmation' status because the original confirmation email was lost or filtered. Rate limited to 1 request per 5 minutes. Only works for unconfirmed accounts.", {}, async () => {
|
|
135
|
+
const data = await apiCall("POST", "/v1/account/resend-confirmation");
|
|
136
|
+
return { content: [{ type: "text", text: JSON.stringify(data, null, 2) }] };
|
|
137
|
+
});
|
|
133
138
|
// --- Start ---
|
|
134
139
|
async function main() {
|
|
135
140
|
const transport = new StdioServerTransport();
|
package/package.json
CHANGED
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 multimail-dev
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|