@mastra/mcp-docs-server 1.3.9-alpha.3 → 1.3.9-alpha.4
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/.docs/docs/mastra-platform/connect/tools.md +25 -3
- package/.docs/docs/memory/semantic-recall.md +2 -0
- package/.docs/models/environment-variables.md +2 -0
- package/.docs/models/gateways/netlify.md +2 -1
- package/.docs/models/gateways/openrouter.md +2 -1
- package/.docs/models/gateways/vercel.md +3 -1
- package/.docs/models/index.md +3 -1
- package/.docs/models/providers/aimlapi.md +3 -3
- package/.docs/models/providers/commandcode.md +147 -0
- package/.docs/models/providers/databricks.md +2 -1
- package/.docs/models/providers/edenai.md +4 -4
- package/.docs/models/providers/kilo.md +10 -9
- package/.docs/models/providers/nano-gpt.md +6 -1
- package/.docs/models/providers/ofox.md +24 -24
- package/.docs/models/providers/opencode-go.md +5 -5
- package/.docs/models/providers/opencode.md +5 -5
- package/.docs/models/providers/pioneer.md +120 -119
- package/.docs/models/providers/reflection.md +77 -0
- package/.docs/models/providers/requesty.md +3 -2
- package/.docs/models/providers/scaleway.md +2 -1
- package/.docs/models/providers/wandb.md +2 -1
- package/.docs/models/providers.md +2 -0
- package/.docs/reference/agent-controller/session.md +3 -2
- package/.docs/reference/agents/inngest-agent.md +4 -4
- package/.docs/reference/connect/providers.md +5 -3
- package/.docs/reference/connect/tools.md +21 -2
- package/package.json +4 -4
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Provider toolsets
|
|
6
6
|
|
|
7
|
-
This page documents generated toolsets for 22 providers (
|
|
7
|
+
This page documents generated toolsets for 22 providers (910 tools in this version of `@mastra/connect`). It isn't an exhaustive list of providers registered in the SDK or available in the platform catalog. [`tools()`](https://mastra.ai/reference/connect/tools) exposes a provider's toolset when the project has an active connection for its provider ID.
|
|
8
8
|
|
|
9
9
|
Tool keys are stable identifiers of the form `<provider>_<action>` and are the values accepted by `allowTools` and `disallowTools`. Toolsets are versioned with the package: the exact list depends on the installed `@mastra/connect` version, and this page reflects the version it was generated from.
|
|
10
10
|
|
|
@@ -18,7 +18,7 @@ MCP providers (Attio, Canva, Clay, Neon, Render, Robinhood, and Sanity) serve th
|
|
|
18
18
|
|  [GitHub](#github) | `github` | 49 |
|
|
19
19
|
|  [Google Calendar](#google-calendar) | `google-calendar` | 43 |
|
|
20
20
|
|  [Google Docs](#google-docs) | `google-docs` | 37 |
|
|
21
|
-
|  [Google Drive](#google-drive) | `google-drive` |
|
|
21
|
+
|  [Google Drive](#google-drive) | `google-drive` | 32 |
|
|
22
22
|
|  [Gmail](#gmail) | `google-mail` | 52 |
|
|
23
23
|
|  [Google Sheets](#google-sheets) | `google-sheet` | 18 |
|
|
24
24
|
|  [HubSpot](#hubspot) | `hubspot` | 50 |
|
|
@@ -311,7 +311,7 @@ Provider ID: `google-docs` · 37 tools
|
|
|
311
311
|
|
|
312
312
|
## Google Drive
|
|
313
313
|
|
|
314
|
-
Provider ID: `google-drive` ·
|
|
314
|
+
Provider ID: `google-drive` · 32 tools
|
|
315
315
|
|
|
316
316
|
| Tool | Description |
|
|
317
317
|
| ------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
|
|
@@ -324,6 +324,7 @@ Provider ID: `google-drive` · 30 tools
|
|
|
324
324
|
| `google_drive_delete_permission` | Remove a permission from a file |
|
|
325
325
|
| `google_drive_delete_shared_drive` | Delete a shared drive |
|
|
326
326
|
| `google_drive_empty_trash` | Permanently delete all trashed files |
|
|
327
|
+
| `google_drive_export_file` | Export a Google Workspace file (Doc, Sheet, Slide, etc.) to the specified MIME type. |
|
|
327
328
|
| `google_drive_find_file` | Search for files by name or query in Google Drive |
|
|
328
329
|
| `google_drive_find_folder` | Search for a folder by name or query |
|
|
329
330
|
| `google_drive_get_about` | Get the user's drive info and storage quota |
|
|
@@ -338,6 +339,7 @@ Provider ID: `google-drive` · 30 tools
|
|
|
338
339
|
| `google_drive_list_drives` | List shared drives the user can access, with cursor pagination and drive metadata like hidden, capabilities, and restrictions. |
|
|
339
340
|
| `google_drive_list_files_non_unified` | List immediate files and folders for a folder ID, or root when omitted, with cursor pagination and shared-drive support. |
|
|
340
341
|
| `google_drive_list_permissions` | List permissions on a file |
|
|
342
|
+
| `google_drive_list_revisions` | List the revision history for a Drive file. |
|
|
341
343
|
| `google_drive_move_file` | Move a file to a different folder |
|
|
342
344
|
| `google_drive_unhide_shared_drive` | Restore a hidden shared drive to default view |
|
|
343
345
|
| `google_drive_update_comment` | Update a comment on a file |
|
|
@@ -25,7 +25,7 @@ See [Connect](https://mastra.ai/docs/mastra-platform/connect/overview) to get st
|
|
|
25
25
|
|
|
26
26
|
## Parameters
|
|
27
27
|
|
|
28
|
-
**options** (`ToolsOptions`): Optional discovery and client configuration.
|
|
28
|
+
**options** (`ToolsOptions | ((ctx?: ToolsResolverContext) => ToolsOptions | Promise<ToolsOptions>)`): Optional discovery and client configuration, or a callback returning it per request. See Per-request options below.
|
|
29
29
|
|
|
30
30
|
**options.projectId** (`string`): Platform project whose connections to discover. Falls back to MASTRA\_PROJECT\_ID.
|
|
31
31
|
|
|
@@ -41,6 +41,25 @@ See [Connect](https://mastra.ai/docs/mastra-platform/connect/overview) to get st
|
|
|
41
41
|
|
|
42
42
|
**options.ttlMs** (`number`): How long a resolved snapshot stays fresh, in milliseconds. Default 30000. 0 revalidates on every resolution.
|
|
43
43
|
|
|
44
|
+
### Per-request options
|
|
45
|
+
|
|
46
|
+
Pass a callback instead of an options object to vary options per request, for example role-based filters or approval policies. The callback runs on every resolution (sync or async) and receives the same context Mastra passes the resolver (`requestContext` is populated when the resolver is an agent's `tools` option):
|
|
47
|
+
|
|
48
|
+
```typescript
|
|
49
|
+
const connected = tools(ctx => ({
|
|
50
|
+
providers: {
|
|
51
|
+
linear:
|
|
52
|
+
ctx?.requestContext?.get('role') === 'viewer'
|
|
53
|
+
? { allowTools: ['linear_list_*'] }
|
|
54
|
+
: { requireApproval: ['linear_delete_*'] },
|
|
55
|
+
},
|
|
56
|
+
}))
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
The resolver memoizes snapshots per distinct options value, so requests producing the same options share one cached snapshot with the usual `ttlMs` and stale-while-revalidate semantics. Structurally equal options returned from different calls count as the same value; non-serializable values such as a custom `client.fetch` compare by identity. The resolver keeps caches for at most 32 distinct options values and evicts the least recently used one (closing its MCP transports) past that, so derive options from a small, closed set of inputs such as roles, not from unbounded per-request data.
|
|
60
|
+
|
|
61
|
+
With the callback form, option validation runs at the first resolution that produces a given options value rather than at `tools()` time, and a validation error fails that resolution. `refresh()` fetches for the options the callback returns without a context (the same variant a direct `await connected()` call uses), and `disconnect()` closes every memoized variant.
|
|
62
|
+
|
|
44
63
|
### Per-provider options
|
|
45
64
|
|
|
46
65
|
Each value in the `providers` record form is `true`, `false`, or a `ToolsProviderOptions`:
|
|
@@ -89,7 +108,7 @@ The resolver also exposes methods for manual control:
|
|
|
89
108
|
|
|
90
109
|
Errors fall into four groups:
|
|
91
110
|
|
|
92
|
-
- Configuration errors (missing project ID or token, a malformed provider ID, both `allowTools` and `disallowTools` at one level, invalid `ttlMs`) throw when you call `tools()`.
|
|
111
|
+
- Configuration errors (missing project ID or token, a malformed provider ID, both `allowTools` and `disallowTools` at one level, invalid `ttlMs`) throw when you call `tools()`. With [the callback form](#per-request-options), they fail the first resolution that produces the invalid options instead.
|
|
93
112
|
- An enabled provider ID that the platform catalog confirms is unknown fails the resolution with `invalid_options`. An unknown tool key or zero-match glob in a per-provider filter does the same. If the catalog can't be reached, an unknown ID downgrades to a warning and is skipped.
|
|
94
113
|
- If a background refresh fails while a snapshot is cached, the resolver keeps serving the cached toolsets and warns. It rejects only when nothing was ever cached.
|
|
95
114
|
- A problem with one provider, such as a connection that needs reauthorization, logs a warning and skips that provider. The other providers' tools still load.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "1.3.9-alpha.
|
|
3
|
+
"version": "1.3.9-alpha.4",
|
|
4
4
|
"description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"local-pkg": "^1.1.2",
|
|
28
28
|
"zod": "^4.6.4",
|
|
29
29
|
"@mastra/mcp": "^2.4.2-alpha.0",
|
|
30
|
-
"@mastra/core": "1.79.0-alpha.
|
|
30
|
+
"@mastra/core": "1.79.0-alpha.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@hono/node-server": "^2.0.0",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"tsx": "^4.23.1",
|
|
44
44
|
"typescript": "^7.0.2",
|
|
45
45
|
"vitest": "4.1.11",
|
|
46
|
-
"@internal/lint": "0.0.144",
|
|
47
46
|
"@internal/types-builder": "0.0.119",
|
|
48
|
-
"@
|
|
47
|
+
"@internal/lint": "0.0.144",
|
|
48
|
+
"@mastra/core": "1.79.0-alpha.2"
|
|
49
49
|
},
|
|
50
50
|
"homepage": "https://mastra.ai",
|
|
51
51
|
"repository": {
|