@assemblyline-agents/resend 5.0.9 → 6.0.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 CHANGED
@@ -5,16 +5,13 @@ MCP server at `https://mcp.resend.com/mcp`.
5
5
 
6
6
  The connection exposes Resend email, inbound email, broadcast, contact,
7
7
  template, automation, domain, segment, topic, webhook, and delivery-log tools.
8
- Reviewed tools run without requiring an approval surface. Set
9
- `access: "approval-required"` if sending email and remote mutations should
10
- pause for approval.
8
+ Reviewed tools use the plugin's default authority. Gate or remove named actions
9
+ through the typed connection exception shown below.
11
10
 
12
11
  ## Install
13
12
 
14
13
  ```sh
15
14
  assembly-line add resend agent
16
- # Or install the package without scaffolding:
17
- npm install @assemblyline-agents/resend
18
15
  ```
19
16
 
20
17
  Create a team-scoped API key in Resend and store it as `RESEND_API_KEY` on the
@@ -27,11 +24,8 @@ A `full_access` key is required for account reads and management. A
27
24
  `tools` filter is restricted to the required send operations. Verify a sender
28
25
  domain before sending to recipients outside the Resend test account.
29
26
 
30
- ```ts
31
- import { defineResendConnection } from "@assemblyline-agents/resend";
32
-
33
- export default defineResendConnection({ access: "approval-required" });
34
- ```
27
+ Gate or remove named actions through
28
+ `plugins.resend.connections.resend.approval` or `disable` in `agent.md`.
35
29
 
36
30
  Resend's MCP tools that return newly issued credentials are excluded. Create
37
31
  API keys and webhook signing secrets outside agent context, then store them in
