@mastra/mcp-docs-server 1.3.12-alpha.2 → 1.3.12-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/browser.md +14 -11
- package/.docs/docs/channels.md +1 -0
- package/.docs/docs/evals/vitest-integration.md +1 -1
- package/.docs/docs/harness/background-tasks.md +71 -2
- package/.docs/docs/sandbox/search.md +26 -1
- package/.docs/docs/studio/editor.md +12 -9
- package/.docs/docs/workflows/control-flow.md +2 -2
- package/.docs/docs/workflows/error-handling.md +3 -3
- package/.docs/integrations/channels/ring.md +322 -0
- package/.docs/integrations/deploy/temporal.md +1 -0
- package/.docs/integrations.md +1 -0
- package/.docs/models/gateways/netlify.md +1 -4
- package/.docs/models/gateways/openrouter.md +2 -3
- package/.docs/models/gateways/vercel.md +3 -4
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/aimlapi.md +2 -5
- package/.docs/models/providers/cortecs.md +5 -7
- package/.docs/models/providers/edenai.md +1 -1
- package/.docs/models/providers/greenpt.md +2 -1
- package/.docs/models/providers/hyper.md +2 -1
- package/.docs/models/providers/inceptron.md +2 -2
- package/.docs/models/providers/kilo.md +17 -14
- package/.docs/models/providers/llmgateway-providers.md +2 -2
- package/.docs/models/providers/nano-gpt.md +19 -15
- package/.docs/models/providers/opencode.md +2 -1
- package/.docs/models/providers/prime.md +2 -2
- package/.docs/models/providers/wandb.md +1 -1
- package/.docs/models/providers/xai.md +1 -1
- package/.docs/reference/agents/agent.md +3 -3
- package/.docs/reference/client-js/mastra-client.md +2 -0
- package/.docs/reference/configuration.md +4 -0
- package/.docs/reference/index.md +1 -0
- package/.docs/reference/observability/tracing/advanced-queries.md +31 -11
- package/.docs/reference/rag/chunk.md +1 -1
- package/.docs/reference/signals/ring-signals.md +236 -0
- package/.docs/reference/tools/mcp-client.md +45 -1
- package/.docs/reference/tools/mcp-server.md +67 -0
- package/.docs/reference/workflows/run-methods/cancel.md +3 -1
- package/.docs/reference/workflows/step.md +3 -1
- package/.docs/reference/workflows/workflow-methods/map.md +6 -4
- package/.docs/reference/workspace/platform-sandbox.md +26 -0
- package/.docs/reference/workspace/workspace-class.md +1 -1
- package/package.json +8 -8
|
@@ -369,6 +369,28 @@ A long-running process's output stream reconnects periodically, and the process
|
|
|
369
369
|
|
|
370
370
|
**fetch** (`typeof fetch`): Custom fetch implementation, mainly for testing.
|
|
371
371
|
|
|
372
|
+
### Port URLs
|
|
373
|
+
|
|
374
|
+
`sandbox.networking.getPortUrl(port)` returns the URL of a port your app listens on in the sandbox, for example a dev server:
|
|
375
|
+
|
|
376
|
+
```typescript
|
|
377
|
+
await sandbox.processes.spawn('pnpm dev --host 0.0.0.0 --port 3000')
|
|
378
|
+
|
|
379
|
+
const url = await sandbox.networking?.getPortUrl(3000)
|
|
380
|
+
// https://3000-<sandbox id>.sandbox.us.mastra.cloud/
|
|
381
|
+
```
|
|
382
|
+
|
|
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.
|
|
384
|
+
|
|
385
|
+
`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
|
+
|
|
387
|
+
A browser you control, such as an agent's browser, can't sign in. `getPortAuthCookie(port)` returns a cookie that lets it open the port's URL for an hour without signing in. Don't share the cookie: anyone holding it can open the port.
|
|
388
|
+
|
|
389
|
+
```typescript
|
|
390
|
+
const cookie = await sandbox.getPortAuthCookie(3000)
|
|
391
|
+
if (cookie) await browserContext.addCookies([cookie])
|
|
392
|
+
```
|
|
393
|
+
|
|
372
394
|
## Properties
|
|
373
395
|
|
|
374
396
|
**id** (`string`): Sandbox instance identifier.
|
|
@@ -381,6 +403,8 @@ A long-running process's output stream reconnects periodically, and the process
|
|
|
381
403
|
|
|
382
404
|
**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.
|
|
383
405
|
|
|
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.
|
|
407
|
+
|
|
384
408
|
**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.
|
|
385
409
|
|
|
386
410
|
**templatePending** (`{ templateId: string; retryAfterMs: number } | undefined`): Set when the running sandbox booted from a fallback template (same-lineage stale or provider base) while the exact template continues to build in the background. Undefined when the sandbox booted from the exact template. Observability only — PlatformSandbox does not re-execute template operations; reconcile filesystem state in your own runtime setup.
|
|
@@ -399,6 +423,8 @@ A long-running process's output stream reconnects periodically, and the process
|
|
|
399
423
|
|
|
400
424
|
**snapshot** (`() => Promise<void>`): Capture the configured recovery checkpoint immediately. Resolves without work when no caller-provided id exists or the sandbox is not running.
|
|
401
425
|
|
|
426
|
+
**getPortAuthCookie** (`(port: number) => Promise<SandboxPortAuthCookie | null>`): Return a cookie that lets a browser you control open the port's URL for an hour without signing in, in the shape Playwright's addCookies() accepts. null in the same cases as networking.getPortUrl(). See Port URLs.
|
|
427
|
+
|
|
402
428
|
**getInfo** (`() => Promise<SandboxInfo>`): Return the sandbox's platform id, provider, status, createdAt, and metadata (sandboxId, providerResourceId, platformStatus).
|
|
403
429
|
|
|
404
430
|
**getInstructions** (`(opts?: { requestContext?: RequestContext }) => string`): Return the sandbox instructions the workspace surfaces in tool descriptions. Honors the instructions constructor option; otherwise returns platform-default instructions that include the current remote sandbox id when running.
|
|
@@ -45,7 +45,7 @@ const workspace = new Workspace({
|
|
|
45
45
|
|
|
46
46
|
**vectorStore** (`MastraVector`): Vector store for semantic search
|
|
47
47
|
|
|
48
|
-
**embedder** (`Embedder`): Function that turns text into vectors. Required when vectorStore is set. Accepts either a single-text function (text: string) => Promise\<number\[]> or a batch-capable function (texts: string\[]) => Promise\<number\[]\[]> that has a batch: true property and an optional maxBatchSize. See Batch embedding.
|
|
48
|
+
**embedder** (`Embedder`): Function that turns text into vectors. Required when vectorStore is set, unless the store generates embeddings itself (see Server-side embeddings). Accepts either a single-text function (text: string) => Promise\<number\[]> or a batch-capable function (texts: string\[]) => Promise\<number\[]\[]> that has a batch: true property and an optional maxBatchSize. See Batch embedding.
|
|
49
49
|
|
|
50
50
|
**autoIndexPaths** (`string[]`): Paths or glob patterns to auto-index on init(). Supports glob patterns like '\*\*/\*.md' for selective indexing.
|
|
51
51
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "1.3.12-alpha.
|
|
3
|
+
"version": "1.3.12-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",
|
|
@@ -26,25 +26,25 @@
|
|
|
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/core": "1.82.0-alpha.
|
|
30
|
-
"@mastra/mcp": "^2.8.0-alpha.
|
|
29
|
+
"@mastra/core": "1.82.0-alpha.3",
|
|
30
|
+
"@mastra/mcp": "^2.8.0-alpha.2"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@hono/node-server": "^2.1.3",
|
|
34
34
|
"@modelcontextprotocol/client": "2.4.0",
|
|
35
35
|
"@types/node": "22.19.15",
|
|
36
|
-
"@vitest/coverage-v8": "
|
|
37
|
-
"@vitest/ui": "
|
|
36
|
+
"@vitest/coverage-v8": "5.1.0",
|
|
37
|
+
"@vitest/ui": "5.1.0",
|
|
38
38
|
"@wong2/mcp-cli": "^2.0.0",
|
|
39
39
|
"cross-env": "^10.1.0",
|
|
40
40
|
"hono": "^4.13.13",
|
|
41
41
|
"tsdown": "0.23.1",
|
|
42
42
|
"tsx": "^4.23.15",
|
|
43
43
|
"typescript": "^7.0.2",
|
|
44
|
-
"vitest": "
|
|
44
|
+
"vitest": "5.1.0",
|
|
45
45
|
"@internal/lint": "0.0.147",
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
46
|
+
"@mastra/core": "1.82.0-alpha.3",
|
|
47
|
+
"@internal/types-builder": "0.0.122"
|
|
48
48
|
},
|
|
49
49
|
"homepage": "https://mastra.ai",
|
|
50
50
|
"repository": {
|