@mastra/connect 1.0.0-alpha.2 → 1.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
@@ -10,49 +10,76 @@ npm install @mastra/connect
10
10
 
11
11
  ## Usage
12
12
 
13
- Attach a connection to your Platform project using integration ID `resend` or `incident-io`. Configure the Platform project ID and access token, then pass the resolver to your agent's `tools` option:
13
+ Attach connections to your Platform project, configure the project ID and access token, then pass the resolver to your agent's `tools` option:
14
14
 
15
15
  ```ts
16
- import { connect } from '@mastra/connect';
16
+ import { tools } from '@mastra/connect';
17
17
 
18
- const tools = connect({
18
+ const connectTools = tools({
19
19
  projectId: process.env.MASTRA_PROJECT_ID,
20
20
  client: { accessToken: process.env.MASTRA_PLATFORM_ACCESS_TOKEN },
21
- integrations: {
22
- resend: { allowTools: ['resend_send_email', 'resend_get_email'] },
23
- 'incident-io': { allowTools: ['incident_io_list_incidents', 'incident_io_list_follow_ups'] },
24
- },
21
+ });
22
+
23
+ const agent = new Agent({
24
+ // ...
25
+ tools: connectTools,
25
26
  });
26
27
  ```
27
28
 
28
- The `integrations` option accepts two shapes. Use the string-array shorthand when you don't need per-provider overrides:
29
+ The resolver is live: Mastra calls it per generate/stream, so providers connected to (or disconnected from) the project are picked up without a restart.
30
+
31
+ ### Combining with your own tools
32
+
33
+ Spread the resolver's result alongside your own tools in a dynamic `tools` callback; your tools win on key collision:
29
34
 
30
35
  ```ts
31
- const tools = connect({
32
- projectId: process.env.MASTRA_PROJECT_ID,
33
- client: { accessToken: process.env.MASTRA_PLATFORM_ACCESS_TOKEN },
34
- integrations: ['resend', 'incident-io'],
36
+ const agent = new Agent({
37
+ // ...
38
+ tools: async ctx => ({ ...(await connectTools(ctx)), weatherTool, searchTool }),
35
39
  });
36
40
  ```
37
41
 
38
- Use the object form (shown above) whenever you need `allowTools`, `disallowTools`, `requireApproval`, `connectionId`, or `disabled` for any provider. `allowTools` and `disallowTools` are mutually exclusive on the same provider.
42
+ ### Choosing providers
43
+
44
+ The `providers` option accepts two shapes:
45
+
46
+ ```ts
47
+ // Array — an allowlist: only these providers resolve.
48
+ tools({ providers: ['resend', 'incident-io'] });
49
+
50
+ // Record — per-provider configuration. Every connected provider resolves
51
+ // unless excluded: `true` (or `{}`) enables with defaults, `false` excludes,
52
+ // and an object configures the provider.
53
+ tools({
54
+ providers: {
55
+ resend: { allowTools: ['resend_send_email'] },
56
+ linear: { requireApproval: ['linear_delete_*'] },
57
+ github: false,
58
+ },
59
+ });
60
+ ```
61
+
62
+ An id that is neither a checked-in provider nor a platform catalog integration fails with `invalid_options`, so typos never resolve to silence.
63
+
64
+ ### Filtering and approval
39
65
 
