@oneshot-agent/mcp-server 0.10.5 → 0.11.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/tools/email.js +9 -4
- package/package.json +2 -2
package/dist/tools/email.js
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
export const emailTool = {
|
|
2
2
|
name: "oneshot_email",
|
|
3
|
-
description: "Send an email. Supports HTML body and
|
|
3
|
+
description: "Send an email. Supports HTML body, attachments, and threaded replies (set reply_to_email_id to an inbound email id from oneshot_inbox_list/oneshot_inbox_get). Paid tool — quote provided before payment.",
|
|
4
4
|
inputSchema: {
|
|
5
5
|
type: "object",
|
|
6
6
|
properties: {
|
|
7
7
|
to: {
|
|
8
8
|
type: "string",
|
|
9
|
-
description: "Recipient email address (or comma-separated list)",
|
|
9
|
+
description: "Recipient email address (or comma-separated list). Optional when reply_to_email_id is set — defaults to the inbound sender.",
|
|
10
10
|
},
|
|
11
11
|
subject: {
|
|
12
12
|
type: "string",
|
|
13
|
-
description: "Email subject line",
|
|
13
|
+
description: "Email subject line. Optional when reply_to_email_id is set — defaults to 'Re: <original subject>'.",
|
|
14
|
+
},
|
|
15
|
+
reply_to_email_id: {
|
|
16
|
+
type: "string",
|
|
17
|
+
description: "Reply within a thread: id of an inbound email (from oneshot_inbox_list/oneshot_inbox_get). Sets In-Reply-To/References headers so mail clients group the conversation.",
|
|
14
18
|
},
|
|
15
19
|
body: {
|
|
16
20
|
type: "string",
|
|
@@ -42,13 +46,14 @@ export const emailTool = {
|
|
|
42
46
|
description: "File attachments (optional)",
|
|
43
47
|
},
|
|
44
48
|
},
|
|
45
|
-
required: ["
|
|
49
|
+
required: ["body"],
|
|
46
50
|
},
|
|
47
51
|
};
|
|
48
52
|
export async function handleEmail(agent, args) {
|
|
49
53
|
return agent.email({
|
|
50
54
|
to: args.to,
|
|
51
55
|
subject: args.subject,
|
|
56
|
+
reply_to_email_id: args.reply_to_email_id,
|
|
52
57
|
body: args.body,
|
|
53
58
|
from_domain: args.from_domain,
|
|
54
59
|
from_mailbox: args.from_mailbox,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneshot-agent/mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "MCP server for OneShot - commercial actions for AI agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@coinbase/cdp-sdk": "1.45.0",
|
|
27
27
|
"@modelcontextprotocol/sdk": "1.27.1",
|
|
28
|
-
"@oneshot-agent/sdk": "^0.
|
|
28
|
+
"@oneshot-agent/sdk": "^0.19.0",
|
|
29
29
|
"zod": "3.25.76"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|