@mastra/mcp-docs-server 1.3.15-alpha.2 → 1.3.15
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/guardrails.md +1 -1
- package/.docs/docs/agents/human-in-the-loop.md +2 -2
- package/.docs/docs/agents/networks.md +1 -1
- package/.docs/docs/agents/overview.md +2 -2
- package/.docs/docs/agents/processors.md +2 -2
- package/.docs/docs/agents/tools.md +9 -3
- package/.docs/docs/auth/composite-auth.md +1 -1
- package/.docs/docs/auth/custom-auth-provider.md +5 -5
- package/.docs/docs/auth/fga.md +1 -1
- package/.docs/docs/auth/jwt.md +2 -2
- package/.docs/docs/auth/simple-auth.md +1 -1
- package/.docs/docs/browser.md +1 -1
- package/.docs/docs/channels.md +2 -2
- package/.docs/docs/connections/sdk-agents.md +1 -1
- package/.docs/docs/deployment/overview.md +5 -5
- package/.docs/docs/deployment/web-framework.md +3 -3
- package/.docs/docs/develop.md +1 -1
- package/.docs/docs/evals/built-in-scorers.md +1 -1
- package/.docs/docs/evals/custom-scorers.md +8 -8
- package/.docs/docs/evals/overview.md +1 -1
- package/.docs/docs/evals/quick-checks.md +1 -1
- package/.docs/docs/guides/authentication-identity.md +1 -1
- package/.docs/docs/guides/context-engineering.md +1 -1
- package/.docs/docs/guides/multi-agent-systems.md +2 -2
- package/.docs/docs/harness/agent-controller.md +3 -3
- package/.docs/docs/harness/background-tasks.md +1 -1
- package/.docs/docs/harness/durable-agents.md +1 -1
- package/.docs/docs/index.md +2 -2
- package/.docs/docs/license.md +1 -1
- package/.docs/docs/mastra-platform/access-tokens.md +84 -0
- package/.docs/docs/mastra-platform/api.md +2 -2
- package/.docs/docs/mastra-platform/configuration.md +10 -14
- package/.docs/docs/mastra-platform/database.md +30 -23
- package/.docs/docs/mastra-platform/{environments.md → deploy/environments.md} +7 -7
- package/.docs/docs/mastra-platform/{github.md → deploy/github.md} +3 -3
- package/.docs/docs/mastra-platform/{deploy.md → deploy/overview.md} +8 -10
- package/.docs/docs/mastra-platform/{regions.md → deploy/regions.md} +4 -4
- package/.docs/docs/mastra-platform/{server.md → deploy/server.md} +18 -10
- package/.docs/docs/mastra-platform/{studio.md → deploy/studio.md} +2 -2
- package/.docs/docs/mastra-platform/{trace-intelligence.md → observability/trace-intelligence.md} +6 -6
- package/.docs/docs/mastra-platform/overview.md +12 -12
- package/.docs/docs/mastra-platform/system-environment-variables.md +13 -13
- package/.docs/docs/mastra-platform/team-members.md +49 -0
- package/.docs/docs/mastra-platform/workspaces.md +11 -11
- package/.docs/docs/memory/memory-processors.md +2 -2
- package/.docs/docs/memory/message-history.md +1 -1
- package/.docs/docs/memory/multi-user-threads.md +1 -1
- package/.docs/docs/memory/observational-memory.md +3 -3
- package/.docs/docs/memory/semantic-recall.md +4 -4
- package/.docs/docs/memory/working-memory.md +16 -16
- package/.docs/docs/observability/integrations/exporters/mastra-storage.md +13 -13
- package/.docs/docs/observability/overview.md +2 -2
- package/.docs/docs/observability/tracing/overview.md +4 -2
- package/.docs/docs/sandbox/filesystem.md +1 -1
- package/.docs/docs/server/custom-api-routes.md +1 -1
- package/.docs/docs/server/middleware.md +1 -1
- package/.docs/docs/server/request-context.md +1 -1
- package/.docs/docs/signals/overview.md +1 -1
- package/.docs/docs/signals/sending-signals.md +1 -1
- package/.docs/docs/studio/auth.md +1 -1
- package/.docs/docs/studio/deployment.md +3 -3
- package/.docs/docs/studio/editor.md +2 -2
- package/.docs/docs/studio/observability.md +3 -3
- package/.docs/docs/studio/overview.md +1 -1
- package/.docs/docs/workflows/control-flow.md +4 -4
- package/.docs/docs/workflows/overview.md +3 -3
- package/.docs/docs/workflows/snapshots.md +2 -2
- package/.docs/integrations/agentic-ui/ai-sdk-ui.md +3 -3
- package/.docs/integrations/agentic-ui/assistant-ui.md +5 -5
- package/.docs/integrations/agentic-ui/copilotkit.md +4 -4
- package/.docs/integrations/agentic-ui/openui.md +2 -2
- package/.docs/integrations/auth/auth0.md +3 -3
- package/.docs/integrations/auth/better-auth.md +1 -1
- package/.docs/integrations/auth/clerk.md +1 -1
- package/.docs/integrations/auth/firebase.md +3 -3
- package/.docs/integrations/auth/google.md +2 -2
- package/.docs/integrations/auth/okta.md +3 -3
- package/.docs/integrations/auth/supabase.md +1 -1
- package/.docs/integrations/auth/workos.md +1 -1
- package/.docs/integrations/browsers/stagehand.md +1 -1
- package/.docs/integrations/channels/imessage.md +1 -1
- package/.docs/integrations/channels/ring.md +6 -6
- package/.docs/integrations/channels/slack.md +1 -1
- package/.docs/integrations/channels/whatsapp.md +1 -1
- package/.docs/integrations/databases/aurora-dsql.md +13 -13
- package/.docs/integrations/databases/clickhouse.md +2 -2
- package/.docs/integrations/databases/cloudflare-d1.md +4 -4
- package/.docs/integrations/databases/cloudflare-kv.md +10 -10
- package/.docs/integrations/databases/convex.md +6 -6
- package/.docs/integrations/databases/dynamodb.md +8 -8
- package/.docs/integrations/databases/elasticsearch.md +6 -6
- package/.docs/integrations/databases/lancedb.md +4 -4
- package/.docs/integrations/databases/mongodb.md +2 -2
- package/.docs/integrations/databases/mssql.md +2 -2
- package/.docs/integrations/databases/oracledb.md +2 -2
- package/.docs/integrations/databases/postgresql.md +14 -14
- package/.docs/integrations/databases/redis.md +7 -7
- package/.docs/integrations/databases/spanner.md +2 -2
- package/.docs/integrations/databases/upstash.md +5 -5
- package/.docs/integrations/databases/valkey.md +1 -1
- package/.docs/integrations/deploy/amazon-ec2.md +1 -1
- package/.docs/integrations/deploy/aws-bedrock-agentcore.md +1 -1
- package/.docs/integrations/deploy/aws-lambda.md +12 -12
- package/.docs/integrations/deploy/azure-app-services.md +2 -2
- package/.docs/integrations/deploy/cloudflare.md +2 -2
- package/.docs/integrations/deploy/digital-ocean.md +2 -2
- package/.docs/integrations/deploy/inngest.md +5 -5
- package/.docs/integrations/deploy/kubernetes-helm.md +20 -20
- package/.docs/integrations/deploy/neon.md +1 -1
- package/.docs/integrations/deploy/netlify.md +1 -1
- package/.docs/integrations/deploy/render.md +1 -1
- package/.docs/integrations/deploy/temporal.md +1 -1
- package/.docs/integrations/deploy/vercel.md +4 -4
- package/.docs/integrations/file-storage/google-cloud-storage.md +1 -1
- package/.docs/integrations/frameworks/angular.md +1 -1
- package/.docs/integrations/frameworks/astro.md +3 -3
- package/.docs/integrations/frameworks/electron.md +1 -1
- package/.docs/integrations/frameworks/express.md +1 -1
- package/.docs/integrations/frameworks/hono.md +1 -1
- package/.docs/integrations/frameworks/nestjs.md +2 -2
- package/.docs/integrations/frameworks/next-js.md +3 -3
- package/.docs/integrations/frameworks/nuxt.md +1 -1
- package/.docs/integrations/frameworks/sveltekit.md +1 -1
- package/.docs/integrations/frameworks/tanstack-start.md +3 -3
- package/.docs/integrations/frameworks/vite-react.md +3 -3
- package/.docs/integrations/observability/arize.md +9 -9
- package/.docs/integrations/observability/arthur.md +3 -3
- package/.docs/integrations/observability/braintrust.md +3 -3
- package/.docs/integrations/observability/confident-ai.md +5 -5
- package/.docs/integrations/observability/datadog.md +9 -9
- package/.docs/integrations/observability/laminar.md +2 -2
- package/.docs/integrations/observability/langfuse.md +14 -14
- package/.docs/integrations/observability/langsmith.md +9 -9
- package/.docs/integrations/observability/opentelemetry.md +23 -23
- package/.docs/integrations/observability/sentry.md +4 -4
- package/.docs/integrations/sandboxes/agentcore.md +1 -1
- package/.docs/integrations/sandboxes/apple-container.md +2 -2
- package/.docs/integrations/sandboxes/cloudflare-sandbox.md +6 -6
- package/.docs/integrations/sandboxes/daytona.md +5 -5
- package/.docs/integrations/sandboxes/docker.md +6 -6
- package/.docs/integrations/sandboxes/e2b-desktop.md +1 -1
- package/.docs/integrations/sandboxes/e2b.md +14 -14
- package/.docs/integrations/sandboxes/modal.md +1 -1
- package/.docs/integrations/sandboxes/railway.md +1 -1
- package/.docs/integrations/sandboxes/sprites.md +2 -2
- package/.docs/integrations/sandboxes/vercel.md +4 -4
- package/.docs/integrations/vectors/couchbase.md +1 -1
- package/.docs/integrations/vectors/duckdb.md +5 -5
- package/.docs/integrations/vectors/lance.md +3 -3
- package/.docs/integrations/vectors/mongodb.md +5 -5
- package/.docs/integrations/vectors/pg.md +11 -11
- package/.docs/integrations/vectors/qdrant.md +2 -2
- package/.docs/integrations/vectors/upstash.md +4 -4
- package/.docs/integrations/voice/azure.md +1 -1
- package/.docs/integrations/voice/cloudflare.md +1 -1
- package/.docs/integrations/voice/google.md +12 -12
- package/.docs/integrations/voice/inworld.md +2 -2
- package/.docs/integrations/voice/livekit.md +25 -25
- package/.docs/integrations/voice/openai.md +4 -4
- package/.docs/integrations/voice/sarvam.md +1 -1
- package/.docs/integrations/voice/speechify.md +1 -1
- package/.docs/integrations/voice/xai.md +1 -1
- package/.docs/integrations.md +2 -2
- package/.docs/models/environment-variables.md +92 -3
- package/.docs/models/gateways/merge-gateway.md +4 -1
- package/.docs/models/gateways/neon.md +1 -2
- package/.docs/models/gateways/netlify.md +7 -6
- package/.docs/models/gateways/openrouter.md +16 -11
- package/.docs/models/gateways/requesty.md +7 -17
- package/.docs/models/gateways/vercel.md +12 -16
- package/.docs/models/index.md +93 -30
- package/.docs/models/providers/302ai.md +2 -1
- package/.docs/models/providers/abacus.md +1 -1
- package/.docs/models/providers/abliteratedllm.md +95 -0
- package/.docs/models/providers/abliteration-ai.md +7 -6
- package/.docs/models/providers/adaption.md +87 -0
- package/.docs/models/providers/adzuki.md +92 -0
- package/.docs/models/providers/aigrow.md +89 -0
- package/.docs/models/providers/aimlapi.md +1 -7
- package/.docs/models/providers/aipg.md +82 -0
- package/.docs/models/providers/aistupidlevel.md +90 -0
- package/.docs/models/providers/aki-io.md +15 -13
- package/.docs/models/providers/ambient.md +13 -12
- package/.docs/models/providers/anonrouter.md +83 -0
- package/.docs/models/providers/anthropic.md +18 -20
- package/.docs/models/providers/apiko.md +83 -0
- package/.docs/models/providers/augure.md +86 -0
- package/.docs/models/providers/autarcho.md +81 -0
- package/.docs/models/providers/bailing.md +15 -12
- package/.docs/models/providers/bumo.md +100 -0
- package/.docs/models/providers/byteplus.md +94 -0
- package/.docs/models/providers/cedarllm.md +81 -0
- package/.docs/models/providers/cheapaimodel.md +85 -0
- package/.docs/models/providers/cheapest-token.md +99 -0
- package/.docs/models/providers/cheapllm.md +81 -0
- package/.docs/models/providers/chutes.md +8 -8
- package/.docs/models/providers/cline-pass.md +4 -3
- package/.docs/models/providers/cloudcode.md +86 -0
- package/.docs/models/providers/cloudflare-workers-ai.md +2 -1
- package/.docs/models/providers/commandcode.md +22 -1
- package/.docs/models/providers/confidential-ai.md +81 -0
- package/.docs/models/providers/cortecs.md +14 -14
- package/.docs/models/providers/crossmodel.md +7 -2
- package/.docs/models/providers/deepinfra.md +3 -1
- package/.docs/models/providers/digitalocean.md +5 -4
- package/.docs/models/providers/dothoosh.md +96 -0
- package/.docs/models/providers/doubleword.md +98 -0
- package/.docs/models/providers/edenai.md +52 -44
- package/.docs/models/providers/empiriolabs.md +2 -1
- package/.docs/models/providers/engy.md +2 -1
- package/.docs/models/providers/entrim.md +84 -0
- package/.docs/models/providers/ezkielyna.md +85 -0
- package/.docs/models/providers/fastrouter.md +21 -5
- package/.docs/models/providers/fiftyx.md +81 -0
- package/.docs/models/providers/fireworks-ai.md +1 -1
- package/.docs/models/providers/fortytwo.md +81 -0
- package/.docs/models/providers/frequency.md +81 -0
- package/.docs/models/providers/frogbot.md +30 -5
- package/.docs/models/providers/gisoo.md +96 -0
- package/.docs/models/providers/google.md +5 -4
- package/.docs/models/providers/graphn.md +87 -0
- package/.docs/models/providers/hetzner.md +1 -1
- package/.docs/models/providers/hostinger-router.md +88 -0
- package/.docs/models/providers/huawei-maas.md +88 -0
- package/.docs/models/providers/hubris.md +96 -0
- package/.docs/models/providers/huggingface.md +5 -1
- package/.docs/models/providers/humain.md +82 -0
- package/.docs/models/providers/hyper.md +24 -22
- package/.docs/models/providers/inceptron.md +4 -4
- package/.docs/models/providers/infer.md +17 -9
- package/.docs/models/providers/inferall.md +86 -0
- package/.docs/models/providers/inference-coop.md +88 -0
- package/.docs/models/providers/inferenceapis.md +91 -0
- package/.docs/models/providers/inferris.md +84 -0
- package/.docs/models/providers/infersia.md +86 -0
- package/.docs/models/providers/isoquant.md +82 -0
- package/.docs/models/providers/iteracompute.md +33 -16
- package/.docs/models/providers/jad-ai.md +83 -0
- package/.docs/models/providers/joingonka.md +83 -0
- package/.docs/models/providers/jzstoken.md +102 -0
- package/.docs/models/providers/keln.md +94 -0
- package/.docs/models/providers/kenari.md +47 -12
- package/.docs/models/providers/kilo.md +191 -100
- package/.docs/models/providers/kitani.md +89 -0
- package/.docs/models/providers/klavo.md +90 -0
- package/.docs/models/providers/korouter.md +99 -0
- package/.docs/models/providers/kunavo.md +96 -0
- package/.docs/models/providers/liquid.md +15 -8
- package/.docs/models/providers/lithosai.md +83 -0
- package/.docs/models/providers/llmgateway-providers.md +96 -43
- package/.docs/models/providers/llmgateway.md +33 -21
- package/.docs/models/providers/logits.md +82 -0
- package/.docs/models/providers/lowrouter.md +17 -4
- package/.docs/models/providers/lyceum.md +88 -0
- package/.docs/models/providers/mallard.md +81 -0
- package/.docs/models/providers/meragpt.md +81 -0
- package/.docs/models/providers/mistral.md +1 -1
- package/.docs/models/providers/moneo.md +92 -0
- package/.docs/models/providers/nan.md +11 -8
- package/.docs/models/providers/nano-gpt.md +77 -73
- package/.docs/models/providers/nearai.md +1 -1
- package/.docs/models/providers/nebius.md +3 -6
- package/.docs/models/providers/neuralwatt.md +28 -25
- package/.docs/models/providers/nodecode.md +81 -0
- package/.docs/models/providers/nokeep.md +83 -0
- package/.docs/models/providers/novita-ai.md +4 -1
- package/.docs/models/providers/oathbreaker.md +82 -0
- package/.docs/models/providers/obscurify.md +95 -0
- package/.docs/models/providers/ofox.md +7 -3
- package/.docs/models/providers/ollama-cloud.md +2 -1
- package/.docs/models/providers/openai.md +4 -2
- package/.docs/models/providers/opencode-go.md +3 -1
- package/.docs/models/providers/opencode.md +5 -3
- package/.docs/models/providers/opper.md +2 -1
- package/.docs/models/providers/outerlabs.md +98 -0
- package/.docs/models/providers/paraloncloud.md +81 -0
- package/.docs/models/providers/pareto.md +9 -7
- package/.docs/models/providers/phala.md +99 -0
- package/.docs/models/providers/phase.md +82 -0
- package/.docs/models/providers/powerspring.md +87 -0
- package/.docs/models/providers/prime.md +5 -5
- package/.docs/models/providers/proxystacks.md +84 -0
- package/.docs/models/providers/rayline.md +82 -0
- package/.docs/models/providers/refuseless.md +86 -0
- package/.docs/models/providers/ruapi.md +89 -0
- package/.docs/models/providers/runcrate.md +91 -0
- package/.docs/models/providers/runinfra.md +2 -1
- package/.docs/models/providers/sagg.md +81 -0
- package/.docs/models/providers/sambanova.md +10 -12
- package/.docs/models/providers/sandbase.md +90 -0
- package/.docs/models/providers/scx-ai.md +20 -10
- package/.docs/models/providers/sensenova.md +4 -4
- package/.docs/models/providers/siliconflow-cn.md +2 -1
- package/.docs/models/providers/sokkan.md +85 -0
- package/.docs/models/providers/sparrowcodes.md +99 -0
- package/.docs/models/providers/steadyrouter.md +101 -0
- package/.docs/models/providers/stepping-stone.md +95 -0
- package/.docs/models/providers/superbot-gg.md +82 -0
- package/.docs/models/providers/synthetic.md +14 -14
- package/.docs/models/providers/synthorai.md +92 -0
- package/.docs/models/providers/teamorouter.md +90 -0
- package/.docs/models/providers/teapot-router.md +87 -0
- package/.docs/models/providers/tencent-token-plan.md +23 -11
- package/.docs/models/providers/tenstorrent.md +84 -0
- package/.docs/models/providers/therouter.md +81 -0
- package/.docs/models/providers/tinfoil.md +1 -1
- package/.docs/models/providers/toapis.md +83 -0
- package/.docs/models/providers/tokenify.md +85 -0
- package/.docs/models/providers/tokenlab.md +81 -0
- package/.docs/models/providers/tokenwatt.md +81 -0
- package/.docs/models/providers/trustedtokens.md +90 -0
- package/.docs/models/providers/umans-ai-coding-plan.md +2 -5
- package/.docs/models/providers/umans-ai.md +5 -7
- package/.docs/models/providers/unbiased.md +81 -0
- package/.docs/models/providers/uncensuredai.md +83 -0
- package/.docs/models/providers/unrestricted.md +84 -0
- package/.docs/models/providers/uplinkswitch.md +92 -0
- package/.docs/models/providers/verda.md +81 -0
- package/.docs/models/providers/volcengine-coding-plan.md +16 -9
- package/.docs/models/providers/volcengine.md +2 -2
- package/.docs/models/providers/wafer.ai.md +20 -10
- package/.docs/models/providers/wallaby.md +7 -5
- package/.docs/models/providers/wally.md +9 -8
- package/.docs/models/providers/watt.md +98 -0
- package/.docs/models/providers/xxapi.md +96 -0
- package/.docs/models/providers/zenifra.md +22 -10
- package/.docs/models/providers/zerogpu.md +89 -0
- package/.docs/models/providers/zro.md +85 -0
- package/.docs/models/providers.md +92 -3
- package/.docs/reference/agents/agent.md +1 -1
- package/.docs/reference/agents/durable-agent.md +2 -2
- package/.docs/reference/agents/generateLegacy.md +4 -4
- package/.docs/reference/agents/network.md +2 -2
- package/.docs/reference/ai-sdk/overview.md +2 -2
- package/.docs/reference/build-with-ai.md +3 -3
- package/.docs/reference/channels/slack-provider.md +1 -1
- package/.docs/reference/classifier/classifier.md +1 -1
- package/.docs/reference/cli/mastra.md +4 -4
- package/.docs/reference/client-js/agent-controller.md +1 -1
- package/.docs/reference/client-js/memory.md +10 -10
- package/.docs/reference/client-js/observability.md +1 -1
- package/.docs/reference/client-js/responses.md +1 -1
- package/.docs/reference/client-js/tools.md +2 -2
- package/.docs/reference/client-js/vectors.md +6 -6
- package/.docs/reference/configuration.md +1 -1
- package/.docs/reference/connect/tools.md +1 -1
- package/.docs/reference/deployer.md +4 -4
- package/.docs/reference/evals/answer-relevancy.md +2 -2
- package/.docs/reference/evals/bias.md +2 -2
- package/.docs/reference/evals/checks.md +1 -1
- package/.docs/reference/evals/completeness.md +4 -4
- package/.docs/reference/evals/content-similarity.md +4 -4
- package/.docs/reference/evals/context-precision.md +6 -6
- package/.docs/reference/evals/context-recall.md +1 -1
- package/.docs/reference/evals/context-relevance.md +9 -9
- package/.docs/reference/evals/create-scorer.md +3 -3
- package/.docs/reference/evals/faithfulness.md +1 -1
- package/.docs/reference/evals/hallucination.md +6 -6
- package/.docs/reference/evals/keyword-coverage.md +2 -2
- package/.docs/reference/evals/multi-turn-judge.md +1 -1
- package/.docs/reference/evals/noise-sensitivity.md +16 -16
- package/.docs/reference/evals/prompt-alignment.md +25 -25
- package/.docs/reference/evals/run-evals.md +2 -2
- package/.docs/reference/evals/summarization.md +1 -1
- package/.docs/reference/evals/textual-difference.md +2 -2
- package/.docs/reference/evals/tone-consistency.md +2 -2
- package/.docs/reference/evals/tool-call-accuracy.md +10 -10
- package/.docs/reference/evals/toxicity.md +2 -2
- package/.docs/reference/evals/trajectory-accuracy.md +2 -2
- package/.docs/reference/manual-install.md +2 -2
- package/.docs/reference/memory/listThreads.md +1 -1
- package/.docs/reference/migrations/agentnetwork.md +1 -1
- package/.docs/reference/migrations/mastra-cloud.md +9 -9
- package/.docs/reference/migrations/mcp-v2.md +1 -1
- package/.docs/reference/migrations/upgrade-to-v1/deployment.md +1 -1
- package/.docs/reference/migrations/upgrade-to-v1/overview.md +8 -8
- package/.docs/reference/migrations/upgrade-to-v1/tracing.md +3 -3
- package/.docs/reference/observability/tracing/advanced-queries.md +1 -1
- package/.docs/reference/observability/tracing/bridges/datadog.md +4 -4
- package/.docs/reference/observability/tracing/bridges/otel.md +4 -4
- package/.docs/reference/observability/tracing/exporters/arize.md +4 -4
- package/.docs/reference/observability/tracing/exporters/arthur.md +3 -3
- package/.docs/reference/observability/tracing/exporters/braintrust.md +2 -2
- package/.docs/reference/observability/tracing/exporters/cloud-exporter.md +2 -2
- package/.docs/reference/observability/tracing/exporters/confident-ai.md +2 -2
- package/.docs/reference/observability/tracing/exporters/console-exporter.md +1 -1
- package/.docs/reference/observability/tracing/exporters/datadog.md +3 -3
- package/.docs/reference/observability/tracing/exporters/default-exporter.md +5 -5
- package/.docs/reference/observability/tracing/exporters/laminar.md +2 -2
- package/.docs/reference/observability/tracing/exporters/langfuse.md +3 -3
- package/.docs/reference/observability/tracing/exporters/mastra-platform-exporter.md +1 -1
- package/.docs/reference/observability/tracing/exporters/mastra-storage-exporter.md +5 -5
- package/.docs/reference/observability/tracing/exporters/otel.md +4 -4
- package/.docs/reference/observability/tracing/exporters/posthog.md +2 -2
- package/.docs/reference/observability/tracing/exporters/sentry.md +4 -4
- package/.docs/reference/observability/tracing/instances.md +1 -1
- package/.docs/reference/processors/model-selection-processor.md +2 -2
- package/.docs/reference/processors/processor-interface.md +3 -3
- package/.docs/reference/processors/stream-error-retry-processor.md +1 -1
- package/.docs/reference/processors/system-prompt-scrubber.md +1 -1
- package/.docs/reference/processors/token-limiter-processor.md +1 -1
- package/.docs/reference/processors/unicode-normalizer.md +1 -1
- package/.docs/reference/project-structure.md +2 -2
- package/.docs/reference/pubsub/google-cloud-pubsub.md +1 -1
- package/.docs/reference/pubsub/lease-provider.md +1 -1
- package/.docs/reference/pubsub/redis-streams.md +1 -1
- package/.docs/reference/pubsub/unix-socket-pubsub.md +1 -1
- package/.docs/reference/rag/chunk.md +1 -1
- package/.docs/reference/rag/chunking-and-embedding.md +4 -4
- package/.docs/reference/rag/database-config.md +4 -4
- package/.docs/reference/rag/graph-rag-guide.md +3 -3
- package/.docs/reference/rag/metadata-filters.md +4 -4
- package/.docs/reference/rag/overview.md +4 -0
- package/.docs/reference/rag/rerank.md +1 -1
- package/.docs/reference/rag/rerankWithScorer.md +1 -1
- package/.docs/reference/rag/retrieval.md +8 -6
- package/.docs/reference/rag/vector-databases.md +7 -7
- package/.docs/reference/server/nestjs-adapter.md +1 -1
- package/.docs/reference/server/register-api-route.md +5 -5
- package/.docs/reference/storage/composite.md +1 -1
- package/.docs/reference/storage/overview.md +1 -1
- package/.docs/reference/storage/retention.md +2 -2
- package/.docs/reference/storage/turso.md +1 -1
- package/.docs/reference/streaming/agents/MastraModelOutput.md +5 -5
- package/.docs/reference/streaming/agents/stream.md +5 -5
- package/.docs/reference/streaming/agents/streamLegacy.md +4 -4
- package/.docs/reference/templates/overview.md +1 -1
- package/.docs/reference/tools/bedrock-kb-tool.md +8 -8
- package/.docs/reference/tools/create-tool.md +1 -1
- package/.docs/reference/tools/mcp-client.md +9 -9
- package/.docs/reference/tools/mcp-server.md +17 -17
- package/.docs/reference/tools/vector-query-tool.md +6 -6
- package/.docs/reference/voice/composite-voice.md +3 -3
- package/.docs/reference/voice/overview.md +5 -5
- package/.docs/reference/voice/speech-to-speech.md +2 -2
- package/.docs/reference/voice/voice.close.md +1 -1
- package/.docs/reference/voice/voice.connect.md +1 -1
- package/.docs/reference/voice/voice.listen.md +1 -1
- package/.docs/reference/voice/voice.speak.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 +1 -1
- package/package.json +4 -4
- /package/.docs/docs/mastra-platform/{observability.md → observability/overview.md} +0 -0
|
@@ -19,7 +19,7 @@ const kbTool = createBedrockKBTool({
|
|
|
19
19
|
})
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
### With an
|
|
22
|
+
### With an agent
|
|
23
23
|
|
|
24
24
|
```typescript
|
|
25
25
|
import { Agent } from '@mastra/core/agent'
|
|
@@ -49,13 +49,13 @@ const agent = new Agent({
|
|
|
49
49
|
|
|
50
50
|
**userId** (`string`): Default AWS user ID for document-level access control. A userId in the Mastra request context takes precedence.
|
|
51
51
|
|
|
52
|
-
## Input
|
|
52
|
+
## Input schema
|
|
53
53
|
|
|
54
54
|
The tool accepts the following input when called by an agent:
|
|
55
55
|
|
|
56
56
|
**queryText** (`string`): The search query to find relevant documents in the knowledge base.
|
|
57
57
|
|
|
58
|
-
## Output
|
|
58
|
+
## Output schema
|
|
59
59
|
|
|
60
60
|
The tool returns an object with:
|
|
61
61
|
|
|
@@ -70,9 +70,9 @@ The tool returns an object with:
|
|
|
70
70
|
| `score` | `number \| undefined` | The relevance score returned by standard retrieval, which the agentic API omits from result items. |
|
|
71
71
|
| `metadata` | `Record<string, unknown>` | Additional metadata from the retrieval result. |
|
|
72
72
|
|
|
73
|
-
## Retrieval
|
|
73
|
+
## Retrieval modes
|
|
74
74
|
|
|
75
|
-
### Agentic
|
|
75
|
+
### Agentic retrieval (default)
|
|
76
76
|
|
|
77
77
|
When `useAgenticRetrieval` is `true` (default), the tool uses `AgenticRetrieveStreamCommand` which:
|
|
78
78
|
|
|
@@ -82,7 +82,7 @@ When `useAgenticRetrieval` is `true` (default), the tool uses `AgenticRetrieveSt
|
|
|
82
82
|
|
|
83
83
|
If agentic retrieval fails (e.g., older SDK, permissions), it automatically falls back to standard managed retrieval.
|
|
84
84
|
|
|
85
|
-
### Standard
|
|
85
|
+
### Standard managed retrieval
|
|
86
86
|
|
|
87
87
|
When `useAgenticRetrieval` is `false`, the tool uses `RetrieveCommand` with `managedSearchConfiguration` for direct single-pass retrieval.
|
|
88
88
|
|
|
@@ -99,7 +99,7 @@ requestContext.set('userId', 'user-123')
|
|
|
99
99
|
await agent.generate('Find my private documents', { requestContext })
|
|
100
100
|
```
|
|
101
101
|
|
|
102
|
-
## Required IAM
|
|
102
|
+
## Required IAM permissions
|
|
103
103
|
|
|
104
104
|
```json
|
|
105
105
|
{
|
|
@@ -114,6 +114,6 @@ await agent.generate('Find my private documents', { requestContext })
|
|
|
114
114
|
}
|
|
115
115
|
```
|
|
116
116
|
|
|
117
|
-
## SDK
|
|
117
|
+
## SDK requirements
|
|
118
118
|
|
|
119
119
|
- `@aws-sdk/client-bedrock-agent-runtime` >= 3.1000 (AgenticRetrieveStreamCommand requires \~3.1000+)
|
|
@@ -68,7 +68,7 @@ Mastra streams the tool call and returns `{ acknowledged: true }` as its result,
|
|
|
68
68
|
|
|
69
69
|
**outputValidation** (`'strict' | 'warn'`): How a result that fails outputSchema validation is handled. Both modes log a warning. 'strict' replaces the result with a validation error object. 'warn' returns the tool's actual result unchanged, for tools whose side effects have already happened. (Default: `'strict'`)
|
|
70
70
|
|
|
71
|
-
**toModelOutput** (`(output: TSchemaOut) => unknown`): Optional function that transforms the tool's execute output before it is sent back to the model. Use this to return text, json, or content-shaped outputs (including multimodal parts like images/files) to the model while still keeping the full raw output in your application code.
|
|
71
|
+
**toModelOutput** (`(output: TSchemaOut) => unknown`): Optional function that transforms the tool's execute output before it is sent back to the model. Use this to return text, json, or content-shaped outputs (including multimodal parts like images/files) to the model while still keeping the full raw output in your application code. It isn't called when input, request context, or output validation fails; the model receives a validation error that names the fields that failed and the kind of each problem, without issue messages, arguments, output, or request context values. With outputValidation: 'warn', a failed output check keeps the real result, so toModelOutput still runs on it.
|
|
72
72
|
|
|
73
73
|
**transform** (`ToolPayloadTransform`): Optional target-aware transform for tool payloads before they leave runtime for display streams or user-visible transcript messages. Configure display and transcript transforms for phases such as input, inputDelta, output, error, approval, suspend, and resume.
|
|
74
74
|
|
|
@@ -678,7 +678,7 @@ export const mastra = new Mastra({
|
|
|
678
678
|
|
|
679
679
|
This is useful for connecting external MCP servers that implement the MCP Apps extension or other features to Studio without wrapping them in a Mastra `MCPServer`.
|
|
680
680
|
|
|
681
|
-
### `resources`
|
|
681
|
+
### `resources` property
|
|
682
682
|
|
|
683
683
|
The `MCPClient` instance has a `resources` property that provides access to resource-related operations.
|
|
684
684
|
|
|
@@ -830,7 +830,7 @@ mcpClient.resources.onListChanged('myWeatherServer', () => {
|
|
|
830
830
|
})
|
|
831
831
|
```
|
|
832
832
|
|
|
833
|
-
### `prompts`
|
|
833
|
+
### `prompts` property
|
|
834
834
|
|
|
835
835
|
The `MCPClient` instance has a `prompts` property that provides access to prompt-related operations.
|
|
836
836
|
|
|
@@ -916,7 +916,7 @@ mcpClient.prompts.onListChanged('myWeatherServer', () => {
|
|
|
916
916
|
})
|
|
917
917
|
```
|
|
918
918
|
|
|
919
|
-
### `tools`
|
|
919
|
+
### `tools` property
|
|
920
920
|
|
|
921
921
|
The `MCPClient` instance has a `tools` property for subscribing to tool list change notifications. To fetch tools, use `listTools()` or `listToolsets()`.
|
|
922
922
|
|
|
@@ -938,7 +938,7 @@ await mcpClient.tools.onListChanged('myWeatherServer', async () => {
|
|
|
938
938
|
})
|
|
939
939
|
```
|
|
940
940
|
|
|
941
|
-
### `progress`
|
|
941
|
+
### `progress` property
|
|
942
942
|
|
|
943
943
|
The `MCPClient` instance has a `progress` property for subscribing to progress notifications emitted by MCP servers while tools execute.
|
|
944
944
|
|
|
@@ -982,7 +982,7 @@ Notes:
|
|
|
982
982
|
- When `enableProgressTracking` is true, tool calls include a `progressToken` so you can correlate updates to a specific run. Servers only send progress for requests that carry a token.
|
|
983
983
|
- If you pass a `runId` when executing a tool, it will be used as the `progressToken`.
|
|
984
984
|
|
|
985
|
-
### `events`
|
|
985
|
+
### `events` property (experimental)
|
|
986
986
|
|
|
987
987
|
The `events` property lists and subscribes to server events from servers that implement the [MCP Events extension (SEP-3415)](https://github.com/modelcontextprotocol/modelcontextprotocol/pull/3415). Use it to react to things that happen on the server, such as a push to a repository, without polling a tool. Delivery is at least once. After a reconnect or a resume, the server can resend an occurrence, and the client drops repeats by `eventId` within `dedupWindow` of recent ids.
|
|
988
988
|
|
|
@@ -1216,7 +1216,7 @@ for await (const event of subscription) {
|
|
|
1216
1216
|
}
|
|
1217
1217
|
```
|
|
1218
1218
|
|
|
1219
|
-
### `tasks`
|
|
1219
|
+
### `tasks` property (experimental)
|
|
1220
1220
|
|
|
1221
1221
|
Some tools take longer than one HTTP request can stay open. A server that implements the [MCP Tasks extension (SEP-2663)](https://modelcontextprotocol.github.io/ext-tasks/specification/2026-07-28/tasks.html) can answer such a call with a task, and the client fetches the result later. Set `tasks` on a server to accept them:
|
|
1222
1222
|
|
|
@@ -1515,7 +1515,7 @@ try {
|
|
|
1515
1515
|
}
|
|
1516
1516
|
```
|
|
1517
1517
|
|
|
1518
|
-
### Quick
|
|
1518
|
+
### Quick token provider
|
|
1519
1519
|
|
|
1520
1520
|
For testing or when you already have a valid access token:
|
|
1521
1521
|
|
|
@@ -1541,7 +1541,7 @@ const client = new MCPClient({
|
|
|
1541
1541
|
})
|
|
1542
1542
|
```
|
|
1543
1543
|
|
|
1544
|
-
### Custom
|
|
1544
|
+
### Custom token storage
|
|
1545
1545
|
|
|
1546
1546
|
For persistent token storage across sessions, implement the `OAuthStorage` interface. The provider stores tokens (both the latest set and one entry per authorization-server issuer), discovery state, and the PKCE verifier under string keys. The backend only needs a key-value contract:
|
|
1547
1547
|
|
|
@@ -1587,7 +1587,7 @@ const provider = new MCPOAuthClientProvider({
|
|
|
1587
1587
|
|
|
1588
1588
|
## Examples
|
|
1589
1589
|
|
|
1590
|
-
### Static
|
|
1590
|
+
### Static tool configuration
|
|
1591
1591
|
|
|
1592
1592
|
For tools where you have a single connection to the MCP server for you entire app, use `listTools()` and pass the tools to your agent:
|
|
1593
1593
|
|
|
@@ -61,7 +61,7 @@ MCP tool input and output schemas are advertised as JSON Schema 2020-12 with the
|
|
|
61
61
|
|
|
62
62
|
A tool with an `outputSchema` can return any JSON value, including an object, array, string, number, boolean, or `null`. The value is sent as `structuredContent` without wrapping it in an object. The server validates successful structured output against the tool's output schema before returning it.
|
|
63
63
|
|
|
64
|
-
### Configuration
|
|
64
|
+
### Configuration properties
|
|
65
65
|
|
|
66
66
|
The constructor accepts an `MCPServerConfig` object with the following properties:
|
|
67
67
|
|
|
@@ -203,9 +203,9 @@ A powerful feature of `MCPServer` is its ability to automatically expose your Ma
|
|
|
203
203
|
|
|
204
204
|
- **Name collisions.** If an explicit tool defined in the `tools` configuration has the same name as an agent-derived tool (e.g., a tool with the name `ask_myAgentKey` alongside an agent keyed as `myAgentKey`), the _explicitly defined tool will take precedence_. The agent won't be converted into a tool in this conflicting case, and a warning will be logged.
|
|
205
205
|
|
|
206
|
-
This
|
|
206
|
+
This lets MCP clients interact with your agents using natural language queries, like any other tool.
|
|
207
207
|
|
|
208
|
-
### Agent-to-
|
|
208
|
+
### Agent-to-tool conversion
|
|
209
209
|
|
|
210
210
|
When you provide agents in the `agents` configuration property, `MCPServer` will automatically create a corresponding tool for each agent. The tool will be `ask_<agentIdentifier>`, where `<agentIdentifier>` is the key you used in the `agents` object.
|
|
211
211
|
|
|
@@ -577,7 +577,7 @@ tools(): Readonly<Record<string, ConvertedTool>>
|
|
|
577
577
|
|
|
578
578
|
## Resource handling
|
|
579
579
|
|
|
580
|
-
### What are MCP
|
|
580
|
+
### What are MCP resources?
|
|
581
581
|
|
|
582
582
|
MCP resources expose server data that clients can read and use as context for LLM interactions. Examples include:
|
|
583
583
|
|
|
@@ -599,7 +599,7 @@ To read a resource, clients make a `resources/read` request with the URI. Server
|
|
|
599
599
|
|
|
600
600
|
For more detailed information, refer to the [official MCP documentation on Resources](https://modelcontextprotocol.io/docs/concepts/resources).
|
|
601
601
|
|
|
602
|
-
### `MCPServerResources`
|
|
602
|
+
### `MCPServerResources` type
|
|
603
603
|
|
|
604
604
|
The `resources` option takes an object of type `MCPServerResources`. This type defines the callbacks your server will use to handle resource requests:
|
|
605
605
|
|
|
@@ -686,7 +686,7 @@ const serverWithResources = new MCPServer({
|
|
|
686
686
|
})
|
|
687
687
|
```
|
|
688
688
|
|
|
689
|
-
### Notifying
|
|
689
|
+
### Notifying clients of resource changes
|
|
690
690
|
|
|
691
691
|
If the available resources or their content change, your server can notify clients that are listening for the specific resource.
|
|
692
692
|
|
|
@@ -722,13 +722,13 @@ await serverWithResources.resources.notifyListChanged()
|
|
|
722
722
|
|
|
723
723
|
## Prompt handling
|
|
724
724
|
|
|
725
|
-
### What are MCP
|
|
725
|
+
### What are MCP prompts?
|
|
726
726
|
|
|
727
727
|
Prompts are reusable templates or workflows that MCP servers expose to clients. They can accept arguments and include resource context. They standardize LLM interactions.
|
|
728
728
|
|
|
729
729
|
Prompts are identified by a unique name and can be runtime-defined or static.
|
|
730
730
|
|
|
731
|
-
### `MCPServerPrompts`
|
|
731
|
+
### `MCPServerPrompts` type
|
|
732
732
|
|
|
733
733
|
The `prompts` option takes an object of type `MCPServerPrompts`. This type defines the callbacks your server will use to handle prompt requests:
|
|
734
734
|
|
|
@@ -793,7 +793,7 @@ const serverWithPrompts = new MCPServer({
|
|
|
793
793
|
})
|
|
794
794
|
```
|
|
795
795
|
|
|
796
|
-
### Notifying
|
|
796
|
+
### Notifying clients of prompt changes
|
|
797
797
|
|
|
798
798
|
If the available prompts change, your server can notify listening clients.
|
|
799
799
|
|
|
@@ -805,7 +805,7 @@ Call this method when the list of available prompts has changed (e.g., a prompt
|
|
|
805
805
|
await serverWithPrompts.prompts.notifyListChanged();
|
|
806
806
|
```
|
|
807
807
|
|
|
808
|
-
### Best practices for
|
|
808
|
+
### Best practices for prompt handling
|
|
809
809
|
|
|
810
810
|
- Use clear, descriptive prompt names and descriptions.
|
|
811
811
|
- Validate all required arguments in `getPromptMessages`.
|
|
@@ -1010,7 +1010,7 @@ The middleware automatically:
|
|
|
1010
1010
|
- Returns `401 Unauthorized` with proper `WWW-Authenticate` headers when authentication is required
|
|
1011
1011
|
- Validates bearer tokens using your provided validator
|
|
1012
1012
|
|
|
1013
|
-
### Token
|
|
1013
|
+
### Token validation
|
|
1014
1014
|
|
|
1015
1015
|
For production, use proper token validation:
|
|
1016
1016
|
|
|
@@ -1051,7 +1051,7 @@ const customMiddleware = createOAuthMiddleware({
|
|
|
1051
1051
|
|
|
1052
1052
|
Return `subject` from your validator when you can. The server binds `input_required` continuations to it, so users sharing one OAuth client never share a continuation.
|
|
1053
1053
|
|
|
1054
|
-
### OAuth
|
|
1054
|
+
### OAuth middleware options
|
|
1055
1055
|
|
|
1056
1056
|
**oauth.resource** (`string`): The canonical URL of your MCP server. This is returned in Protected Resource Metadata.
|
|
1057
1057
|
|
|
@@ -1150,7 +1150,7 @@ const server = new MCPServer({
|
|
|
1150
1150
|
})
|
|
1151
1151
|
```
|
|
1152
1152
|
|
|
1153
|
-
### Setting
|
|
1153
|
+
### Setting up authentication middleware
|
|
1154
1154
|
|
|
1155
1155
|
To pass data to your tools, populate `req.auth` on the Node.js request object in your HTTP server middleware before calling `server.startHTTP()`.
|
|
1156
1156
|
|
|
@@ -1209,7 +1209,7 @@ app.all('/mcp', async (req, res) => {
|
|
|
1209
1209
|
|
|
1210
1210
|
Set `extra.sub` (or `extra.subject`) to the user's identifier. The server uses it to bind `input_required` continuations to that user.
|
|
1211
1211
|
|
|
1212
|
-
### Accessing
|
|
1212
|
+
### Accessing auth data in tools
|
|
1213
1213
|
|
|
1214
1214
|
The `req.auth` object is available as `context.mcp.extra.authInfo` in your tool's execute function:
|
|
1215
1215
|
|
|
@@ -1263,7 +1263,7 @@ execute: async (inputData, context) => {
|
|
|
1263
1263
|
}
|
|
1264
1264
|
```
|
|
1265
1265
|
|
|
1266
|
-
### The `extra`
|
|
1266
|
+
### The `extra` object
|
|
1267
1267
|
|
|
1268
1268
|
The full `context.mcp.extra` object contains:
|
|
1269
1269
|
|
|
@@ -1275,7 +1275,7 @@ The full `context.mcp.extra` object contains:
|
|
|
1275
1275
|
| `_meta` | Request metadata sent by the client: W3C trace fields, the `io.modelcontextprotocol/logLevel` log-level opt-in, and `progressToken` |
|
|
1276
1276
|
| `sendNotification`, `sendRequest` | Deprecated. The protocol has no server-initiated requests, so both throw with a message naming the replacement: `context.mcp.log()`, `context.mcp.progress()`, or `context.suspend()`. |
|
|
1277
1277
|
|
|
1278
|
-
### Complete
|
|
1278
|
+
### Complete example
|
|
1279
1279
|
|
|
1280
1280
|
Install [`jose`](https://github.com/panva/jose) to verify JSON Web Tokens (JWTs) against your identity provider's JSON Web Key Set (JWKS):
|
|
1281
1281
|
|
|
@@ -1512,7 +1512,7 @@ const server = new MCPServer({
|
|
|
1512
1512
|
|
|
1513
1513
|
A client that doesn't declare the extension sees the server as if it had no apps. The server hides its `ui://` resources, app links on tools and tool results, app-only tools, and the MCP Apps capability from that client.
|
|
1514
1514
|
|
|
1515
|
-
The declaration is read on every request. Clients on the 2026-07-28 protocol send it with each request. Clients on older protocol versions declare it once, at `initialize`. Over stateless HTTP, the server answers that `initialize` with an `Mcp-Session-Id`, and the client sends it back on every later request. That id only marks the client as one that renders apps: the server keeps no record of it, and it grants no access.
|
|
1515
|
+
The declaration is read on every request. Clients on the 2026-07-28 protocol send it with each request. Clients on older protocol versions declare it once, at `initialize`. Over stateless HTTP, the server answers that `initialize` with an `Mcp-Session-Id`, and the client sends it back on every later request. That id only marks the client as one that renders apps: the server keeps no record of it, and it grants no access. A client that doesn't declare the extension gets no session id, and the rest of its stateless traffic is unchanged.
|
|
1516
1516
|
|
|
1517
1517
|
## Events (experimental)
|
|
1518
1518
|
|
|
@@ -190,7 +190,7 @@ The `databaseConfig` parameter allows you to use features and optimizations spec
|
|
|
190
190
|
|
|
191
191
|
**Pinecone**:
|
|
192
192
|
|
|
193
|
-
### Pinecone
|
|
193
|
+
### Pinecone configuration
|
|
194
194
|
|
|
195
195
|
```typescript
|
|
196
196
|
const pineconeQueryTool = createVectorQueryTool({
|
|
@@ -218,7 +218,7 @@ const pineconeQueryTool = createVectorQueryTool({
|
|
|
218
218
|
|
|
219
219
|
**pgVector**:
|
|
220
220
|
|
|
221
|
-
### pgVector
|
|
221
|
+
### pgVector configuration
|
|
222
222
|
|
|
223
223
|
```typescript
|
|
224
224
|
const pgVectorQueryTool = createVectorQueryTool({
|
|
@@ -244,7 +244,7 @@ const pgVectorQueryTool = createVectorQueryTool({
|
|
|
244
244
|
|
|
245
245
|
**Chroma**:
|
|
246
246
|
|
|
247
|
-
### Chroma
|
|
247
|
+
### Chroma configuration
|
|
248
248
|
|
|
249
249
|
```typescript
|
|
250
250
|
const chromaQueryTool = createVectorQueryTool({
|
|
@@ -275,7 +275,7 @@ const chromaQueryTool = createVectorQueryTool({
|
|
|
275
275
|
|
|
276
276
|
**Turbopuffer**:
|
|
277
277
|
|
|
278
|
-
### Turbopuffer
|
|
278
|
+
### Turbopuffer configuration
|
|
279
279
|
|
|
280
280
|
```typescript
|
|
281
281
|
const turbopufferQueryTool = createVectorQueryTool({
|
|
@@ -297,7 +297,7 @@ const turbopufferQueryTool = createVectorQueryTool({
|
|
|
297
297
|
|
|
298
298
|
**Multiple Configs**:
|
|
299
299
|
|
|
300
|
-
### Multiple
|
|
300
|
+
### Multiple database configurations
|
|
301
301
|
|
|
302
302
|
```typescript
|
|
303
303
|
// Configure for multiple databases (useful for dynamic stores)
|
|
@@ -326,7 +326,7 @@ const multiDbQueryTool = createVectorQueryTool({
|
|
|
326
326
|
- Database-specific optimizations are automatically applied
|
|
327
327
|
- Flexible deployment scenarios
|
|
328
328
|
|
|
329
|
-
### Runtime
|
|
329
|
+
### Runtime configuration override
|
|
330
330
|
|
|
331
331
|
You can override database configurations at runtime to adapt to different scenarios:
|
|
332
332
|
|
|
@@ -65,7 +65,7 @@ Notes:
|
|
|
65
65
|
|
|
66
66
|
## Usage examples
|
|
67
67
|
|
|
68
|
-
### Using Mastra
|
|
68
|
+
### Using Mastra voice providers
|
|
69
69
|
|
|
70
70
|
```typescript
|
|
71
71
|
import { CompositeVoice } from '@mastra/core/voice'
|
|
@@ -89,7 +89,7 @@ const text = await voice.listen(audioStream)
|
|
|
89
89
|
const audio = await voice.speak('Hello, world!')
|
|
90
90
|
```
|
|
91
91
|
|
|
92
|
-
### Using AI SDK
|
|
92
|
+
### Using AI SDK model providers
|
|
93
93
|
|
|
94
94
|
You can pass AI SDK transcription and speech models directly to CompositeVoice:
|
|
95
95
|
|
|
@@ -109,7 +109,7 @@ const text = await voice.listen(audioStream)
|
|
|
109
109
|
const audio = await voice.speak('Hello from AI SDK!')
|
|
110
110
|
```
|
|
111
111
|
|
|
112
|
-
### Mix and
|
|
112
|
+
### Mix and match
|
|
113
113
|
|
|
114
114
|
You can combine Mastra providers with AI SDK models:
|
|
115
115
|
|
|
@@ -27,11 +27,11 @@ const voiceAgent = new Agent({
|
|
|
27
27
|
|
|
28
28
|
You can then use the following voice capabilities:
|
|
29
29
|
|
|
30
|
-
### Text to
|
|
30
|
+
### Text to speech (TTS)
|
|
31
31
|
|
|
32
32
|
Turn your agent's responses into natural-sounding speech using Mastra's TTS capabilities. Choose from multiple providers like OpenAI, ElevenLabs, and more.
|
|
33
33
|
|
|
34
|
-
For detailed configuration options and advanced features,
|
|
34
|
+
For detailed configuration options and advanced features, see the [Text-to-Speech guide](https://mastra.ai/reference/voice/text-to-speech).
|
|
35
35
|
|
|
36
36
|
**OpenAI**:
|
|
37
37
|
|
|
@@ -304,7 +304,7 @@ playAudio(audioStream)
|
|
|
304
304
|
|
|
305
305
|
Visit the [Murf Voice Reference](https://mastra.ai/integrations/voice/murf) for more information on the Murf voice provider.
|
|
306
306
|
|
|
307
|
-
### Speech to
|
|
307
|
+
### Speech to text (STT)
|
|
308
308
|
|
|
309
309
|
Transcribe spoken content using providers like OpenAI, ElevenLabs, and more. For detailed configuration options and more, check out [Speech to Text](https://mastra.ai/reference/voice/speech-to-text).
|
|
310
310
|
|
|
@@ -537,7 +537,7 @@ const { text } = await voiceAgent.generate(transcript)
|
|
|
537
537
|
|
|
538
538
|
Visit the [Sarvam Voice Reference](https://mastra.ai/integrations/voice/sarvam) for more information on the Sarvam voice provider.
|
|
539
539
|
|
|
540
|
-
### Speech to
|
|
540
|
+
### Speech to speech (STS)
|
|
541
541
|
|
|
542
542
|
Create conversational experiences with speech-to-speech capabilities. The unified API enables real-time voice interactions between users and AI agents. For detailed configuration options and advanced features, check out [Speech to Speech](https://mastra.ai/reference/voice/speech-to-speech).
|
|
543
543
|
|
|
@@ -1171,7 +1171,7 @@ const responseAudio = await voice.speak(`You said: ${transcript}`, {
|
|
|
1171
1171
|
playAudio(responseAudio)
|
|
1172
1172
|
```
|
|
1173
1173
|
|
|
1174
|
-
### Using AI SDK
|
|
1174
|
+
### Using AI SDK model providers
|
|
1175
1175
|
|
|
1176
1176
|
You can also use AI SDK models directly with `CompositeVoice`:
|
|
1177
1177
|
|
|
@@ -138,7 +138,7 @@ When you use a resolver:
|
|
|
138
138
|
|
|
139
139
|
The `agent.voice` getter has no request context, so it throws when `voice` is a resolver. Use `agent.getVoice({ requestContext })` instead.
|
|
140
140
|
|
|
141
|
-
## Google Gemini Live (
|
|
141
|
+
## Google Gemini Live (realtime)
|
|
142
142
|
|
|
143
143
|
```typescript
|
|
144
144
|
import { Agent } from '@mastra/core/agent'
|
|
@@ -185,7 +185,7 @@ Note:
|
|
|
185
185
|
- Live API requires `GOOGLE_API_KEY`. Vertex AI requires project/location and service account credentials.
|
|
186
186
|
- Events: `speaker` (audio stream), `writing` (text), `turnComplete`, `usage`, and `error`.
|
|
187
187
|
|
|
188
|
-
## AWS Nova Sonic (
|
|
188
|
+
## AWS Nova Sonic (realtime)
|
|
189
189
|
|
|
190
190
|
```typescript
|
|
191
191
|
import { Agent } from '@mastra/core/agent'
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# voice.close()
|
|
6
6
|
|
|
7
|
-
The `close()` method disconnects from a real-time voice service and cleans up resources. This is important for
|
|
7
|
+
The `close()` method disconnects from a real-time voice service and cleans up resources. This is important for ending voice sessions and preventing resource leaks.
|
|
8
8
|
|
|
9
9
|
## Usage example
|
|
10
10
|
|
|
@@ -97,7 +97,7 @@ await voice.connect()
|
|
|
97
97
|
- This method is only implemented by real-time voice providers that support speech-to-speech capabilities
|
|
98
98
|
- Providers that inherit the base `connect()` implementation log a debug message and resolve without establishing a connection
|
|
99
99
|
- The connection must be established before using other real-time methods like `send()` or `answer()`
|
|
100
|
-
- When you're done with the voice instance, call `close()` to
|
|
100
|
+
- When you're done with the voice instance, call `close()` to clean up resources
|
|
101
101
|
- Some providers may automatically reconnect on connection loss, depending on their implementation
|
|
102
102
|
- Connection errors will typically be thrown as exceptions that should be caught and handled
|
|
103
103
|
|
|
@@ -103,7 +103,7 @@ const voice = new CompositeVoice({
|
|
|
103
103
|
const transcript = await voice.listen(audioStream)
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
-
### Using AI SDK
|
|
106
|
+
### Using AI SDK model providers
|
|
107
107
|
|
|
108
108
|
You can also use AI SDK transcription models directly with `CompositeVoice`:
|
|
109
109
|
|
|
@@ -102,7 +102,7 @@ const voice = new CompositeVoice({
|
|
|
102
102
|
const audioStream = await voice.speak('Hello, world!')
|
|
103
103
|
```
|
|
104
104
|
|
|
105
|
-
### Using AI SDK
|
|
105
|
+
### Using AI SDK model providers
|
|
106
106
|
|
|
107
107
|
You can also use AI SDK speech models directly with `CompositeVoice`:
|
|
108
108
|
|
|
@@ -90,7 +90,7 @@ Configuration options for native OS sandboxing (used with `isolation: 'seatbelt'
|
|
|
90
90
|
|
|
91
91
|
**processes** (`LocalProcessManager`): Background process manager. See SandboxProcessManager reference.
|
|
92
92
|
|
|
93
|
-
## Path
|
|
93
|
+
## Path resolution
|
|
94
94
|
|
|
95
95
|
### Relative paths and execution context
|
|
96
96
|
|
|
@@ -56,7 +56,7 @@ new PlatformFilesystem({
|
|
|
56
56
|
})
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
On a Mastra Platform deployment, `MASTRA_PLATFORM_ACCESS_TOKEN`, `MASTRA_PROJECT_ID`, and `MASTRA_PLATFORM_BUCKET_NAME` 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
|
|
59
|
+
On a Mastra Platform deployment, `MASTRA_PLATFORM_ACCESS_TOKEN`, `MASTRA_PROJECT_ID`, and `MASTRA_PLATFORM_BUCKET_NAME` are injected automatically, so the constructor can be called with no options. The platform injects `MASTRA_PLATFORM_ACCESS_TOKEN` unless [observability](https://mastra.ai/docs/mastra-platform/observability/overview) is turned off for the project; in that case, add an access token to the environment as `MASTRA_PLATFORM_SECRET_KEY`, which the provider reads when `MASTRA_PLATFORM_ACCESS_TOKEN` is unset. For local development, `MASTRA_PLATFORM_ACCESS_TOKEN` can contain an `sk_` API token from your organization's settings page under **API Keys**.
|
|
60
60
|
|
|
61
61
|
## Usage
|
|
62
62
|
|
|
@@ -58,7 +58,7 @@ new PlatformSandbox({
|
|
|
58
58
|
})
|
|
59
59
|
```
|
|
60
60
|
|
|
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
|
|
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. The platform injects `MASTRA_PLATFORM_ACCESS_TOKEN` unless [observability](https://mastra.ai/docs/mastra-platform/observability/overview) is turned off for the project; in that case, add an access token to the environment as `MASTRA_PLATFORM_SECRET_KEY`, which the provider reads when `MASTRA_PLATFORM_ACCESS_TOKEN` is unset. For local development, `MASTRA_PLATFORM_ACCESS_TOKEN` can contain an `sk_` API token from your organization's settings page under **API Keys**.
|
|
62
62
|
|
|
63
63
|
The sandbox provider resolves from the constructor's `sandboxProvider` option, then `SANDBOX_PROVIDER`, then defaults to `e2b`.
|
|
64
64
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "1.3.15
|
|
3
|
+
"version": "1.3.15",
|
|
4
4
|
"description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
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.85.0
|
|
29
|
+
"@mastra/core": "1.85.0",
|
|
30
30
|
"@mastra/mcp": "^2.10.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"tsx": "^4.23.15",
|
|
43
43
|
"typescript": "^7.0.2",
|
|
44
44
|
"vitest": "5.1.0",
|
|
45
|
-
"@internal/lint": "0.0.
|
|
46
|
-
"@internal/types-builder": "0.0.
|
|
45
|
+
"@internal/lint": "0.0.151",
|
|
46
|
+
"@internal/types-builder": "0.0.126"
|
|
47
47
|
},
|
|
48
48
|
"homepage": "https://mastra.ai",
|
|
49
49
|
"repository": {
|
|
File without changes
|