40
- The resolver discovers active project connections. Where multiple connections match, you can either pin one — via `MASTRA_RESEND_CONNECTION_ID`, `MASTRA_INCIDENT_IO_CONNECTION_ID`, or the integration's `connectionId` option — or leave it unpinned and let the agent route each call. When unpinned, the provider's `<integrationId>__list_connections` tool is added to the toolset, every other tool takes a required `connection_name`, and the agent uses the display name returned by `list_connections` to pick a connection per call. The `integrations` entries configure individual providers; they do not disable other attached providers. Set `disabled: true` on providers you want to exclude.
66
+ - `allowTools` / `disallowTools` (mutually exclusive per provider) restrict a provider's toolset. Entries containing `*` are globs (`'linear_get_*'`). Unknown names and globs that match nothing throw, so access-limiting typos surface immediately.
67
+ - `requireApproval` opts tools into approval. Tools do not require approval by default, matching `@mastra/mcp`'s own default. Pass `true` for every tool on the provider, or an array of keys/globs for a selection — e.g. `neon: { requireApproval: ['neon_delete_project'] }`. Applies to discovered MCP tools and generated HTTP tools alike.
68
+ - All three are also accepted at the top level of `tools()` as defaults for every provider. Per-provider options win wholesale, so `requireApproval: true` globally with `linear: { requireApproval: false }` gates everything except Linear. Top-level entries apply leniently (an entry that matches nothing on one provider simply doesn't apply there) and warn when they matched nothing anywhere.
41
69
 
42
- | Provider | Tool source | Scope |
43
- | ----------- | -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
44
- | Resend | Generated HTTP tools | Emails and attachments, domains, templates, audiences, contacts, segments, topics, broadcasts, webhooks, and metrics |
45
- | incident.io | Generated HTTP tools | Incidents, updates, actions, follow-ups, timelines, alerts, on-call schedules, teams, users, postmortems, catalog reads, and incident configuration reads |
70
+ ### Multiple connections
71
+
72
+ The resolver discovers active project connections. Where multiple connections match a provider, pin one with the provider's `connectionId` option, or leave it unpinned and let the agent route each call: the provider's `<integrationId>__list_connections` tool is added, every other tool takes a required `connection_name`, and the agent uses the display names returned by `list_connections` to pick a connection per call.
46
73
 
47
74
  ### MCP integrations
48
75
 
49
- `connect()` also discovers any attached integration that advertises `capabilities.mcp: true` in the Platform catalog. No provider-specific registration or release of `@mastra/connect` is required. Discovered tools use the same flat dynamic-tool contract and are namespaced as `<integration-id>_<tool-name>`.
76
+ `tools()` also discovers any attached integration that advertises `capabilities.mcp: true` in the Platform catalog. No provider-specific registration or release of `@mastra/connect` is required. Discovered tools use the same flat dynamic-tool contract and are namespaced as `<integration-id>_<tool-name>`.
50
77
 
51
78
  Every MCP provider uses `/v2/connections/:connectionId/mcp` for discovery and invocation. The adapter reuses each provider's MCP session across refreshes and closes sessions when the connection changes, is detached, or `disconnect()` is called. If an integration has both checked-in HTTP tools and an MCP capability, the MCP catalog is preferred.
52
79
 
53
80
  The application sends only its Mastra Platform token. The transport is locked to the selected Platform connection URL. Platform removes caller authentication before Nango injects the provider credential and proxies each protocol request to the MCP server configured for that Nango integration.
54
81
 
55
- MCP tool catalogs can change independently of this package. Use `allowTools` to give an agent the smallest useful subset. Tools do not require approval by default, matching `@mastra/mcp`'s own default. Opt into approval per integration with `requireApproval`: pass `true` to require approval for every tool, or an array of tool keys to require approval only for those, for example `neon: { requireApproval: ['neon_delete_project'] }`. The option applies to discovered MCP tools and generated HTTP tools alike. Unknown names in the array fail resolution with an `invalid_options` error so a typo cannot silently widen access. For multiple connections, the derived environment variable is `MASTRA_<INTEGRATION_ID>_CONNECTION_ID`, with punctuation converted to underscores.
82
+ MCP tool catalogs can change independently of this package. Use `allowTools` to give an agent the smallest useful subset.
56
83
 
57
84
  ### Generated HTTP providers
58
85
 
@@ -74,28 +101,6 @@ Resend requires a verified sending domain and a key authorized for the operation
74
101
 
75
102
  List tools return one provider page and preserve its response envelope. When `next_cursor` is present, pass it as `after` for Resend and incident.io. Preserve filters and sort options between pages.
76
103
 
77
- ### Sandbox environment
78
-
79
- Some agents run inside a sandbox that shells out to CLIs (git, `gh`) or needs provider tokens in the process environment. `environment()` materializes those credentials from the same project connections `connect()` uses, so an agent that already has GitHub attached needs no separate credential wiring.
80
-
81
- ```ts
82
- import { environment } from '@mastra/connect';
83
-
84
- const env = environment({
85
- projectId: process.env.MASTRA_PROJECT_ID,
86
- client: { accessToken: process.env.MASTRA_PLATFORM_ACCESS_TOKEN },
87
- });
88
-
89
- const { env: envVars, onStart } = await env();
90
-
91
- await sandbox.start({
92
- env: envVars, // GH_TOKEN, GITHUB_TOKEN, …
93
- onStart, // runs `git config --global credential.https://github.com.helper …`
94
- });
95
- ```
96
-
97
- `environment()` mirrors `connect()`: same `projectId`, `client`, and per-provider `integrations` overrides (`connectionId` to pin, `disabled: true` to exclude). GitHub is the first provider with an env contributor — its OAuth token is exported as `GH_TOKEN`/`GITHUB_TOKEN` so both `gh` and `git` HTTPS operations authenticate as the connected user, and `onStart` wires a git credential helper that reads the token from the environment rather than baking it into git config.
98
-
99
104
  ### Template provenance
100
105
 
101
106
  Resend and incident.io are generated from integration-template contributions [#667](https://github.com/NangoHQ/integration-templates/pull/667) and [#668](https://github.com/NangoHQ/integration-templates/pull/668). Slack, GitHub, Google Mail, Google Calendar, Fireflies, PostHog, Stripe, Discord, Twitter/X, and HubSpot are generated from contribution [#677](https://github.com/NangoHQ/integration-templates/pull/677), which adds agent-focused actions (PostHog HogQL queries, Stripe balance/dispute/coupon/account reads, GitHub tags and trees, Slack Connect invites, Twitter search and following, HubSpot form submission) on top of upstream main. Until they land upstream, each provider manifest pins the contributing repository and exact commit and records generated file checksums.
@@ -32,38 +32,56 @@ export type DiscordChannelsProviderOptions = Record<string, unknown> & {
32
32
  } & ForbidReservedOptions<DiscordReservedProviderOption>;
33
33
  export type TeamsChannelsProviderOptions = Record<string, unknown> & ForbidReservedOptions<TeamsReservedProviderOption>;
34
34
  /** Base shape shared by every integration override; per-id specializations narrow `providerOptions`. */
35
- export interface ChannelsIntegrationOptions<ProviderOptions = Record<string, unknown>> {
35
+ export interface ChannelsProviderOptions<ProviderOptions = Record<string, unknown>> {
36
36
  /** Pin a specific connection id (bypasses single-active-connection resolution). */
37
37
  connectionId?: string;
38
- /** Exclude this provider entirely — no instance is constructed and no routes are mounted. */
39
- disabled?: boolean;
40
38
  /** Provider-specific options merged into the first argument of `ChannelProviderRegistration.create()`. */
41
39
  providerOptions?: ProviderOptions;
42
40
  }
43
41
  /**
44
- * Integration overrides map, typed per known channel id. Unknown ids are
45
- * allowed with a generic option shape so future channels don't need a type
46
- * change here.
42
+ * Per-provider configuration map, typed per known channel id. `true` enables
43
+ * a channel with default options and `false` excludes it, mirroring the
44
+ * `tools()` shorthand. Unknown ids are allowed with a generic option shape so
45
+ * future channels don't need a type change here.
46
+ *
47
+ * `slack` is accepted as an alias for `slack-channels` (the platform keys the
48
+ * Slack channel `slack-channels` because `slack` names the Slack tools
49
+ * provider); setting both keys throws.
47
50
  */
48
- export interface ChannelsIntegrationOverrides {
49
- 'slack-channels'?: ChannelsIntegrationOptions<SlackChannelsProviderOptions>;
50
- telegram?: ChannelsIntegrationOptions<TelegramChannelsProviderOptions>;
51
- discord?: ChannelsIntegrationOptions<DiscordChannelsProviderOptions>;
52
- 'microsoft-teams'?: ChannelsIntegrationOptions<TeamsChannelsProviderOptions>;
53
- [integrationId: string]: ChannelsIntegrationOptions | undefined;
51
+ export interface ChannelsProviders {
52
+ slack?: boolean | ChannelsProviderOptions<SlackChannelsProviderOptions>;
53
+ 'slack-channels'?: boolean | ChannelsProviderOptions<SlackChannelsProviderOptions>;
54
+ telegram?: boolean | ChannelsProviderOptions<TelegramChannelsProviderOptions>;
55
+ discord?: boolean | ChannelsProviderOptions<DiscordChannelsProviderOptions>;
56
+ 'microsoft-teams'?: boolean | ChannelsProviderOptions<TeamsChannelsProviderOptions>;
57
+ [integrationId: string]: boolean | ChannelsProviderOptions | undefined;
54
58
  }
55
59
  export interface ChannelsOptions {
56
60
  /** Platform project whose connections to discover. Falls back to MASTRA_PROJECT_ID. */
57
61
  projectId?: string;
58
- /** Optional per-provider overrides keyed by integrationId. */
59
- integrations?: ChannelsIntegrationOverrides;
62
+ /**
63
+ * Which channels to resolve, in one of two shapes:
64
+ * - `["discord", "telegram"]` — an allowlist: only the listed channels are
65
+ * constructed and mounted.
66
+ * - `{ discord: true, telegram: { connectionId: "..." }, slack: false }` —
67
+ * per-channel configuration. Every registered channel still resolves
68
+ * unless excluded: `true` (or `{}`) enables with defaults, `false`
69
+ * excludes, and an options object pins a connection or passes
70
+ * provider-specific options.
71
+ *
72
+ * `slack` is an alias for the platform's `slack-channels` key; both spell
73
+ * the same channel in either shape, and naming it twice throws.
74
+ *
75
+ * Omit the option entirely to resolve every registered channel.
76
+ */
77
+ providers?: string[] | ChannelsProviders;
60
78
  client?: ConnectClientOptions;
61
79
  /** How long a resolved snapshot stays fresh, in milliseconds. Default 30_000. `0` revalidates every resolution. */
62
80
  ttlMs?: number;
63
81
  }
64
82
  /**
65
83
  * The result of resolving a project's connections into a
66
- * `ChannelProvider` map: integrations with an active connection, keyed by
84
+ * `ChannelProvider` map: providers with an active connection, keyed by
67
85
  * integrationId.
68
86
  */
69
87
  export type ResolvedChannels = Record<string, ChannelProvider>;
@@ -83,21 +101,19 @@ export interface ChannelsResolverContext {
83
101
  * `new Mastra({ channels })` directly:
84
102
  *
85
103
  * - Callable — returns the current `Record<string, ChannelProvider>` of
86
- * integrations with an active connection. Mastra invokes it via
104
+ * providers with an active connection. Mastra invokes it via
87
105
  * `resolveChannels()`; the TTL cache makes repeat calls cheap.
88
106
  * - `getRoutes()` — the union of routes for every non-disabled channel,
89
107
  * available synchronously so Mastra can mount them at construction. Routes
90
108
  * exist before (and after) their integration has an active connection.
91
- * - Handles — `invalidate()` / `refresh()` / `disconnect()` control the
92
- * resolver's private cache; `refresh()` forces a platform fetch now.
109
+ * - Handles — `refresh()` / `disconnect()` control the resolver's private
110
+ * cache; `refresh()` forces a platform fetch now.
93
111
  */
94
112
  export interface ChannelsResolver {
95
- /** Returns the current provider map for integrations with an active connection. */
113
+ /** Returns the current provider map for providers with an active connection. */
96
114
  (context?: ChannelsResolverContext): Promise<ResolvedChannels>;
97
115
  /** Union of API routes for every non-disabled channel integration. */
98
116
  getRoutes(): ApiRoute[];
99
- /** Drops the cached snapshot; the next resolution fetches fresh from the platform. */
100
- invalidate(): void;
101
117
  /** Fetches connections from the platform now and updates the cache. Rejects if the platform fetch fails. */
102
118
  refresh(): Promise<ResolvedChannels>;
103
119
  /** Clears the cached snapshot. Reserved for symmetry with `tools()`; currently a no-op beyond invalidation. */
@@ -111,7 +127,7 @@ export interface ChannelsResolver {
111
127
  * Discord) are constructed once, up front and credential-less, so their
112
128
  * webhook/OAuth routes can mount at Mastra construction. Each resolution
113
129
  * fetches the project's connections and late-binds credentials into the live
114
- * instances: integrations with an active connection appear in the resolved
130
+ * instances: providers with an active connection appear in the resolved
115
131
  * map, others don't — so connecting a new channel on the platform takes
116
132
  * effect without redeploying the app.
117
133
  *
@@ -1 +1 @@
1
- {"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../src/channels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,oBAAoB,EAAqB,MAAM,aAAa,CAAC;AAI3E,OAAO,KAAK,EACV,6BAA6B,EAC7B,2BAA2B,EAC3B,2BAA2B,EAC3B,8BAA8B,EAC/B,MAAM,yBAAyB,CAAC;AAIjC,KAAK,QAAQ,GAAG,UAAU,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,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