groundmail-mcp 0.7.1 → 0.8.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/index.js +27 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -403,10 +403,14 @@ var migrationOutput = object(
|
|
|
403
403
|
has_more: boolean("True if the import stopped early; call the tool again with `cursor` to continue"),
|
|
404
404
|
next_cursor: nullableString("Pass as `cursor` to continue an import that stopped early"),
|
|
405
405
|
retry_after_seconds: { type: ["number", "null"], description: "Wait this long before continuing" },
|
|
406
|
-
domains: anyObject(
|
|
406
|
+
domains: anyObject(
|
|
407
|
+
"Totals and one item per domain, with the DNS records and `dns_plan`: each record compared with what the domain publishes today (add, update an existing SPF record, keep the existing DMARC record, or already published), and which old-provider records to keep until the cutover"
|
|
408
|
+
),
|
|
407
409
|
webhooks: anyObject("Totals and one item per webhook (created disabled), with mapped events and the signing secret"),
|
|
408
410
|
templates: anyObject("Totals and one item per template, with its alias and conversion notes"),
|
|
409
|
-
suppressions: anyObject(
|
|
411
|
+
suppressions: anyObject(
|
|
412
|
+
"Totals by type (bounce, complaint, unsubscribe, manual, product_opt_out) and skip reasons (for example bounces caused by a block on the old provider, which are not suppressed)"
|
|
413
|
+
),
|
|
410
414
|
errors: arrayOf(anyObject("A resource that could not be read"), "Resources that could not be read at all"),
|
|
411
415
|
notes: stringArray("What was left out on purpose, and why"),
|
|
412
416
|
attention: stringArray("What the user still needs to do"),
|
|
@@ -682,6 +686,15 @@ async function callMcpTool(client, name, args) {
|
|
|
682
686
|
};
|
|
683
687
|
return textResult({ migration: await client.migrations.run(params) });
|
|
684
688
|
}
|
|
689
|
+
case "get_import_report": {
|
|
690
|
+
let id = optString(args, "id");
|
|
691
|
+
if (!id) {
|
|
692
|
+
const { data } = await client.migrations.list({ limit: 1 });
|
|
693
|
+
if (!data[0]) return textResult("No imports yet. Run import_from_provider first; previews are not stored.", true);
|
|
694
|
+
id = data[0].id;
|
|
695
|
+
}
|
|
696
|
+
return textResult(await client.migrations.get(id));
|
|
697
|
+
}
|
|
685
698
|
default:
|
|
686
699
|
return textResult(`Unknown tool: ${name}`, true);
|
|
687
700
|
}
|
|
@@ -1123,6 +1136,18 @@ var MCP_TOOLS = [
|
|
|
1123
1136
|
idempotentHint: true,
|
|
1124
1137
|
openWorldHint: true
|
|
1125
1138
|
}
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
name: "get_import_report",
|
|
1142
|
+
description: "Beta. The stored report of an import from SendGrid, Postmark or Mailgun: what was imported, skipped and failed, the DNS changes per domain, what still needs doing, the code change and a prompt for it. Pass the import id, or omit it for the latest import. Previews are not stored.",
|
|
1143
|
+
inputSchema: {
|
|
1144
|
+
type: "object",
|
|
1145
|
+
properties: {
|
|
1146
|
+
id: { type: "string", description: "Import id (the `id` from import_from_provider). Omit for the latest import." }
|
|
1147
|
+
}
|
|
1148
|
+
},
|
|
1149
|
+
outputSchema: migrationOutput,
|
|
1150
|
+
annotations: readOnly("Get an import report")
|
|
1126
1151
|
}
|
|
1127
1152
|
];
|
|
1128
1153
|
function resolveApiKey() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "groundmail-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"mcpName": "io.github.Groundmail/groundmail",
|
|
5
5
|
"description": "Groundmail MCP server: send transactional email, manage domains, templates, webhooks and suppressions from Claude, Cursor, ChatGPT and other MCP clients",
|
|
6
6
|
"license": "MIT",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
44
|
-
"groundmail": "0.
|
|
44
|
+
"groundmail": "0.16.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"tsup": "^8.5.0",
|