@oneshot-agent/mcp-server 0.14.0 → 0.15.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/README.md +2 -0
- package/dist/index.js +1 -1
- package/dist/tools/domains.js +1 -1
- package/dist/tools/email.js +7 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -196,6 +196,8 @@ Use oneshot_email:
|
|
|
196
196
|
- from_name: "Jane Doe" (optional display name → "Jane Doe <jane@domain>")
|
|
197
197
|
- from_mailbox: "jane" (optional local-part, defaults to "agent")
|
|
198
198
|
- from_domain: "acme.com" (optional, defaults to "oneshotagent.com")
|
|
199
|
+
- mailbox_mode: "mailbox" (optional, 'relay' (default) | 'mailbox' — dedicated per-address
|
|
200
|
+
mailbox; only when first provisioning a new from_domain)
|
|
199
201
|
```
|
|
200
202
|
|
|
201
203
|
### Make a Phone Call
|
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ async function main() {
|
|
|
26
26
|
// Create MCP server
|
|
27
27
|
const server = new Server({
|
|
28
28
|
name: "oneshot-mcp",
|
|
29
|
-
version: "0.
|
|
29
|
+
version: "0.15.0", // keep in sync with package.json; guarded by version.test.ts
|
|
30
30
|
}, {
|
|
31
31
|
capabilities: {
|
|
32
32
|
tools: {},
|
package/dist/tools/domains.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export const listDomainsTool = {
|
|
2
2
|
name: "oneshot_list_domains",
|
|
3
|
-
description: "List the agent's sending domains
|
|
3
|
+
description: "List the agent's sending domains. Each has default_from (canonical default sender, e.g. agent@domain — billed like any address on its first send), addresses[] (mailboxes already provisioned — {address, status, warmup_state}; empty means none yet), pool_status (rotation eligibility: active|paused|removed), warmup_state (reputation health: warming|warmed|degraded), pause_reason (warming|low_reputation|manual|null), warmup_score, and daily send limits. A domain can be paused AND warming — reputation pauses auto-recover once warmed; manual pauses need a resume. Free.",
|
|
4
4
|
inputSchema: { type: "object", properties: {} },
|
|
5
5
|
};
|
|
6
6
|
export const pauseDomainTool = {
|
package/dist/tools/email.js
CHANGED
|
@@ -26,12 +26,17 @@ export const emailTool = {
|
|
|
26
26
|
},
|
|
27
27
|
from_mailbox: {
|
|
28
28
|
type: "string",
|
|
29
|
-
description: "Sender mailbox / local-part (optional, defaults to 'agent', i.e. agent@from_domain)",
|
|
29
|
+
description: "Sender mailbox / local-part (optional, defaults to 'agent', i.e. agent@from_domain). You can use any local-part — a new address is auto-provisioned on first use (starts unwarmed, warms over time). The FIRST send from any address — including the default 'agent@' — adds a one-time mailbox_provisioning_fee to the quote; it's free only once that address is already provisioned (active). See the domains list for each domain's default_from and existing addresses.",
|
|
30
30
|
},
|
|
31
31
|
from_name: {
|
|
32
32
|
type: "string",
|
|
33
33
|
description: "Display name shown to the recipient (optional), e.g. 'Jane Doe' renders as 'Jane Doe <jane@domain>'",
|
|
34
34
|
},
|
|
35
|
+
mailbox_mode: {
|
|
36
|
+
type: "string",
|
|
37
|
+
enum: ["relay", "mailbox"],
|
|
38
|
+
description: "How this domain sends (optional, defaults to 'relay'). 'relay' = header send, no per-address mailbox, no mailbox fee. 'mailbox' = a real dedicated mailbox per address (better deliverability + per-address warmup); each new address adds a one-time mailbox_provisioning_fee to the quote. Only applies when a domain is first set up — use it on a new from_domain; an existing domain keeps the mode it was created with.",
|
|
39
|
+
},
|
|
35
40
|
attachments: {
|
|
36
41
|
type: "array",
|
|
37
42
|
items: {
|
|
@@ -58,6 +63,7 @@ export async function handleEmail(agent, args) {
|
|
|
58
63
|
from_domain: args.from_domain,
|
|
59
64
|
from_mailbox: args.from_mailbox,
|
|
60
65
|
from_name: args.from_name,
|
|
66
|
+
mailbox_mode: args.mailbox_mode,
|
|
61
67
|
attachments: args.attachments,
|
|
62
68
|
});
|
|
63
69
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oneshot-agent/mcp-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.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.23.0",
|
|
29
29
|
"zod": "3.25.76"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|