groundmail-mcp 0.19.1 → 0.19.3
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 +7 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1182,6 +1182,7 @@ function formatToolError(error) {
|
|
|
1182
1182
|
if (hint) lines.push(`hint: ${hint}`);
|
|
1183
1183
|
const docsUrl = text(err.docsUrl) ?? (code ? `https://docs.groundmail.dev/errors#${code}` : null);
|
|
1184
1184
|
if (docsUrl) lines.push(`how to fix: ${docsUrl}`);
|
|
1185
|
+
if (upgradeUrl || /billing|payment method/i.test(hint ?? "")) lines.push(BILLING_IN_DASHBOARD_NOTE);
|
|
1185
1186
|
return lines.join("\n");
|
|
1186
1187
|
}
|
|
1187
1188
|
var paginationProps = {
|
|
@@ -1217,11 +1218,12 @@ var readOnly = (title) => ({
|
|
|
1217
1218
|
openWorldHint: false
|
|
1218
1219
|
});
|
|
1219
1220
|
var HTTP_EXCLUDED_TOOLS = /* @__PURE__ */ new Set(["import_from_provider"]);
|
|
1221
|
+
var BILLING_IN_DASHBOARD_NOTE = "note: the user sets up billing themselves in the Groundmail dashboard. Do not ask for or accept card numbers or other payment details in chat.";
|
|
1220
1222
|
var HTTP_EXCLUDED_TOOL_MESSAGE = "import_from_provider is not available on the hosted Groundmail MCP server, because it needs your other provider's API key. Import from the dashboard at https://app.groundmail.dev/import, or run the local server (npx -y groundmail-mcp) where the key stays on your machine.";
|
|
1221
1223
|
var MCP_TOOLS = [
|
|
1222
1224
|
{
|
|
1223
1225
|
name: "send_email",
|
|
1224
|
-
description: "Send a transactional email via Groundmail. Provide subject + html/text, or a published template_id / template_alias with optional variables. To test without delivering anything, send to a simulator address: delivered@, bounce@, block@, complaint@, suppressed@ or delayed@simulator.groundmail.dev (plus addressing like bounce+test1@ works); the result has test: true and webhooks fire as for real mail.",
|
|
1226
|
+
description: "Send a transactional email via Groundmail. Provide subject + html/text, or a published template_id / template_alias with optional variables. To test without delivering anything, send to a simulator address: delivered@, bounce@, block@, complaint@, suppressed@ or delayed@simulator.groundmail.dev (plus addressing like bounce+test1@ works); the result has test: true and webhooks fire as for real mail. Do not put payment card numbers, government ID numbers, health information or passwords in the content.",
|
|
1225
1227
|
inputSchema: {
|
|
1226
1228
|
type: "object",
|
|
1227
1229
|
properties: {
|
|
@@ -1338,7 +1340,7 @@ var MCP_TOOLS = [
|
|
|
1338
1340
|
readOnlyHint: false,
|
|
1339
1341
|
destructiveHint: false,
|
|
1340
1342
|
idempotentHint: false,
|
|
1341
|
-
openWorldHint:
|
|
1343
|
+
openWorldHint: true
|
|
1342
1344
|
}
|
|
1343
1345
|
},
|
|
1344
1346
|
{
|
|
@@ -1931,12 +1933,13 @@ function resolveApiKey() {
|
|
|
1931
1933
|
}
|
|
1932
1934
|
|
|
1933
1935
|
// src/server.ts
|
|
1934
|
-
var MCP_SERVER_VERSION = "0.19.
|
|
1936
|
+
var MCP_SERVER_VERSION = "0.19.3";
|
|
1935
1937
|
var MCP_SERVER_INSTRUCTIONS = [
|
|
1936
1938
|
"Groundmail sends transactional email from domains the user has verified.",
|
|
1937
1939
|
'To test before a domain is verified, call send_email with from "noreply@mail.groundmail.dev" and to set to the Groundmail account email; sandbox sends to any other address are rejected.',
|
|
1938
|
-
"Sending to other recipients needs a verified domain (list_domains, create_domain, apply_domain_dns, verify_domain) and
|
|
1940
|
+
"Sending to other recipients needs a verified domain (list_domains, create_domain, apply_domain_dns, verify_domain) and billing set up by the user in the Groundmail dashboard at https://app.groundmail.dev/settings/billing (no charge on the Free plan).",
|
|
1939
1941
|
"Confirm with the user before sending email to anyone other than themselves.",
|
|
1942
|
+
"Never ask for or accept payment card numbers, passwords, government ID numbers, health information or other sensitive personal data in chat; the user enters billing and account details only in the Groundmail dashboard.",
|
|
1940
1943
|
"Errors include a stable code and a link to https://docs.groundmail.dev/errors#<code> that says how to fix them."
|
|
1941
1944
|
].join(" ");
|
|
1942
1945
|
var currentTool = new AsyncLocalStorage();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "groundmail-mcp",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.3",
|
|
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",
|