@mastra/mcp-docs-server 1.3.13-alpha.5 → 1.3.13-alpha.7
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/agents/resumable-streams.md +3 -3
- package/.docs/docs/agents/tools.md +1 -0
- package/.docs/docs/deployment/mastra-server.md +10 -2
- package/.docs/docs/deployment/workers.md +3 -1
- package/.docs/docs/harness/durable-agents.md +64 -2
- package/.docs/docs/memory/semantic-recall.md +24 -1
- package/.docs/docs/observability/integrations/exporters/mastra-storage.md +41 -0
- package/.docs/docs/sandbox/skills.md +32 -3
- package/.docs/docs/server/custom-adapters.md +40 -11
- package/.docs/docs/server/middleware.md +1 -1
- package/.docs/docs/workflows/overview.md +12 -0
- package/.docs/docs/workflows/suspend-and-resume.md +1 -1
- package/.docs/integrations/agentic-ui/ai-sdk-ui.md +46 -0
- package/.docs/models/gateways/merge-gateway.md +2 -1
- package/.docs/models/gateways/netlify.md +4 -2
- package/.docs/models/gateways/openrouter.md +5 -3
- package/.docs/models/gateways/vercel.md +4 -1
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/anthropic.md +2 -1
- package/.docs/models/providers/chutes.md +5 -4
- package/.docs/models/providers/cloudflare-workers-ai.md +0 -13
- package/.docs/models/providers/crossmodel.md +5 -1
- package/.docs/models/providers/deepinfra.md +2 -1
- package/.docs/models/providers/edenai.md +7 -8
- package/.docs/models/providers/google.md +2 -2
- package/.docs/models/providers/kilo.md +21 -19
- package/.docs/models/providers/llmgateway-providers.md +440 -433
- package/.docs/models/providers/llmgateway.md +5 -1
- package/.docs/models/providers/meta.md +5 -4
- package/.docs/models/providers/nano-gpt.md +34 -43
- package/.docs/models/providers/opencode-go.md +2 -2
- package/.docs/models/providers/opencode.md +8 -5
- package/.docs/models/providers/prime.md +4 -4
- package/.docs/models/providers/wandb.md +1 -1
- package/.docs/reference/agent-controller/session.md +1 -1
- package/.docs/reference/agents/channels.md +79 -0
- package/.docs/reference/agents/durable-agent.md +5 -3
- package/.docs/reference/ai-sdk/chat-route.md +33 -2
- package/.docs/reference/build-with-ai.md +12 -2
- package/.docs/reference/code-sdk/mount-agent-controller.md +5 -1
- package/.docs/reference/connect/credential.md +2 -1
- package/.docs/reference/core/mastra-class.md +1 -1
- package/.docs/reference/evals/create-scorer.md +3 -1
- package/.docs/reference/file-based-agents/tools.md +3 -3
- package/.docs/reference/index.md +1 -0
- package/.docs/reference/memory/memory-class.md +1 -1
- package/.docs/reference/observability/tracing/configuration.md +3 -0
- package/.docs/reference/observability/tracing/exporters/mastra-platform-exporter.md +33 -0
- package/.docs/reference/observability/tracing/exporters/mastra-storage-exporter.md +30 -0
- package/.docs/reference/observability/tracing/interfaces.md +2 -0
- package/.docs/reference/processors/processor-interface.md +1 -1
- package/.docs/reference/processors/semantic-recall-processor.md +5 -3
- package/.docs/reference/processors/skill-search-processor.md +3 -0
- package/.docs/reference/processors/skills-processor.md +84 -0
- package/.docs/reference/pubsub/lease-provider.md +4 -2
- package/.docs/reference/pubsub/redis-streams.md +1 -1
- package/.docs/reference/rag/graph-rag.md +1 -1
- package/.docs/reference/streaming/agents/MastraModelOutput.md +7 -8
- package/.docs/reference/workers/overview.md +2 -2
- package/.docs/reference/workflows/run-methods/resume.md +1 -1
- package/.docs/reference/workflows/run.md +1 -1
- package/.docs/reference/workspace/factory-sandbox.md +7 -7
- package/.docs/reference/workspace/platform-sandbox.md +21 -6
- package/.docs/reference/workspace/workspace-class.md +5 -5
- package/package.json +4 -5
|
@@ -46,7 +46,6 @@ Configure the platform credentials. The access token, project ID, and environmen
|
|
|
46
46
|
MASTRA_PLATFORM_ACCESS_TOKEN=your-platform-access-token
|
|
47
47
|
MASTRA_PROJECT_ID=your-project-id
|
|
48
48
|
MASTRA_ENVIRONMENT_ID=your-environment-id
|
|
49
|
-
SANDBOX_PROVIDER=railway
|
|
50
49
|
```
|
|
51
50
|
|
|
52
51
|
**Constructor**:
|
|
@@ -61,7 +60,7 @@ new PlatformSandbox({
|
|
|
61
60
|
|
|
62
61
|
On a Mastra Platform deployment, `MASTRA_PLATFORM_ACCESS_TOKEN`, `MASTRA_PROJECT_ID`, and `MASTRA_ENVIRONMENT_ID` are injected automatically, so the constructor can be called with no options. For local development, `MASTRA_PLATFORM_ACCESS_TOKEN` can contain an `sk_` API token from your organization's settings page under **API Tokens**.
|
|
63
62
|
|
|
64
|
-
The sandbox provider resolves from the constructor's `sandboxProvider` option, then `SANDBOX_PROVIDER`, then defaults to `
|
|
63
|
+
The sandbox provider resolves from the constructor's `sandboxProvider` option, then `SANDBOX_PROVIDER`, then defaults to `e2b`.
|
|
65
64
|
|
|
66
65
|
## Usage
|
|
67
66
|
|
|
@@ -108,6 +107,20 @@ const workspace = new Workspace({
|
|
|
108
107
|
|
|
109
108
|
The default `ISOLATED` mode allows outbound internet access only, with no private network connectivity.
|
|
110
109
|
|
|
110
|
+
### Public ports
|
|
111
|
+
|
|
112
|
+
Ports are private by default: opening one needs a signed-in preview link. Set `publicPorts` to let anyone with a port's URL reach it, for example a webhook receiver:
|
|
113
|
+
|
|
114
|
+
```typescript
|
|
115
|
+
const workspace = new Workspace({
|
|
116
|
+
sandbox: new PlatformSandbox({
|
|
117
|
+
publicPorts: true,
|
|
118
|
+
}),
|
|
119
|
+
})
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
The port URL is the same either way. Only whether it asks for sign-in changes. The setting is fixed when the sandbox is created, so passing it when reattaching changes nothing for that sandbox. Clones use the `publicPorts` option you passed, not the reattached sandbox's setting.
|
|
123
|
+
|
|
111
124
|
### Reattaching to a running sandbox
|
|
112
125
|
|
|
113
126
|
Pass an existing `sandboxId` to reattach to a live sandbox instead of creating a new one:
|
|
@@ -285,7 +298,7 @@ const sandbox = new PlatformSandbox({
|
|
|
285
298
|
|
|
286
299
|
### Cloning for a fleet of sandboxes
|
|
287
300
|
|
|
288
|
-
`clone()` returns an independent sibling `PlatformSandbox` that inherits credentials and defaults (access token, project, environment, provider, template, network isolation, timeout, instructions, env, idle timeout) with per-instance overrides. The returned sandbox is unstarted and provisions on its own `start()`, so `clone()` performs no I/O:
|
|
301
|
+
`clone()` returns an independent sibling `PlatformSandbox` that inherits credentials and defaults (access token, project, environment, provider, template, network isolation, timeout, instructions, env, idle timeout, public ports) with per-instance overrides. The returned sandbox is unstarted and provisions on its own `start()`, so `clone()` performs no I/O:
|
|
289
302
|
|
|
290
303
|
```typescript
|
|
291
304
|
const template = new PlatformSandbox({
|
|
@@ -341,7 +354,7 @@ A long-running process's output stream reconnects periodically, and the process
|
|
|
341
354
|
|
|
342
355
|
**projectId** (`string`): Platform project ID. Falls back to the MASTRA_PROJECT_ID environment variable.
|
|
343
356
|
|
|
344
|
-
**sandboxProvider** (`'railway' | 'e2b'`): Provider used for sandbox and template routes. Falls back to SANDBOX_PROVIDER, then
|
|
357
|
+
**sandboxProvider** (`'railway' | 'e2b'`): Provider used for sandbox and template routes. Falls back to SANDBOX_PROVIDER, then e2b.
|
|
345
358
|
|
|
346
359
|
**environmentId** (`string`): Platform environment ID the sandbox belongs to. Falls back to the MASTRA_ENVIRONMENT_ID environment variable. Required unless sandboxId is passed.
|
|
347
360
|
|
|
@@ -357,6 +370,8 @@ A long-running process's output stream reconnects periodically, and the process
|
|
|
357
370
|
|
|
358
371
|
**networkIsolation** (`'ISOLATED' | 'PRIVATE'`): Network mode. 'ISOLATED' (default) allows outbound internet only. 'PRIVATE' joins the platform environment's private network.
|
|
359
372
|
|
|
373
|
+
**publicPorts** (`boolean`): Let anyone with a port's URL reach it without signing in. Defaults to false. Fixed when the sandbox is created.
|
|
374
|
+
|
|
360
375
|
**env** (`Record<string, string>`): Environment variables baked into the sandbox at creation time. Per-command environment variables can also be passed to executeCommand.
|
|
361
376
|
|
|
362
377
|
**workingDirectory** (`string`): Default directory for command execution when no per-command cwd is given. A per-command cwd always wins. Use an absolute path.
|
|
@@ -380,7 +395,7 @@ const url = await sandbox.networking?.getPortUrl(3000)
|
|
|
380
395
|
// https://3000-<sandbox id>.sandbox.us.mastra.cloud/
|
|
381
396
|
```
|
|
382
397
|
|
|
383
|
-
Ports are private: the URL opens in a browser for members of the sandbox's organization once they sign in to Mastra. You can share it, since it never expires, and opening it wakes a paused sandbox.
|
|
398
|
+
Ports are private by default: the URL opens in a browser for members of the sandbox's organization once they sign in to Mastra. With [`publicPorts: true`](#public-ports), anyone with the URL can open it without signing in. You can share it, since it never expires, and opening it wakes a paused sandbox.
|
|
384
399
|
|
|
385
400
|
`networking` is `undefined` on a sandbox whose ports can't be opened. `getPortUrl()` returns `null` without starting the sandbox when the sandbox isn't running or has been destroyed, for a port that isn't a whole number from 1 to 65535, and for the sandbox's reserved control port. Other platform errors, such as an invalid access token, are thrown.
|
|
386
401
|
|
|
@@ -403,7 +418,7 @@ if (cookie) await browserContext.addCookies([cookie])
|
|
|
403
418
|
|
|
404
419
|
**processes** (`SandboxProcessManager`): Background process manager. spawn() streams output while the process runs, kill() stops it, list() shows what is running in the sandbox, and get(pid) attaches to a process this manager didn't start. See Background processes and the SandboxProcessManager reference.
|
|
405
420
|
|
|
406
|
-
**networking** (`SandboxNetworking | undefined`): Port URLs. getPortUrl(port) returns the URL of a port in the running sandbox, which opens in a browser after signing in to Mastra, or null when the sandbox isn't running. undefined when the sandbox's ports can't be opened. See Port URLs.
|
|
421
|
+
**networking** (`SandboxNetworking | undefined`): Port URLs. getPortUrl(port) returns the URL of a port in the running sandbox, which opens in a browser after signing in to Mastra (or for anyone, with publicPorts: true), or null when the sandbox isn't running. undefined when the sandbox's ports can't be opened. See Port URLs.
|
|
407
422
|
|
|
408
423
|
**filesystem** (`PlatformSandboxFilesystem | undefined`): The sandbox's disk through E2B's files API, sent straight to the VM with the same lease executeCommand() uses. undefined when the sandbox isn't E2B-backed; use executeCommand() then. Paths are absolute and not confined to a root. Copies, appends, and no-overwrite writes run as one command in the VM. See Native filesystem.
|
|
409
424
|
|
|
@@ -559,10 +559,10 @@ The `index` tool is excluded when the filesystem is in read-only mode.
|
|
|
559
559
|
|
|
560
560
|
Added when skills are configured:
|
|
561
561
|
|
|
562
|
-
| Tool | Description
|
|
563
|
-
| -------------- |
|
|
564
|
-
| `skill` | Activate a skill by name or path. Returns the skill's full instructions, references, scripts, and assets.
|
|
565
|
-
| `skill_search` | Search
|
|
566
|
-
| `skill_read` | Read a specific file (reference, script, or asset) from a skill directory.
|
|
562
|
+
| Tool | Description |
|
|
563
|
+
| -------------- | ------------------------------------------------------------------------------------------------------------------------ |
|
|
564
|
+
| `skill` | Activate a skill by name or path. Returns the skill's full instructions, references, scripts, and assets. |
|
|
565
|
+
| `skill_search` | Search skill names, descriptions, and content. Accepts an optional list of skill names to filter and a `topK` parameter. |
|
|
566
|
+
| `skill_read` | Read a specific file (reference, script, or asset) from a skill directory. |
|
|
567
567
|
|
|
568
568
|
When multiple skills share the same name, `list()` returns all of them. `get()` with a name applies tie-breaking (local > managed > external). If two skills share the same name and source type, `get()` throws an error. Pass a skill's full path to `get()` to bypass tie-breaking. See [Skills with the same name](https://mastra.ai/docs/sandbox/skills) for details.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "1.3.13-alpha.
|
|
3
|
+
"version": "1.3.13-alpha.7",
|
|
4
4
|
"description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@mastra/mcp-legacy": "npm:@mastra/mcp@^1.18.0",
|
|
27
27
|
"local-pkg": "^1.2.1",
|
|
28
28
|
"zod": "^4.6.7",
|
|
29
|
-
"@mastra/
|
|
30
|
-
"@mastra/
|
|
29
|
+
"@mastra/core": "1.83.0-alpha.4",
|
|
30
|
+
"@mastra/mcp": "^2.9.0-alpha.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@hono/node-server": "^2.1.3",
|
|
@@ -43,8 +43,7 @@
|
|
|
43
43
|
"typescript": "^7.0.2",
|
|
44
44
|
"vitest": "5.1.0",
|
|
45
45
|
"@internal/lint": "0.0.148",
|
|
46
|
-
"@internal/types-builder": "0.0.123"
|
|
47
|
-
"@mastra/core": "1.83.0-alpha.2"
|
|
46
|
+
"@internal/types-builder": "0.0.123"
|
|
48
47
|
},
|
|
49
48
|
"homepage": "https://mastra.ai",
|
|
50
49
|
"repository": {
|