@mastra/mcp-docs-server 1.3.9 → 1.3.10-alpha.0
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/code-mode.md +2 -2
- package/.docs/docs/agents/guardrails.md +5 -5
- package/.docs/docs/agents/human-in-the-loop.md +18 -5
- package/.docs/docs/agents/networks.md +1 -1
- package/.docs/docs/agents/overview.md +7 -7
- package/.docs/docs/agents/processors.md +66 -20
- package/.docs/docs/agents/structured-output.md +6 -6
- package/.docs/docs/agents/tools.md +10 -10
- package/.docs/docs/browser.md +13 -1
- package/.docs/docs/channels.md +33 -6
- package/.docs/docs/connections/a2a.md +1 -1
- package/.docs/docs/connections/acp.md +2 -2
- package/.docs/docs/connections/mcp.md +159 -50
- package/.docs/docs/connections/overview.md +1 -1
- package/.docs/docs/connections/sdk-agents.md +8 -8
- package/.docs/docs/develop.md +1 -1
- package/.docs/docs/evals/custom-scorers.md +5 -5
- package/.docs/docs/evals/experiments.md +2 -2
- package/.docs/docs/evals/multi-turn.md +2 -2
- package/.docs/docs/evals/overview.md +4 -4
- package/.docs/docs/evals/quick-checks.md +2 -2
- package/.docs/docs/guides/build-an-eval-loop.md +3 -3
- package/.docs/docs/guides/context-engineering.md +13 -6
- package/.docs/docs/guides/mcp-authentication-authorization.md +2 -2
- package/.docs/docs/guides/streaming.md +1 -1
- package/.docs/docs/harness/agent-controller.md +7 -7
- package/.docs/docs/harness/background-tasks.md +3 -3
- package/.docs/docs/harness/durable-agents.md +5 -5
- package/.docs/docs/harness/goals.md +5 -5
- package/.docs/docs/harness/overview.md +2 -2
- package/.docs/docs/harness/schedules.md +5 -5
- package/.docs/docs/index.md +6 -6
- package/.docs/docs/mastra-platform/connect/channels.md +1 -1
- package/.docs/docs/mastra-platform/connect/tools.md +4 -4
- package/.docs/docs/mastra-platform/observability.md +1 -1
- package/.docs/docs/memory/memory-processors.md +7 -7
- package/.docs/docs/memory/message-history.md +5 -5
- package/.docs/docs/memory/multi-user-threads.md +1 -1
- package/.docs/docs/memory/observational-memory.md +14 -14
- package/.docs/docs/memory/semantic-recall.md +2 -2
- package/.docs/docs/memory/working-memory.md +2 -2
- package/.docs/docs/observability/logging.md +5 -5
- package/.docs/docs/observability/tracing/overview.md +1 -0
- package/.docs/docs/sandbox/filesystem.md +1 -0
- package/.docs/docs/sandbox/overview.md +1 -1
- package/.docs/docs/server/mastra-client.md +1 -1
- package/.docs/docs/server/middleware.md +1 -1
- package/.docs/docs/server/request-context.md +3 -3
- package/.docs/docs/server/server-adapters.md +12 -204
- package/.docs/docs/signals/notifications.md +233 -0
- package/.docs/docs/signals/overview.md +94 -0
- package/.docs/docs/signals/running-across-processes.md +132 -0
- package/.docs/docs/signals/sending-signals.md +166 -0
- package/.docs/docs/signals/signal-providers.md +278 -0
- package/.docs/docs/signals/state-signals.md +103 -0
- package/.docs/docs/signals/thread-streams.md +94 -0
- package/.docs/docs/skills.md +4 -4
- package/.docs/docs/storage.md +1 -1
- package/.docs/docs/studio/editor.md +39 -23
- package/.docs/docs/subagents.md +6 -6
- package/.docs/integrations/agentic-ui/ai-sdk-ui.md +1 -1
- package/.docs/integrations/agentic-ui/copilotkit.md +1 -1
- package/.docs/integrations/agentic-ui/openui.md +1 -1
- package/.docs/integrations/browsers/agent-browser.md +1 -1
- package/.docs/integrations/browsers/browser-viewer.md +1 -1
- package/.docs/integrations/browsers/firecrawl.md +1 -1
- package/.docs/integrations/browsers/stagehand.md +6 -6
- package/.docs/integrations/channels/discord.md +1 -1
- package/.docs/integrations/channels/github.md +2 -2
- package/.docs/integrations/channels/imessage.md +2 -50
- package/.docs/integrations/channels/slack.md +1 -1
- package/.docs/integrations/channels/teams.md +1 -1
- package/.docs/integrations/channels/telegram.md +1 -1
- package/.docs/integrations/channels/whatsapp.md +1 -1
- package/.docs/integrations/databases/aurora-dsql.md +1 -1
- package/.docs/integrations/databases/cloudflare-kv.md +4 -0
- package/.docs/integrations/databases/elasticsearch.md +1 -1
- package/.docs/integrations/databases/mongodb.md +1 -1
- package/.docs/integrations/databases/oracledb.md +1 -1
- package/.docs/integrations/databases/postgresql.md +1 -1
- package/.docs/integrations/databases/redis.md +1 -1
- package/.docs/integrations/databases/upstash.md +1 -1
- package/.docs/integrations/deploy/kubernetes.md +1 -1
- package/.docs/integrations/deploy/neon.md +2 -1
- package/.docs/integrations/deploy/render.md +2 -2
- package/.docs/integrations/file-storage/agentfs.md +1 -1
- package/.docs/integrations/file-storage/amazon-s3.md +20 -3
- package/.docs/integrations/file-storage/archil.md +1 -1
- package/.docs/integrations/file-storage/azure-blob.md +1 -1
- package/.docs/integrations/file-storage/google-cloud-storage.md +1 -1
- package/.docs/integrations/file-storage/google-drive.md +1 -1
- package/.docs/integrations/file-storage/mesa.md +1 -1
- package/.docs/integrations/file-storage/neon.md +210 -0
- package/.docs/integrations/file-storage/vercel-files.md +5 -1
- package/.docs/integrations/frameworks/express.md +0 -64
- package/.docs/integrations/observability/langfuse.md +1 -1
- package/.docs/integrations/observability/langsmith.md +2 -2
- package/.docs/integrations/observability/opentelemetry.md +5 -5
- package/.docs/integrations/sandboxes/apple-container.md +1 -1
- package/.docs/integrations/sandboxes/blaxel.md +1 -1
- package/.docs/integrations/sandboxes/daytona.md +1 -1
- package/.docs/integrations/sandboxes/docker.md +1 -1
- package/.docs/integrations/sandboxes/e2b-desktop.md +1 -1
- package/.docs/integrations/sandboxes/e2b.md +4 -2
- package/.docs/integrations/sandboxes/modal.md +1 -1
- package/.docs/integrations/sandboxes/railway.md +1 -1
- package/.docs/integrations/sandboxes/sprites.md +1 -1
- package/.docs/integrations/sandboxes/vercel.md +2 -2
- package/.docs/integrations/tools/brightdata.md +1 -1
- package/.docs/integrations/tools/firecrawl.md +1 -1
- package/.docs/integrations/tools/parallel.md +1 -1
- package/.docs/integrations/tools/perplexity.md +1 -1
- package/.docs/integrations/tools/tavily.md +1 -1
- package/.docs/integrations/voice/livekit.md +2 -2
- package/.docs/integrations.md +1 -0
- package/.docs/models/environment-variables.md +0 -2
- package/.docs/models/gateways/custom-gateways.md +3 -3
- package/.docs/models/gateways/merge-gateway.md +2 -14
- package/.docs/models/gateways/netlify.md +2 -1
- package/.docs/models/gateways/openrouter.md +3 -2
- package/.docs/models/gateways/vercel.md +3 -4
- package/.docs/models/index.md +13 -15
- package/.docs/models/providers/302ai.md +3 -3
- package/.docs/models/providers/abacus.md +70 -110
- package/.docs/models/providers/aimlapi.md +171 -171
- package/.docs/models/providers/aki-io.md +5 -6
- package/.docs/models/providers/alibaba-cn.md +2 -2
- package/.docs/models/providers/alibaba.md +2 -2
- package/.docs/models/providers/ambient.md +1 -1
- package/.docs/models/providers/auriko.md +2 -2
- package/.docs/models/providers/baseten.md +4 -4
- package/.docs/models/providers/berget.md +3 -4
- package/.docs/models/providers/bothub.md +4 -4
- package/.docs/models/providers/boundless.md +0 -4
- package/.docs/models/providers/cline-pass.md +2 -8
- package/.docs/models/providers/commandcode.md +0 -1
- package/.docs/models/providers/coralbricks.md +1 -1
- package/.docs/models/providers/cortecs.md +1 -1
- package/.docs/models/providers/crossmodel.md +1 -3
- package/.docs/models/providers/crusoe.md +1 -7
- package/.docs/models/providers/daoxe.md +1 -1
- package/.docs/models/providers/deepinfra.md +2 -2
- package/.docs/models/providers/digitalocean.md +6 -10
- package/.docs/models/providers/dinference.md +0 -3
- package/.docs/models/providers/edenai.md +12 -2
- package/.docs/models/providers/empiriolabs.md +0 -1
- package/.docs/models/providers/engy.md +2 -2
- package/.docs/models/providers/evroc.md +2 -2
- package/.docs/models/providers/fastrouter.md +41 -50
- package/.docs/models/providers/fireworks-ai.md +28 -23
- package/.docs/models/providers/friendli.md +4 -5
- package/.docs/models/providers/frogbot.md +2 -7
- package/.docs/models/providers/google.md +2 -5
- package/.docs/models/providers/greenpt.md +14 -20
- package/.docs/models/providers/groq.md +1 -1
- package/.docs/models/providers/huggingface.md +3 -1
- package/.docs/models/providers/iflowcn.md +2 -18
- package/.docs/models/providers/impossibl.md +2 -9
- package/.docs/models/providers/inceptron.md +8 -6
- package/.docs/models/providers/inco.md +1 -1
- package/.docs/models/providers/inference.md +5 -11
- package/.docs/models/providers/infomaniak.md +10 -12
- package/.docs/models/providers/io-net.md +11 -17
- package/.docs/models/providers/iteracompute.md +3 -3
- package/.docs/models/providers/jalapeno.md +14 -19
- package/.docs/models/providers/jiekou.md +53 -63
- package/.docs/models/providers/kenari.md +34 -53
- package/.docs/models/providers/kilo.md +11 -10
- package/.docs/models/providers/lilac.md +2 -8
- package/.docs/models/providers/llama.md +2 -11
- package/.docs/models/providers/llmgateway-providers.md +8 -16
- package/.docs/models/providers/llmgateway.md +9 -8
- package/.docs/models/providers/llmtr.md +1 -6
- package/.docs/models/providers/lowrouter.md +1 -1
- package/.docs/models/providers/lucidquery.md +2 -2
- package/.docs/models/providers/meganova.md +6 -7
- package/.docs/models/providers/melious.md +2 -7
- package/.docs/models/providers/mistral.md +4 -3
- package/.docs/models/providers/moark.md +0 -2
- package/.docs/models/providers/nan.md +1 -1
- package/.docs/models/providers/nano-gpt.md +13 -7
- package/.docs/models/providers/nearai.md +2 -1
- package/.docs/models/providers/neuralwatt.md +1 -4
- package/.docs/models/providers/novita-ai.md +2 -1
- package/.docs/models/providers/nvidia.md +15 -35
- package/.docs/models/providers/oci.md +0 -1
- package/.docs/models/providers/ofox.md +1 -1
- package/.docs/models/providers/ollama-cloud.md +2 -2
- package/.docs/models/providers/opencode-go.md +2 -3
- package/.docs/models/providers/opencode.md +85 -88
- package/.docs/models/providers/opper.md +1 -4
- package/.docs/models/providers/orcarouter.md +14 -16
- package/.docs/models/providers/pareto.md +1 -1
- package/.docs/models/providers/perplexity-agent.md +2 -12
- package/.docs/models/providers/pioneer.md +7 -7
- package/.docs/models/providers/poe.md +16 -70
- package/.docs/models/providers/prime.md +2 -1
- package/.docs/models/providers/qihang-ai.md +7 -11
- package/.docs/models/providers/qiniu-ai.md +9 -94
- package/.docs/models/providers/regolo-ai.md +5 -7
- package/.docs/models/providers/runinfra.md +1 -4
- package/.docs/models/providers/sarvam.md +1 -2
- package/.docs/models/providers/scaleway.md +12 -11
- package/.docs/models/providers/siliconflow-cn.md +35 -41
- package/.docs/models/providers/siliconflow.md +3 -6
- package/.docs/models/providers/stackit.md +2 -4
- package/.docs/models/providers/stepfun-ai.md +4 -4
- package/.docs/models/providers/stepfun.md +4 -4
- package/.docs/models/providers/submodel.md +1 -1
- package/.docs/models/providers/synthetic.md +0 -4
- package/.docs/models/providers/tempr.md +1 -4
- package/.docs/models/providers/tencent-coding-plan.md +3 -10
- package/.docs/models/providers/tensorx.md +0 -13
- package/.docs/models/providers/the-grid-ai.md +2 -1
- package/.docs/models/providers/tokengo.md +1 -1
- package/.docs/models/providers/umans-ai-coding-plan.md +12 -11
- package/.docs/models/providers/umans-ai.md +11 -10
- package/.docs/models/providers/unorouter.md +0 -13
- package/.docs/models/providers/vancine.md +0 -1
- package/.docs/models/providers/vivgrid.md +3 -3
- package/.docs/models/providers/volcengine-coding-plan.md +8 -12
- package/.docs/models/providers/volcengine.md +12 -18
- package/.docs/models/providers/vultr.md +0 -2
- package/.docs/models/providers/wafer.ai.md +3 -7
- package/.docs/models/providers/xai.md +19 -3
- package/.docs/models/providers/xiaomi-token-plan-ams.md +4 -4
- package/.docs/models/providers/xiaomi-token-plan-cn.md +4 -4
- package/.docs/models/providers/xiaomi-token-plan-sgp.md +4 -4
- package/.docs/models/providers/xiaomi.md +4 -4
- package/.docs/models/providers/xpersona.md +0 -1
- package/.docs/models/providers/zenmux.md +105 -125
- package/.docs/models/providers.md +0 -2
- package/.docs/reference/acp/acp-agent.md +4 -4
- package/.docs/reference/acp/create-acp-tool.md +1 -1
- package/.docs/reference/agent-controller/agent-controller-class.md +1 -1
- package/.docs/reference/agent-controller/session.md +5 -5
- package/.docs/reference/agents/agent.md +22 -46
- package/.docs/reference/agents/channels.md +10 -8
- package/.docs/reference/agents/durable-agent.md +2 -2
- package/.docs/reference/agents/generate.md +57 -3
- package/.docs/reference/agents/generateLegacy.md +2 -2
- package/.docs/reference/agents/getLLM.md +2 -2
- package/.docs/reference/agents/getMetadata.md +2 -2
- package/.docs/reference/agents/inngest-agent.md +1 -1
- package/.docs/reference/agents/network.md +1 -1
- package/.docs/reference/browser/agent-browser.md +1 -1
- package/.docs/reference/browser/browser-viewer.md +1 -1
- package/.docs/reference/browser/firecrawl-browser.md +1 -1
- package/.docs/reference/browser/mastra-browser.md +1 -1
- package/.docs/reference/browser/stagehand-browser.md +4 -4
- package/.docs/reference/channels/slack-provider.md +3 -0
- package/.docs/reference/cli/mastra.md +26 -0
- package/.docs/reference/client-js/agent-controller.md +1 -1
- package/.docs/reference/client-js/agents.md +1 -1
- package/.docs/reference/client-js/observability.md +26 -1
- package/.docs/reference/coding-agent/build-base-prompt.md +1 -1
- package/.docs/reference/coding-agent/create-coding-agent.md +8 -8
- package/.docs/reference/configuration.md +3 -3
- package/.docs/reference/connect/credential.md +1 -1
- package/.docs/reference/connect/tools.md +1 -3
- package/.docs/reference/core/getAgentById.md +1 -1
- package/.docs/reference/core/mastra-model-gateway.md +1 -1
- package/.docs/reference/editor/mastra-editor.md +2 -2
- package/.docs/reference/evals/answer-relevancy.md +1 -1
- package/.docs/reference/evals/answer-similarity.md +1 -1
- package/.docs/reference/evals/bias.md +1 -1
- package/.docs/reference/evals/checks.md +1 -1
- package/.docs/reference/evals/context-precision.md +3 -3
- package/.docs/reference/evals/context-recall.md +3 -3
- package/.docs/reference/evals/context-relevance.md +11 -11
- package/.docs/reference/evals/faithfulness.md +1 -1
- package/.docs/reference/evals/hallucination.md +5 -5
- package/.docs/reference/evals/multi-turn-judge.md +2 -2
- package/.docs/reference/evals/noise-sensitivity.md +12 -12
- package/.docs/reference/evals/not-scorable.md +1 -1
- package/.docs/reference/evals/prompt-alignment.md +16 -16
- package/.docs/reference/evals/rubric.md +5 -5
- package/.docs/reference/evals/summarization.md +4 -4
- package/.docs/reference/evals/tool-call-accuracy.md +4 -4
- package/.docs/reference/evals/toxicity.md +1 -1
- package/.docs/reference/file-based-agents/config.md +3 -3
- package/.docs/reference/file-based-agents/schedules.md +1 -1
- package/.docs/reference/file-based-agents/subagents.md +4 -4
- package/.docs/reference/file-based-agents/workspace.md +1 -1
- package/.docs/reference/index.md +2 -1
- package/.docs/reference/manual-install.md +2 -2
- package/.docs/reference/memory/memory-class.md +3 -3
- package/.docs/reference/memory/observational-memory.md +16 -16
- package/.docs/reference/memory/summarizeConversation.md +3 -3
- package/.docs/reference/memory/summarizeThread.md +3 -3
- package/.docs/reference/migrations/agentnetwork.md +4 -4
- package/.docs/reference/migrations/mcp-v2.md +1 -1
- package/.docs/reference/migrations/upgrade-to-v1/agent.md +1 -1
- package/.docs/reference/migrations/vnext-to-standard-apis.md +2 -2
- package/.docs/reference/observability/tracing/advanced-queries.md +92 -11
- package/.docs/reference/observability/tracing/exporters/langfuse.md +1 -1
- package/.docs/reference/observability/tracing/interfaces.md +2 -0
- package/.docs/reference/processors/batch-parts-processor.md +1 -1
- package/.docs/reference/processors/classifier-processor.md +2 -2
- package/.docs/reference/processors/cyber-refusal-handler.md +1 -1
- package/.docs/reference/processors/file-upload-processor.md +1 -1
- package/.docs/reference/processors/language-detector.md +1 -1
- package/.docs/reference/processors/message-history-processor.md +2 -2
- package/.docs/reference/processors/model-selection-processor.md +7 -7
- package/.docs/reference/processors/moderation-processor.md +2 -2
- package/.docs/reference/processors/pii-detector.md +2 -2
- package/.docs/reference/processors/prefill-error-handler.md +2 -2
- package/.docs/reference/processors/processor-interface.md +66 -10
- package/.docs/reference/processors/prompt-injection-detector.md +1 -1
- package/.docs/reference/processors/provider-history-compat.md +1 -1
- package/.docs/reference/processors/regex-filter-processor.md +1 -1
- package/.docs/reference/processors/response-cache.md +1 -1
- package/.docs/reference/processors/semantic-recall-processor.md +2 -2
- package/.docs/reference/processors/skill-search-processor.md +1 -1
- package/.docs/reference/processors/stream-error-retry-processor.md +3 -3
- package/.docs/reference/processors/system-prompt-scrubber.md +1 -1
- package/.docs/reference/processors/token-cost-control.md +1 -1
- package/.docs/reference/processors/token-limiter-processor.md +3 -3
- package/.docs/reference/processors/tool-call-filter.md +2 -2
- package/.docs/reference/processors/tool-search-processor.md +3 -3
- package/.docs/reference/processors/unicode-normalizer.md +1 -1
- package/.docs/reference/processors/working-memory-processor.md +2 -2
- package/.docs/reference/pubsub/lease-provider.md +2 -2
- package/.docs/reference/pubsub/redis-streams.md +1 -1
- package/.docs/reference/rag/chunking-and-embedding.md +1 -1
- package/.docs/reference/rag/graph-rag-guide.md +2 -2
- package/.docs/reference/rag/metadata-filters.md +1 -1
- package/.docs/reference/rag/rerank.md +1 -1
- package/.docs/reference/rag/retrieval.md +13 -13
- package/.docs/reference/server/nestjs-adapter.md +1 -1
- package/.docs/reference/signals/create-notification-inbox-tool.md +4 -4
- package/.docs/reference/signals/notifications.md +249 -0
- package/.docs/reference/signals/task-signal-provider.md +2 -2
- package/.docs/reference/signals/thread-events.md +69 -0
- package/.docs/reference/streaming/ChunkType.md +68 -0
- package/.docs/reference/streaming/agents/stream.md +2 -2
- package/.docs/reference/tools/create-code-mode.md +1 -1
- package/.docs/reference/tools/create-tool.md +17 -0
- package/.docs/reference/tools/mcp-client.md +202 -11
- package/.docs/reference/tools/mcp-server.md +5 -3
- package/.docs/reference/tools/task-tools.md +1 -1
- package/.docs/reference/tools/vector-query-tool.md +1 -1
- package/.docs/reference/vectors/libsql.md +1 -1
- package/.docs/reference/vectors/mongodb.md +2 -2
- package/.docs/reference/vectors/oracledb.md +2 -2
- package/.docs/reference/vectors/pg.md +1 -1
- package/.docs/reference/vectors/upstash.md +1 -1
- package/.docs/reference/voice/overview.md +24 -24
- package/.docs/reference/voice/speech-to-speech.md +6 -6
- package/.docs/reference/voice/speech-to-text.md +1 -1
- package/.docs/reference/voice/text-to-speech.md +1 -1
- package/.docs/reference/voice/voice.addInstructions.md +1 -1
- package/.docs/reference/workspace/local-filesystem.md +1 -1
- package/.docs/reference/workspace/local-sandbox.md +1 -1
- package/.docs/reference/workspace/platform-filesystem.md +1 -1
- package/.docs/reference/workspace/platform-sandbox.md +21 -2
- package/.docs/reference/workspace/process-manager.md +13 -2
- package/package.json +7 -7
- package/.docs/docs/guides/mcp-events.md +0 -306
- package/.docs/docs/harness/signal-providers.md +0 -212
- package/.docs/docs/harness/signals.md +0 -546
- package/.docs/docs/mastra-platform/connect/end-user-connections.md +0 -116
- package/.docs/reference/connect/user-connect-routes.md +0 -68
|
@@ -20,7 +20,7 @@ const voiceAgent = new Agent({
|
|
|
20
20
|
id: 'voice-agent',
|
|
21
21
|
name: 'Voice Agent',
|
|
22
22
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
23
|
-
model: 'openai/gpt-
|
|
23
|
+
model: 'openai/gpt-6.1-sol',
|
|
24
24
|
voice: new OpenAIVoice(),
|
|
25
25
|
})
|
|
26
26
|
```
|
|
@@ -44,7 +44,7 @@ const voiceAgent = new Agent({
|
|
|
44
44
|
id: 'voice-agent',
|
|
45
45
|
name: 'Voice Agent',
|
|
46
46
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
47
|
-
model: 'openai/gpt-
|
|
47
|
+
model: 'openai/gpt-6.1-sol',
|
|
48
48
|
voice: new OpenAIVoice(),
|
|
49
49
|
})
|
|
50
50
|
|
|
@@ -72,7 +72,7 @@ const voiceAgent = new Agent({
|
|
|
72
72
|
id: 'voice-agent',
|
|
73
73
|
name: 'Voice Agent',
|
|
74
74
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
75
|
-
model: 'openai/gpt-
|
|
75
|
+
model: 'openai/gpt-6.1-sol',
|
|
76
76
|
voice: new AzureVoice(),
|
|
77
77
|
})
|
|
78
78
|
|
|
@@ -99,7 +99,7 @@ const voiceAgent = new Agent({
|
|
|
99
99
|
id: 'voice-agent',
|
|
100
100
|
name: 'Voice Agent',
|
|
101
101
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
102
|
-
model: 'openai/gpt-
|
|
102
|
+
model: 'openai/gpt-6.1-sol',
|
|
103
103
|
voice: new ElevenLabsVoice(),
|
|
104
104
|
})
|
|
105
105
|
|
|
@@ -126,7 +126,7 @@ const voiceAgent = new Agent({
|
|
|
126
126
|
id: 'voice-agent',
|
|
127
127
|
name: 'Voice Agent',
|
|
128
128
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
129
|
-
model: 'openai/gpt-
|
|
129
|
+
model: 'openai/gpt-6.1-sol',
|
|
130
130
|
voice: new GoogleVoice(),
|
|
131
131
|
})
|
|
132
132
|
|
|
@@ -153,7 +153,7 @@ const voiceAgent = new Agent({
|
|
|
153
153
|
id: 'voice-agent',
|
|
154
154
|
name: 'Voice Agent',
|
|
155
155
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
156
|
-
model: 'openai/gpt-
|
|
156
|
+
model: 'openai/gpt-6.1-sol',
|
|
157
157
|
voice: new CloudflareVoice(),
|
|
158
158
|
})
|
|
159
159
|
|
|
@@ -180,7 +180,7 @@ const voiceAgent = new Agent({
|
|
|
180
180
|
id: 'voice-agent',
|
|
181
181
|
name: 'Voice Agent',
|
|
182
182
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
183
|
-
model: 'openai/gpt-
|
|
183
|
+
model: 'openai/gpt-6.1-sol',
|
|
184
184
|
voice: new DeepgramVoice(),
|
|
185
185
|
})
|
|
186
186
|
|
|
@@ -207,7 +207,7 @@ const voiceAgent = new Agent({
|
|
|
207
207
|
id: 'voice-agent',
|
|
208
208
|
name: 'Voice Agent',
|
|
209
209
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
210
|
-
model: 'openai/gpt-
|
|
210
|
+
model: 'openai/gpt-6.1-sol',
|
|
211
211
|
voice: new InworldVoice(),
|
|
212
212
|
})
|
|
213
213
|
|
|
@@ -234,7 +234,7 @@ const voiceAgent = new Agent({
|
|
|
234
234
|
id: 'voice-agent',
|
|
235
235
|
name: 'Voice Agent',
|
|
236
236
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
237
|
-
model: 'openai/gpt-
|
|
237
|
+
model: 'openai/gpt-6.1-sol',
|
|
238
238
|
voice: new SpeechifyVoice(),
|
|
239
239
|
})
|
|
240
240
|
|
|
@@ -261,7 +261,7 @@ const voiceAgent = new Agent({
|
|
|
261
261
|
id: 'voice-agent',
|
|
262
262
|
name: 'Voice Agent',
|
|
263
263
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
264
|
-
model: 'openai/gpt-
|
|
264
|
+
model: 'openai/gpt-6.1-sol',
|
|
265
265
|
voice: new SarvamVoice(),
|
|
266
266
|
})
|
|
267
267
|
|
|
@@ -288,7 +288,7 @@ const voiceAgent = new Agent({
|
|
|
288
288
|
id: 'voice-agent',
|
|
289
289
|
name: 'Voice Agent',
|
|
290
290
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
291
|
-
model: 'openai/gpt-
|
|
291
|
+
model: 'openai/gpt-6.1-sol',
|
|
292
292
|
voice: new MurfVoice(),
|
|
293
293
|
})
|
|
294
294
|
|
|
@@ -323,7 +323,7 @@ const voiceAgent = new Agent({
|
|
|
323
323
|
id: 'voice-agent',
|
|
324
324
|
name: 'Voice Agent',
|
|
325
325
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
326
|
-
model: 'openai/gpt-
|
|
326
|
+
model: 'openai/gpt-6.1-sol',
|
|
327
327
|
voice: new OpenAIVoice(),
|
|
328
328
|
})
|
|
329
329
|
|
|
@@ -352,7 +352,7 @@ const voiceAgent = new Agent({
|
|
|
352
352
|
id: 'voice-agent',
|
|
353
353
|
name: 'Voice Agent',
|
|
354
354
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
355
|
-
model: 'openai/gpt-
|
|
355
|
+
model: 'openai/gpt-6.1-sol',
|
|
356
356
|
voice: new AzureVoice(),
|
|
357
357
|
})
|
|
358
358
|
|
|
@@ -380,7 +380,7 @@ const voiceAgent = new Agent({
|
|
|
380
380
|
id: 'voice-agent',
|
|
381
381
|
name: 'Voice Agent',
|
|
382
382
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
383
|
-
model: 'openai/gpt-
|
|
383
|
+
model: 'openai/gpt-6.1-sol',
|
|
384
384
|
voice: new ElevenLabsVoice(),
|
|
385
385
|
})
|
|
386
386
|
|
|
@@ -408,7 +408,7 @@ const voiceAgent = new Agent({
|
|
|
408
408
|
id: 'voice-agent',
|
|
409
409
|
name: 'Voice Agent',
|
|
410
410
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
411
|
-
model: 'openai/gpt-
|
|
411
|
+
model: 'openai/gpt-6.1-sol',
|
|
412
412
|
voice: new GoogleVoice(),
|
|
413
413
|
})
|
|
414
414
|
|
|
@@ -436,7 +436,7 @@ const voiceAgent = new Agent({
|
|
|
436
436
|
id: 'voice-agent',
|
|
437
437
|
name: 'Voice Agent',
|
|
438
438
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
439
|
-
model: 'openai/gpt-
|
|
439
|
+
model: 'openai/gpt-6.1-sol',
|
|
440
440
|
voice: new CloudflareVoice(),
|
|
441
441
|
})
|
|
442
442
|
|
|
@@ -464,7 +464,7 @@ const voiceAgent = new Agent({
|
|
|
464
464
|
id: 'voice-agent',
|
|
465
465
|
name: 'Voice Agent',
|
|
466
466
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
467
|
-
model: 'openai/gpt-
|
|
467
|
+
model: 'openai/gpt-6.1-sol',
|
|
468
468
|
voice: new DeepgramVoice(),
|
|
469
469
|
})
|
|
470
470
|
|
|
@@ -492,7 +492,7 @@ const voiceAgent = new Agent({
|
|
|
492
492
|
id: 'voice-agent',
|
|
493
493
|
name: 'Voice Agent',
|
|
494
494
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
495
|
-
model: 'openai/gpt-
|
|
495
|
+
model: 'openai/gpt-6.1-sol',
|
|
496
496
|
voice: new InworldVoice(),
|
|
497
497
|
})
|
|
498
498
|
|
|
@@ -520,7 +520,7 @@ const voiceAgent = new Agent({
|
|
|
520
520
|
id: 'voice-agent',
|
|
521
521
|
name: 'Voice Agent',
|
|
522
522
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
523
|
-
model: 'openai/gpt-
|
|
523
|
+
model: 'openai/gpt-6.1-sol',
|
|
524
524
|
voice: new SarvamVoice(),
|
|
525
525
|
})
|
|
526
526
|
|
|
@@ -552,7 +552,7 @@ const voiceAgent = new Agent({
|
|
|
552
552
|
id: 'voice-agent',
|
|
553
553
|
name: 'Voice Agent',
|
|
554
554
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
555
|
-
model: 'openai/gpt-
|
|
555
|
+
model: 'openai/gpt-6.1-sol',
|
|
556
556
|
voice: new OpenAIRealtimeVoice(),
|
|
557
557
|
})
|
|
558
558
|
|
|
@@ -582,7 +582,7 @@ const voiceAgent = new Agent({
|
|
|
582
582
|
id: 'voice-agent',
|
|
583
583
|
name: 'Voice Agent',
|
|
584
584
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
585
|
-
model: 'openai/gpt-
|
|
585
|
+
model: 'openai/gpt-6.1-sol',
|
|
586
586
|
voice: new GeminiLiveVoice({
|
|
587
587
|
// Live API mode
|
|
588
588
|
apiKey: process.env.GOOGLE_API_KEY,
|
|
@@ -631,7 +631,7 @@ const voiceAgent = new Agent({
|
|
|
631
631
|
id: 'voice-agent',
|
|
632
632
|
name: 'Voice Agent',
|
|
633
633
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
634
|
-
model: 'openai/gpt-
|
|
634
|
+
model: 'openai/gpt-6.1-sol',
|
|
635
635
|
voice: new NovaSonicVoice({
|
|
636
636
|
region: 'us-east-1',
|
|
637
637
|
speaker: 'matthew',
|
|
@@ -674,7 +674,7 @@ const voiceAgent = new Agent({
|
|
|
674
674
|
id: 'voice-agent',
|
|
675
675
|
name: 'Voice Agent',
|
|
676
676
|
instructions: 'You are a voice assistant that can help users with their tasks.',
|
|
677
|
-
model: 'openai/gpt-
|
|
677
|
+
model: 'openai/gpt-6.1-sol',
|
|
678
678
|
voice: new InworldRealtimeVoice({
|
|
679
679
|
apiKey: process.env.INWORLD_API_KEY,
|
|
680
680
|
model: 'inworld/models/gemma-4-26b-a4b-it',
|
|
@@ -1120,7 +1120,7 @@ const voiceAgent = new Agent({
|
|
|
1120
1120
|
id: 'aisdk-voice-agent',
|
|
1121
1121
|
name: 'AI SDK Voice Agent',
|
|
1122
1122
|
instructions: 'You are a helpful assistant with voice capabilities.',
|
|
1123
|
-
model: 'openai/gpt-
|
|
1123
|
+
model: 'openai/gpt-6.1-sol',
|
|
1124
1124
|
voice,
|
|
1125
1125
|
})
|
|
1126
1126
|
```
|
|
@@ -36,7 +36,7 @@ const agent = new Agent({
|
|
|
36
36
|
id: 'agent',
|
|
37
37
|
name: 'OpenAI Realtime Agent',
|
|
38
38
|
instructions: `You are a helpful assistant with real-time voice capabilities.`,
|
|
39
|
-
model: 'openai/gpt-
|
|
39
|
+
model: 'openai/gpt-6.1-sol',
|
|
40
40
|
voice: new OpenAIRealtimeVoice(),
|
|
41
41
|
})
|
|
42
42
|
|
|
@@ -71,7 +71,7 @@ export const agent = new Agent({
|
|
|
71
71
|
id: 'speech-to-speech-agent',
|
|
72
72
|
name: 'Speech-to-Speech Agent',
|
|
73
73
|
instructions: 'You are a helpful assistant with speech-to-speech capabilities.',
|
|
74
|
-
model: 'openai/gpt-
|
|
74
|
+
model: 'openai/gpt-6.1-sol',
|
|
75
75
|
tools: {
|
|
76
76
|
search,
|
|
77
77
|
calculate,
|
|
@@ -115,7 +115,7 @@ export const agent = new Agent({
|
|
|
115
115
|
id: 'support-line',
|
|
116
116
|
name: 'Support Line',
|
|
117
117
|
instructions: ({ requestContext }) => `Help user ${requestContext.get('user')}.`,
|
|
118
|
-
model: 'openai/gpt-
|
|
118
|
+
model: 'openai/gpt-6.1-sol',
|
|
119
119
|
voice: ({ requestContext }) =>
|
|
120
120
|
new OpenAIRealtimeVoice({
|
|
121
121
|
apiKey: requestContext.get('apiKey'),
|
|
@@ -150,7 +150,7 @@ const agent = new Agent({
|
|
|
150
150
|
name: 'Gemini Live Agent',
|
|
151
151
|
instructions: 'You are a helpful assistant with real-time voice capabilities.',
|
|
152
152
|
// Model used for text generation; voice provider handles realtime audio
|
|
153
|
-
model: 'openai/gpt-
|
|
153
|
+
model: 'openai/gpt-6.1-sol',
|
|
154
154
|
voice: new GeminiLiveVoice({
|
|
155
155
|
apiKey: process.env.GOOGLE_API_KEY,
|
|
156
156
|
model: 'gemini-2.0-flash-exp',
|
|
@@ -197,7 +197,7 @@ const agent = new Agent({
|
|
|
197
197
|
name: 'Nova Sonic Agent',
|
|
198
198
|
instructions: 'You are a helpful assistant with real-time voice capabilities.',
|
|
199
199
|
// Model used for text generation; voice provider handles realtime audio
|
|
200
|
-
model: 'openai/gpt-
|
|
200
|
+
model: 'openai/gpt-6.1-sol',
|
|
201
201
|
voice: new NovaSonicVoice({
|
|
202
202
|
region: 'us-east-1',
|
|
203
203
|
speaker: 'matthew',
|
|
@@ -241,7 +241,7 @@ const agent = new Agent({
|
|
|
241
241
|
name: 'Inworld Realtime Agent',
|
|
242
242
|
instructions: 'You are a helpful assistant with real-time voice capabilities.',
|
|
243
243
|
// Model used for text generation; voice provider handles realtime audio
|
|
244
|
-
model: 'openai/gpt-
|
|
244
|
+
model: 'openai/gpt-6.1-sol',
|
|
245
245
|
voice: new InworldRealtimeVoice({
|
|
246
246
|
apiKey: process.env.INWORLD_API_KEY,
|
|
247
247
|
model: 'inworld/models/gemma-4-26b-a4b-it',
|
|
@@ -25,7 +25,7 @@ const agent = new Agent({
|
|
|
25
25
|
id: 'customer-support-agent',
|
|
26
26
|
name: 'Customer Support Agent',
|
|
27
27
|
instructions: 'You are a helpful customer support agent for a software company.',
|
|
28
|
-
model: 'openai/gpt-
|
|
28
|
+
model: 'openai/gpt-6.1-sol',
|
|
29
29
|
voice,
|
|
30
30
|
})
|
|
31
31
|
|
|
@@ -83,7 +83,7 @@ const agent = new Agent({
|
|
|
83
83
|
id: 'code-agent',
|
|
84
84
|
name: 'Code Agent',
|
|
85
85
|
instructions: 'You are a coding assistant working in this workspace.',
|
|
86
|
-
model: 'anthropic/claude-sonnet-
|
|
86
|
+
model: 'anthropic/claude-sonnet-5-5',
|
|
87
87
|
workspace,
|
|
88
88
|
})
|
|
89
89
|
|
|
@@ -314,6 +314,25 @@ console.log(result.exitCode)
|
|
|
314
314
|
|
|
315
315
|
> **Warning:** The `command` argument is a shell string and is concatenated verbatim into the remote shell. This lets you use pipes, redirects, and chaining (`ls -la | grep foo`) but means untrusted input must be passed through `args` (safely quoted) or shell-quoted by the caller. Untrusted `command` values allow arbitrary shell execution on the sandbox.
|
|
316
316
|
|
|
317
|
+
### Background processes
|
|
318
|
+
|
|
319
|
+
`sandbox.processes` runs commands in the background. Output streams while they run, and you can list, attach to and stop them:
|
|
320
|
+
|
|
321
|
+
```typescript
|
|
322
|
+
const handle = await sandbox.processes.spawn('pnpm dev', {
|
|
323
|
+
onStdout: data => console.log(data),
|
|
324
|
+
})
|
|
325
|
+
|
|
326
|
+
// Everything running in the sandbox, plus exited processes not read yet
|
|
327
|
+
const running = await sandbox.processes.list()
|
|
328
|
+
|
|
329
|
+
await handle.kill()
|
|
330
|
+
```
|
|
331
|
+
|
|
332
|
+
A process has no time limit unless you pass `timeout` to `spawn()` or the constructor. Call `get(pid)` to attach to a process this manager didn't start, for example after your app restarts. Output written before attaching isn't available.
|
|
333
|
+
|
|
334
|
+
A long-running process's output stream reconnects periodically, and the process keeps running through it. Output written during a reconnect is lost, and a process that exits while its stream reconnects reports exit code `1` from `wait()` instead of its real exit code.
|
|
335
|
+
|
|
317
336
|
## Constructor parameters
|
|
318
337
|
|
|
319
338
|
**accessToken** (`string`): Platform access token. Falls back to the MASTRA\_PLATFORM\_ACCESS\_TOKEN environment variable.
|
|
@@ -358,7 +377,7 @@ console.log(result.exitCode)
|
|
|
358
377
|
|
|
359
378
|
**status** (`ProviderStatus`): 'pending' | 'initializing' | 'ready' | 'starting' | 'running' | 'stopping' | 'stopped' | 'destroying' | 'destroyed' | 'error'.
|
|
360
379
|
|
|
361
|
-
**processes** (`
|
|
380
|
+
**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.
|
|
362
381
|
|
|
363
382
|
**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.
|
|
364
383
|
|
|
@@ -76,6 +76,8 @@ const handle = await sandbox.processes.spawn('npm run dev', {
|
|
|
76
76
|
|
|
77
77
|
List all tracked processes. Returns info about each process including PID, running state, and exit code.
|
|
78
78
|
|
|
79
|
+
A process that has exited stays in the list until something reads it with `get(pid)`, so a finished command's output can still be read.
|
|
80
|
+
|
|
79
81
|
```typescript
|
|
80
82
|
const procs = await sandbox.processes.list()
|
|
81
83
|
for (const proc of procs) {
|
|
@@ -85,18 +87,27 @@ for (const proc of procs) {
|
|
|
85
87
|
|
|
86
88
|
**Returns:** `Promise<ProcessInfo[]>`
|
|
87
89
|
|
|
88
|
-
### `get(pid)`
|
|
90
|
+
### `get(pid, options?)`
|
|
89
91
|
|
|
90
92
|
Get a handle to a process by PID. Returns `undefined` if the process isn't found or has already been dismissed.
|
|
91
93
|
|
|
94
|
+
Reading a process that has exited dismisses it: later calls return `undefined` and it leaves `list()`. Pass `{ release: false }` to read it and leave it available, so one reader can look at a finished process's output without taking it from another, such as the agent that started it.
|
|
95
|
+
|
|
92
96
|
```typescript
|
|
93
|
-
const handle = await sandbox.processes.get(1234)
|
|
97
|
+
const handle = await sandbox.processes.get('1234')
|
|
94
98
|
if (handle) {
|
|
95
99
|
console.log(handle.stdout)
|
|
96
100
|
await handle.kill()
|
|
97
101
|
}
|
|
102
|
+
|
|
103
|
+
// Read without dismissing an exited process
|
|
104
|
+
const peek = await sandbox.processes.get('1234', { release: false })
|
|
98
105
|
```
|
|
99
106
|
|
|
107
|
+
**pid** (`string`): Process ID.
|
|
108
|
+
|
|
109
|
+
**options.release** (`boolean`): Whether reading an exited process dismisses it. Defaults to true. (Default: `true`)
|
|
110
|
+
|
|
100
111
|
**Returns:** `Promise<ProcessHandle | undefined>`
|
|
101
112
|
|
|
102
113
|
### `kill(pid)`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.10-alpha.0",
|
|
4
4
|
"description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,24 +26,24 @@
|
|
|
26
26
|
"@mastra/mcp-legacy": "npm:@mastra/mcp@^1.18.0",
|
|
27
27
|
"local-pkg": "^1.1.2",
|
|
28
28
|
"zod": "^4.6.7",
|
|
29
|
-
"@mastra/
|
|
30
|
-
"@mastra/
|
|
29
|
+
"@mastra/mcp": "^2.6.0-alpha.0",
|
|
30
|
+
"@mastra/core": "1.80.0-alpha.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@hono/node-server": "^2.0.0",
|
|
34
|
-
"@modelcontextprotocol/client": "2.
|
|
35
|
-
"@types/node": "22.20.
|
|
34
|
+
"@modelcontextprotocol/client": "2.3.1",
|
|
35
|
+
"@types/node": "22.20.5",
|
|
36
36
|
"@vitest/coverage-v8": "4.1.11",
|
|
37
37
|
"@vitest/ui": "4.1.11",
|
|
38
38
|
"@wong2/mcp-cli": "^2.0.0",
|
|
39
39
|
"cross-env": "^10.1.0",
|
|
40
40
|
"hono": "^4.13.7",
|
|
41
|
-
"tsdown": "0.
|
|
41
|
+
"tsdown": "0.23.1",
|
|
42
42
|
"tsx": "^4.23.1",
|
|
43
43
|
"typescript": "^7.0.2",
|
|
44
44
|
"vitest": "4.1.11",
|
|
45
|
+
"@mastra/core": "1.80.0-alpha.0",
|
|
45
46
|
"@internal/types-builder": "0.0.120",
|
|
46
|
-
"@mastra/core": "1.79.0",
|
|
47
47
|
"@internal/lint": "0.0.145"
|
|
48
48
|
},
|
|
49
49
|
"homepage": "https://mastra.ai",
|