groundmail-mcp 0.29.9 → 0.29.10

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.
Files changed (2) hide show
  1. package/dist/index.js +23 -7
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -684,7 +684,7 @@ var migrationOutput = object(
684
684
  object(
685
685
  {
686
686
  id: string("Import id"),
687
- provider: string("sendgrid, postmark, mailgun, resend or ses"),
687
+ provider: string("sendgrid, postmark, mailgun, resend, ses or azure"),
688
688
  dry_run: boolean("True for a preview: nothing was written"),
689
689
  status: string("completed, partial (some items failed, each listed), failed, or in_progress"),
690
690
  started_at: string("When the import started (ISO 8601)"),
@@ -1687,8 +1687,8 @@ async function callMcpTool(client, name, args) {
1687
1687
  }
1688
1688
  case "import_from_provider": {
1689
1689
  const provider = optString(args, "provider");
1690
- if (provider !== "sendgrid" && provider !== "postmark" && provider !== "mailgun" && provider !== "resend" && provider !== "ses") {
1691
- return textResult("Missing or unknown provider: use sendgrid, postmark, mailgun, resend or ses", true);
1690
+ if (provider !== "sendgrid" && provider !== "postmark" && provider !== "mailgun" && provider !== "resend" && provider !== "ses" && provider !== "azure") {
1691
+ return textResult("Missing or unknown provider: use sendgrid, postmark, mailgun, resend, ses or azure", true);
1692
1692
  }
1693
1693
  const resources = optStringArray(args, "resources");
1694
1694
  const cursor = optString(args, "cursor");
@@ -1717,6 +1717,16 @@ async function callMcpTool(client, name, args) {
1717
1717
  aws_region: awsRegion,
1718
1718
  ...common
1719
1719
  };
1720
+ } else if (provider === "azure") {
1721
+ const subscriptionId = optString(args, "azure_subscription_id");
1722
+ if (!subscriptionId) {
1723
+ return textResult(
1724
+ "Azure Communication Services needs azure_subscription_id (the Azure subscription that holds the Email Communication Service). No key is needed: the workspace must have connected its Microsoft Entra tenant (dashboard \u2192 API keys \u2192 New credential \u2192 Azure managed identity \u2192 Connect Azure) and given the Groundmail app the Reader role on the resource group: https://docs.groundmail.dev/migration/azure-communication-services",
1725
+ true
1726
+ );
1727
+ }
1728
+ const tenantId = optString(args, "azure_tenant_id");
1729
+ params = { provider, azure_subscription_id: subscriptionId, ...tenantId ? { azure_tenant_id: tenantId } : {}, ...common };
1720
1730
  } else {
1721
1731
  const apiKey = optString(args, "api_key");
1722
1732
  if (!apiKey) return textResult("Missing required argument: api_key (the key of the account to import from)", true);
@@ -2857,14 +2867,18 @@ var MCP_TOOLS = [
2857
2867
  },
2858
2868
  {
2859
2869
  name: "import_from_provider",
2860
- description: "Beta. Import templates, suppressions (bounces, complaints, unsubscribes), sending domains and webhooks from SendGrid, Postmark, Mailgun, Resend or Amazon SES into Groundmail. Ask the user for their provider API key (Resend: a Full access key; Amazon SES: an access key with the read-only import policy, and the region); it is used for this import only and never stored, so do not write it to a file. Run with dry_run first to show the user what will be imported. Imported webhooks start disabled; Amazon SES has no webhooks, so its configuration sets are reported in the notes instead. Templates that use logic Groundmail does not convert are imported as drafts. The result includes what needs attention, the code change, and a prompt for making it.",
2870
+ description: "Beta. Import templates, suppressions (bounces, complaints, unsubscribes), sending domains and webhooks from SendGrid, Postmark, Mailgun, Resend, Amazon SES or Azure Communication Services into Groundmail. Ask the user for their provider API key (Resend: a Full access key; Amazon SES: an access key with the read-only import policy, and the region); it is used for this import only and never stored, so do not write it to a file. Azure Communication Services takes no key: ask for the Azure subscription ID, and the workspace must already have connected its Microsoft Entra tenant and given the Groundmail app the Reader role; it has no stored templates, so only domains, suppression lists and Event Grid webhooks come across. Run with dry_run first to show the user what will be imported. Imported webhooks start disabled; Amazon SES has no webhooks, so its configuration sets are reported in the notes instead. Templates that use logic Groundmail does not convert are imported as drafts. The result includes what needs attention, the code change, and a prompt for making it.",
2861
2871
  inputSchema: {
2862
2872
  type: "object",
2863
2873
  properties: {
2864
- provider: { type: "string", enum: ["sendgrid", "postmark", "mailgun", "resend", "ses"], description: "Provider to import from (ses = Amazon SES)" },
2874
+ provider: {
2875
+ type: "string",
2876
+ enum: ["sendgrid", "postmark", "mailgun", "resend", "ses", "azure"],
2877
+ description: "Provider to import from (ses = Amazon SES, azure = Azure Communication Services)"
2878
+ },
2865
2879
  api_key: {
2866
2880
  type: "string",
2867
- description: "Not for ses. SendGrid API key, Postmark server API token, Mailgun private API key (read access is enough), or a Resend API key with Full access"
2881
+ description: "Not for ses or azure. SendGrid API key, Postmark server API token, Mailgun private API key (read access is enough), or a Resend API key with Full access"
2868
2882
  },
2869
2883
  account_api_key: { type: "string", description: "Postmark only: account API token, needed to import sending domains" },
2870
2884
  region: { type: "string", enum: ["us", "eu"], description: "SendGrid and Mailgun: eu for EU-region accounts (default us)" },
@@ -2872,6 +2886,8 @@ var MCP_TOOLS = [
2872
2886
  aws_secret_access_key: { type: "string", description: "Amazon SES only: the secret access key" },
2873
2887
  aws_session_token: { type: "string", description: "Amazon SES only, temporary credentials: the session token" },
2874
2888
  aws_region: { type: "string", description: "Amazon SES only: the region to import, such as us-east-1. One region per import" },
2889
+ azure_subscription_id: { type: "string", description: "Azure Communication Services only: the Azure subscription ID (a GUID) that holds the Email Communication Service" },
2890
+ azure_tenant_id: { type: "string", description: "Azure Communication Services only, and only when the workspace has connected more than one Microsoft Entra tenant: which one to read" },
2875
2891
  resources: {
2876
2892
  type: "array",
2877
2893
  items: { type: "string", enum: ["domains", "webhooks", "templates", "suppressions"] },
@@ -2894,7 +2910,7 @@ var MCP_TOOLS = [
2894
2910
  },
2895
2911
  {
2896
2912
  name: "get_import_report",
2897
- description: "Beta. The stored report of an import from SendGrid, Postmark, Mailgun, Resend or Amazon SES: 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.",
2913
+ description: "Beta. The stored report of an import from SendGrid, Postmark, Mailgun, Resend, Amazon SES or Azure Communication Services: 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.",
2898
2914
  inputSchema: {
2899
2915
  type: "object",
2900
2916
  properties: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "groundmail-mcp",
3
- "version": "0.29.9",
3
+ "version": "0.29.10",
4
4
  "mcpName": "io.github.Groundmail/groundmail",
5
5
  "description": "Groundmail MCP server: send and receive email, give agents mailboxes, 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.32.2",
44
- "groundmail": "0.51.0"
44
+ "groundmail": "0.52.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "tsup": "^9.0.0",