@mastra/mcp-docs-server 1.2.7-alpha.16 → 1.2.7-alpha.19

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.
@@ -342,13 +342,28 @@ mastra env restart <env>
342
342
 
343
343
  `<env>` can be an environment name, slug, or ID. Fails with a conflict error if the environment has never been deployed.
344
344
 
345
+ ### `mastra env vars pull`
346
+
347
+ Pulls an environment's env vars into a local env file (default: `.env`). The file contains the merged set a deploy actually runs with: vars stored on the environment (for example, added in the dashboard's environment editor) plus project-level vars, with project values winning on conflict. Managed vars injected by attached databases are listed as comments (names only) since their values are platform-managed secrets.
348
+
349
+ ```bash
350
+ mastra env vars pull
351
+ mastra env vars pull <env> --output .env.staging
352
+ ```
353
+
354
+ `<env>` can be an environment name, slug, or ID, and can be omitted when the project has exactly one environment. The file is written with `0600` permissions.
355
+
356
+ #### `-o, --output`
357
+
358
+ File to write. Defaults to `.env`.
359
+
345
360
  ### `mastra env db`
346
361
 
347
362
  Manages databases attached to a project on Mastra platform. Databases are provisioned from a managed provider (for example Turso or Neon) and inject their connection env vars into deploys automatically.
348
363
 
349
364
  A database is either **environment-scoped** (its env vars only go to one environment) or **shared** (project-scoped: its env vars go to all environments). Pass the environment argument to work with environment-scoped databases; omit it for shared databases.
350
365
 
351
- Creating and detaching databases requires the `admin` role in the organization.
366
+ Creating and deleting databases requires the `admin` role in the organization.
352
367
 
353
368
  ### `mastra env db list`
354
369
 
@@ -412,12 +427,12 @@ Print secret connection values instead of masking them.
412
427
 
413
428
  Emit machine-readable JSON. Secret values are masked unless `--show-secrets` is passed.
414
429
 
415
- ### `mastra env db detach`
430
+ ### `mastra env db delete`
416
431
 
417
- Detaches a database from the project. The CLI prompts for confirmation unless `--yes` is passed. After detaching, deploys no longer receive the database's env vars.
432
+ Permanently deletes a database with the provider, including all of its data. This cannot be undone. The CLI prompts for confirmation unless `--yes` is passed. After deletion, deploys no longer receive the database's env vars.
418
433
 
419
434
  ```bash
420
- mastra env db detach <database>
435
+ mastra env db delete <database>
421
436
  ```
422
437
 
423
438
  #### `-y, --yes`
@@ -247,6 +247,25 @@ const workspace = new Workspace({
247
247
 
248
248
  This is optional—`gcsfuse` is installed automatically at mount time if not present.
249
249
 
250
+ ## Using with Code Mode
251
+
252
+ [Code Mode](https://mastra.ai/docs/agents/code-mode) lets an agent write a single TypeScript program that orchestrates its tools. Because E2B runs that program in a remote micro-VM, it needs a transport that writes the program into the sandbox filesystem rather than the host. `@mastra/e2b` ships `E2BCodeModeTransport` for this—pass it as the second argument to `createCodeMode`:
253
+
254
+ ```typescript
255
+ import { createCodeMode } from '@mastra/core/tools'
256
+ import { E2BSandbox, E2BCodeModeTransport } from '@mastra/e2b'
257
+
258
+ const { tool, instructions } = createCodeMode(
259
+ {
260
+ tools: { getWeather, getForecast },
261
+ sandbox: new E2BSandbox({ timeout: 60_000 }),
262
+ },
263
+ new E2BCodeModeTransport(),
264
+ )
265
+ ```
266
+
267
+ `E2BCodeModeTransport` auto-starts the sandbox if it isn't running, strips TypeScript on the host with esbuild (so it works regardless of the sandbox's Node version), runs `node` inside the VM, and cleans up the program files afterwards. The default `StdioCodeModeTransport` from `@mastra/core` only works with sandboxes that share the host filesystem, such as `LocalSandbox`.
268
+
250
269
  ## Related
251
270
 
252
271
  - [SandboxProcessManager reference](https://mastra.ai/reference/workspace/process-manager)
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @mastra/mcp-docs-server
2
2
 
3
+ ## 1.2.7-alpha.19
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`edce8d2`](https://github.com/mastra-ai/mastra/commit/edce8d2769f19e27a05737c627af2d765472a4f8)]:
8
+ - @mastra/core@1.51.0-alpha.9
9
+
10
+ ## 1.2.7-alpha.17
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`bd6d240`](https://github.com/mastra-ai/mastra/commit/bd6d2402db93dddaef0721667e7e8a030e7c6e16), [`0111486`](https://github.com/mastra-ai/mastra/commit/01114867612593eef5cfa2fda6a1194dfedda841), [`96a3749`](https://github.com/mastra-ai/mastra/commit/96a37492235f5b8076b3e3177d83ed5a5e44a640), [`3e26c87`](https://github.com/mastra-ai/mastra/commit/3e26c87de0c5bc2583b795ce6ca5889b6b161acb), [`a5008f2`](https://github.com/mastra-ai/mastra/commit/a5008f22ae710ad9402ea9f2547d8c02f74d384b)]:
15
+ - @mastra/core@1.51.0-alpha.8
16
+
3
17
  ## 1.2.7-alpha.15
4
18
 
5
19
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/mcp-docs-server",
3
- "version": "1.2.7-alpha.16",
3
+ "version": "1.2.7-alpha.19",
4
4
  "description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -28,15 +28,15 @@
28
28
  "jsdom": "^26.1.0",
29
29
  "local-pkg": "^1.1.2",
30
30
  "zod": "^4.4.3",
31
- "@mastra/core": "1.51.0-alpha.7",
31
+ "@mastra/core": "1.51.0-alpha.9",
32
32
  "@mastra/mcp": "^1.14.0-alpha.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@hono/node-server": "^1.19.11",
36
36
  "@types/jsdom": "^21.1.7",
37
37
  "@types/node": "22.19.21",
38
- "@vitest/coverage-v8": "4.1.9",
39
- "@vitest/ui": "4.1.9",
38
+ "@vitest/coverage-v8": "4.1.10",
39
+ "@vitest/ui": "4.1.10",
40
40
  "@wong2/mcp-cli": "^2.0.0",
41
41
  "cross-env": "^10.1.0",
42
42
  "eslint": "^10.4.1",
@@ -44,10 +44,10 @@
44
44
  "tsup": "^8.5.1",
45
45
  "tsx": "^4.22.4",
46
46
  "typescript": "^6.0.3",
47
- "vitest": "4.1.9",
47
+ "vitest": "4.1.10",
48
+ "@internal/lint": "0.0.113",
48
49
  "@internal/types-builder": "0.0.88",
49
- "@mastra/core": "1.51.0-alpha.7",
50
- "@internal/lint": "0.0.113"
50
+ "@mastra/core": "1.51.0-alpha.9"
51
51
  },
52
52
  "homepage": "https://mastra.ai",
53
53
  "repository": {