@mastra/mcp-docs-server 1.3.15-alpha.1 → 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 +5 -3
- package/.docs/docs/harness/background-tasks.md +7 -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
|
@@ -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
|
|
|
@@ -118,7 +118,7 @@ await store4.init() // Call init explicitly
|
|
|
118
118
|
|
|
119
119
|
## Additional notes
|
|
120
120
|
|
|
121
|
-
### Collection
|
|
121
|
+
### Collection management
|
|
122
122
|
|
|
123
123
|
The storage implementation handles collection creation and management automatically. It creates the following collections:
|
|
124
124
|
|
|
@@ -173,7 +173,7 @@ const thread = await memoryStore?.getThreadById({ threadId: '...' })
|
|
|
173
173
|
|
|
174
174
|
> **Warning:** If `init()` isn't called, collections won't be created and storage operations will fail silently or throw errors.
|
|
175
175
|
|
|
176
|
-
### Connection
|
|
176
|
+
### Connection management
|
|
177
177
|
|
|
178
178
|
The `close()` method closes the MongoDB client connection. Call this when shutting down your application:
|
|
179
179
|
|
|
@@ -95,7 +95,7 @@ const store5 = new MSSQLStore({
|
|
|
95
95
|
|
|
96
96
|
## Additional notes
|
|
97
97
|
|
|
98
|
-
### Schema
|
|
98
|
+
### Schema management
|
|
99
99
|
|
|
100
100
|
The storage implementation handles schema creation and updates automatically. It creates the following tables:
|
|
101
101
|
|
|
@@ -144,7 +144,7 @@ const thread = await memoryStore?.getThreadById({ threadId: '...' })
|
|
|
144
144
|
|
|
145
145
|
> **Warning:** If `init()` isn't called, tables won't be created and storage operations will fail silently or throw errors.
|
|
146
146
|
|
|
147
|
-
### Direct
|
|
147
|
+
### Direct database and pool access
|
|
148
148
|
|
|
149
149
|
`MSSQLStore` exposes the mssql connection pool as public fields:
|
|
150
150
|
|
|
@@ -113,7 +113,7 @@ const storage = new OracleStore({
|
|
|
113
113
|
})
|
|
114
114
|
```
|
|
115
115
|
|
|
116
|
-
For external authentication, set `externalAuth: true` and omit `password`. To reuse an existing `oracledb.Pool`, pass it as `pool
|
|
116
|
+
For external authentication, set `externalAuth: true` and omit `password`. To reuse an existing `oracledb.Pool`, pass it as `pool`, and Mastra uses it but doesn't close it.
|
|
117
117
|
|
|
118
118
|
`OracleStore` backs memory, workflow snapshots, observability, scores, scorer definitions, MCP client metadata, and agent registry data. When using the store outside a `Mastra` instance, call `await storage.init()` and access a domain with `await storage.getStore('memory')`.
|
|
119
119
|
|
|
@@ -138,7 +138,7 @@ Repeatable migrations are idempotent. They reconcile the tables and indexes owne
|
|
|
138
138
|
|
|
139
139
|
Initialization also creates the provider's default indexes for common Mastra query paths. Use `skipDefaultIndexes` when indexes are managed separately, or pass `indexes` for custom Oracle indexes. Custom definitions support Oracle options such as `bitmap`, `online`, `invisible`, `parallel`, `compress`, `noLogging`, and `reverse`, as well as function-based expressions like `JSON_VALUE(...)`.
|
|
140
140
|
|
|
141
|
-
Custom indexes are useful when your app
|
|
141
|
+
Custom indexes are useful when your app filters on JSON metadata in most queries or when database administrators (DBAs) want to test an index before the optimizer uses it:
|
|
142
142
|
|
|
143
143
|
```ts
|
|
144
144
|
const storage = new OracleStore({
|
|
@@ -125,7 +125,7 @@ const store4 = new PostgresStore({
|
|
|
125
125
|
|
|
126
126
|
## Additional notes
|
|
127
127
|
|
|
128
|
-
### Schema
|
|
128
|
+
### Schema management
|
|
129
129
|
|
|
130
130
|
The storage implementation handles schema creation and updates automatically. It creates the following tables:
|
|
131
131
|
|
|
@@ -172,13 +172,13 @@ const storage = new PostgresStoreVNext({
|
|
|
172
172
|
})
|
|
173
173
|
```
|
|
174
174
|
|
|
175
|
-
Lower `lookbackSeconds` if refreshes are slow, and raise `ttlSeconds` if they run more often than your filter values change. Only one process refreshes
|
|
175
|
+
Lower `lookbackSeconds` if refreshes are slow, and raise `ttlSeconds` if they run more often than your filter values change. Only one process refreshes each cache entry at a time, so adding server instances doesn't multiply the work.
|
|
176
176
|
|
|
177
177
|
#### Day partitions
|
|
178
178
|
|
|
179
|
-
`PostgresStoreVNext` stores observability events in tables partitioned by day. If TimescaleDB or pg_partman is installed, that extension creates partitions for you. Without an extension, `init()` creates the partitions for yesterday, today, and the next `futureDays` days (default 14), and a write that
|
|
179
|
+
`PostgresStoreVNext` stores observability events in tables partitioned by day. If TimescaleDB or pg_partman is installed, that extension creates partitions for you. Without an extension, `init()` creates the partitions for yesterday, today, and the next `futureDays` days (default 14), and a write that targets a day inside that window with no partition creates it before it retries, so writes keep working after the pre-created window runs out. Rows dated outside the window are still rejected.
|
|
180
180
|
|
|
181
|
-
Creating a partition is DDL. If the role your app runs with
|
|
181
|
+
Creating a partition is DDL. If the role your app runs with can't create tables, or doesn't own the observability tables, the write fails with an error that names the table and the missing day, and the exporter drops that batch after its retries. In that setup, call `ensurePartitions()` on a schedule, at least once every `futureDays` days, with a role that can create tables and owns the observability tables. It only extends the native day-partition window, and does nothing with TimescaleDB or pg_partman. You can also install TimescaleDB, or pg_partman with its background worker or a scheduled `run_maintenance()` call, to have the database maintain the partitions itself.
|
|
182
182
|
|
|
183
183
|
A larger `futureDays` gives the scheduled job more time between runs:
|
|
184
184
|
|
|
@@ -289,7 +289,7 @@ export const mastra = new Mastra({
|
|
|
289
289
|
|
|
290
290
|
`disableInit: true` also makes explicit `init()` calls a no-op, so leave it off the store in the deployment script.
|
|
291
291
|
|
|
292
|
-
### Using an
|
|
292
|
+
### Using an existing pool
|
|
293
293
|
|
|
294
294
|
If you already have a `pg.Pool` in your application (e.g., shared with an ORM or for Row Level Security), you can pass it directly to `PostgresStore`:
|
|
295
295
|
|
|
@@ -314,7 +314,7 @@ const storage = new PostgresStore({
|
|
|
314
314
|
- When you **provide a pool**: Mastra uses your pool but **doesn't** close it when `store.close()` is called. You manage the pool lifecycle.
|
|
315
315
|
- When Mastra **creates a pool**: Mastra owns the pool and will close it when `store.close()` is called.
|
|
316
316
|
|
|
317
|
-
### Direct
|
|
317
|
+
### Direct database and pool access
|
|
318
318
|
|
|
319
319
|
`PostgresStore` exposes the underlying database client and pool for advanced use cases:
|
|
320
320
|
|
|
@@ -501,7 +501,7 @@ for await (const chunk of stream.textStream) {
|
|
|
501
501
|
|
|
502
502
|
PostgreSQL storage provides index management to optimize query performance.
|
|
503
503
|
|
|
504
|
-
### Default
|
|
504
|
+
### Default indexes
|
|
505
505
|
|
|
506
506
|
PostgreSQL storage creates composite indexes during initialization for common query patterns:
|
|
507
507
|
|
|
@@ -517,7 +517,7 @@ PostgreSQL storage creates composite indexes during initialization for common qu
|
|
|
517
517
|
|
|
518
518
|
These indexes improve performance for filtered queries with sorting, including `dateRange` filters on message queries and Studio's workflow runs-list.
|
|
519
519
|
|
|
520
|
-
### Configuring
|
|
520
|
+
### Configuring indexes
|
|
521
521
|
|
|
522
522
|
You can control index creation via constructor options:
|
|
523
523
|
|
|
@@ -558,7 +558,7 @@ For advanced index types, you can specify additional options:
|
|
|
558
558
|
- `storage: { fillfactor: 90 }` for update-heavy tables
|
|
559
559
|
- `concurrent: true` for non-blocking creation (default)
|
|
560
560
|
|
|
561
|
-
### Index
|
|
561
|
+
### Index options
|
|
562
562
|
|
|
563
563
|
**name** (`string`): Unique name for the index
|
|
564
564
|
|
|
@@ -580,7 +580,7 @@ For advanced index types, you can specify additional options:
|
|
|
580
580
|
|
|
581
581
|
**tablespace** (`string`): Tablespace name for index placement
|
|
582
582
|
|
|
583
|
-
### Schema-
|
|
583
|
+
### Schema-specific indexes
|
|
584
584
|
|
|
585
585
|
When using custom schemas, index names are prefixed with the schema name:
|
|
586
586
|
|
|
@@ -601,7 +601,7 @@ const storage = new PostgresStore({
|
|
|
601
601
|
// Creates index as: custom_schema_idx_threads_status
|
|
602
602
|
```
|
|
603
603
|
|
|
604
|
-
### Managing
|
|
604
|
+
### Managing indexes via SQL
|
|
605
605
|
|
|
606
606
|
For advanced index management (listing, dropping, analyzing), use direct SQL queries via the `db` accessor:
|
|
607
607
|
|
|
@@ -624,15 +624,15 @@ const stats = await storage.db.one(`
|
|
|
624
624
|
`)
|
|
625
625
|
```
|
|
626
626
|
|
|
627
|
-
### Index
|
|
627
|
+
### Index types and use cases
|
|
628
628
|
|
|
629
629
|
PostgreSQL offers different index types optimized for specific scenarios:
|
|
630
630
|
|
|
631
631
|
| Index Type | Best For | Storage size | Speed |
|
|
632
632
|
| ------------------- | --------------------------------------- | ------------ | -------------------------- |
|
|
633
633
|
| **btree** (default) | Range queries, sorting, general purpose | Moderate | Fast |
|
|
634
|
-
| **hash** | Equality comparisons only | Small |
|
|
634
|
+
| **hash** | Equality comparisons only | Small | Fast for `=` |
|
|
635
635
|
| **gin** | JSONB, arrays, full-text search | Large | Fast for contains |
|
|
636
636
|
| **gist** | Geometric data, full-text search | Moderate | Fast for nearest-neighbor |
|
|
637
637
|
| **spgist** | Non-balanced data, text patterns | Small | Fast for specific patterns |
|
|
638
|
-
| **brin** | Large tables with natural ordering |
|
|
638
|
+
| **brin** | Large tables with natural ordering | Small | Fast for ranges |
|
|
@@ -14,7 +14,7 @@ npm install @mastra/redis
|
|
|
14
14
|
|
|
15
15
|
## Usage
|
|
16
16
|
|
|
17
|
-
### Using
|
|
17
|
+
### Using connection string
|
|
18
18
|
|
|
19
19
|
```typescript
|
|
20
20
|
import { RedisStore } from '@mastra/redis'
|
|
@@ -27,7 +27,7 @@ const storage = new RedisStore({
|
|
|
27
27
|
await storage.init()
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
### Using
|
|
30
|
+
### Using host and port configuration
|
|
31
31
|
|
|
32
32
|
```typescript
|
|
33
33
|
import { RedisStore } from '@mastra/redis'
|
|
@@ -43,7 +43,7 @@ const storage = new RedisStore({
|
|
|
43
43
|
await storage.init()
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
### Using
|
|
46
|
+
### Using pre-configured client
|
|
47
47
|
|
|
48
48
|
For advanced configurations such as Sentinel, you can pass a pre-configured Redis client:
|
|
49
49
|
|
|
@@ -85,9 +85,9 @@ const storage = new RedisStore({
|
|
|
85
85
|
|
|
86
86
|
> **Note:** You must provide either `connectionString`, `host`, or `client`. These options are mutually exclusive.
|
|
87
87
|
|
|
88
|
-
## Additional
|
|
88
|
+
## Additional notes
|
|
89
89
|
|
|
90
|
-
### Key
|
|
90
|
+
### Key structure
|
|
91
91
|
|
|
92
92
|
The Redis storage implementation uses the following key patterns:
|
|
93
93
|
|
|
@@ -124,7 +124,7 @@ const storage = new RedisStore({
|
|
|
124
124
|
|
|
125
125
|
Redis Cluster isn't supported. `RedisStore` accepts only a standalone client from `createClient()`, and several operations read or write keys that hash to different slots, which Redis Cluster rejects with a `CROSSSLOT` error.
|
|
126
126
|
|
|
127
|
-
### Accessing the
|
|
127
|
+
### Accessing the underlying client
|
|
128
128
|
|
|
129
129
|
You can access the underlying Redis client for custom operations:
|
|
130
130
|
|
|
@@ -151,7 +151,7 @@ When shutting down your application, close the Redis connection:
|
|
|
151
151
|
await storage.close()
|
|
152
152
|
```
|
|
153
153
|
|
|
154
|
-
## Usage
|
|
154
|
+
## Usage example
|
|
155
155
|
|
|
156
156
|
### Adding memory to an agent
|
|
157
157
|
|
|
@@ -45,7 +45,7 @@ const storage = new SpannerStore({
|
|
|
45
45
|
})
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
The instance and database must already exist. The adapter creates the required tables on first use,
|
|
48
|
+
The instance and database must already exist. The adapter creates the required tables on first use, which means the credentials provided to the Spanner client need permission to run schema changes (or run `storage.init()` once during a deploy step with elevated credentials).
|
|
49
49
|
|
|
50
50
|
## Parameters
|
|
51
51
|
|
|
@@ -190,7 +190,7 @@ A few behaviors differ from other relational adapters:
|
|
|
190
190
|
- Identifiers are quoted with backticks.
|
|
191
191
|
- DDL is applied through `database.updateSchema(...)`, which is asynchronous (long-running operation).
|
|
192
192
|
- `NULLS FIRST/LAST` isn't supported. Ordering with NULL handling is emulated through an `IS NULL` ordering key.
|
|
193
|
-
- JSON containment isn't supported natively. `listTraces` `metadata` and `scope` filters compile to per-key `JSON_VALUE(...) = @v` equality checks, and `tags` filters compile to `EXISTS` over `JSON_QUERY_ARRAY(...)`. This differs from Postgres' `@>` containment operator (which can match nested structure in a single index scan): most one-shot lookups still work but
|
|
193
|
+
- JSON containment isn't supported natively. `listTraces` `metadata` and `scope` filters compile to per-key `JSON_VALUE(...) = @v` equality checks, and `tags` filters compile to `EXISTS` over `JSON_QUERY_ARRAY(...)`. This differs from Postgres' `@>` containment operator (which can match nested structure in a single index scan): most one-shot lookups still work but nested structural matches aren't expressible.
|
|
194
194
|
|
|
195
195
|
### Direct database access
|
|
196
196
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
The Upstash storage implementation provides a serverless-friendly storage solution using Upstash's Redis-compatible key-value store.
|
|
8
8
|
|
|
9
|
-
> **Pricing:** When using Mastra with Upstash, the pay-as-you-go model can result in
|
|
9
|
+
> **Pricing:** When using Mastra with Upstash, the pay-as-you-go model can result in high costs due to the high volume of Redis commands generated during agent conversations. Use a **fixed pricing plan** for predictable costs. See [Upstash pricing](https://upstash.com/pricing/redis) for details and [GitHub issue #5850](https://github.com/mastra-ai/mastra/issues/5850) for context.
|
|
10
10
|
|
|
11
11
|
> **Observability Not Supported:** Upstash storage **doesn't support the observability domain**. Traces from the `MastraStorageExporter` can't be persisted to Upstash, and [Studio's](https://mastra.ai/docs/studio/overview) observability features won't work with Upstash as your only storage provider. To enable observability, use [composite storage](https://mastra.ai/reference/storage/composite) to route observability data to a supported provider like ClickHouse.
|
|
12
12
|
|
|
@@ -58,7 +58,7 @@ const storage = new UpstashStore({
|
|
|
58
58
|
|
|
59
59
|
## Additional notes
|
|
60
60
|
|
|
61
|
-
### Key
|
|
61
|
+
### Key structure
|
|
62
62
|
|
|
63
63
|
The Upstash storage implementation uses a key-value structure:
|
|
64
64
|
|
|
@@ -66,7 +66,7 @@ The Upstash storage implementation uses a key-value structure:
|
|
|
66
66
|
- Message keys: `{prefix}message:{messageId}`
|
|
67
67
|
- Metadata keys: `{prefix}metadata:{entityId}`
|
|
68
68
|
|
|
69
|
-
### Serverless
|
|
69
|
+
### Serverless benefits
|
|
70
70
|
|
|
71
71
|
Upstash storage is particularly well-suited for serverless deployments:
|
|
72
72
|
|
|
@@ -75,7 +75,7 @@ Upstash storage is particularly well-suited for serverless deployments:
|
|
|
75
75
|
- Global replication options
|
|
76
76
|
- Edge-compatible
|
|
77
77
|
|
|
78
|
-
### Data
|
|
78
|
+
### Data persistence
|
|
79
79
|
|
|
80
80
|
Upstash provides:
|
|
81
81
|
|
|
@@ -83,7 +83,7 @@ Upstash provides:
|
|
|
83
83
|
- Point-in-time recovery
|
|
84
84
|
- Cross-region replication options
|
|
85
85
|
|
|
86
|
-
### Performance
|
|
86
|
+
### Performance considerations
|
|
87
87
|
|
|
88
88
|
For optimal performance:
|
|
89
89
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
The Valkey storage implementation provides persistent storage and server-side caching through the [Valkey GLIDE](https://github.com/valkey-io/valkey-glide) client. Use it when your deployment runs Valkey or needs GLIDE features such as native Valkey configuration and authentication.
|
|
8
8
|
|
|
9
|
-
Use [`@mastra/redis`](https://mastra.ai/integrations/databases/redis) for Redis deployments that use the official `redis` client.
|
|
9
|
+
Use [`@mastra/redis`](https://mastra.ai/integrations/databases/redis) for Redis deployments that use the official `redis` client. Each package is tested independently against its own server.
|
|
10
10
|
|
|
11
11
|
## Installation
|
|
12
12
|
|
|
@@ -122,7 +122,7 @@ For production, you'll also need:
|
|
|
122
122
|
|
|
123
123
|
You can open port 4111 in your EC2 security group for direct access, or configure a reverse proxy (such as nginx) to listen on ports 80 and 443 and forward requests to `http://localhost:4111`.
|
|
124
124
|
|
|
125
|
-
In production,
|
|
125
|
+
In production, use a reverse proxy so you can configure HTTPS. HTTPS encrypts traffic and is required for most webhook integrations and external services your agents interact with.
|
|
126
126
|
|
|
127
127
|
7. Verify your deployment at `https://<your-ec2-address>/api/agents`, which should return a JSON list of your agents.
|
|
128
128
|
|
|
@@ -144,7 +144,7 @@ yarn add --dev typescript @types/node tsx
|
|
|
144
144
|
bun add --dev typescript @types/node tsx
|
|
145
145
|
```
|
|
146
146
|
|
|
147
|
-
Run [`mastra init`](https://mastra.ai/reference/cli/mastra) to set up a new Mastra project. The provider you choose at the prompt is overwritten in the next step
|
|
147
|
+
Run [`mastra init`](https://mastra.ai/reference/cli/mastra) to set up a new Mastra project. The provider you choose at the prompt is overwritten in the next step. Any value works:
|
|
148
148
|
|
|
149
149
|
**npm**:
|
|
150
150
|
|
|
@@ -62,7 +62,7 @@ CMD ["node", ".mastra/output/index.mjs"]
|
|
|
62
62
|
|
|
63
63
|
## Build and push the Docker image
|
|
64
64
|
|
|
65
|
-
1. Set up environment variables for the deployment. Use the same region for all AWS services (ECR, Lambda) to avoid
|
|
65
|
+
1. Set up environment variables for the deployment. Use the same region for all AWS services (ECR, Lambda) to avoid resources that exist in only one region:
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
68
|
export PROJECT_NAME="your-mastra-app"
|
|
@@ -105,32 +105,32 @@ CMD ["node", ".mastra/output/index.mjs"]
|
|
|
105
105
|
|
|
106
106
|
## Create the Lambda function
|
|
107
107
|
|
|
108
|
-
1. Navigate to the [AWS Lambda Console](https://console.aws.amazon.com/lambda/) and
|
|
108
|
+
1. Navigate to the [AWS Lambda Console](https://console.aws.amazon.com/lambda/) and select **Create function**. Ensure you have the same region selected as where you created your ECR repository.
|
|
109
109
|
|
|
110
110
|
2. Select **Container image** and configure the function:
|
|
111
111
|
|
|
112
112
|
- **Function name**: Enter a name (e.g. `mastra-app`)
|
|
113
|
-
- **Container image URI**:
|
|
113
|
+
- **Container image URI**: Select **Browse images**, pick your ECR repository, and choose the `latest` tag
|
|
114
114
|
- **Architecture**: Select **arm64**
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
Select **Create function** to create the Lambda function.
|
|
117
117
|
|
|
118
|
-
3. Configure memory and timeout. Go to **Configuration** > **General configuration** and
|
|
118
|
+
3. Configure memory and timeout. Go to **Configuration** > **General configuration** and select **Edit**:
|
|
119
119
|
|
|
120
120
|
- **Memory**: 512 MB (adjust based on your application needs)
|
|
121
121
|
- **Timeout**: 1 minute or higher (the default 3 seconds is too low for most Mastra applications)
|
|
122
122
|
|
|
123
|
-
|
|
123
|
+
Select **Save**.
|
|
124
124
|
|
|
125
|
-
4. Add environment variables. Go to **Configuration** > **Environment variables** and
|
|
125
|
+
4. Add environment variables. Go to **Configuration** > **Environment variables** and select **Edit**. Add the variables your Mastra application needs:
|
|
126
126
|
|
|
127
127
|
- `OPENAI_API_KEY`: Your OpenAI API key (if using OpenAI)
|
|
128
128
|
- `ANTHROPIC_API_KEY`: Your Anthropic API key (if using Anthropic)
|
|
129
129
|
- Other provider-specific API keys as needed (e.g. `TURSO_DATABASE_URL` and `TURSO_AUTH_TOKEN` if using LibSQL with Turso)
|
|
130
130
|
|
|
131
|
-
|
|
131
|
+
Select **Save**.
|
|
132
132
|
|
|
133
|
-
5. Enable a Function URL for external access. Go to **Configuration** > **Function URL** and
|
|
133
|
+
5. Enable a Function URL for external access. Go to **Configuration** > **Function URL** and select **Create function URL**:
|
|
134
134
|
|
|
135
135
|
- **Auth type**: Select **NONE** for public access
|
|
136
136
|
|
|
@@ -140,11 +140,11 @@ CMD ["node", ".mastra/output/index.mjs"]
|
|
|
140
140
|
- **Allow headers**: `content-type` (`x-amzn-request-context` is also required when used with services like CloudFront/API Gateway)
|
|
141
141
|
- **Allow methods**: `*`
|
|
142
142
|
|
|
143
|
-
|
|
143
|
+
Select **Save**.
|
|
144
144
|
|
|
145
145
|
## Verify your deployment
|
|
146
146
|
|
|
147
|
-
1. Copy the **Function URL** from the Lambda console and visit `<your-function-url>/api/agents` in your browser.
|
|
147
|
+
1. Copy the **Function URL** from the Lambda console and visit `<your-function-url>/api/agents` in your browser. The response is a JSON list of your agents.
|
|
148
148
|
|
|
149
149
|
2. You can now call your Mastra endpoints over HTTP.
|
|
150
150
|
|
|
@@ -152,7 +152,7 @@ CMD ["node", ".mastra/output/index.mjs"]
|
|
|
152
152
|
|
|
153
153
|
## Next steps
|
|
154
154
|
|
|
155
|
-
|
|
155
|
+
The steps below deploy Mastra to AWS Lambda. For production workloads, consider enabling [CloudWatch monitoring](https://docs.aws.amazon.com/lambda/latest/dg/monitoring-cloudwatchlogs.html) for your Lambda function, setting up [AWS X-Ray](https://docs.aws.amazon.com/lambda/latest/dg/services-xray.html) for distributed tracing, and configuring [provisioned concurrency](https://docs.aws.amazon.com/lambda/latest/dg/provisioned-concurrency.html) for consistent performance.
|
|
156
156
|
|
|
157
157
|
## Related
|
|
158
158
|
|
|
@@ -48,7 +48,7 @@ In these steps you'll learn how to create a new Azure App Service for hosting yo
|
|
|
48
48
|
|
|
49
49
|
## GitHub deployment
|
|
50
50
|
|
|
51
|
-
In these steps, you'll connect your Azure App Service to your GitHub repository to enable continuous deployment.
|
|
51
|
+
In these steps, you'll connect your Azure App Service to your GitHub repository to enable continuous deployment. Every time you push changes to your repository, Azure builds and deploys your application.
|
|
52
52
|
|
|
53
53
|
1. Navigate to **Deployment Center** in the left sidebar and select **GitHub** as your source. Sign in to GitHub if you're not already authenticated with Azure.
|
|
54
54
|
|
|
@@ -81,7 +81,7 @@ In these steps, you'll connect your Azure App Service to your GitHub repository
|
|
|
81
81
|
|
|
82
82
|
Once the build is successful, wait a few moments for the application to start. You can access your deployed application using the default URL provided in the **Overview** tab in the Azure portal. Your application will be available at `https://<your-app-name>.azurewebsites.net`.
|
|
83
83
|
|
|
84
|
-
Copy the URL from the Azure portal and visit `https://<your-app-name>.azurewebsites.net/api/agents` in your browser.
|
|
84
|
+
Copy the URL from the Azure portal and visit `https://<your-app-name>.azurewebsites.net/api/agents` in your browser. The response is a JSON list of your agents.
|
|
85
85
|
|
|
86
86
|
You can now call your Mastra endpoints over HTTP.
|
|
87
87
|
|
|
@@ -92,9 +92,9 @@ After setting up your project, push it to your remote Git provider of choice (e.
|
|
|
92
92
|
|
|
93
93
|
> **Note:** Remember to set your environment variables needed to run your application (e.g. your [model provider](https://mastra.ai/models/providers) API key). You can upload secrets from your `.env` file using `npx wrangler secret bulk .env`. See [Secrets](https://mastra.ai/reference/deployer/cloudflare) for details.
|
|
94
94
|
|
|
95
|
-
2. Once you're ready,
|
|
95
|
+
2. Once you're ready, select **Deploy** and wait for the first deployment to complete.
|
|
96
96
|
|
|
97
|
-
3. Try out your newly deployed function by going to `https://<your-project-name>.<slug>.workers.dev/api/agents`.
|
|
97
|
+
3. Try out your newly deployed function by going to `https://<your-project-name>.<slug>.workers.dev/api/agents`. The response is a JSON list of all available agents.
|
|
98
98
|
|
|
99
99
|
Since the [Mastra server](https://mastra.ai/docs/server/overview) prefixes every API endpoint with `/api`, you have to add it to your URLs when making requests.
|
|
100
100
|
|
|
@@ -20,7 +20,7 @@ After setting up your project, push it to your remote Git provider of choice (e.
|
|
|
20
20
|
|
|
21
21
|
1. Follow the official [App Platform quickstart](https://docs.digitalocean.com/products/app-platform/getting-started/quickstart/#create-an-app). It'll guide you through connecting your repository, selecting the branch to deploy from, and configuring the source directory if necessary.
|
|
22
22
|
|
|
23
|
-
2.
|
|
23
|
+
2. Ensure that a "Node.js" build is detected. You'll need to configure a build command. Set it based on your package manager:
|
|
24
24
|
|
|
25
25
|
**npm**:
|
|
26
26
|
|
|
@@ -66,7 +66,7 @@ After setting up your project, push it to your remote Git provider of choice (e.
|
|
|
66
66
|
|
|
67
67
|
### Deploy
|
|
68
68
|
|
|
69
|
-
After setting up your project, push it to your remote Git provider of choice (e.g. GitHub). Connect to your Droplet and
|
|
69
|
+
After setting up your project, push it to your remote Git provider of choice (e.g. GitHub). Connect to your Droplet and ensure `git` is installed.
|
|
70
70
|
|
|
71
71
|
1. Clone your repository:
|
|
72
72
|
|
|
@@ -212,7 +212,7 @@ export const mastra = new Mastra({
|
|
|
212
212
|
|
|
213
213
|
### Running in production
|
|
214
214
|
|
|
215
|
-
Before you begin,
|
|
215
|
+
Before you begin, ensure you have:
|
|
216
216
|
|
|
217
217
|
- Vercel account and Vercel CLI installed (`npm i -g vercel`)
|
|
218
218
|
- Inngest account
|
|
@@ -234,8 +234,8 @@ Before you begin, make sure you have:
|
|
|
234
234
|
deployer: new VercelDeployer({
|
|
235
235
|
teamSlug: 'your_team_slug',
|
|
236
236
|
projectName: 'your_project_name',
|
|
237
|
-
// you can get your vercel token from the vercel dashboard by
|
|
238
|
-
// and then
|
|
237
|
+
// you can get your vercel token from the vercel dashboard by selecting on the user icon in the top right corner
|
|
238
|
+
// and then selecting on "Account Settings" and then selecting on "Tokens" on the left sidebar.
|
|
239
239
|
token: process.env.VERCEL_TOKEN,
|
|
240
240
|
}),
|
|
241
241
|
})
|
|
@@ -348,7 +348,7 @@ When you include custom functions:
|
|
|
348
348
|
2. Custom functions retain their specified IDs (e.g., `send-welcome-email`, `process-webhook`)
|
|
349
349
|
3. All functions are served together on the same `/inngest/api` endpoint
|
|
350
350
|
|
|
351
|
-
|
|
351
|
+
You can combine Mastra's workflow orchestration with your existing Inngest functions.
|
|
352
352
|
|
|
353
353
|
## Using with other frameworks
|
|
354
354
|
|
|
@@ -822,6 +822,6 @@ When you configure a workflow with a `cron` property:
|
|
|
822
822
|
3. Each scheduled execution creates a new workflow run with the provided `inputData` and `initialState`
|
|
823
823
|
4. The cron function and the main workflow function are both served together when you call `serve()`
|
|
824
824
|
|
|
825
|
-
You can monitor scheduled executions in the Inngest dashboard under **Functions** and **Runs** sections. The cron function will
|
|
825
|
+
You can monitor scheduled executions in the Inngest dashboard under **Functions** and **Runs** sections. The cron function will show up as a separate function alongside your main workflow function.
|
|
826
826
|
|
|
827
827
|
For more information on cron scheduling, see the [Inngest cron documentation](https://www.inngest.com/docs/guides/scheduled-functions).
|