@mastra/mcp-docs-server 1.2.16-alpha.3 → 1.2.16-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/agents/a2a.md +1 -1
- package/.docs/docs/agents/overview.md +2 -0
- package/.docs/docs/agents/processors.md +4 -4
- package/.docs/docs/agents/structured-output.md +1 -1
- package/.docs/docs/agents/using-tools.md +15 -11
- package/.docs/docs/browser/overview.md +22 -3
- package/.docs/docs/capabilities/subagents.md +2 -2
- package/.docs/docs/datasets/running-experiments.md +2 -2
- package/.docs/docs/deployment/overview.md +3 -3
- package/.docs/docs/deployment/sandbox.md +1 -1
- package/.docs/docs/deployment/workers.md +5 -5
- package/.docs/docs/deployment/workflow-runners.md +1 -1
- package/.docs/docs/editor/overview.md +3 -1
- package/.docs/docs/evals/custom-scorers.md +1 -1
- package/.docs/docs/evals/multi-turn.md +1 -1
- package/.docs/docs/evals/overview.md +3 -3
- package/.docs/docs/getting-started/develop.md +1 -1
- package/.docs/docs/harness/agent-controller.md +2 -2
- package/.docs/docs/harness/overview.md +1 -1
- package/.docs/docs/long-running-agents/background-tasks.md +2 -2
- package/.docs/docs/long-running-agents/goals.md +3 -2
- package/.docs/docs/long-running-agents/signals.md +2 -2
- package/.docs/docs/mastra-platform/deploy.md +1 -1
- package/.docs/docs/mastra-platform/github.md +1 -1
- package/.docs/docs/mastra-platform/observability.md +1 -1
- package/.docs/docs/mastra-platform/overview.md +3 -3
- package/.docs/docs/mastra-platform/server.md +2 -2
- package/.docs/docs/mastra-platform/trace-intelligence.md +3 -3
- package/.docs/docs/memory/memory-processors.md +1 -1
- package/.docs/docs/memory/message-history.md +2 -2
- package/.docs/docs/memory/observational-memory.md +13 -13
- package/.docs/docs/memory/semantic-recall.md +1 -1
- package/.docs/docs/memory/working-memory.md +1 -1
- package/.docs/docs/observability/logging.md +1 -1
- package/.docs/docs/observability/metrics/querying.md +1 -1
- package/.docs/docs/observability/tracing/overview.md +3 -3
- package/.docs/docs/server/custom-adapters.md +2 -2
- package/.docs/docs/server/custom-api-routes.md +1 -1
- package/.docs/docs/server/mastra-client.md +1 -1
- package/.docs/docs/server/server-adapters.md +1 -1
- package/.docs/docs/studio/deployment.md +2 -2
- package/.docs/docs/studio/observability.md +1 -1
- package/.docs/docs/studio/overview.md +2 -0
- package/.docs/docs/workflows/dynamic-workflows.md +1 -1
- package/.docs/docs/workflows/scheduled-workflows.md +1 -1
- package/.docs/docs/workflows/suspend-and-resume.md +1 -1
- package/.docs/docs/workspace/overview.md +2 -1
- package/.docs/docs/workspace/search.md +1 -1
- package/.docs/docs/workspace/skills.md +1 -1
- package/.docs/integrations/browsers/agent-browser.md +2 -3
- package/.docs/integrations/browsers/firecrawl.md +0 -1
- package/.docs/integrations/browsers/stagehand.md +2 -3
- package/.docs/models/gateways/openrouter.md +1 -2
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/kilo.md +6 -7
- package/.docs/models/providers/nano-gpt.md +2 -1
- package/.docs/reference/acp/acp-agent.md +1 -1
- package/.docs/reference/agent-controller/session.md +1 -1
- package/.docs/reference/agents/channels.md +1 -1
- package/.docs/reference/agents/inngest-agent.md +1 -1
- package/.docs/reference/ai-sdk/overview.md +1 -1
- package/.docs/reference/auth/auth0.md +1 -1
- package/.docs/reference/auth/google.md +1 -1
- package/.docs/reference/browser/agent-browser.md +2 -2
- package/.docs/reference/browser/browser-viewer.md +1 -1
- package/.docs/reference/browser/stagehand-browser.md +2 -2
- package/.docs/reference/channels/channel-provider.md +1 -1
- package/.docs/reference/channels/slack-provider.md +1 -1
- package/.docs/reference/cli/mastra.md +5 -5
- package/.docs/reference/code-sdk/mount-agent-controller.md +1 -1
- package/.docs/reference/coding-agent/build-base-prompt.md +2 -1
- package/.docs/reference/configuration.md +3 -3
- package/.docs/reference/core/getAgentById.md +1 -1
- package/.docs/reference/core/getWorkflow.md +2 -2
- package/.docs/reference/core/mastra-class.md +1 -1
- package/.docs/reference/deployer/netlify.md +1 -1
- package/.docs/reference/deployer.md +1 -1
- package/.docs/reference/editor/prompt-blocks.md +1 -1
- package/.docs/reference/editor/tools.md +1 -1
- package/.docs/reference/evals/completeness.md +1 -1
- package/.docs/reference/evals/noise-sensitivity.md +1 -1
- package/.docs/reference/evals/summarization.md +1 -1
- package/.docs/reference/file-based-agents/config.md +1 -1
- package/.docs/reference/file-based-agents/skills.md +5 -5
- package/.docs/reference/file-based-agents/workspace.md +1 -1
- package/.docs/reference/logging/pino-logger.md +1 -1
- package/.docs/reference/memory/observational-memory.md +12 -4
- package/.docs/reference/migrations/upgrade-to-v1/agent.md +3 -3
- package/.docs/reference/migrations/upgrade-to-v1/client.md +1 -1
- package/.docs/reference/migrations/upgrade-to-v1/evals.md +1 -1
- package/.docs/reference/migrations/upgrade-to-v1/mastra.md +1 -1
- package/.docs/reference/migrations/upgrade-to-v1/mcp.md +1 -1
- package/.docs/reference/migrations/upgrade-to-v1/overview.md +1 -1
- package/.docs/reference/migrations/upgrade-to-v1/processors.md +1 -1
- package/.docs/reference/migrations/upgrade-to-v1/storage.md +5 -5
- package/.docs/reference/migrations/upgrade-to-v1/tools.md +1 -1
- package/.docs/reference/observability/tracing/bridges/datadog.md +1 -1
- package/.docs/reference/observability/tracing/bridges/otel.md +1 -1
- package/.docs/reference/observability/tracing/exporters/arize.md +1 -1
- package/.docs/reference/observability/tracing/exporters/cloud-exporter.md +2 -2
- package/.docs/reference/observability/tracing/exporters/mastra-platform-exporter.md +1 -1
- package/.docs/reference/observability/tracing/exporters/otel.md +1 -1
- package/.docs/reference/observability/tracing/exporters/sentry.md +1 -1
- package/.docs/reference/observability/tracing/processors/sensitive-data-filter.md +27 -3
- package/.docs/reference/processors/batch-parts-processor.md +1 -1
- package/.docs/reference/processors/language-detector.md +1 -2
- package/.docs/reference/processors/processor-interface.md +16 -16
- package/.docs/reference/processors/stream-error-retry-processor.md +2 -2
- package/.docs/reference/rag/chunking-and-embedding.md +1 -1
- package/.docs/reference/rag/metadata-filters.md +1 -1
- package/.docs/reference/server/koa-adapter.md +1 -1
- package/.docs/reference/signals/webhook-signal-provider.md +1 -1
- package/.docs/reference/storage/retention.md +1 -1
- package/.docs/reference/tools/bedrock-kb-tool.md +1 -1
- package/.docs/reference/tools/mcp-client.md +3 -3
- package/.docs/reference/tools/mcp-server.md +5 -5
- package/.docs/reference/tools/task-tools.md +1 -1
- package/.docs/reference/tools/vector-query-tool.md +1 -1
- package/.docs/reference/vectors/chroma.md +1 -1
- package/.docs/reference/vectors/convex.md +1 -1
- package/.docs/reference/vectors/couchbase.md +1 -1
- package/.docs/reference/vectors/mongodb.md +2 -2
- package/.docs/reference/vectors/pg.md +1 -1
- package/.docs/reference/vectors/qdrant.md +2 -2
- package/.docs/reference/voice/overview.md +1 -1
- package/.docs/reference/voice/speech-to-speech.md +1 -1
- package/.docs/reference/voice/speech-to-text.md +1 -1
- package/.docs/reference/voice/voice.on.md +1 -1
- package/.docs/reference/voice/voice.updateConfig.md +1 -1
- package/.docs/reference/workspace/local-sandbox.md +1 -1
- package/.docs/reference/workspace/workspace-class.md +1 -1
- package/CHANGELOG.md +7 -0
- package/package.json +4 -4
- package/.docs/docs/browser/recording.md +0 -120
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
-
|
|
3
|
-
# Browser recording
|
|
4
|
-
|
|
5
|
-
**Added in:** `@mastra/core@1.43.0`
|
|
6
|
-
|
|
7
|
-
Browser recording adds two opt-in tools that let an agent save a browser session as a Motion-JPEG AVI video. The agent can also add short captions while it works.
|
|
8
|
-
|
|
9
|
-
> **Beta:** Breaking changes may occur without a major version bump until the API is stable.
|
|
10
|
-
|
|
11
|
-
## When to use browser recording
|
|
12
|
-
|
|
13
|
-
Use browser recording when you need to:
|
|
14
|
-
|
|
15
|
-
- Review what an agent did in a browser
|
|
16
|
-
- Share a short browser automation run with a teammate
|
|
17
|
-
- Debug missed actions, slow page loads, or unexpected navigation
|
|
18
|
-
- Add short captions that explain each major step
|
|
19
|
-
|
|
20
|
-
Recording tools are disabled by default. Enable them only for agents that need to write video files.
|
|
21
|
-
|
|
22
|
-
## Enable recording
|
|
23
|
-
|
|
24
|
-
Pass a `recording` object to `AgentBrowser` or `StagehandBrowser`. The only required field is `outputDir`. You can also set `maxDurationMs`, `maxWidth`, and `maxHeight` as defaults for every recording started by this browser.
|
|
25
|
-
|
|
26
|
-
The following example enables recording for `AgentBrowser`:
|
|
27
|
-
|
|
28
|
-
```typescript
|
|
29
|
-
import { join } from 'node:path'
|
|
30
|
-
import { AgentBrowser } from '@mastra/agent-browser'
|
|
31
|
-
|
|
32
|
-
export const browser = new AgentBrowser({
|
|
33
|
-
headless: false,
|
|
34
|
-
recording: {
|
|
35
|
-
outputDir: join(process.cwd(), 'browser-recordings'),
|
|
36
|
-
maxDurationMs: 60_000,
|
|
37
|
-
maxWidth: 1280,
|
|
38
|
-
maxHeight: 720,
|
|
39
|
-
},
|
|
40
|
-
})
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
The same option works with `StagehandBrowser`:
|
|
44
|
-
|
|
45
|
-
```typescript
|
|
46
|
-
import { join } from 'node:path'
|
|
47
|
-
import { StagehandBrowser } from '@mastra/stagehand'
|
|
48
|
-
|
|
49
|
-
export const browser = new StagehandBrowser({
|
|
50
|
-
headless: false,
|
|
51
|
-
recording: {
|
|
52
|
-
outputDir: join(process.cwd(), 'browser-recordings'),
|
|
53
|
-
maxDurationMs: 60_000,
|
|
54
|
-
maxWidth: 1280,
|
|
55
|
-
maxHeight: 720,
|
|
56
|
-
},
|
|
57
|
-
})
|
|
58
|
-
```
|
|
59
|
-
|
|
60
|
-
The agent can still override these defaults per-recording by passing `maxDurationMs`, `maxWidth`, or `maxHeight` to the `browser_record` tool at start time.
|
|
61
|
-
|
|
62
|
-
## Recording tools
|
|
63
|
-
|
|
64
|
-
Enabling recording adds these tools:
|
|
65
|
-
|
|
66
|
-
| Tool | Description |
|
|
67
|
-
| ------------------------ | ------------------------------------------------------------ |
|
|
68
|
-
| `browser_record` | Starts, stops, or checks the status of a recording. |
|
|
69
|
-
| `browser_record_caption` | Adds a short caption at the current moment in the recording. |
|
|
70
|
-
|
|
71
|
-
`browser_record` accepts an `action` field:
|
|
72
|
-
|
|
73
|
-
- `start`: Start recording the current browser session.
|
|
74
|
-
- `status`: Check whether a recording is active.
|
|
75
|
-
- `stop`: Stop recording and write the `.avi` file.
|
|
76
|
-
|
|
77
|
-
The `outputPath` option for `browser_record` must be an absolute path inside the configured `recording.outputDir`. If you omit it, Mastra creates a file in `outputDir`.
|
|
78
|
-
|
|
79
|
-
## Example agent instructions
|
|
80
|
-
|
|
81
|
-
Tell the agent when to record and when to add captions:
|
|
82
|
-
|
|
83
|
-
```typescript
|
|
84
|
-
import { Agent } from '@mastra/core/agent'
|
|
85
|
-
import { browser } from '../browsers'
|
|
86
|
-
|
|
87
|
-
export const browserAgent = new Agent({
|
|
88
|
-
id: 'browser-agent',
|
|
89
|
-
name: 'Browser Agent',
|
|
90
|
-
model: 'openai/gpt-5.6-sol',
|
|
91
|
-
browser,
|
|
92
|
-
instructions: `Use browser tools to complete the requested task.
|
|
93
|
-
|
|
94
|
-
When the user asks for a recording:
|
|
95
|
-
1. Call browser_record with action="start" before browser work begins.
|
|
96
|
-
2. After each major action, call browser_record_caption with a caption of about six words.
|
|
97
|
-
3. Call browser_record with action="stop" as soon as the task is complete.
|
|
98
|
-
4. Return the saved video path to the user.`,
|
|
99
|
-
})
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
## Output format and limits
|
|
103
|
-
|
|
104
|
-
Recordings are saved as Motion-JPEG AVI files. This format is encoded in JavaScript and doesn't require `ffmpeg` or native dependencies.
|
|
105
|
-
|
|
106
|
-
Default limits:
|
|
107
|
-
|
|
108
|
-
- Maximum duration: 30 seconds
|
|
109
|
-
- Hard duration cap: 120 seconds
|
|
110
|
-
- Maximum frame size: 1024 × 720
|
|
111
|
-
- Captions: 80 characters each
|
|
112
|
-
- One active recording per process
|
|
113
|
-
|
|
114
|
-
Use shorter recordings when possible. Long browser sessions produce larger files and are harder to review.
|
|
115
|
-
|
|
116
|
-
## Next steps
|
|
117
|
-
|
|
118
|
-
- [AgentBrowser](https://mastra.ai/integrations/browsers/agent-browser)
|
|
119
|
-
- [Stagehand](https://mastra.ai/integrations/browsers/stagehand)
|
|
120
|
-
- [Browser overview](https://mastra.ai/docs/browser/overview)
|