@migma/mcp 1.1.2 → 1.3.1
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/build/client.d.ts.map +1 -1
- package/build/client.js +3 -1
- package/build/client.js.map +1 -1
- package/build/config.d.ts.map +1 -1
- package/build/config.js +22 -4
- package/build/config.js.map +1 -1
- package/build/index.d.ts +1 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +14 -11
- package/build/index.js.map +1 -1
- package/build/permissions.d.ts +2 -0
- package/build/permissions.d.ts.map +1 -0
- package/build/permissions.js +17 -0
- package/build/permissions.js.map +1 -0
- package/build/prompts/index.d.ts.map +1 -1
- package/build/prompts/index.js +4 -3
- package/build/prompts/index.js.map +1 -1
- package/build/tools/__tests__/catalog.test.js +20 -9
- package/build/tools/__tests__/catalog.test.js.map +1 -1
- package/build/tools/campaigns.d.ts +1 -1
- package/build/tools/campaigns.d.ts.map +1 -1
- package/build/tools/campaigns.js +244 -222
- package/build/tools/campaigns.js.map +1 -1
- package/build/tools/capabilities.d.ts.map +1 -1
- package/build/tools/capabilities.js +14 -5
- package/build/tools/capabilities.js.map +1 -1
- package/build/tools/contacts.d.ts +1 -1
- package/build/tools/contacts.d.ts.map +1 -1
- package/build/tools/contacts.js +356 -156
- package/build/tools/contacts.js.map +1 -1
- package/build/tools/domains.d.ts +1 -1
- package/build/tools/domains.d.ts.map +1 -1
- package/build/tools/domains.js +98 -96
- package/build/tools/domains.js.map +1 -1
- package/build/tools/export.d.ts +1 -1
- package/build/tools/export.d.ts.map +1 -1
- package/build/tools/export.js +97 -78
- package/build/tools/export.js.map +1 -1
- package/build/tools/generate.d.ts +1 -1
- package/build/tools/generate.d.ts.map +1 -1
- package/build/tools/generate.js +217 -109
- package/build/tools/generate.js.map +1 -1
- package/build/tools/metrics.d.ts +4 -0
- package/build/tools/metrics.d.ts.map +1 -0
- package/build/tools/metrics.js +39 -0
- package/build/tools/metrics.js.map +1 -0
- package/build/tools/projects.d.ts +1 -1
- package/build/tools/projects.d.ts.map +1 -1
- package/build/tools/projects.js +95 -77
- package/build/tools/projects.js.map +1 -1
- package/build/tools/segments.d.ts +1 -1
- package/build/tools/segments.d.ts.map +1 -1
- package/build/tools/segments.js +91 -67
- package/build/tools/segments.js.map +1 -1
- package/build/tools/send.d.ts +1 -1
- package/build/tools/send.d.ts.map +1 -1
- package/build/tools/send.js +72 -69
- package/build/tools/send.js.map +1 -1
- package/build/tools/tags.d.ts +1 -1
- package/build/tools/tags.d.ts.map +1 -1
- package/build/tools/tags.js +77 -69
- package/build/tools/tags.js.map +1 -1
- package/build/tools/validate.d.ts +1 -1
- package/build/tools/validate.d.ts.map +1 -1
- package/build/tools/validate.js +54 -44
- package/build/tools/validate.js.map +1 -1
- package/build/tools/webhooks.d.ts +1 -1
- package/build/tools/webhooks.d.ts.map +1 -1
- package/build/tools/webhooks.js +67 -57
- package/build/tools/webhooks.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/tools/validate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/tools/validate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAInC,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,KAAK,EACb,kBAAkB,CAAC,EAAE,MAAM,EAAE,QAuE9B"}
|
package/build/tools/validate.js
CHANGED
|
@@ -1,51 +1,61 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
import { canUse } from "../permissions.js";
|
|
3
|
+
export function registerValidateTools(server, client, grantedPermissions) {
|
|
4
|
+
if (canUse(grantedPermissions, ["email:validate"])) {
|
|
5
|
+
server.registerTool("migma_validate_email", {
|
|
6
|
+
title: "Validate Email",
|
|
7
|
+
description: "Run all email validations: compatibility across 30+ clients, broken links, spelling/grammar, and spam score. Returns a comprehensive report.",
|
|
8
|
+
annotations: { readOnlyHint: true },
|
|
9
|
+
inputSchema: z.object({
|
|
10
|
+
html: z.string().describe("Email HTML to validate"),
|
|
11
|
+
subject: z.string().optional().describe("Email subject line"),
|
|
12
|
+
}),
|
|
13
|
+
}, async (args) => {
|
|
14
|
+
const { data, error } = await client.validation.all({
|
|
15
|
+
html: args.html,
|
|
16
|
+
subject: args.subject,
|
|
17
|
+
});
|
|
18
|
+
if (error)
|
|
19
|
+
return toolError(error.message);
|
|
20
|
+
return toolResult(data);
|
|
14
21
|
});
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
}
|
|
23
|
+
if (canUse(grantedPermissions, ["email:validate"])) {
|
|
24
|
+
server.registerTool("migma_validate_compatibility", {
|
|
25
|
+
title: "Validate Compatibility",
|
|
26
|
+
description: "Check email rendering compatibility across 30+ email clients (Gmail, Outlook, Apple Mail, etc.). Returns a score out of 100.",
|
|
27
|
+
annotations: { readOnlyHint: true },
|
|
28
|
+
inputSchema: z.object({
|
|
29
|
+
html: z.string().describe("Email HTML to check"),
|
|
30
|
+
}),
|
|
31
|
+
}, async (args) => {
|
|
32
|
+
const { data, error } = await client.validation.compatibility({
|
|
33
|
+
html: args.html,
|
|
34
|
+
});
|
|
35
|
+
if (error)
|
|
36
|
+
return toolError(error.message);
|
|
37
|
+
return toolResult(data);
|
|
28
38
|
});
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
})
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
}
|
|
40
|
+
if (canUse(grantedPermissions, ["email:validate"])) {
|
|
41
|
+
server.registerTool("migma_validate_deliverability", {
|
|
42
|
+
title: "Validate Deliverability",
|
|
43
|
+
description: "Analyze email for spam triggers and predict inbox placement. Returns a spam score and recommendations.",
|
|
44
|
+
annotations: { readOnlyHint: true },
|
|
45
|
+
inputSchema: z.object({
|
|
46
|
+
html: z.string().describe("Email HTML to analyze"),
|
|
47
|
+
subject: z.string().optional().describe("Email subject line"),
|
|
48
|
+
}),
|
|
49
|
+
}, async (args) => {
|
|
50
|
+
const { data, error } = await client.validation.deliverability({
|
|
51
|
+
html: args.html,
|
|
52
|
+
subject: args.subject,
|
|
53
|
+
});
|
|
54
|
+
if (error)
|
|
55
|
+
return toolError(error.message);
|
|
56
|
+
return toolResult(data);
|
|
44
57
|
});
|
|
45
|
-
|
|
46
|
-
return toolError(error.message);
|
|
47
|
-
return toolResult(data);
|
|
48
|
-
});
|
|
58
|
+
}
|
|
49
59
|
}
|
|
50
60
|
function toolResult(data) {
|
|
51
61
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../src/tools/validate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../src/tools/validate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,MAAM,E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a;IAC/B,OAAO;QACL,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE;SAC/D;KACF,CAAC;AACJ,CAAC;AAED,SAAS,SAAS,CAAC,OAAe;IAChC,OAAO;QACL,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAe,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;QACnD,OAAO,EAAE,IAAI;KACd,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
2
|
import type { Migma } from "migma";
|
|
3
|
-
export declare function registerWebhookTools(server: McpServer, client: Migma): void;
|
|
3
|
+
export declare function registerWebhookTools(server: McpServer, client: Migma, grantedPermissions?: string[]): void;
|
|
4
4
|
//# sourceMappingURL=webhooks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/tools/webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/tools/webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAInC,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,KAAK,EACb,kBAAkB,CAAC,EAAE,MAAM,EAAE,QAsF9B"}
|
package/build/tools/webhooks.js
CHANGED
|
@@ -1,62 +1,72 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
description: "Create a webhook to receive event notifications (e.g. email.generation.completed, subscriber.added).",
|
|
15
|
-
inputSchema: z.object({
|
|
16
|
-
url: z.string().url().describe("Webhook endpoint URL"),
|
|
17
|
-
events: z
|
|
18
|
-
.array(z.string())
|
|
19
|
-
.min(1)
|
|
20
|
-
.describe("Event types to subscribe to (e.g. email.generation.completed, subscriber.added)"),
|
|
21
|
-
description: z
|
|
22
|
-
.string()
|
|
23
|
-
.optional()
|
|
24
|
-
.describe("Webhook description"),
|
|
25
|
-
}),
|
|
26
|
-
}, async (args) => {
|
|
27
|
-
const { data, error } = await client.webhooks.create({
|
|
28
|
-
url: args.url,
|
|
29
|
-
events: args.events,
|
|
30
|
-
description: args.description,
|
|
2
|
+
import { canUse } from "../permissions.js";
|
|
3
|
+
export function registerWebhookTools(server, client, grantedPermissions) {
|
|
4
|
+
if (canUse(grantedPermissions, ["webhook:read"])) {
|
|
5
|
+
server.registerTool("migma_list_webhooks", {
|
|
6
|
+
title: "List Webhooks",
|
|
7
|
+
description: "List all configured webhooks.",
|
|
8
|
+
annotations: { readOnlyHint: true },
|
|
9
|
+
}, async () => {
|
|
10
|
+
const { data, error } = await client.webhooks.list();
|
|
11
|
+
if (error)
|
|
12
|
+
return toolError(error.message);
|
|
13
|
+
return toolResult(data);
|
|
31
14
|
});
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
15
|
+
}
|
|
16
|
+
if (canUse(grantedPermissions, ["webhook:write"])) {
|
|
17
|
+
server.registerTool("migma_create_webhook", {
|
|
18
|
+
title: "Create Webhook",
|
|
19
|
+
description: "Create a webhook to receive event notifications (e.g. email.generation.completed, subscriber.added).",
|
|
20
|
+
inputSchema: z.object({
|
|
21
|
+
url: z.string().url().describe("Webhook endpoint URL"),
|
|
22
|
+
events: z
|
|
23
|
+
.array(z.string())
|
|
24
|
+
.min(1)
|
|
25
|
+
.describe("Event types to subscribe to (e.g. email.generation.completed, subscriber.added)"),
|
|
26
|
+
description: z
|
|
27
|
+
.string()
|
|
28
|
+
.optional()
|
|
29
|
+
.describe("Webhook description"),
|
|
30
|
+
}),
|
|
31
|
+
}, async (args) => {
|
|
32
|
+
const { data, error } = await client.webhooks.create({
|
|
33
|
+
url: args.url,
|
|
34
|
+
events: args.events,
|
|
35
|
+
description: args.description,
|
|
36
|
+
});
|
|
37
|
+
if (error)
|
|
38
|
+
return toolError(error.message);
|
|
39
|
+
return toolResult(data);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
if (canUse(grantedPermissions, ["webhook:write"])) {
|
|
43
|
+
server.registerTool("migma_test_webhook", {
|
|
44
|
+
title: "Test Webhook",
|
|
45
|
+
description: "Send a test event to a webhook endpoint.",
|
|
46
|
+
inputSchema: z.object({
|
|
47
|
+
webhookId: z.string().describe("Webhook ID"),
|
|
48
|
+
}),
|
|
49
|
+
}, async (args) => {
|
|
50
|
+
const { data, error } = await client.webhooks.test(args.webhookId);
|
|
51
|
+
if (error)
|
|
52
|
+
return toolError(error.message);
|
|
53
|
+
return toolResult(data);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
if (canUse(grantedPermissions, ["webhook:write"])) {
|
|
57
|
+
server.registerTool("migma_delete_webhook", {
|
|
58
|
+
title: "Delete Webhook",
|
|
59
|
+
description: "Delete a webhook by ID.",
|
|
60
|
+
inputSchema: z.object({
|
|
61
|
+
webhookId: z.string().describe("Webhook ID"),
|
|
62
|
+
}),
|
|
63
|
+
}, async (args) => {
|
|
64
|
+
const { data, error } = await client.webhooks.remove(args.webhookId);
|
|
65
|
+
if (error)
|
|
66
|
+
return toolError(error.message);
|
|
67
|
+
return toolResult(data);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
60
70
|
}
|
|
61
71
|
function toolResult(data) {
|
|
62
72
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../src/tools/webhooks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"webhooks.js","sourceRoot":"","sources":["../../src/tools/webhooks.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C,MAAM,UAAU,oBAAoB,CAClC,MAAiB,EACjB,MAAa,EACb,kBAA6B;IAE7B,IAAI,MAAM,CAAC,kBAAkB,EAAE,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC;QACjD,MAAM,CAAC,YAAY,CACjB,qBAAqB,EACrB;YACE,KAAK,EAAE,eAAe;YACtB,WAAW,EAAE,+BAA+B;YAC5C,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE;SACpC,EACD,KAAK,IAAI,EAAE;YACT,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;YACrD,IAAI,KAAK;gBAAE,OAAO,SAAS,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAC3C,OAAO,UAAU,CAAC,IAAI,CAAC,CAAC;QAC1B,CAAC,CACF,CAAC;IACJ,CAAC;IAED,IAAI,MAAM,CAAC,kBAAkB,EAAE,CAAC,e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O,EAAE,CAAC;QACnD,OAAO,EAAE,IAAI;KACd,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@migma/mcp",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Migma MCP server — generate, send, validate, and export AI-powered emails from any MCP-compatible client",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@modelcontextprotocol/sdk": "^1.9.0",
|
|
34
|
-
"migma": "^1.
|
|
34
|
+
"migma": "^1.4.0",
|
|
35
35
|
"zod": "^3.23.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|