@@ -0,0 +1,79 @@
1
+ {
2
+ "kind": "resend",
3
+ "role": "connection",
4
+ "packageName": "@assemblyline-agents/resend",
5
+ "helper": "defineResendConnection",
6
+ "protocol": "mcp",
7
+ "transport": "http",
8
+ "provider": "resend",
9
+ "description": "Transactional email, broadcasts, contacts, domains, templates, automations, and delivery data through Resend's official hosted MCP server.",
10
+ "defaultUrl": "https://mcp.resend.com/mcp",
11
+ "urlEnv": "RESEND_MCP_URL",
12
+ "tokenEnv": "RESEND_API_KEY",
13
+ "tokenRequired": true,
14
+ "capabilities": [
15
+ "mcp",
16
+ "live-tools",
17
+ "streamable-http"
18
+ ],
19
+ "scopes": [],
20
+ "subject": "environment",
21
+ "tools": {
22
+ "block": [
23
+ "connect-to-editor",
24
+ "create-api-key",
25
+ "create-webhook",
26
+ "get-webhook"
27
+ ]
28
+ },
29
+ "readToolPatterns": [
30
+ "regex:^(get|list)-"
31
+ ],
32
+ "writeToolPatterns": [
33
+ "get-tiptap-json-content",
34
+ "regex:^(add|batch-add|batch-remove|cancel|compose|create|disconnect|duplicate|manage|publish|remove|revoke|send|update|verify)-"
35
+ ],
36
+ "eventCatalog": [
37
+ "email.sent",
38
+ "email.delivered",
39
+ "email.delivery_delayed",
40
+ "email.failed",
41
+ "email.opened",
42
+ "email.clicked",
43
+ "email.bounced",
44
+ "email.complained",
45
+ "email.received",
46
+ "email.scheduled",
47
+ "email.suppressed",
48
+ "domain.created",
49
+ "domain.updated",
50
+ "domain.deleted",
51
+ "contact.created",
52
+ "contact.updated",
53
+ "contact.deleted"
54
+ ],
55
+ "defaultEvents": [
56
+ "email.received",
57
+ "email.delivered",
58
+ "email.failed",
59
+ "email.bounced"
60
+ ],
61
+ "eventMode": "api",
62
+ "eventScope": "connection",
63
+ "setup": [
64
+ {
65
+ "kind": "connection",
66
+ "name": "resend-developer-configuration",
67
+ "required": true,
68
+ "message": "Create a team-scoped Resend API key, set RESEND_API_KEY on the Assembly Line runtime host, and verify the sending domain. Full-platform reads require a full_access key; restrict the connection's visible tools when using a sending_access key."
69
+ }
70
+ ],
71
+ "requiredConfig": [],
72
+ "optionalConfig": [
73
+ "RESEND_MCP_URL"
74
+ ],
75
+ "requiredCredentials": [
76
+ "RESEND_API_KEY"
77
+ ],
78
+ "optionalCredentials": []
79
+ }
@@ -0,0 +1,9 @@
1
+ module.exports = {
2
+ "connections": {
3
+ "resend": {
4
+ "contract": "./ai.assemblyline/connections/resend.json",
5
+ "definition": "@assemblyline-agents/resend",
6
+ "factory": "defineResendConnection"
7
+ }
8
+ }
9
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,0BAA0B,EAChC,MAAM,2BAA2B,CAAC;AAKnC,MAAM,MAAM,uBAAuB,GAAG,0BAA0B,CAAC;AAEjE,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,uBAAuB,0IAKtE;AAED,eAAO,MAAM,kBAAkB,kDAA0C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAIL,KAAK,0BAA0B,EAChC,MAAM,2BAA2B,CAAC;AAKnC,MAAM,MAAM,uBAAuB,GAAG,0BAA0B,CAAC;AAEjE,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,uBAAuB,0IAKtE;AAED,eAAO,MAAM,kBAAkB,kDAA0C,CAAC"}
package/dist/index.js CHANGED
@@ -1,6 +1,7 @@
1
- import { connectionPluginMetadata, defineConnectionPluginEvents, defineMcpPluginConnection, definePlugin } from "@assemblyline-agents/core";
1
+ import connectionContract_resend from "../ai.assemblyline/connections/resend.json" with { type: "json" };
2
+ import { defineConnectionPluginEvents, defineMcpPluginConnection, definePlugin } from "@assemblyline-agents/core";
2
3
  import { resendEvents } from "./events.js";
3
- const PLUGIN = connectionPluginMetadata("resend");
4
+ const PLUGIN = connectionContract_resend;
4
5
  export function defineResendConnection(options) {
5
6
  const definition = defineMcpPluginConnection(PLUGIN, options);
6
7
  const events = defineConnectionPluginEvents(PLUGIN, options.events, resendEvents);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,yBAAyB,EACzB,YAAY,EAEb,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,MAAM,GAAG,wBAAwB,CAAC,QAAQ,CAAE,CAAC;AAInD,MAAM,UAAU,sBAAsB,CAAC,OAAgC;IACrE,MAAM,UAAU,GAAG,yBAAyB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9D,MAAM,MAAM,GAAG,4BAA4B,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAClF,IAAI,MAAM;QAAE,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC;IACvC,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,yBAAyB,MAAM,4CAA4C,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACzG,OAAO,EACL,4BAA4B,EAC5B,yBAAyB,EACzB,YAAY,EAEb,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,MAAM,GAAG,yBAAgE,CAAC;AAIhF,MAAM,UAAU,sBAAsB,CAAC,OAAgC;IACrE,MAAM,UAAU,GAAG,yBAAyB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9D,MAAM,MAAM,GAAG,4BAA4B,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAClF,IAAI,MAAM;QAAE,UAAU,CAAC,MAAM,GAAG,MAAM,CAAC;IACvC,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,MAAM,CAAC,MAAM,kBAAkB,GAAG,YAAY,CAAC,EAAE,WAAW,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@assemblyline-agents/resend",
3
- "version": "5.0.9",
3
+ "version": "6.0.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -9,11 +9,13 @@
9
9
  }
10
10
  },
11
11
  "dependencies": {
12
- "@assemblyline-agents/core": "5.0.9"
12
+ "@assemblyline-agents/core": "6.0.0"
13
13
  },
14
14
  "description": "Official Assembly Line Resend connection plugin.",
15
15
  "files": [
16
- "dist"
16
+ "dist",
17
+ "plugin.json",
18
+ "ai.assemblyline"
17
19
  ],
18
20
  "engines": {
19
21
  "node": ">=22.19.0"
package/plugin.json ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
+ "name": "resend",
4
+ "version": "6.0.0",
5
+ "description": "Official Assembly Line Resend connection plugin.",
6
+ "extensions": {
7
+ "ai.assemblyline": {
8
+ "entry": "./ai.assemblyline/index.cjs"
9
+ }
10
+ }
11
+ }