@mastra/mcp-docs-server 1.3.15-alpha.2 → 1.3.15-alpha.3
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 +3 -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 +2 -2
- 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/server.md +1 -1
- package/.docs/docs/mastra-platform/trace-intelligence.md +3 -3
- package/.docs/docs/mastra-platform/workspaces.md +1 -1
- 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 +12 -12
- 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/deployment.md +2 -2
- package/.docs/docs/studio/editor.md +2 -2
- package/.docs/docs/studio/observability.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 +13 -13
- 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/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 +2 -2
- 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 +4 -4
- 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/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/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/package.json +2 -2
|
@@ -8,7 +8,7 @@ The `@mastra/auth-auth0` package provides authentication for Mastra using Auth0.
|
|
|
8
8
|
|
|
9
9
|
## Prerequisites
|
|
10
10
|
|
|
11
|
-
This example uses Auth0 authentication.
|
|
11
|
+
This example uses Auth0 authentication. Ensure you have:
|
|
12
12
|
|
|
13
13
|
1. Create an Auth0 account at [auth0.com](https://auth0.com/)
|
|
14
14
|
2. Set up an Application in your Auth0 Dashboard
|
|
@@ -85,11 +85,11 @@ export const mastra = new Mastra({
|
|
|
85
85
|
|
|
86
86
|
## Configuration
|
|
87
87
|
|
|
88
|
-
### User
|
|
88
|
+
### User authorization
|
|
89
89
|
|
|
90
90
|
By default, `MastraAuthAuth0` allows all authenticated users who have valid Auth0 tokens for the specified audience. The token verification ensures that:
|
|
91
91
|
|
|
92
|
-
1. The token is
|
|
92
|
+
1. The token is signed by Auth0
|
|
93
93
|
2. The token isn't expired
|
|
94
94
|
3. The token audience matches your configured audience
|
|
95
95
|
4. The token issuer matches your Auth0 domain
|
|
@@ -8,7 +8,7 @@ The `@mastra/auth-better-auth` package provides authentication for Mastra using
|
|
|
8
8
|
|
|
9
9
|
## Prerequisites
|
|
10
10
|
|
|
11
|
-
This example uses Better Auth.
|
|
11
|
+
This example uses Better Auth. Ensure your Better Auth instance is configured and your environment variables are set.
|
|
12
12
|
|
|
13
13
|
```env
|
|
14
14
|
# Required by Better Auth
|
|
@@ -47,7 +47,7 @@ The `@mastra/auth-clerk` package provides authentication for Mastra using Clerk.
|
|
|
47
47
|
|
|
48
48
|
### Prerequisites
|
|
49
49
|
|
|
50
|
-
This example uses Clerk authentication.
|
|
50
|
+
This example uses Clerk authentication. Ensure you add your Clerk credentials to your `.env` file and ensure your Clerk project is configured correctly.
|
|
51
51
|
|
|
52
52
|
```env
|
|
53
53
|
CLERK_PUBLISHABLE_KEY=pk_test_...
|
|
@@ -8,7 +8,7 @@ The `@mastra/auth-firebase` package provides authentication for Mastra using Fir
|
|
|
8
8
|
|
|
9
9
|
## Prerequisites
|
|
10
10
|
|
|
11
|
-
This example uses Firebase Authentication.
|
|
11
|
+
This example uses Firebase Authentication. Ensure you have:
|
|
12
12
|
|
|
13
13
|
1. Create a Firebase project in the [Firebase Console](https://console.firebase.google.com/)
|
|
14
14
|
2. Enable Authentication and configure your preferred sign-in methods (Google, Email/Password, etc.)
|
|
@@ -95,9 +95,9 @@ The `MastraAuthFirebase` class can be configured through constructor options or
|
|
|
95
95
|
- `FIREBASE_SERVICE_ACCOUNT`: Path to Firebase service account JSON file
|
|
96
96
|
- `FIRESTORE_DATABASE_ID` or `FIREBASE_DATABASE_ID`: Firestore database ID
|
|
97
97
|
|
|
98
|
-
> **Note:** When constructor options aren't provided, the class automatically reads these environment variables. As a result, you can call `new MastraAuthFirebase()` without any arguments if your environment variables are
|
|
98
|
+
> **Note:** When constructor options aren't provided, the class automatically reads these environment variables. As a result, you can call `new MastraAuthFirebase()` without any arguments if your environment variables are configured correctly.
|
|
99
99
|
|
|
100
|
-
### User
|
|
100
|
+
### User authorization
|
|
101
101
|
|
|
102
102
|
By default, `MastraAuthFirebase` uses Firestore to manage user access. It expects a `user_access` collection with documents keyed by user UIDs. The presence of a document in this collection determines whether a user is authorized.
|
|
103
103
|
|
|
@@ -10,7 +10,7 @@ Use it when your Studio users sign in with Google and access should be limited t
|
|
|
10
10
|
|
|
11
11
|
## Prerequisites
|
|
12
12
|
|
|
13
|
-
This guide uses Google Workspace authentication.
|
|
13
|
+
This guide uses Google Workspace authentication. Ensure you have:
|
|
14
14
|
|
|
15
15
|
1. Create or select a Google Cloud project
|
|
16
16
|
2. Set up an OAuth client for web applications
|
|
@@ -23,7 +23,7 @@ For Google Groups RBAC, also configure a Google Workspace service account with d
|
|
|
23
23
|
https://www.googleapis.com/auth/admin.directory.group.readonly
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
Ensure your environment variables are set.
|
|
27
27
|
|
|
28
28
|
```env
|
|
29
29
|
GOOGLE_CLIENT_ID=your-client-id.apps.googleusercontent.com
|
|
@@ -8,14 +8,14 @@ The `@mastra/auth-okta` package provides authentication and role-based access co
|
|
|
8
8
|
|
|
9
9
|
## Prerequisites
|
|
10
10
|
|
|
11
|
-
This guide uses Okta authentication.
|
|
11
|
+
This guide uses Okta authentication. Ensure you have:
|
|
12
12
|
|
|
13
13
|
1. Create an Okta account at [okta.com](https://www.okta.com/)
|
|
14
14
|
2. Set up an OAuth application in the Okta Admin Console (Web app, Authorization Code grant)
|
|
15
15
|
3. Add your redirect URI to the application's sign-in redirect URIs
|
|
16
16
|
4. Create an API token (required for RBAC)
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
Ensure your environment variables are set.
|
|
19
19
|
|
|
20
20
|
```env
|
|
21
21
|
OKTA_DOMAIN=dev-123456.okta.com
|
|
@@ -247,7 +247,7 @@ curl -X POST http://localhost:4111/api/agents/weatherAgent/generate \
|
|
|
247
247
|
## Troubleshooting
|
|
248
248
|
|
|
249
249
|
- **401 on every request**: Verify your Okta domain, client ID, and client secret are correct. Check that the redirect URI in your Okta application matches `OKTA_REDIRECT_URI`.
|
|
250
|
-
- **401 with `unexpected "aud" claim value` in the server logs**: The Bearer token's audience doesn't match the configured audience.
|
|
250
|
+
- **401 with `unexpected "aud" claim value` in the server logs**: The Bearer token's audience doesn't match the configured audience. A common cause is sending an access token while the audience is still the default client ID. Set `OKTA_AUDIENCE` to the audience of the authorization server that issued the token. See [Bearer token](#bearer-token).
|
|
251
251
|
- **Cookies not sent cross-origin**: Set `credentials: "include"` in `MastraClient` and configure `server.cors` with your frontend origin and `credentials: true`.
|
|
252
252
|
- **Session lost on restart**: Set `OKTA_COOKIE_PASSWORD` to a stable value (at least 32 characters). Without it, an auto-generated key is used that changes on each restart.
|
|
253
253
|
- **RBAC returns empty permissions**: Verify `OKTA_API_TOKEN` is set and the token has permission to list user groups. Check that group names in `roleMapping` match your Okta group names exactly.
|
|
@@ -47,7 +47,7 @@ The `@mastra/auth-supabase` package provides authentication for Mastra using Sup
|
|
|
47
47
|
|
|
48
48
|
### Prerequisites
|
|
49
49
|
|
|
50
|
-
This example uses Supabase Auth.
|
|
50
|
+
This example uses Supabase Auth. Ensure you add your Supabase credentials to your `.env` file and ensure your Supabase project is configured correctly.
|
|
51
51
|
|
|
52
52
|
```env
|
|
53
53
|
SUPABASE_URL=https://your-project.supabase.co
|
|
@@ -47,7 +47,7 @@ The `@mastra/auth-workos` package provides authentication for Mastra using WorkO
|
|
|
47
47
|
|
|
48
48
|
### Prerequisites
|
|
49
49
|
|
|
50
|
-
This example uses WorkOS authentication.
|
|
50
|
+
This example uses WorkOS authentication. Ensure you have:
|
|
51
51
|
|
|
52
52
|
1. Create a WorkOS account at [workos.com](https://workos.com/)
|
|
53
53
|
2. Set up an Application in your WorkOS Dashboard
|
|
@@ -10,7 +10,7 @@ The `@mastra/stagehand` package provides browser automation using the [Stagehand
|
|
|
10
10
|
|
|
11
11
|
Use Stagehand when you need:
|
|
12
12
|
|
|
13
|
-
- Natural language element targeting ("select the login
|
|
13
|
+
- Natural language element targeting ("select the login control")
|
|
14
14
|
- AI-powered data extraction from pages
|
|
15
15
|
- Native Browserbase cloud integration
|
|
16
16
|
- Simpler tool interface for common actions
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# iMessage
|
|
6
6
|
|
|
7
|
-
iMessage channels let a Mastra agent receive direct messages and group messages from iMessage.
|
|
7
|
+
iMessage channels let a Mastra agent receive direct messages and group messages from iMessage. Mastra connects to iMessage through the vendor-maintained [Photon](https://app.photon.codes) and [Linq](https://linqapp.com) adapters. Mastra handles the agent wiring and the webhook route, and the adapter docs cover number provisioning, credentials, and webhook registration.
|
|
8
8
|
|
|
9
9
|
## Choose an adapter
|
|
10
10
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
Ring signals let a Mastra agent receive doorbell presses, motion, and other events from Ring doorbells and cameras. Each event arrives in an agent thread as a [notification signal](https://mastra.ai/docs/signals/notifications), and the agent can fetch a snapshot or video clip to see who is at the door.
|
|
8
8
|
|
|
9
|
-
Events and media come from the [Ring Partner API](https://developer.amazon.com/docs/ring/api-documentation.html)
|
|
9
|
+
Events and media come from the [Ring Partner API](https://developer.amazon.com/docs/ring/api-documentation.html), which doesn't expose lights, sirens, locks, or two-way talk.
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
@@ -101,7 +101,7 @@ Linking connects a Ring account to your agent. Set it up in two places, in this
|
|
|
101
101
|
1. The [Ring Developer Console](https://developer.amazon.com/ring/console/apps) on Amazon's developer site, where you configure your developer app.
|
|
102
102
|
2. [ring.com](https://ring.com), where you link the developer app to the Ring account that owns the device.
|
|
103
103
|
|
|
104
|
-
### Ring
|
|
104
|
+
### Ring developer console
|
|
105
105
|
|
|
106
106
|
The routes Ring needs are added automatically to your Mastra server under `/ring`:
|
|
107
107
|
|
|
@@ -178,7 +178,7 @@ To pick the thread per event, set `target` to a function. The function receives
|
|
|
178
178
|
|
|
179
179
|
- `event.data.type`: The event type, from [Events and priorities](#events-and-priorities).
|
|
180
180
|
- `event.data.attributes.source`: For device events, the ID of the device that sent the event. For app integration events, the account ID. For subscription events, `subscriptions`.
|
|
181
|
-
- `event.data.attributes.timestamp`:
|
|
181
|
+
- `event.data.attributes.timestamp`: When the device event happened, in epoch milliseconds, and unset for subscription events.
|
|
182
182
|
- `event.data.attributes.sub_type`: For motion events, what caused the motion: `human`, `vehicle`, `package_delivery`, `other_motion`, or `motion` when Smart Alerts are off. For subscription events, `paid` or `trial`.
|
|
183
183
|
- `event.meta.account_id`: The ID of the Ring account the device belongs to.
|
|
184
184
|
|
|
@@ -200,7 +200,7 @@ Return `undefined` to drop the event. The function can be `async`. The [RingSign
|
|
|
200
200
|
The agent gets two tools:
|
|
201
201
|
|
|
202
202
|
- `ring_snapshot`: Fetches a still image for an event and passes it to the model, so the agent can describe what it sees. If Ring has no image right after the event, it uses the most recent image before it.
|
|
203
|
-
- `ring_clip`: Fetches a video clip that starts at the event. Ring needs time to process a recording,
|
|
203
|
+
- `ring_clip`: Fetches a video clip that starts at the event. Because Ring needs time to process a recording, the tool retries until the clip is ready. By default, the model doesn't receive the video. See [Let the model see media](#let-the-model-see-media).
|
|
204
204
|
|
|
205
205
|
### Let the model see media
|
|
206
206
|
|
|
@@ -216,13 +216,13 @@ new RingSignals({
|
|
|
216
216
|
|
|
217
217
|
When `visibleToModel` is `false`, the model gets only the tool's text result and link, and can't describe what the media shows.
|
|
218
218
|
|
|
219
|
-
> **Note:** Check that your model supports video input before you turn on `visibleToModel` for clips. Gemini models accept video input
|
|
219
|
+
> **Note:** Check that your model supports video input before you turn on `visibleToModel` for clips. Gemini models accept video input, while Anthropic and OpenAI models don't. Anthropic drops the video with a warning, and other model APIs may reject the request.
|
|
220
220
|
>
|
|
221
221
|
> Video input counts toward the model's context window for every second of footage. A clip at the default 15 seconds uses a few thousand tokens. A clip at the maximum `durationMs` of 15 minutes can use hundreds of thousands, so keep `durationMs` short when the model watches clips. The video isn't saved in memory, so it only uses context on the step that fetched it.
|
|
222
222
|
|
|
223
223
|
### Media links
|
|
224
224
|
|
|
225
|
-
Ring doesn't give out shareable links to its media. Downloading a snapshot or clip needs the Ring account's tokens, so a browser or chat app can't fetch it from Ring directly. When you set `baseUrl`, the tools return a signed link to your own server instead, under `<baseUrl>/ring/media/`. Opening the link makes your server fetch the media from Ring and pass it on. Nothing is stored
|
|
225
|
+
Ring doesn't give out shareable links to its media. Downloading a snapshot or clip needs the Ring account's tokens, so a browser or chat app can't fetch it from Ring directly. When you set `baseUrl`, the tools return a signed link to your own server instead, under `<baseUrl>/ring/media/`. Opening the link makes your server fetch the media from Ring and pass it on. Nothing is stored. Recent media is cached in memory for a few minutes.
|
|
226
226
|
|
|
227
227
|
Set `RING_BASE_URL` to your Mastra server's URL. Use `http://localhost:4111` or a tunnel URL in development, and your deployed URL in production.
|
|
228
228
|
|
|
@@ -408,7 +408,7 @@ Channels on serverless platforms may need `waitUntil` and shared pub/sub configu
|
|
|
408
408
|
|
|
409
409
|
### Idle servers
|
|
410
410
|
|
|
411
|
-
Platform servers scale down to idle when they aren't receiving traffic, and that's fine for Slack. The next event, such as a mention or direct message, wakes the server by delivering its webhook request, and the server resumes handling requests. The first response after the server has been idle can take a little longer while it starts up, which is expected. Slack expects a `200` acknowledgement within 3 seconds and retries the event up to three times when delivery fails or times out, so a
|
|
411
|
+
Platform servers scale down to idle when they aren't receiving traffic, and that's fine for Slack. The next event, such as a mention or direct message, wakes the server by delivering its webhook request, and the server resumes handling requests. The first response after the server has been idle can take a little longer while it starts up, which is expected. Slack expects a `200` acknowledgement within 3 seconds and retries the event up to three times when delivery fails or times out, so a slow cold start may take a retry before the agent responds. Subsequent messages respond at normal speed while the server stays warm.
|
|
412
412
|
|
|
413
413
|
## Related
|
|
414
414
|
|
|
@@ -93,7 +93,7 @@ Use your public Mastra server URL as the base URL:
|
|
|
93
93
|
https://your-app.example.com/api/agents/whatsapp-agent/channels/whatsapp/webhook
|
|
94
94
|
```
|
|
95
95
|
|
|
96
|
-
Use this URL for incoming WhatsApp event delivery. The generated Mastra route handles POST events from WhatsApp
|
|
96
|
+
Use this URL for incoming WhatsApp event delivery. The generated Mastra route handles POST events from WhatsApp. Follow the Chat SDK WhatsApp adapter docs for the Meta callback and webhook verification flow.
|
|
97
97
|
|
|
98
98
|
## Related
|
|
99
99
|
|
|
@@ -67,7 +67,7 @@ await storage.init()
|
|
|
67
67
|
|
|
68
68
|
**allowExitOnIdle** (`boolean`): Allow the process to exit when all connections are idle.
|
|
69
69
|
|
|
70
|
-
## Constructor
|
|
70
|
+
## Constructor examples
|
|
71
71
|
|
|
72
72
|
You can instantiate `DSQLStore` in the following ways:
|
|
73
73
|
|
|
@@ -124,9 +124,9 @@ const store5 = new DSQLStore({
|
|
|
124
124
|
})
|
|
125
125
|
```
|
|
126
126
|
|
|
127
|
-
## Additional
|
|
127
|
+
## Additional notes
|
|
128
128
|
|
|
129
|
-
### Schema
|
|
129
|
+
### Schema management
|
|
130
130
|
|
|
131
131
|
The storage implementation handles schema creation and updates automatically. It creates the following tables:
|
|
132
132
|
|
|
@@ -176,7 +176,7 @@ const thread = await memoryStore?.getThreadById({ threadId: '...' })
|
|
|
176
176
|
|
|
177
177
|
> **Warning:** If `init()` isn't called, tables won't be created and storage operations will fail silently or throw errors.
|
|
178
178
|
|
|
179
|
-
### Direct
|
|
179
|
+
### Direct database and pool access
|
|
180
180
|
|
|
181
181
|
`DSQLStore` exposes both the underlying database client and the pg.Pool instance as public fields:
|
|
182
182
|
|
|
@@ -193,7 +193,7 @@ It supports direct queries and custom transaction management. When using these f
|
|
|
193
193
|
|
|
194
194
|
This approach is intended for advanced scenarios where low-level access is required.
|
|
195
195
|
|
|
196
|
-
### Aurora DSQL
|
|
196
|
+
### Aurora DSQL specifics
|
|
197
197
|
|
|
198
198
|
#### IAM-only authentication
|
|
199
199
|
|
|
@@ -229,7 +229,7 @@ Aurora DSQL uses optimistic concurrency control (OCC) and may return retriable O
|
|
|
229
229
|
|
|
230
230
|
Individual connections are limited to about 60 minutes. The default `maxLifetimeSeconds: 3300` ensures connections are recycled before hitting this limit.
|
|
231
231
|
|
|
232
|
-
## Usage
|
|
232
|
+
## Usage example
|
|
233
233
|
|
|
234
234
|
### Adding memory to an agent
|
|
235
235
|
|
|
@@ -300,11 +300,11 @@ for await (const chunk of stream.textStream) {
|
|
|
300
300
|
}
|
|
301
301
|
```
|
|
302
302
|
|
|
303
|
-
## Index
|
|
303
|
+
## Index management
|
|
304
304
|
|
|
305
305
|
Aurora DSQL storage provides index management capabilities to optimize query performance.
|
|
306
306
|
|
|
307
|
-
### Automatic
|
|
307
|
+
### Automatic performance indexes
|
|
308
308
|
|
|
309
309
|
Aurora DSQL storage automatically creates composite indexes during initialization for common query patterns:
|
|
310
310
|
|
|
@@ -318,7 +318,7 @@ Aurora DSQL storage automatically creates composite indexes during initializatio
|
|
|
318
318
|
|
|
319
319
|
Aurora DSQL creates these indexes asynchronously using `CREATE INDEX ASYNC`. Because index creation is asynchronous, new indexes may not be immediately available after `init()`. The store will continue to function without them, but queries may be slower until index creation completes.
|
|
320
320
|
|
|
321
|
-
### Creating
|
|
321
|
+
### Creating custom indexes
|
|
322
322
|
|
|
323
323
|
Create additional indexes to optimize specific query patterns:
|
|
324
324
|
|
|
@@ -338,7 +338,7 @@ await storage.createIndex({
|
|
|
338
338
|
|
|
339
339
|
Aurora DSQL doesn't allow `ASC`/`DESC` in `CREATE INDEX ASYNC`. If you include them, they will be automatically stripped.
|
|
340
340
|
|
|
341
|
-
### Index
|
|
341
|
+
### Index options
|
|
342
342
|
|
|
343
343
|
**name** (`string`): Unique name for the index
|
|
344
344
|
|
|
@@ -360,7 +360,7 @@ Aurora DSQL doesn't allow `ASC`/`DESC` in `CREATE INDEX ASYNC`. If you include t
|
|
|
360
360
|
|
|
361
361
|
**tablespace** (`string`): Ignored in Aurora DSQL. Tablespaces are not supported.
|
|
362
362
|
|
|
363
|
-
### Managing
|
|
363
|
+
### Managing indexes
|
|
364
364
|
|
|
365
365
|
List and monitor existing indexes:
|
|
366
366
|
|
|
@@ -403,7 +403,7 @@ console.log(stats)
|
|
|
403
403
|
await storage.dropIndex('idx_threads_status')
|
|
404
404
|
```
|
|
405
405
|
|
|
406
|
-
### Schema-
|
|
406
|
+
### Schema-specific indexes
|
|
407
407
|
|
|
408
408
|
When using custom schemas, indexes are created with schema prefixes:
|
|
409
409
|
|
|
@@ -422,7 +422,7 @@ await storage.createIndex({
|
|
|
422
422
|
})
|
|
423
423
|
```
|
|
424
424
|
|
|
425
|
-
## Related
|
|
425
|
+
## Related resources
|
|
426
426
|
|
|
427
427
|
- [Aurora DSQL Documentation](https://docs.aws.amazon.com/aurora-dsql/)
|
|
428
428
|
- [SQL Reference](https://docs.aws.amazon.com/aurora-dsql/latest/userguide/working-with-aurora-dsql-sql.html)
|
|
@@ -266,7 +266,7 @@ When `replication` is set, Mastra rewrites its `MergeTree` and `ReplacingMergeTr
|
|
|
266
266
|
- `zookeeperPath`: `'/clickhouse/tables/{shard}/{database}/{table}'`
|
|
267
267
|
- `replicaName`: `'{replica}'`
|
|
268
268
|
|
|
269
|
-
The defaults match the most common self-managed convention. If your cluster's existing tables use a different layout (for example `/clickhouse/tables/{shard}/{table}` without the `{database}` segment), set `zookeeperPath` explicitly to match
|
|
269
|
+
The defaults match the most common self-managed convention. If your cluster's existing tables use a different layout (for example `/clickhouse/tables/{shard}/{table}` without the `{database}` segment), set `zookeeperPath` explicitly to match, because Mastra doesn't read your cluster's convention from Keeper: a mismatched default writes Mastra's metadata to a separate branch from the rest of the cluster.
|
|
270
270
|
|
|
271
271
|
```typescript
|
|
272
272
|
new ClickhouseStoreVNext({
|
|
@@ -386,7 +386,7 @@ await observability.init()
|
|
|
386
386
|
In CI/CD pipelines, set `disableInit: true` on `ClickhouseStore` and run `init()` from a deployment step that uses elevated credentials. Runtime application credentials need:
|
|
387
387
|
|
|
388
388
|
- `SELECT` and `INSERT` on the Mastra tables.
|
|
389
|
-
- `ALTER DELETE` on the observability tables you delete from. On ClickHouse 26.6 and earlier, lightweight deletes also require `ALTER UPDATE` on those tables
|
|
389
|
+
- `ALTER DELETE` on the observability tables you delete from. On ClickHouse 26.6 and earlier, lightweight deletes also require `ALTER UPDATE` on those tables. ClickHouse 26.7 removed that requirement.
|
|
390
390
|
|
|
391
391
|
## Observability
|
|
392
392
|
|
|
@@ -106,7 +106,7 @@ const storage = new D1Store({
|
|
|
106
106
|
})
|
|
107
107
|
```
|
|
108
108
|
|
|
109
|
-
### Wrangler
|
|
109
|
+
### Wrangler configuration
|
|
110
110
|
|
|
111
111
|
Add the D1 database binding to your `wrangler.toml`:
|
|
112
112
|
|
|
@@ -145,7 +145,7 @@ Or in `wrangler.jsonc`:
|
|
|
145
145
|
|
|
146
146
|
## Additional notes
|
|
147
147
|
|
|
148
|
-
### Schema
|
|
148
|
+
### Schema management
|
|
149
149
|
|
|
150
150
|
The storage implementation handles schema creation and updates automatically. It creates the following tables:
|
|
151
151
|
|
|
@@ -213,10 +213,10 @@ export default {
|
|
|
213
213
|
|
|
214
214
|
> **Warning:** If `init()` isn't called, tables won't be created and storage operations will fail silently or throw errors.
|
|
215
215
|
|
|
216
|
-
### Transactions &
|
|
216
|
+
### Transactions & consistency
|
|
217
217
|
|
|
218
218
|
Cloudflare D1 provides transactional guarantees for single-row operations. Multiple operations can be executed as a single, all-or-nothing unit of work.
|
|
219
219
|
|
|
220
|
-
### Table
|
|
220
|
+
### Table creation & migrations
|
|
221
221
|
|
|
222
222
|
Tables are created automatically when storage is initialized (and can be isolated per environment using the `tablePrefix` option), but advanced schema changes require manual migration and careful planning. Examples include adding columns or changing data types and indexes to avoid data loss.
|
|
@@ -37,7 +37,7 @@ yarn add @mastra/cloudflare@latest
|
|
|
37
37
|
bun add @mastra/cloudflare@latest
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
## Cloudflare KV
|
|
40
|
+
## Cloudflare KV storage
|
|
41
41
|
|
|
42
42
|
The KV storage implementation provides a globally distributed, serverless key-value store solution using Cloudflare Workers KV.
|
|
43
43
|
|
|
@@ -82,7 +82,7 @@ const storageRest = new CloudflareKVStorage({
|
|
|
82
82
|
|
|
83
83
|
### Additional notes
|
|
84
84
|
|
|
85
|
-
### Schema
|
|
85
|
+
### Schema management
|
|
86
86
|
|
|
87
87
|
The storage implementation handles schema creation and updates automatically. It creates the following tables:
|
|
88
88
|
|
|
@@ -90,15 +90,15 @@ The storage implementation handles schema creation and updates automatically. It
|
|
|
90
90
|
- `messages`: Stores individual messages
|
|
91
91
|
- `metadata`: Stores additional metadata for threads and messages
|
|
92
92
|
|
|
93
|
-
### Consistency &
|
|
93
|
+
### Consistency & propagation
|
|
94
94
|
|
|
95
95
|
Cloudflare KV is an eventually consistent store, meaning that data may not be immediately available across all regions after a write.
|
|
96
96
|
|
|
97
|
-
> **Resuming runs across Workers:** A write to KV can take up to about 60 seconds to reach other locations. If one Worker suspends a workflow or [durable agent](https://mastra.ai/docs/harness/durable-agents) run and a different Worker resumes it soon after, for example when a user approves a tool call
|
|
97
|
+
> **Resuming runs across Workers:** A write to KV can take up to about 60 seconds to reach other locations. If one Worker suspends a workflow or [durable agent](https://mastra.ai/docs/harness/durable-agents) run and a different Worker resumes it soon after, for example when a user approves a tool call right away, the resume can read an older snapshot. It then fails with `AGENT_RESUME_NO_SNAPSHOT_FOUND` or `WORKFLOW_RUN_NOT_SUSPENDED`, or resumes from an earlier step.
|
|
98
98
|
>
|
|
99
99
|
> If runs can be resumed by a different Worker or process than the one that suspended them, use [Cloudflare Durable Objects storage](#cloudflare-durable-objects-storage) instead.
|
|
100
100
|
|
|
101
|
-
### Key
|
|
101
|
+
### Key structure & namespacing
|
|
102
102
|
|
|
103
103
|
Keys in Cloudflare KV are structured as a combination of a configurable prefix and a table-specific format (e.g., `threads:threadId`). For Workers deployments, `keyPrefix` is used to isolate data within a namespace; for REST API deployments, `namespacePrefix` is used to isolate entire namespaces between environments or applications.
|
|
104
104
|
|
|
@@ -140,15 +140,15 @@ class AgentDurableObject extends DurableObject<Env> {
|
|
|
140
140
|
|
|
141
141
|
**disableInit** (`boolean`): When true, automatic table creation/migrations are disabled. Useful for CI/CD pipelines where migrations run separately.
|
|
142
142
|
|
|
143
|
-
### Strong
|
|
143
|
+
### Strong consistency
|
|
144
144
|
|
|
145
|
-
Unlike KV, Durable Objects provide strong consistency guarantees. All reads and writes within a Durable Object are serialized, making it
|
|
145
|
+
Unlike KV, Durable Objects provide strong consistency guarantees. All reads and writes within a Durable Object are serialized, making it well suited to fast, long-running agents.
|
|
146
146
|
|
|
147
|
-
### SQL
|
|
147
|
+
### SQL capabilities
|
|
148
148
|
|
|
149
149
|
Durable Objects storage uses SQLite under the hood, enabling efficient queries, filtering, and pagination that aren't possible with key-value storage.
|
|
150
150
|
|
|
151
|
-
## Schema
|
|
151
|
+
## Schema management
|
|
152
152
|
|
|
153
153
|
Both storage implementations handle schema creation and updates automatically. They create the following tables:
|
|
154
154
|
|
|
@@ -156,7 +156,7 @@ Both storage implementations handle schema creation and updates automatically. T
|
|
|
156
156
|
- `messages`: Stores individual messages
|
|
157
157
|
- `workflow_snapshot`: Stores workflow run state
|
|
158
158
|
|
|
159
|
-
## Deprecated
|
|
159
|
+
## Deprecated aliases
|
|
160
160
|
|
|
161
161
|
For backwards compatibility, the following aliases are available:
|
|
162
162
|
|
|
@@ -75,7 +75,7 @@ export default defineSchema({
|
|
|
75
75
|
})
|
|
76
76
|
```
|
|
77
77
|
|
|
78
|
-
### 2. Create the
|
|
78
|
+
### 2. Create the storage handler
|
|
79
79
|
|
|
80
80
|
In `convex/mastra/storage.ts`:
|
|
81
81
|
|
|
@@ -174,11 +174,11 @@ const cache = new ConvexServerCache({
|
|
|
174
174
|
|
|
175
175
|
`ConvexServerCache` stores list entries as separate Convex documents. This avoids growing a stream replay list inside one document and helps stay within Convex's record size limit.
|
|
176
176
|
|
|
177
|
-
Each scalar cache value and each list item is stored as one Convex row and must stay within Convex's row-size limits.
|
|
177
|
+
Each scalar cache value and each list item is stored as one Convex row and must stay within Convex's row-size limits. Large lists are still bounded by Convex query limits when replaying a range.
|
|
178
178
|
|
|
179
|
-
Cache cleanup and `clear()` run in bounded batches. A single client call can loop through up to 1,000 Convex mutations, with each mutation handling up to 25 list items.
|
|
179
|
+
Cache cleanup and `clear()` run in bounded batches. A single client call can loop through up to 1,000 Convex mutations, with each mutation handling up to 25 list items. A key that `clear()` is cleaning returns empty results on read until cleanup finishes.
|
|
180
180
|
|
|
181
|
-
For
|
|
181
|
+
For large cache namespaces, clear incrementally or use narrower prefixes to avoid long-running cleanup operations.
|
|
182
182
|
|
|
183
183
|
During batched cleanup, cache metadata can temporarily use an internal `deleted` state. The next cleanup pass removes those rows. Avoid writing new values with the same prefix until `clear()` finishes.
|
|
184
184
|
|
|
@@ -192,7 +192,7 @@ Use a non-empty `keyPrefix` unless you intentionally want `clear()` to remove ev
|
|
|
192
192
|
|
|
193
193
|
## Additional notes
|
|
194
194
|
|
|
195
|
-
### Schema
|
|
195
|
+
### Schema management
|
|
196
196
|
|
|
197
197
|
The storage implementation uses typed Convex tables for each Mastra domain:
|
|
198
198
|
|
|
@@ -219,7 +219,7 @@ All typed tables include:
|
|
|
219
219
|
- An `id` field for Mastra's record ID (distinct from Convex's auto-generated `_id`)
|
|
220
220
|
- A `by_record_id` index for efficient lookups by Mastra ID
|
|
221
221
|
|
|
222
|
-
|
|
222
|
+
The adapter stores data in a layout compatible with Mastra's storage contract and uses Convex's automatic indexing and real-time capabilities.
|
|
223
223
|
|
|
224
224
|
### Environment variables
|
|
225
225
|
|
|
@@ -54,7 +54,7 @@ Detailed instructions for setting up the table using AWS CloudFormation or AWS C
|
|
|
54
54
|
|
|
55
55
|
## Usage
|
|
56
56
|
|
|
57
|
-
### Basic
|
|
57
|
+
### Basic usage
|
|
58
58
|
|
|
59
59
|
```typescript
|
|
60
60
|
import { Memory } from '@mastra/memory'
|
|
@@ -80,7 +80,7 @@ const memory = new Memory({
|
|
|
80
80
|
})
|
|
81
81
|
```
|
|
82
82
|
|
|
83
|
-
### Local
|
|
83
|
+
### Local development with DynamoDB Local
|
|
84
84
|
|
|
85
85
|
For local development, you can use [DynamoDB Local](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.html).
|
|
86
86
|
|
|
@@ -174,7 +174,7 @@ const storage = new DynamoDBStore({
|
|
|
174
174
|
})
|
|
175
175
|
```
|
|
176
176
|
|
|
177
|
-
### Supported
|
|
177
|
+
### Supported entity types
|
|
178
178
|
|
|
179
179
|
TTL can be configured for these entity types:
|
|
180
180
|
|
|
@@ -188,7 +188,7 @@ TTL can be configured for these entity types:
|
|
|
188
188
|
| `resource` | User/resource data |
|
|
189
189
|
| `score` | Scoring results |
|
|
190
190
|
|
|
191
|
-
### TTL
|
|
191
|
+
### TTL entity configuration
|
|
192
192
|
|
|
193
193
|
Each entity type accepts the following configuration:
|
|
194
194
|
|
|
@@ -198,7 +198,7 @@ Each entity type accepts the following configuration:
|
|
|
198
198
|
|
|
199
199
|
**defaultTtlSeconds** (`number`): Default TTL in seconds from item creation time. Items will be automatically deleted by DynamoDB after this duration.
|
|
200
200
|
|
|
201
|
-
### Enabling TTL on
|
|
201
|
+
### Enabling TTL on your DynamoDB table
|
|
202
202
|
|
|
203
203
|
After configuring TTL in your code, you must enable TTL on the DynamoDB table itself:
|
|
204
204
|
|
|
@@ -269,17 +269,17 @@ Key aspects of this approach:
|
|
|
269
269
|
- **External Table Management:** Unlike some adapters that might offer helper functions to create tables via code, this adapter **expects the DynamoDB table and its associated Global Secondary Indexes (GSIs) to be provisioned externally** before use. Please refer to [TABLE_SETUP.md](https://github.com/mastra-ai/mastra/blob/main/stores/dynamodb/TABLE_SETUP.md) for detailed instructions using tools like AWS CloudFormation or CDK. The adapter focuses solely on interacting with the pre-existing table structure.
|
|
270
270
|
- **Consistency via Interface:** While the underlying storage model differs, this adapter adheres to the same `MastraStorage` interface as other adapters, ensuring it can be used interchangeably within the Mastra `Memory` component.
|
|
271
271
|
|
|
272
|
-
### Mastra
|
|
272
|
+
### Mastra data in the single table
|
|
273
273
|
|
|
274
274
|
Within the single DynamoDB table, different Mastra data entities (such as Threads, Messages, Traces, Evals, and Workflows) are managed and distinguished using ElectroDB. ElectroDB defines specific models for each entity type, which include unique key structures and attributes. It allows the adapter to store and retrieve diverse data types efficiently within the same table.
|
|
275
275
|
|
|
276
276
|
For example, a `Thread` item might have a primary key like `THREAD#<threadId>`, while a `Message` item belonging to that thread might use `THREAD#<threadId>` as a partition key and `MESSAGE#<messageId>` as a sort key. The Global Secondary Indexes (GSIs), detailed in `TABLE_SETUP.md`, are strategically designed to support common access patterns across these different entities, such as fetching all messages for a thread or querying traces associated with a workflow.
|
|
277
277
|
|
|
278
|
-
### Advantages of
|
|
278
|
+
### Advantages of single-table design
|
|
279
279
|
|
|
280
280
|
This implementation uses a single-table design pattern with ElectroDB, which offers several advantages within the context of DynamoDB:
|
|
281
281
|
|
|
282
|
-
1. **Lower cost (
|
|
282
|
+
1. **Lower cost (in some cases):** Fewer tables can simplify Read/Write Capacity Unit (RCU/WCU) provisioning and management, especially with on-demand capacity.
|
|
283
283
|
2. **Better performance:** Related data can be co-located or accessed efficiently through GSIs, enabling fast lookups for common access patterns.
|
|
284
284
|
3. **Simplified administration:** Fewer distinct tables to monitor and back up, with less to manage.
|
|
285
285
|
4. **Reduced complexity in access patterns:** ElectroDB helps manage the complexity of item types and access patterns on a single table.
|
|
@@ -60,7 +60,7 @@ const storage = new ElasticSearchStore({ id: 'elasticsearch-storage', client })
|
|
|
60
60
|
const vector = new ElasticSearchVector({ id: 'elasticsearch-vector', client })
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
-
When you provide your own client, `storage.close()`
|
|
63
|
+
When you provide your own client, `storage.close()` doesn't close it, and you remain responsible for its lifecycle.
|
|
64
64
|
|
|
65
65
|
## Parameters
|
|
66
66
|
|
|
@@ -76,11 +76,11 @@ When you provide your own client, `storage.close()` does not close it — you re
|
|
|
76
76
|
|
|
77
77
|
> **Note:** You must provide either `url` or `client`. These options are mutually exclusive.
|
|
78
78
|
|
|
79
|
-
## Additional
|
|
79
|
+
## Additional notes
|
|
80
80
|
|
|
81
|
-
### Index
|
|
81
|
+
### Index structure
|
|
82
82
|
|
|
83
|
-
Each Mastra storage table maps to one Elasticsearch index of the same name (for example `mastra_threads`, `mastra_messages`, `mastra_workflow_snapshot`, `mastra_scorers`). Records are stored as opaque JSON documents with a keyword `key` field, so no index mappings need to be managed manually
|
|
83
|
+
Each Mastra storage table maps to one Elasticsearch index of the same name (for example `mastra_threads`, `mastra_messages`, `mastra_workflow_snapshot`, `mastra_scorers`). Records are stored as opaque JSON documents with a keyword `key` field, so no index mappings need to be managed manually. Indexes are created on first use.
|
|
84
84
|
|
|
85
85
|
### Consistency
|
|
86
86
|
|
|
@@ -94,9 +94,9 @@ When shutting down your application, close the connection:
|
|
|
94
94
|
await storage.close()
|
|
95
95
|
```
|
|
96
96
|
|
|
97
|
-
This only closes clients created by `ElasticSearchStore` from a `url
|
|
97
|
+
This only closes clients created by `ElasticSearchStore` from a `url`. User-provided clients are left open.
|
|
98
98
|
|
|
99
|
-
## Usage
|
|
99
|
+
## Usage example
|
|
100
100
|
|
|
101
101
|
### Adding memory to an agent
|
|
102
102
|
|
|
@@ -36,7 +36,7 @@ bun add @mastra/lance@latest
|
|
|
36
36
|
|
|
37
37
|
## Usage
|
|
38
38
|
|
|
39
|
-
### Basic
|
|
39
|
+
### Basic storage usage
|
|
40
40
|
|
|
41
41
|
```typescript
|
|
42
42
|
import { LanceStorage } from '@mastra/lance'
|
|
@@ -65,7 +65,7 @@ const storage = await LanceStorage.create('my-storage', 's3://bucket/db', {
|
|
|
65
65
|
|
|
66
66
|
## Additional notes
|
|
67
67
|
|
|
68
|
-
### Schema
|
|
68
|
+
### Schema management
|
|
69
69
|
|
|
70
70
|
The LanceStorage implementation automatically handles schema creation and updates. It maps Mastra's schema types to Apache Arrow data types, which are used by LanceDB internally:
|
|
71
71
|
|
|
@@ -107,7 +107,7 @@ const thread = await memoryStore?.getThreadById({ threadId: '...' })
|
|
|
107
107
|
|
|
108
108
|
> **Warning:** If `init()` isn't called, tables won't be created and storage operations will fail silently or throw errors.
|
|
109
109
|
|
|
110
|
-
### Deployment
|
|
110
|
+
### Deployment options
|
|
111
111
|
|
|
112
112
|
LanceDB storage can be configured for different deployment scenarios:
|
|
113
113
|
|
|
@@ -124,7 +124,7 @@ LanceDB storage can be configured for different deployment scenarios:
|
|
|
124
124
|
s3://bucket/db
|
|
125
125
|
```
|
|
126
126
|
|
|
127
|
-
### Table
|
|
127
|
+
### Table management
|
|
128
128
|
|
|
129
129
|
LanceStorage provides methods for managing tables:
|
|
130
130
|
|