@mastra/mcp-docs-server 0.0.0-bundle-recursion-20251030002519 → 0.0.0-bundle-version-20260121091645
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/organized/changelogs/%40internal%2Fchangeset-cli.md +1 -15
- package/.docs/organized/changelogs/%40internal%2Fexternal-types.md +1 -7
- package/.docs/organized/changelogs/%40internal%2Fplayground.md +60 -0
- package/.docs/organized/changelogs/%40internal%2Fstorage-test-utils.md +201 -1
- package/.docs/organized/changelogs/%40internal%2Ftypes-builder.md +1 -55
- package/.docs/organized/changelogs/%40mastra%2Fagent-builder.md +368 -168
- package/.docs/organized/changelogs/%40mastra%2Fai-sdk.md +362 -162
- package/.docs/organized/changelogs/%40mastra%2Fastra.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fauth.md +52 -0
- package/.docs/organized/changelogs/%40mastra%2Fchroma.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +701 -191
- package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +400 -200
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +596 -191
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +629 -190
- package/.docs/organized/changelogs/%40mastra%2Fcodemod.md +235 -0
- package/.docs/organized/changelogs/%40mastra%2Fconvex.md +502 -0
- package/.docs/organized/changelogs/%40mastra%2Fcore.md +376 -176
- package/.docs/organized/changelogs/%40mastra%2Fcouchbase.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +360 -160
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +377 -177
- package/.docs/organized/changelogs/%40mastra%2Fduckdb.md +112 -0
- package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +575 -197
- package/.docs/organized/changelogs/%40mastra%2Felasticsearch.md +133 -0
- package/.docs/organized/changelogs/%40mastra%2Fevals.md +211 -11
- package/.docs/organized/changelogs/%40mastra%2Ffastembed.md +64 -0
- package/.docs/organized/changelogs/%40mastra%2Flance.md +621 -191
- package/.docs/organized/changelogs/%40mastra%2Flibsql.md +788 -192
- package/.docs/organized/changelogs/%40mastra%2Floggers.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +336 -136
- package/.docs/organized/changelogs/%40mastra%2Fmcp-registry-registry.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fmcp.md +384 -184
- package/.docs/organized/changelogs/%40mastra%2Fmemory.md +576 -178
- package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +729 -196
- package/.docs/organized/changelogs/%40mastra%2Fmssql.md +670 -191
- package/.docs/organized/changelogs/%40mastra%2Fopensearch.md +231 -31
- package/.docs/organized/changelogs/%40mastra%2Fpg.md +913 -167
- package/.docs/organized/changelogs/%40mastra%2Fpinecone.md +248 -48
- package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +376 -176
- package/.docs/organized/changelogs/%40mastra%2Fqdrant.md +204 -4
- package/.docs/organized/changelogs/%40mastra%2Frag.md +414 -214
- package/.docs/organized/changelogs/%40mastra%2Freact.md +358 -158
- package/.docs/organized/changelogs/%40mastra%2Fs3vectors.md +101 -0
- package/.docs/organized/changelogs/%40mastra%2Fschema-compat.md +220 -0
- package/.docs/organized/changelogs/%40mastra%2Fserver.md +363 -163
- package/.docs/organized/changelogs/%40mastra%2Fturbopuffer.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fupstash.md +640 -193
- package/.docs/organized/changelogs/%40mastra%2Fvectorize.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-azure.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-cloudflare.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-deepgram.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-elevenlabs.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-gladia.md +107 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-google-gemini-live.md +183 -0
- package/.docs/organized/changelogs/%40mastra%2Fvoice-google.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-murf.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-openai-realtime.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-openai.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-playai.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-sarvam.md +201 -1
- package/.docs/organized/changelogs/%40mastra%2Fvoice-speechify.md +201 -1
- package/.docs/organized/changelogs/create-mastra.md +291 -91
- package/.docs/organized/changelogs/mastra.md +365 -165
- package/.docs/organized/code-examples/a2a.md +6 -4
- package/.docs/organized/code-examples/agent-v6.md +221 -0
- package/.docs/organized/code-examples/agui.md +16 -12
- package/.docs/organized/code-examples/ai-elements.md +4 -4
- package/.docs/organized/code-examples/ai-sdk-useChat.md +16 -22
- package/.docs/organized/code-examples/ai-sdk-v5.md +9 -6
- package/.docs/organized/code-examples/assistant-ui.md +7 -7
- package/.docs/organized/code-examples/bird-checker-with-express.md +7 -6
- package/.docs/organized/code-examples/bird-checker-with-nextjs-and-eval.md +8 -7
- package/.docs/organized/code-examples/bird-checker-with-nextjs.md +8 -7
- package/.docs/organized/code-examples/client-side-tools.md +6 -5
- package/.docs/organized/code-examples/crypto-chatbot.md +7 -7
- package/.docs/organized/code-examples/experimental-auth-weather-agent.md +9 -178
- package/.docs/organized/code-examples/fireworks-r1.md +5 -5
- package/.docs/organized/code-examples/heads-up-game.md +8 -5
- package/.docs/organized/code-examples/inngest.md +1075 -0
- package/.docs/organized/code-examples/mcp-configuration.md +6 -7
- package/.docs/organized/code-examples/mcp-registry-registry.md +3 -2
- package/.docs/organized/code-examples/mcp-server-adapters.md +720 -0
- package/.docs/organized/code-examples/memory-per-resource-example.md +7 -5
- package/.docs/organized/code-examples/memory-todo-agent.md +2 -1
- package/.docs/organized/code-examples/memory-with-context.md +3 -2
- package/.docs/organized/code-examples/memory-with-libsql.md +4 -2
- package/.docs/organized/code-examples/memory-with-mongodb.md +4 -2
- package/.docs/organized/code-examples/memory-with-pg.md +4 -2
- package/.docs/organized/code-examples/memory-with-processors.md +15 -10
- package/.docs/organized/code-examples/memory-with-upstash.md +5 -3
- package/.docs/organized/code-examples/openapi-spec-writer.md +36 -35
- package/.docs/organized/code-examples/processors-with-ai-sdk.md +14 -0
- package/.docs/organized/code-examples/quick-start.md +8 -39
- package/.docs/organized/code-examples/server-app-access.md +342 -0
- package/.docs/organized/code-examples/server-express-adapter.md +87 -0
- package/.docs/organized/code-examples/server-fastify-adapter.md +83 -0
- package/.docs/organized/code-examples/server-hono-adapter.md +85 -0
- package/.docs/organized/code-examples/server-koa-adapter.md +94 -0
- package/.docs/organized/code-examples/stock-price-tool.md +27 -27
- package/.docs/organized/code-examples/weather-agent.md +21 -16
- package/.docs/organized/code-examples/workflow-ai-recruiter.md +5 -4
- package/.docs/organized/code-examples/workflow-with-inline-steps.md +11 -14
- package/.docs/organized/code-examples/workflow-with-memory.md +18 -17
- package/.docs/organized/code-examples/workflow-with-separate-steps.md +4 -4
- package/.docs/organized/code-examples/workflow-with-suspend-resume.md +5 -4
- package/.docs/raw/agents/adding-voice.mdx +92 -23
- package/.docs/raw/agents/agent-approval.mdx +386 -0
- package/.docs/raw/agents/agent-memory.mdx +53 -41
- package/.docs/raw/agents/guardrails.mdx +141 -68
- package/.docs/raw/agents/network-approval.mdx +281 -0
- package/.docs/raw/agents/networks.mdx +79 -19
- package/.docs/raw/agents/overview.mdx +69 -194
- package/.docs/raw/agents/processors.mdx +496 -0
- package/.docs/raw/agents/structured-output.mdx +294 -0
- package/.docs/raw/agents/using-tools.mdx +86 -22
- package/.docs/raw/community/contributing-templates.mdx +1 -1
- package/.docs/raw/community/discord.mdx +2 -2
- package/.docs/raw/community/licensing.mdx +1 -1
- package/.docs/raw/course/01-first-agent/04-project-structure.md +2 -0
- package/.docs/raw/course/01-first-agent/05-running-playground.md +5 -5
- package/.docs/raw/course/01-first-agent/07-creating-your-agent.md +1 -2
- package/.docs/raw/course/01-first-agent/08-exporting-your-agent.md +2 -1
- package/.docs/raw/course/01-first-agent/09-testing-your-agent.md +3 -3
- package/.docs/raw/course/01-first-agent/12-connecting-tool-to-agent.md +1 -1
- package/.docs/raw/course/01-first-agent/13-testing-your-tool.md +3 -3
- package/.docs/raw/course/01-first-agent/15-installing-memory.md +1 -1
- package/.docs/raw/course/01-first-agent/16-adding-memory-to-agent.md +3 -3
- package/.docs/raw/course/01-first-agent/17-testing-memory.md +2 -2
- package/.docs/raw/course/02-agent-tools-mcp/04-initializing-mcp-tools.md +2 -2
- package/.docs/raw/course/02-agent-tools-mcp/05-updating-your-agent.md +1 -1
- package/.docs/raw/course/02-agent-tools-mcp/10-updating-agent-instructions-zapier.md +1 -1
- package/.docs/raw/course/02-agent-tools-mcp/16-updating-agent-instructions-github.md +1 -1
- package/.docs/raw/course/02-agent-tools-mcp/21-updating-agent-instructions-hackernews.md +1 -1
- package/.docs/raw/course/02-agent-tools-mcp/27-updating-agent-instructions-filesystem.md +1 -1
- package/.docs/raw/course/02-agent-tools-mcp/31-enhancing-memory-configuration.md +5 -3
- package/.docs/raw/course/02-agent-tools-mcp/32-conclusion.md +1 -1
- package/.docs/raw/course/03-agent-memory/03-installing-memory.md +1 -1
- package/.docs/raw/course/03-agent-memory/04-creating-basic-memory-agent.md +2 -2
- package/.docs/raw/course/03-agent-memory/07-understanding-memory-threads.md +35 -0
- package/.docs/raw/course/03-agent-memory/08-configuring-conversation-history.md +1 -2
- package/.docs/raw/course/03-agent-memory/10-storage-configuration.md +2 -3
- package/.docs/raw/course/03-agent-memory/13-vector-store-configuration.md +3 -1
- package/.docs/raw/course/03-agent-memory/16-configuring-semantic-recall.md +6 -5
- package/.docs/raw/course/03-agent-memory/18-advanced-configuration-semantic-recall.md +2 -1
- package/.docs/raw/course/03-agent-memory/21-configuring-working-memory.md +5 -4
- package/.docs/raw/course/03-agent-memory/22-custom-working-memory-templates.md +4 -4
- package/.docs/raw/course/03-agent-memory/25-combining-memory-features.md +4 -4
- package/.docs/raw/course/03-agent-memory/27-creating-learning-assistant.md +4 -4
- package/.docs/raw/course/04-workflows/07-using-playground.md +1 -1
- package/.docs/raw/course/04-workflows/08-running-workflows-programmatically.md +2 -2
- package/.docs/raw/course/04-workflows/11-creating-an-ai-agent.md +2 -3
- package/.docs/raw/deployment/cloud-providers.mdx +22 -0
- package/.docs/raw/deployment/mastra-server.mdx +140 -0
- package/.docs/raw/deployment/monorepo.mdx +106 -42
- package/.docs/raw/deployment/overview.mdx +37 -50
- package/.docs/raw/deployment/web-framework.mdx +18 -20
- package/.docs/raw/deployment/workflow-runners.mdx +16 -0
- package/.docs/raw/evals/built-in-scorers.mdx +54 -0
- package/.docs/raw/{scorers → evals}/custom-scorers.mdx +68 -22
- package/.docs/raw/{scorers → evals}/overview.mdx +19 -20
- package/.docs/raw/evals/running-in-ci.mdx +113 -0
- package/.docs/raw/getting-started/{installation.mdx → manual-install.mdx} +30 -103
- package/.docs/raw/getting-started/mcp-docs-server.mdx +57 -32
- package/.docs/raw/getting-started/project-structure.mdx +4 -4
- package/.docs/raw/getting-started/start.mdx +88 -0
- package/.docs/raw/getting-started/studio.mdx +39 -56
- package/.docs/raw/guides/agent-frameworks/ai-sdk.mdx +151 -0
- package/.docs/raw/guides/build-your-ui/ai-sdk-ui.mdx +1581 -0
- package/.docs/raw/{frameworks/agentic-uis → guides/build-your-ui}/assistant-ui.mdx +75 -23
- package/.docs/raw/guides/build-your-ui/copilotkit.mdx +227 -0
- package/.docs/raw/{deployment/cloud-providers → guides/deployment}/amazon-ec2.mdx +13 -13
- package/.docs/raw/{deployment/cloud-providers → guides/deployment}/aws-lambda.mdx +18 -19
- package/.docs/raw/{deployment/cloud-providers → guides/deployment}/azure-app-services.mdx +7 -9
- package/.docs/raw/{deployment/serverless-platforms → guides/deployment}/cloudflare-deployer.mdx +10 -7
- package/.docs/raw/{deployment/cloud-providers → guides/deployment}/digital-ocean.mdx +22 -27
- package/.docs/raw/guides/deployment/index.mdx +32 -0
- package/.docs/raw/guides/deployment/inngest.mdx +673 -0
- package/.docs/raw/{deployment/serverless-platforms → guides/deployment}/netlify-deployer.mdx +52 -17
- package/.docs/raw/{deployment/serverless-platforms → guides/deployment}/vercel-deployer.mdx +10 -7
- package/.docs/raw/guides/getting-started/astro.mdx +441 -0
- package/.docs/raw/guides/getting-started/express.mdx +128 -0
- package/.docs/raw/guides/getting-started/hono.mdx +227 -0
- package/.docs/raw/guides/getting-started/next-js.mdx +388 -0
- package/.docs/raw/guides/getting-started/nuxt.mdx +505 -0
- package/.docs/raw/guides/getting-started/quickstart.mdx +97 -0
- package/.docs/raw/guides/getting-started/sveltekit.mdx +329 -0
- package/.docs/raw/guides/getting-started/vite-react.mdx +425 -0
- package/.docs/raw/guides/guide/ai-recruiter.mdx +263 -0
- package/.docs/raw/guides/guide/chef-michel.mdx +268 -0
- package/.docs/raw/guides/guide/notes-mcp-server.mdx +450 -0
- package/.docs/raw/guides/guide/research-assistant.mdx +379 -0
- package/.docs/raw/guides/guide/stock-agent.mdx +183 -0
- package/.docs/raw/guides/guide/web-search.mdx +293 -0
- package/.docs/raw/guides/guide/whatsapp-chat-bot.mdx +421 -0
- package/.docs/raw/guides/index.mdx +10 -0
- package/.docs/raw/guides/migrations/agentnetwork.mdx +114 -0
- package/.docs/raw/guides/migrations/ai-sdk-v4-to-v5.mdx +119 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/_template.mdx +50 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/agent.mdx +416 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/cli.mdx +62 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/client.mdx +363 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/deployment.mdx +42 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/evals.mdx +260 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/mastra.mdx +160 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/mcp.mdx +114 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/memory.mdx +306 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/overview.mdx +120 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/processors.mdx +73 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/rag.mdx +47 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/storage.mdx +596 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/tools.mdx +180 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/tracing.mdx +335 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/vectors.mdx +92 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/voice.mdx +39 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/workflows.mdx +353 -0
- package/.docs/raw/guides/migrations/vnext-to-standard-apis.mdx +365 -0
- package/.docs/raw/index.mdx +9 -9
- package/.docs/raw/mastra-cloud/deployment.mdx +86 -0
- package/.docs/raw/mastra-cloud/observability.mdx +17 -25
- package/.docs/raw/mastra-cloud/overview.mdx +15 -49
- package/.docs/raw/mastra-cloud/setup.mdx +64 -0
- package/.docs/raw/mastra-cloud/studio.mdx +35 -0
- package/.docs/raw/mcp/overview.mdx +393 -0
- package/.docs/raw/mcp/publishing-mcp-server.mdx +142 -0
- package/.docs/raw/memory/memory-processors.mdx +273 -82
- package/.docs/raw/memory/message-history.mdx +72 -0
- package/.docs/raw/memory/overview.mdx +42 -76
- package/.docs/raw/memory/semantic-recall.mdx +77 -59
- package/.docs/raw/memory/storage.mdx +248 -0
- package/.docs/raw/memory/working-memory.mdx +41 -21
- package/.docs/raw/observability/logging.mdx +21 -20
- package/.docs/raw/observability/overview.mdx +37 -35
- package/.docs/raw/observability/tracing/bridges/otel.mdx +203 -0
- package/.docs/raw/observability/{ai-tracing → tracing}/exporters/arize.mdx +89 -24
- package/.docs/raw/observability/{ai-tracing → tracing}/exporters/braintrust.mdx +40 -20
- package/.docs/raw/observability/{ai-tracing → tracing}/exporters/cloud.mdx +34 -21
- package/.docs/raw/observability/tracing/exporters/datadog.mdx +175 -0
- package/.docs/raw/observability/{ai-tracing → tracing}/exporters/default.mdx +45 -28
- package/.docs/raw/observability/tracing/exporters/laminar.mdx +89 -0
- package/.docs/raw/observability/tracing/exporters/langfuse.mdx +205 -0
- package/.docs/raw/observability/tracing/exporters/langsmith.mdx +121 -0
- package/.docs/raw/observability/tracing/exporters/otel.mdx +457 -0
- package/.docs/raw/observability/tracing/exporters/posthog.mdx +137 -0
- package/.docs/raw/observability/tracing/exporters/sentry.mdx +198 -0
- package/.docs/raw/observability/tracing/overview.mdx +1128 -0
- package/.docs/raw/observability/{ai-tracing → tracing}/processors/sensitive-data-filter.mdx +40 -20
- package/.docs/raw/rag/chunking-and-embedding.mdx +37 -49
- package/.docs/raw/rag/graph-rag.mdx +223 -0
- package/.docs/raw/rag/overview.mdx +11 -17
- package/.docs/raw/rag/retrieval.mdx +110 -97
- package/.docs/raw/rag/vector-databases.mdx +150 -29
- package/.docs/raw/reference/agents/agent.mdx +54 -50
- package/.docs/raw/reference/agents/generate.mdx +410 -146
- package/.docs/raw/reference/agents/generateLegacy.mdx +13 -11
- package/.docs/raw/reference/agents/getDefaultGenerateOptions.mdx +24 -16
- package/.docs/raw/reference/agents/getDefaultOptions.mdx +71 -0
- package/.docs/raw/reference/agents/getDefaultStreamOptions.mdx +25 -17
- package/.docs/raw/reference/agents/getDescription.mdx +4 -2
- package/.docs/raw/reference/agents/getInstructions.mdx +12 -10
- package/.docs/raw/reference/agents/getLLM.mdx +14 -12
- package/.docs/raw/reference/agents/getMemory.mdx +13 -11
- package/.docs/raw/reference/agents/getModel.mdx +14 -12
- package/.docs/raw/reference/agents/getTools.mdx +11 -9
- package/.docs/raw/reference/agents/getVoice.mdx +12 -10
- package/.docs/raw/reference/agents/listAgents.mdx +13 -11
- package/.docs/raw/reference/agents/listScorers.mdx +71 -0
- package/.docs/raw/reference/agents/listTools.mdx +71 -0
- package/.docs/raw/reference/agents/listWorkflows.mdx +71 -0
- package/.docs/raw/reference/agents/network.mdx +134 -60
- package/.docs/raw/reference/ai-sdk/chat-route.mdx +130 -0
- package/.docs/raw/reference/ai-sdk/handle-chat-stream.mdx +119 -0
- package/.docs/raw/reference/ai-sdk/handle-network-stream.mdx +66 -0
- package/.docs/raw/reference/ai-sdk/handle-workflow-stream.mdx +118 -0
- package/.docs/raw/reference/ai-sdk/network-route.mdx +102 -0
- package/.docs/raw/reference/ai-sdk/to-ai-sdk-stream.mdx +293 -0
- package/.docs/raw/reference/ai-sdk/to-ai-sdk-v4-messages.mdx +130 -0
- package/.docs/raw/reference/ai-sdk/to-ai-sdk-v5-messages.mdx +110 -0
- package/.docs/raw/reference/ai-sdk/with-mastra.mdx +122 -0
- package/.docs/raw/reference/ai-sdk/workflow-route.mdx +113 -0
- package/.docs/raw/reference/auth/auth0.mdx +9 -7
- package/.docs/raw/reference/auth/clerk.mdx +9 -7
- package/.docs/raw/reference/auth/firebase.mdx +12 -11
- package/.docs/raw/reference/auth/jwt.mdx +9 -7
- package/.docs/raw/reference/auth/supabase.mdx +9 -7
- package/.docs/raw/reference/auth/workos.mdx +9 -7
- package/.docs/raw/reference/cli/create-mastra.mdx +13 -11
- package/.docs/raw/reference/cli/mastra.mdx +72 -23
- package/.docs/raw/reference/client-js/agents.mdx +316 -86
- package/.docs/raw/reference/client-js/error-handling.mdx +4 -4
- package/.docs/raw/reference/client-js/logs.mdx +4 -2
- package/.docs/raw/reference/client-js/mastra-client.mdx +20 -18
- package/.docs/raw/reference/client-js/memory.mdx +116 -20
- package/.docs/raw/reference/client-js/observability.mdx +14 -12
- package/.docs/raw/reference/client-js/telemetry.mdx +3 -1
- package/.docs/raw/reference/client-js/tools.mdx +4 -2
- package/.docs/raw/reference/client-js/vectors.mdx +3 -1
- package/.docs/raw/reference/client-js/workflows.mdx +132 -87
- package/.docs/raw/reference/configuration.mdx +761 -0
- package/.docs/raw/reference/core/addGateway.mdx +61 -0
- package/.docs/raw/reference/core/getAgent.mdx +4 -2
- package/.docs/raw/reference/core/getAgentById.mdx +4 -2
- package/.docs/raw/reference/core/getDeployer.mdx +4 -2
- package/.docs/raw/reference/core/getGateway.mdx +61 -0
- package/.docs/raw/reference/core/getGatewayById.mdx +64 -0
- package/.docs/raw/reference/core/getLogger.mdx +5 -3
- package/.docs/raw/reference/core/getMCPServer.mdx +34 -16
- package/.docs/raw/reference/core/getMCPServerById.mdx +83 -0
- package/.docs/raw/reference/core/getMemory.mdx +50 -9
- package/.docs/raw/reference/core/getScorer.mdx +6 -4
- package/.docs/raw/reference/core/getScorerById.mdx +81 -0
- package/.docs/raw/reference/core/getServer.mdx +7 -5
- package/.docs/raw/reference/core/getStorage.mdx +6 -4
- package/.docs/raw/reference/core/getStoredAgentById.mdx +185 -0
- package/.docs/raw/reference/core/getTelemetry.mdx +6 -4
- package/.docs/raw/reference/core/getVector.mdx +4 -2
- package/.docs/raw/reference/core/getWorkflow.mdx +4 -2
- package/.docs/raw/reference/core/{getAgents.mdx → listAgents.mdx} +8 -6
- package/.docs/raw/reference/core/listGateways.mdx +55 -0
- package/.docs/raw/reference/core/{getLogs.mdx → listLogs.mdx} +9 -7
- package/.docs/raw/reference/core/{getLogsByRunId.mdx → listLogsByRunId.mdx} +9 -7
- package/.docs/raw/reference/core/listMCPServers.mdx +67 -0
- package/.docs/raw/reference/core/listMemory.mdx +74 -0
- package/.docs/raw/reference/core/listScorers.mdx +45 -0
- package/.docs/raw/reference/core/listStoredAgents.mdx +153 -0
- package/.docs/raw/reference/core/{getVectors.mdx → listVectors.mdx} +8 -6
- package/.docs/raw/reference/core/{getWorkflows.mdx → listWorkflows.mdx} +8 -6
- package/.docs/raw/reference/core/mastra-class.mdx +47 -23
- package/.docs/raw/reference/core/mastra-model-gateway.mdx +229 -0
- package/.docs/raw/reference/core/setLogger.mdx +5 -3
- package/.docs/raw/reference/core/setStorage.mdx +8 -5
- package/.docs/raw/reference/deployer/cloudflare.mdx +24 -55
- package/.docs/raw/reference/deployer/deployer.mdx +3 -8
- package/.docs/raw/reference/deployer/netlify.mdx +6 -4
- package/.docs/raw/reference/deployer/vercel.mdx +8 -7
- package/.docs/raw/reference/evals/answer-relevancy.mdx +99 -128
- package/.docs/raw/reference/evals/answer-similarity.mdx +196 -0
- package/.docs/raw/reference/evals/bias.mdx +91 -112
- package/.docs/raw/reference/evals/completeness.mdx +93 -118
- package/.docs/raw/reference/evals/content-similarity.mdx +73 -117
- package/.docs/raw/reference/evals/context-precision.mdx +195 -137
- package/.docs/raw/reference/{scorers → evals}/context-relevance.mdx +19 -17
- package/.docs/raw/reference/{scorers → evals}/create-scorer.mdx +80 -63
- package/.docs/raw/reference/evals/faithfulness.mdx +94 -122
- package/.docs/raw/reference/evals/hallucination.mdx +89 -134
- package/.docs/raw/reference/evals/keyword-coverage.mdx +94 -126
- package/.docs/raw/reference/{scorers → evals}/mastra-scorer.mdx +9 -5
- package/.docs/raw/reference/{scorers → evals}/noise-sensitivity.mdx +22 -20
- package/.docs/raw/reference/evals/prompt-alignment.mdx +606 -182
- package/.docs/raw/reference/{scorers/run-experiment.mdx → evals/run-evals.mdx} +21 -20
- package/.docs/raw/reference/evals/scorer-utils.mdx +365 -0
- package/.docs/raw/reference/evals/textual-difference.mdx +80 -118
- package/.docs/raw/reference/evals/tone-consistency.mdx +80 -126
- package/.docs/raw/reference/{scorers → evals}/tool-call-accuracy.mdx +37 -33
- package/.docs/raw/reference/evals/toxicity.mdx +93 -97
- package/.docs/raw/reference/index.mdx +2 -0
- package/.docs/raw/reference/{observability/logging → logging}/pino-logger.mdx +12 -10
- package/.docs/raw/reference/memory/clone-utilities.mdx +345 -0
- package/.docs/raw/reference/memory/cloneThread.mdx +237 -0
- package/.docs/raw/reference/memory/createThread.mdx +7 -5
- package/.docs/raw/reference/memory/deleteMessages.mdx +10 -8
- package/.docs/raw/reference/memory/getThreadById.mdx +4 -2
- package/.docs/raw/reference/memory/listThreads.mdx +187 -0
- package/.docs/raw/reference/memory/memory-class.mdx +38 -29
- package/.docs/raw/reference/memory/{query.mdx → recall.mdx} +60 -61
- package/.docs/raw/reference/observability/tracing/bridges/otel.mdx +181 -0
- package/.docs/raw/reference/observability/tracing/configuration.mdx +292 -0
- package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/arize.mdx +66 -18
- package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/braintrust.mdx +35 -11
- package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/cloud-exporter.mdx +32 -20
- package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/console-exporter.mdx +53 -18
- package/.docs/raw/reference/observability/tracing/exporters/datadog.mdx +172 -0
- package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/default-exporter.mdx +53 -42
- package/.docs/raw/reference/observability/tracing/exporters/laminar.mdx +139 -0
- package/.docs/raw/reference/observability/tracing/exporters/langfuse.mdx +184 -0
- package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/langsmith.mdx +38 -9
- package/.docs/raw/reference/observability/{ai-tracing → tracing}/exporters/otel.mdx +87 -80
- package/.docs/raw/reference/observability/tracing/exporters/posthog.mdx +153 -0
- package/.docs/raw/reference/observability/tracing/exporters/sentry.mdx +224 -0
- package/.docs/raw/reference/observability/tracing/instances.mdx +166 -0
- package/.docs/raw/reference/observability/{ai-tracing → tracing}/interfaces.mdx +165 -94
- package/.docs/raw/reference/observability/{ai-tracing → tracing}/processors/sensitive-data-filter.mdx +6 -4
- package/.docs/raw/reference/observability/{ai-tracing/span.mdx → tracing/spans.mdx} +60 -44
- package/.docs/raw/reference/processors/batch-parts-processor.mdx +22 -18
- package/.docs/raw/reference/processors/language-detector.mdx +41 -37
- package/.docs/raw/reference/processors/message-history-processor.mdx +134 -0
- package/.docs/raw/reference/processors/moderation-processor.mdx +66 -35
- package/.docs/raw/reference/processors/pii-detector.mdx +67 -37
- package/.docs/raw/reference/processors/processor-interface.mdx +805 -0
- package/.docs/raw/reference/processors/prompt-injection-detector.mdx +40 -35
- package/.docs/raw/reference/processors/semantic-recall-processor.mdx +202 -0
- package/.docs/raw/reference/processors/system-prompt-scrubber.mdx +38 -36
- package/.docs/raw/reference/processors/token-limiter-processor.mdx +80 -40
- package/.docs/raw/reference/processors/tool-call-filter.mdx +127 -0
- package/.docs/raw/reference/processors/unicode-normalizer.mdx +26 -19
- package/.docs/raw/reference/processors/working-memory-processor.mdx +224 -0
- package/.docs/raw/reference/rag/chunk.mdx +7 -13
- package/.docs/raw/reference/rag/database-config.mdx +12 -10
- package/.docs/raw/reference/rag/document.mdx +3 -1
- package/.docs/raw/reference/rag/embeddings.mdx +8 -6
- package/.docs/raw/reference/rag/extract-params.mdx +58 -4
- package/.docs/raw/reference/rag/graph-rag.mdx +3 -1
- package/.docs/raw/reference/rag/metadata-filters.mdx +32 -9
- package/.docs/raw/reference/rag/rerank.mdx +4 -3
- package/.docs/raw/reference/rag/rerankWithScorer.mdx +3 -2
- package/.docs/raw/reference/server/create-route.mdx +330 -0
- package/.docs/raw/reference/server/express-adapter.mdx +221 -0
- package/.docs/raw/reference/server/fastify-adapter.mdx +130 -0
- package/.docs/raw/reference/server/hono-adapter.mdx +204 -0
- package/.docs/raw/reference/server/koa-adapter.mdx +129 -0
- package/.docs/raw/reference/server/mastra-server.mdx +334 -0
- package/.docs/raw/reference/server/routes.mdx +313 -0
- package/.docs/raw/reference/storage/cloudflare-d1.mdx +44 -2
- package/.docs/raw/reference/storage/cloudflare.mdx +13 -3
- package/.docs/raw/reference/storage/composite.mdx +245 -0
- package/.docs/raw/reference/storage/convex.mdx +166 -0
- package/.docs/raw/reference/storage/dynamodb.mdx +135 -13
- package/.docs/raw/reference/storage/lance.mdx +40 -3
- package/.docs/raw/reference/storage/libsql.mdx +92 -31
- package/.docs/raw/reference/storage/mongodb.mdx +149 -11
- package/.docs/raw/reference/storage/mssql.mdx +53 -6
- package/.docs/raw/{server-db/storage.mdx → reference/storage/overview.mdx} +15 -90
- package/.docs/raw/reference/storage/postgresql.mdx +268 -80
- package/.docs/raw/reference/storage/upstash.mdx +80 -3
- package/.docs/raw/reference/streaming/ChunkType.mdx +33 -5
- package/.docs/raw/reference/streaming/agents/MastraModelOutput.mdx +68 -7
- package/.docs/raw/reference/streaming/agents/stream.mdx +126 -156
- package/.docs/raw/reference/streaming/agents/streamLegacy.mdx +11 -9
- package/.docs/raw/reference/streaming/workflows/observeStream.mdx +13 -13
- package/.docs/raw/reference/streaming/workflows/{resumeStreamVNext.mdx → resumeStream.mdx} +60 -18
- package/.docs/raw/reference/streaming/workflows/stream.mdx +112 -38
- package/.docs/raw/reference/streaming/workflows/timeTravelStream.mdx +172 -0
- package/.docs/raw/reference/templates/overview.mdx +6 -8
- package/.docs/raw/reference/tools/client.mdx +5 -3
- package/.docs/raw/reference/tools/create-tool.mdx +306 -36
- package/.docs/raw/reference/tools/document-chunker-tool.mdx +3 -1
- package/.docs/raw/reference/tools/graph-rag-tool.mdx +59 -22
- package/.docs/raw/reference/tools/mcp-client.mdx +248 -31
- package/.docs/raw/reference/tools/mcp-server.mdx +442 -56
- package/.docs/raw/reference/tools/vector-query-tool.mdx +106 -42
- package/.docs/raw/reference/vectors/astra.mdx +6 -4
- package/.docs/raw/reference/vectors/chroma.mdx +87 -5
- package/.docs/raw/reference/vectors/convex.mdx +431 -0
- package/.docs/raw/reference/vectors/couchbase.mdx +39 -24
- package/.docs/raw/reference/vectors/duckdb.mdx +464 -0
- package/.docs/raw/reference/vectors/elasticsearch.mdx +318 -0
- package/.docs/raw/reference/vectors/lance.mdx +45 -27
- package/.docs/raw/reference/vectors/libsql.mdx +102 -15
- package/.docs/raw/reference/vectors/mongodb.mdx +133 -14
- package/.docs/raw/reference/vectors/opensearch.mdx +68 -20
- package/.docs/raw/reference/vectors/pg.mdx +105 -43
- package/.docs/raw/reference/vectors/pinecone.mdx +90 -8
- package/.docs/raw/reference/vectors/qdrant.mdx +185 -6
- package/.docs/raw/reference/vectors/s3vectors.mdx +10 -8
- package/.docs/raw/reference/vectors/turbopuffer.mdx +81 -5
- package/.docs/raw/reference/vectors/upstash.mdx +62 -7
- package/.docs/raw/reference/vectors/vectorize.mdx +6 -4
- package/.docs/raw/reference/voice/azure.mdx +98 -81
- package/.docs/raw/reference/voice/cloudflare.mdx +3 -1
- package/.docs/raw/reference/voice/composite-voice.mdx +76 -29
- package/.docs/raw/reference/voice/deepgram.mdx +3 -1
- package/.docs/raw/reference/voice/elevenlabs.mdx +3 -1
- package/.docs/raw/reference/voice/google-gemini-live.mdx +6 -3
- package/.docs/raw/reference/voice/google.mdx +162 -21
- package/.docs/raw/reference/voice/mastra-voice.mdx +3 -1
- package/.docs/raw/reference/voice/murf.mdx +3 -1
- package/.docs/raw/reference/voice/openai-realtime.mdx +6 -3
- package/.docs/raw/reference/voice/openai.mdx +3 -1
- package/.docs/raw/reference/voice/playai.mdx +3 -1
- package/.docs/raw/reference/voice/sarvam.mdx +3 -1
- package/.docs/raw/reference/voice/speechify.mdx +3 -1
- package/.docs/raw/reference/voice/voice.addInstructions.mdx +6 -4
- package/.docs/raw/reference/voice/voice.addTools.mdx +8 -5
- package/.docs/raw/reference/voice/voice.answer.mdx +6 -2
- package/.docs/raw/reference/voice/voice.close.mdx +5 -2
- package/.docs/raw/reference/voice/voice.connect.mdx +7 -3
- package/.docs/raw/reference/voice/voice.events.mdx +3 -1
- package/.docs/raw/reference/voice/voice.getSpeakers.mdx +4 -1
- package/.docs/raw/reference/voice/voice.listen.mdx +93 -53
- package/.docs/raw/reference/voice/voice.off.mdx +4 -2
- package/.docs/raw/reference/voice/voice.on.mdx +7 -3
- package/.docs/raw/reference/voice/voice.send.mdx +6 -2
- package/.docs/raw/reference/voice/voice.speak.mdx +82 -41
- package/.docs/raw/reference/voice/voice.updateConfig.mdx +4 -2
- package/.docs/raw/reference/workflows/run-methods/cancel.mdx +59 -9
- package/.docs/raw/reference/workflows/run-methods/restart.mdx +142 -0
- package/.docs/raw/reference/workflows/run-methods/resume.mdx +63 -17
- package/.docs/raw/reference/workflows/run-methods/start.mdx +68 -22
- package/.docs/raw/reference/workflows/run-methods/startAsync.mdx +145 -0
- package/.docs/raw/reference/workflows/run-methods/timeTravel.mdx +312 -0
- package/.docs/raw/reference/workflows/run.mdx +38 -15
- package/.docs/raw/reference/workflows/step.mdx +73 -7
- package/.docs/raw/reference/workflows/workflow-methods/branch.mdx +5 -3
- package/.docs/raw/reference/workflows/workflow-methods/commit.mdx +4 -2
- package/.docs/raw/reference/workflows/workflow-methods/create-run.mdx +45 -14
- package/.docs/raw/reference/workflows/workflow-methods/dountil.mdx +4 -2
- package/.docs/raw/reference/workflows/workflow-methods/dowhile.mdx +4 -2
- package/.docs/raw/reference/workflows/workflow-methods/foreach.mdx +72 -5
- package/.docs/raw/reference/workflows/workflow-methods/map.mdx +80 -3
- package/.docs/raw/reference/workflows/workflow-methods/parallel.mdx +4 -2
- package/.docs/raw/reference/workflows/workflow-methods/sleep.mdx +5 -7
- package/.docs/raw/reference/workflows/workflow-methods/sleepUntil.mdx +5 -7
- package/.docs/raw/reference/workflows/workflow-methods/then.mdx +4 -2
- package/.docs/raw/reference/workflows/workflow.mdx +207 -11
- package/.docs/raw/{auth → server/auth}/auth0.mdx +47 -28
- package/.docs/raw/{auth → server/auth}/clerk.mdx +42 -21
- package/.docs/raw/{auth → server/auth}/firebase.mdx +54 -32
- package/.docs/raw/{auth → server/auth}/index.mdx +9 -7
- package/.docs/raw/{auth → server/auth}/jwt.mdx +29 -17
- package/.docs/raw/{auth → server/auth}/supabase.mdx +52 -32
- package/.docs/raw/{auth → server/auth}/workos.mdx +48 -29
- package/.docs/raw/server/custom-adapters.mdx +396 -0
- package/.docs/raw/{server-db → server}/custom-api-routes.mdx +11 -11
- package/.docs/raw/{server-db → server}/mastra-client.mdx +41 -44
- package/.docs/raw/server/mastra-server.mdx +86 -0
- package/.docs/raw/{server-db → server}/middleware.mdx +43 -41
- package/.docs/raw/server/request-context.mdx +235 -0
- package/.docs/raw/server/server-adapters.mdx +410 -0
- package/.docs/raw/streaming/events.mdx +18 -9
- package/.docs/raw/streaming/overview.mdx +52 -28
- package/.docs/raw/streaming/tool-streaming.mdx +75 -33
- package/.docs/raw/streaming/workflow-streaming.mdx +15 -21
- package/.docs/raw/tools-mcp/advanced-usage.mdx +11 -9
- package/.docs/raw/tools-mcp/mcp-overview.mdx +72 -27
- package/.docs/raw/tools-mcp/overview.mdx +21 -20
- package/.docs/raw/voice/overview.mdx +124 -42
- package/.docs/raw/voice/speech-to-speech.mdx +14 -7
- package/.docs/raw/voice/speech-to-text.mdx +8 -4
- package/.docs/raw/voice/text-to-speech.mdx +7 -4
- package/.docs/raw/workflows/agents-and-tools.mdx +73 -26
- package/.docs/raw/workflows/control-flow.mdx +697 -134
- package/.docs/raw/workflows/error-handling.mdx +198 -42
- package/.docs/raw/workflows/human-in-the-loop.mdx +161 -210
- package/.docs/raw/workflows/input-data-mapping.mdx +11 -9
- package/.docs/raw/workflows/overview.mdx +202 -83
- package/.docs/raw/workflows/snapshots.mdx +28 -50
- package/.docs/raw/workflows/suspend-and-resume.mdx +125 -208
- package/.docs/raw/workflows/time-travel.mdx +317 -0
- package/.docs/raw/workflows/workflow-state.mdx +189 -0
- package/CHANGELOG.md +419 -4
- package/README.md +47 -2
- package/dist/{chunk-TUAHUTTB.js → chunk-4CM2BQNP.js} +27 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/logger.d.ts +3 -0
- package/dist/logger.d.ts.map +1 -1
- package/dist/prepare-docs/copy-raw.d.ts.map +1 -1
- package/dist/prepare-docs/package-changes.d.ts.map +1 -1
- package/dist/prepare-docs/prepare.js +1 -1
- package/dist/prompts/migration.d.ts +6 -0
- package/dist/prompts/migration.d.ts.map +1 -0
- package/dist/stdio.js +1107 -40
- package/dist/tools/course.d.ts.map +1 -1
- package/dist/tools/embedded-docs.d.ts +276 -0
- package/dist/tools/embedded-docs.d.ts.map +1 -0
- package/dist/tools/migration.d.ts +40 -0
- package/dist/tools/migration.d.ts.map +1 -0
- package/package.json +17 -17
- package/.docs/raw/deployment/cloud-providers/index.mdx +0 -55
- package/.docs/raw/deployment/server-deployment.mdx +0 -81
- package/.docs/raw/deployment/serverless-platforms/index.mdx +0 -55
- package/.docs/raw/frameworks/agentic-uis/ai-sdk.mdx +0 -671
- package/.docs/raw/frameworks/agentic-uis/cedar-os.mdx +0 -123
- package/.docs/raw/frameworks/agentic-uis/copilotkit.mdx +0 -382
- package/.docs/raw/frameworks/agentic-uis/openrouter.mdx +0 -176
- package/.docs/raw/frameworks/servers/express.mdx +0 -209
- package/.docs/raw/frameworks/web-frameworks/astro.mdx +0 -602
- package/.docs/raw/frameworks/web-frameworks/next-js.mdx +0 -379
- package/.docs/raw/frameworks/web-frameworks/sveltekit.mdx +0 -486
- package/.docs/raw/frameworks/web-frameworks/vite-react.mdx +0 -255
- package/.docs/raw/getting-started/templates.mdx +0 -65
- package/.docs/raw/mastra-cloud/dashboard.mdx +0 -100
- package/.docs/raw/mastra-cloud/setting-up.mdx +0 -105
- package/.docs/raw/memory/conversation-history.mdx +0 -23
- package/.docs/raw/memory/storage/memory-with-libsql.mdx +0 -140
- package/.docs/raw/memory/storage/memory-with-pg.mdx +0 -138
- package/.docs/raw/memory/storage/memory-with-upstash.mdx +0 -146
- package/.docs/raw/memory/threads-and-resources.mdx +0 -95
- package/.docs/raw/observability/ai-tracing/exporters/langfuse.mdx +0 -122
- package/.docs/raw/observability/ai-tracing/exporters/langsmith.mdx +0 -88
- package/.docs/raw/observability/ai-tracing/exporters/otel.mdx +0 -263
- package/.docs/raw/observability/ai-tracing/overview.mdx +0 -812
- package/.docs/raw/observability/nextjs-tracing.mdx +0 -109
- package/.docs/raw/observability/otel-tracing.mdx +0 -189
- package/.docs/raw/reference/agents/getScorers.mdx +0 -69
- package/.docs/raw/reference/agents/getWorkflows.mdx +0 -69
- package/.docs/raw/reference/client-js/workflows-legacy.mdx +0 -143
- package/.docs/raw/reference/core/getMCPServers.mdx +0 -36
- package/.docs/raw/reference/core/getScorerByName.mdx +0 -78
- package/.docs/raw/reference/core/getScorers.mdx +0 -43
- package/.docs/raw/reference/core/setTelemetry.mdx +0 -36
- package/.docs/raw/reference/evals/context-position.mdx +0 -197
- package/.docs/raw/reference/evals/context-relevancy.mdx +0 -196
- package/.docs/raw/reference/evals/contextual-recall.mdx +0 -196
- package/.docs/raw/reference/evals/summarization.mdx +0 -212
- package/.docs/raw/reference/legacyWorkflows/after.mdx +0 -89
- package/.docs/raw/reference/legacyWorkflows/afterEvent.mdx +0 -79
- package/.docs/raw/reference/legacyWorkflows/commit.mdx +0 -33
- package/.docs/raw/reference/legacyWorkflows/createRun.mdx +0 -76
- package/.docs/raw/reference/legacyWorkflows/else.mdx +0 -68
- package/.docs/raw/reference/legacyWorkflows/events.mdx +0 -305
- package/.docs/raw/reference/legacyWorkflows/execute.mdx +0 -110
- package/.docs/raw/reference/legacyWorkflows/if.mdx +0 -108
- package/.docs/raw/reference/legacyWorkflows/resume.mdx +0 -158
- package/.docs/raw/reference/legacyWorkflows/resumeWithEvent.mdx +0 -133
- package/.docs/raw/reference/legacyWorkflows/snapshots.mdx +0 -207
- package/.docs/raw/reference/legacyWorkflows/start.mdx +0 -87
- package/.docs/raw/reference/legacyWorkflows/step-class.mdx +0 -100
- package/.docs/raw/reference/legacyWorkflows/step-condition.mdx +0 -137
- package/.docs/raw/reference/legacyWorkflows/step-function.mdx +0 -93
- package/.docs/raw/reference/legacyWorkflows/step-options.mdx +0 -69
- package/.docs/raw/reference/legacyWorkflows/step-retries.mdx +0 -196
- package/.docs/raw/reference/legacyWorkflows/suspend.mdx +0 -70
- package/.docs/raw/reference/legacyWorkflows/then.mdx +0 -72
- package/.docs/raw/reference/legacyWorkflows/until.mdx +0 -168
- package/.docs/raw/reference/legacyWorkflows/watch.mdx +0 -124
- package/.docs/raw/reference/legacyWorkflows/while.mdx +0 -168
- package/.docs/raw/reference/legacyWorkflows/workflow.mdx +0 -234
- package/.docs/raw/reference/memory/getThreadsByResourceId.mdx +0 -79
- package/.docs/raw/reference/memory/getThreadsByResourceIdPaginated.mdx +0 -110
- package/.docs/raw/reference/observability/ai-tracing/ai-tracing.mdx +0 -186
- package/.docs/raw/reference/observability/ai-tracing/configuration.mdx +0 -238
- package/.docs/raw/reference/observability/ai-tracing/exporters/langfuse.mdx +0 -116
- package/.docs/raw/reference/observability/otel-tracing/otel-config.mdx +0 -117
- package/.docs/raw/reference/observability/otel-tracing/providers/arize-ax.mdx +0 -81
- package/.docs/raw/reference/observability/otel-tracing/providers/arize-phoenix.mdx +0 -121
- package/.docs/raw/reference/observability/otel-tracing/providers/braintrust.mdx +0 -40
- package/.docs/raw/reference/observability/otel-tracing/providers/dash0.mdx +0 -40
- package/.docs/raw/reference/observability/otel-tracing/providers/index.mdx +0 -20
- package/.docs/raw/reference/observability/otel-tracing/providers/keywordsai.mdx +0 -73
- package/.docs/raw/reference/observability/otel-tracing/providers/laminar.mdx +0 -41
- package/.docs/raw/reference/observability/otel-tracing/providers/langfuse.mdx +0 -84
- package/.docs/raw/reference/observability/otel-tracing/providers/langsmith.mdx +0 -48
- package/.docs/raw/reference/observability/otel-tracing/providers/langwatch.mdx +0 -43
- package/.docs/raw/reference/observability/otel-tracing/providers/new-relic.mdx +0 -40
- package/.docs/raw/reference/observability/otel-tracing/providers/signoz.mdx +0 -40
- package/.docs/raw/reference/observability/otel-tracing/providers/traceloop.mdx +0 -40
- package/.docs/raw/reference/scorers/answer-relevancy.mdx +0 -227
- package/.docs/raw/reference/scorers/answer-similarity.mdx +0 -439
- package/.docs/raw/reference/scorers/bias.mdx +0 -228
- package/.docs/raw/reference/scorers/completeness.mdx +0 -214
- package/.docs/raw/reference/scorers/content-similarity.mdx +0 -197
- package/.docs/raw/reference/scorers/context-precision.mdx +0 -352
- package/.docs/raw/reference/scorers/faithfulness.mdx +0 -241
- package/.docs/raw/reference/scorers/hallucination.mdx +0 -252
- package/.docs/raw/reference/scorers/keyword-coverage.mdx +0 -229
- package/.docs/raw/reference/scorers/prompt-alignment.mdx +0 -668
- package/.docs/raw/reference/scorers/textual-difference.mdx +0 -203
- package/.docs/raw/reference/scorers/tone-consistency.mdx +0 -211
- package/.docs/raw/reference/scorers/toxicity.mdx +0 -228
- package/.docs/raw/reference/streaming/workflows/observeStreamVNext.mdx +0 -47
- package/.docs/raw/reference/streaming/workflows/streamVNext.mdx +0 -153
- package/.docs/raw/reference/workflows/run-methods/watch.mdx +0 -73
- package/.docs/raw/reference/workflows/workflow-methods/sendEvent.mdx +0 -70
- package/.docs/raw/reference/workflows/workflow-methods/waitForEvent.mdx +0 -66
- package/.docs/raw/scorers/evals-old-api/custom-eval.mdx +0 -24
- package/.docs/raw/scorers/evals-old-api/overview.mdx +0 -106
- package/.docs/raw/scorers/evals-old-api/running-in-ci.mdx +0 -85
- package/.docs/raw/scorers/evals-old-api/textual-evals.mdx +0 -58
- package/.docs/raw/scorers/off-the-shelf-scorers.mdx +0 -50
- package/.docs/raw/server-db/production-server.mdx +0 -89
- package/.docs/raw/server-db/runtime-context.mdx +0 -193
- package/.docs/raw/workflows/inngest-workflow.mdx +0 -363
- package/.docs/raw/workflows-legacy/control-flow.mdx +0 -774
- package/.docs/raw/workflows-legacy/dynamic-workflows.mdx +0 -239
- package/.docs/raw/workflows-legacy/error-handling.mdx +0 -187
- package/.docs/raw/workflows-legacy/nested-workflows.mdx +0 -360
- package/.docs/raw/workflows-legacy/overview.mdx +0 -182
- package/.docs/raw/workflows-legacy/runtime-variables.mdx +0 -156
- package/.docs/raw/workflows-legacy/steps.mdx +0 -115
- package/.docs/raw/workflows-legacy/suspend-and-resume.mdx +0 -406
- package/.docs/raw/workflows-legacy/variables.mdx +0 -318
|
@@ -1,302 +1,502 @@
|
|
|
1
1
|
# @mastra/deployer
|
|
2
2
|
|
|
3
|
-
## 0.
|
|
3
|
+
## 1.0.4
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
- Updated dependencies [[`
|
|
8
|
-
- @mastra/
|
|
9
|
-
- @mastra/
|
|
7
|
+
- Updated dependencies [[`4dc9a51`](https://github.com/mastra-ai/mastra/commit/4dc9a51be626fd9ed51da3ad7e78dedeaabade88)]:
|
|
8
|
+
- @mastra/server@1.0.4
|
|
9
|
+
- @mastra/core@1.0.4
|
|
10
10
|
|
|
11
|
-
## 0.
|
|
11
|
+
## 1.0.4-alpha.0
|
|
12
12
|
|
|
13
13
|
### Patch Changes
|
|
14
14
|
|
|
15
|
-
- Updated dependencies [[`
|
|
16
|
-
- @mastra/
|
|
17
|
-
- @mastra/
|
|
15
|
+
- Updated dependencies [[`4dc9a51`](https://github.com/mastra-ai/mastra/commit/4dc9a51be626fd9ed51da3ad7e78dedeaabade88)]:
|
|
16
|
+
- @mastra/server@1.0.4-alpha.0
|
|
17
|
+
- @mastra/core@1.0.4-alpha.0
|
|
18
18
|
|
|
19
|
-
## 0.
|
|
19
|
+
## 1.0.0
|
|
20
20
|
|
|
21
|
-
###
|
|
21
|
+
### Major Changes
|
|
22
22
|
|
|
23
|
-
-
|
|
23
|
+
- Moving scorers under the eval domain, api method consistency, prebuilt evals, scorers require ids. ([#9589](https://github.com/mastra-ai/mastra/pull/9589))
|
|
24
24
|
|
|
25
|
-
-
|
|
26
|
-
- @mastra/server@0.22.1
|
|
27
|
-
- @mastra/core@0.22.1
|
|
25
|
+
- Every Mastra primitive (agent, MCPServer, workflow, tool, processor, scorer, and vector) now has a get, list, and add method associated with it. Each primitive also now requires an id to be set. ([#9675](https://github.com/mastra-ai/mastra/pull/9675))
|
|
28
26
|
|
|
29
|
-
|
|
27
|
+
Primitives that are added to other primitives are also automatically added to the Mastra instance
|
|
30
28
|
|
|
31
|
-
|
|
29
|
+
- Update handlers to use `listWorkflowRuns` instead of `getWorkflowRuns`. Fix type names from `StoragelistThreadsByResourceIdInput/Output` to `StorageListThreadsByResourceIdInput/Output`. ([#9507](https://github.com/mastra-ai/mastra/pull/9507))
|
|
32
30
|
|
|
33
|
-
-
|
|
31
|
+
- Remove `getMessagesPaginated()` and add `perPage: false` support ([#9670](https://github.com/mastra-ai/mastra/pull/9670))
|
|
34
32
|
|
|
35
|
-
|
|
36
|
-
- @mastra/server@0.22.1-alpha.0
|
|
37
|
-
- @mastra/core@0.22.1-alpha.0
|
|
33
|
+
Removes deprecated `getMessagesPaginated()` method. The `listMessages()` API and score handlers now support `perPage: false` to fetch all records without pagination limits.
|
|
38
34
|
|
|
39
|
-
|
|
35
|
+
**Storage changes:**
|
|
36
|
+
- `StoragePagination.perPage` type changed from `number` to `number | false`
|
|
37
|
+
- All storage implementations support `perPage: false`:
|
|
38
|
+
- Memory: `listMessages()`
|
|
39
|
+
- Scores: `listScoresBySpan()`, `listScoresByRunId()`, `listScoresByExecutionId()`
|
|
40
|
+
- HTTP query parser accepts `"false"` string (e.g., `?perPage=false`)
|
|
40
41
|
|
|
41
|
-
|
|
42
|
+
**Memory changes:**
|
|
43
|
+
- `memory.query()` parameter type changed from `StorageGetMessagesArg` to `StorageListMessagesInput`
|
|
44
|
+
- Uses flat parameters (`page`, `perPage`, `include`, `filter`, `vectorSearchString`) instead of `selectBy` object
|
|
42
45
|
|
|
43
|
-
|
|
46
|
+
**Stricter validation:**
|
|
47
|
+
- `listMessages()` requires non-empty, non-whitespace `threadId` (throws error instead of returning empty results)
|
|
44
48
|
|
|
45
|
-
|
|
49
|
+
**Migration:**
|
|
46
50
|
|
|
47
|
-
|
|
51
|
+
```typescript
|
|
52
|
+
// Storage/Memory: Replace getMessagesPaginated with listMessages
|
|
53
|
+
- storage.getMessagesPaginated({ threadId, selectBy: { pagination: { page: 0, perPage: 20 } } })
|
|
54
|
+
+ storage.listMessages({ threadId, page: 0, perPage: 20 })
|
|
55
|
+
+ storage.listMessages({ threadId, page: 0, perPage: false }) // Fetch all
|
|
48
56
|
|
|
49
|
-
|
|
57
|
+
// Memory: Replace selectBy with flat parameters
|
|
58
|
+
- memory.query({ threadId, selectBy: { last: 20, include: [...] } })
|
|
59
|
+
+ memory.query({ threadId, perPage: 20, include: [...] })
|
|
50
60
|
|
|
51
|
-
|
|
61
|
+
// Client SDK
|
|
62
|
+
- thread.getMessagesPaginated({ selectBy: { pagination: { page: 0 } } })
|
|
63
|
+
+ thread.listMessages({ page: 0, perPage: 20 })
|
|
64
|
+
```
|
|
52
65
|
|
|
53
|
-
-
|
|
66
|
+
- **Removed `storage.getMessages()`** ([#9695](https://github.com/mastra-ai/mastra/pull/9695))
|
|
54
67
|
|
|
55
|
-
|
|
68
|
+
The `getMessages()` method has been removed from all storage implementations. Use `listMessages()` instead, which provides pagination support.
|
|
56
69
|
|
|
57
|
-
|
|
58
|
-
- @mastra/core@0.22.0
|
|
59
|
-
- @mastra/server@0.22.0
|
|
70
|
+
**Migration:**
|
|
60
71
|
|
|
61
|
-
|
|
72
|
+
```typescript
|
|
73
|
+
// Before
|
|
74
|
+
const messages = await storage.getMessages({ threadId: 'thread-1' });
|
|
62
75
|
|
|
63
|
-
|
|
76
|
+
// After
|
|
77
|
+
const result = await storage.listMessages({
|
|
78
|
+
threadId: 'thread-1',
|
|
79
|
+
page: 0,
|
|
80
|
+
perPage: 50,
|
|
81
|
+
});
|
|
82
|
+
const messages = result.messages; // Access messages array
|
|
83
|
+
console.log(result.total); // Total count
|
|
84
|
+
console.log(result.hasMore); // Whether more pages exist
|
|
85
|
+
```
|
|
64
86
|
|
|
65
|
-
|
|
87
|
+
**Message ordering default**
|
|
66
88
|
|
|
67
|
-
|
|
89
|
+
`listMessages()` defaults to ASC (oldest first) ordering by `createdAt`, matching the previous `getMessages()` behavior.
|
|
68
90
|
|
|
69
|
-
|
|
91
|
+
**To use DESC ordering (newest first):**
|
|
70
92
|
|
|
71
|
-
|
|
93
|
+
```typescript
|
|
94
|
+
const result = await storage.listMessages({
|
|
95
|
+
threadId: 'thread-1',
|
|
96
|
+
orderBy: { field: 'createdAt', direction: 'DESC' },
|
|
97
|
+
});
|
|
98
|
+
```
|
|
72
99
|
|
|
73
|
-
|
|
100
|
+
**Renamed `client.getThreadMessages()` → `client.listThreadMessages()`**
|
|
74
101
|
|
|
75
|
-
|
|
102
|
+
**Migration:**
|
|
76
103
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
104
|
+
```typescript
|
|
105
|
+
// Before
|
|
106
|
+
const response = await client.getThreadMessages(threadId, { agentId });
|
|
80
107
|
|
|
81
|
-
|
|
108
|
+
// After
|
|
109
|
+
const response = await client.listThreadMessages(threadId, { agentId });
|
|
110
|
+
```
|
|
82
111
|
|
|
83
|
-
|
|
112
|
+
The response format remains the same.
|
|
84
113
|
|
|
85
|
-
|
|
114
|
+
**Removed `StorageGetMessagesArg` type**
|
|
86
115
|
|
|
87
|
-
|
|
88
|
-
- @mastra/core@0.21.2-alpha.0
|
|
89
|
-
- @mastra/server@0.21.2-alpha.0
|
|
116
|
+
Use `StorageListMessagesInput` instead:
|
|
90
117
|
|
|
91
|
-
|
|
118
|
+
```typescript
|
|
119
|
+
// Before
|
|
120
|
+
import type { StorageGetMessagesArg } from '@mastra/core';
|
|
92
121
|
|
|
93
|
-
|
|
122
|
+
// After
|
|
123
|
+
import type { StorageListMessagesInput } from '@mastra/core';
|
|
124
|
+
```
|
|
94
125
|
|
|
95
|
-
-
|
|
126
|
+
- Bump minimum required Node.js version to 22.13.0 ([#9706](https://github.com/mastra-ai/mastra/pull/9706))
|
|
96
127
|
|
|
97
|
-
-
|
|
128
|
+
- Replace `getThreadsByResourceIdPaginated` with `listThreadsByResourceId` across memory handlers. Update client SDK to use `listThreads()` with `offset`/`limit` parameters instead of deprecated `getMemoryThreads()`. Consolidate `/api/memory/threads` routes to single paginated endpoint. ([#9508](https://github.com/mastra-ai/mastra/pull/9508))
|
|
98
129
|
|
|
99
|
-
-
|
|
100
|
-
- Hotfix a bug inside `@rollup/plugin-commonjs`
|
|
101
|
-
- Have more control over the versions in the future to not have breakages over night
|
|
130
|
+
- Rename RuntimeContext to RequestContext ([#9511](https://github.com/mastra-ai/mastra/pull/9511))
|
|
102
131
|
|
|
103
|
-
-
|
|
104
|
-
- @mastra/core@0.21.1
|
|
105
|
-
- @mastra/server@0.21.1
|
|
132
|
+
- Remove `getThreadsByResourceId` and `getThreadsByResourceIdPaginated` methods from storage interfaces in favor of `listThreadsByResourceId`. The new method uses `offset`/`limit` pagination and a nested `orderBy` object structure (`{ field, direction }`). ([#9536](https://github.com/mastra-ai/mastra/pull/9536))
|
|
106
133
|
|
|
107
|
-
|
|
134
|
+
- Experimental auth -> auth ([#9660](https://github.com/mastra-ai/mastra/pull/9660))
|
|
108
135
|
|
|
109
|
-
|
|
136
|
+
- Serve the Mastra Studio from `studio` folder (previously `playground`). ([#11751](https://github.com/mastra-ai/mastra/pull/11751))
|
|
137
|
+
|
|
138
|
+
The function signature for `createNodeServer()` changed, `playground` was renamed to `studio`:
|
|
139
|
+
|
|
140
|
+
```ts
|
|
141
|
+
await createNodeServer(mastra, { studio: true, swaggerUI: false, tools: {} });
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
- Renamed a bunch of observability/tracing-related things to drop the AI prefix. ([#9744](https://github.com/mastra-ai/mastra/pull/9744))
|
|
145
|
+
|
|
146
|
+
- **Breaking Change**: Remove legacy v1 watch events and consolidate on v2 implementation. ([#9252](https://github.com/mastra-ai/mastra/pull/9252))
|
|
147
|
+
|
|
148
|
+
This change simplifies the workflow watching API by removing the legacy v1 event system and promoting v2 as the standard (renamed to just `watch`).
|
|
149
|
+
|
|
150
|
+
**What's Changed**
|
|
151
|
+
- Removed legacy v1 watch event handlers and types
|
|
152
|
+
- Renamed `watch-v2` to `watch` throughout the codebase
|
|
153
|
+
- Removed `.watch()` method from client-js SDK (`Workflow` and `AgentBuilder` classes)
|
|
154
|
+
- Removed `/watch` HTTP endpoints from server and deployer
|
|
155
|
+
- Removed `WorkflowWatchResult` and v1 `WatchEvent` types
|
|
156
|
+
|
|
157
|
+
- Pagination APIs now use `page`/`perPage` instead of `offset`/`limit` ([#9592](https://github.com/mastra-ai/mastra/pull/9592))
|
|
110
158
|
|
|
111
|
-
|
|
159
|
+
All storage and memory pagination APIs have been updated to use `page` (0-indexed) and `perPage` instead of `offset` and `limit`, aligning with standard REST API patterns.
|
|
112
160
|
|
|
113
|
-
|
|
161
|
+
**Affected APIs:**
|
|
162
|
+
- `Memory.listThreadsByResourceId()`
|
|
163
|
+
- `Memory.listMessages()`
|
|
164
|
+
- `Storage.listWorkflowRuns()`
|
|
114
165
|
|
|
115
|
-
|
|
116
|
-
- Hotfix a bug inside `@rollup/plugin-commonjs`
|
|
117
|
-
- Have more control over the versions in the future to not have breakages over night
|
|
166
|
+
**Migration:**
|
|
118
167
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
168
|
+
```typescript
|
|
169
|
+
// Before
|
|
170
|
+
await memory.listThreadsByResourceId({
|
|
171
|
+
resourceId: 'user-123',
|
|
172
|
+
offset: 20,
|
|
173
|
+
limit: 10,
|
|
174
|
+
});
|
|
122
175
|
|
|
123
|
-
|
|
176
|
+
// After
|
|
177
|
+
await memory.listThreadsByResourceId({
|
|
178
|
+
resourceId: 'user-123',
|
|
179
|
+
page: 2, // page = Math.floor(offset / limit)
|
|
180
|
+
perPage: 10,
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
// Before
|
|
184
|
+
await memory.listMessages({
|
|
185
|
+
threadId: 'thread-456',
|
|
186
|
+
offset: 20,
|
|
187
|
+
limit: 10,
|
|
188
|
+
});
|
|
189
|
+
|
|
190
|
+
// After
|
|
191
|
+
await memory.listMessages({
|
|
192
|
+
threadId: 'thread-456',
|
|
193
|
+
page: 2,
|
|
194
|
+
perPage: 10,
|
|
195
|
+
});
|
|
196
|
+
|
|
197
|
+
// Before
|
|
198
|
+
await storage.listWorkflowRuns({
|
|
199
|
+
workflowName: 'my-workflow',
|
|
200
|
+
offset: 20,
|
|
201
|
+
limit: 10,
|
|
202
|
+
});
|
|
203
|
+
|
|
204
|
+
// After
|
|
205
|
+
await storage.listWorkflowRuns({
|
|
206
|
+
workflowName: 'my-workflow',
|
|
207
|
+
page: 2,
|
|
208
|
+
perPage: 10,
|
|
209
|
+
});
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
**Additional improvements:**
|
|
213
|
+
- Added validation for negative `page` values in all storage implementations
|
|
214
|
+
- Improved `perPage` validation to handle edge cases (negative values, `0`, `false`)
|
|
215
|
+
- Added reusable query parser utilities for consistent validation in handlers
|
|
216
|
+
|
|
217
|
+
- ```ts ([#9709](https://github.com/mastra-ai/mastra/pull/9709))
|
|
218
|
+
import { Mastra } from '@mastra/core';
|
|
219
|
+
import { Observability } from '@mastra/observability'; // Explicit import
|
|
220
|
+
|
|
221
|
+
const mastra = new Mastra({
|
|
222
|
+
...other_config,
|
|
223
|
+
observability: new Observability({
|
|
224
|
+
default: { enabled: true },
|
|
225
|
+
}), // Instance
|
|
226
|
+
});
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
Instead of:
|
|
230
|
+
|
|
231
|
+
```ts
|
|
232
|
+
import { Mastra } from '@mastra/core';
|
|
233
|
+
import '@mastra/observability/init'; // Explicit import
|
|
234
|
+
|
|
235
|
+
const mastra = new Mastra({
|
|
236
|
+
...other_config,
|
|
237
|
+
observability: {
|
|
238
|
+
default: { enabled: true },
|
|
239
|
+
},
|
|
240
|
+
});
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
Also renamed a bunch of:
|
|
244
|
+
- `Tracing` things to `Observability` things.
|
|
245
|
+
- `AI-` things to just things.
|
|
246
|
+
|
|
247
|
+
- Changing getAgents -> listAgents, getTools -> listTools, getWorkflows -> listWorkflows ([#9495](https://github.com/mastra-ai/mastra/pull/9495))
|
|
248
|
+
|
|
249
|
+
- Removed old tracing code based on OpenTelemetry ([#9237](https://github.com/mastra-ai/mastra/pull/9237))
|
|
250
|
+
|
|
251
|
+
- Mark as stable ([`83d5942`](https://github.com/mastra-ai/mastra/commit/83d5942669ce7bba4a6ca4fd4da697a10eb5ebdc))
|
|
252
|
+
|
|
253
|
+
- moved ai-tracing code into @mastra/observability ([#9661](https://github.com/mastra-ai/mastra/pull/9661))
|
|
254
|
+
|
|
255
|
+
- Remove legacy evals from Mastra ([#9491](https://github.com/mastra-ai/mastra/pull/9491))
|
|
124
256
|
|
|
125
257
|
### Minor Changes
|
|
126
258
|
|
|
127
|
-
-
|
|
259
|
+
- Add `onError` hook to server configuration for custom error handling. ([#11403](https://github.com/mastra-ai/mastra/pull/11403))
|
|
128
260
|
|
|
129
|
-
|
|
261
|
+
You can now provide a custom error handler through the Mastra server config to catch errors, format responses, or send them to external services like Sentry:
|
|
130
262
|
|
|
131
|
-
|
|
263
|
+
```typescript
|
|
264
|
+
import { Mastra } from '@mastra/core/mastra';
|
|
265
|
+
|
|
266
|
+
const mastra = new Mastra({
|
|
267
|
+
server: {
|
|
268
|
+
onError: (err, c) => {
|
|
269
|
+
// Send to Sentry
|
|
270
|
+
Sentry.captureException(err);
|
|
132
271
|
|
|
133
|
-
|
|
134
|
-
|
|
272
|
+
// Return custom formatted response
|
|
273
|
+
return c.json(
|
|
274
|
+
{
|
|
275
|
+
error: err.message,
|
|
276
|
+
timestamp: new Date().toISOString(),
|
|
277
|
+
},
|
|
278
|
+
500,
|
|
279
|
+
);
|
|
280
|
+
},
|
|
281
|
+
},
|
|
282
|
+
});
|
|
283
|
+
```
|
|
135
284
|
|
|
136
|
-
|
|
285
|
+
If no `onError` is provided, the default error handler is used.
|
|
137
286
|
|
|
138
|
-
|
|
287
|
+
Fixes #9610
|
|
139
288
|
|
|
140
|
-
- Update peer dependencies to match core package version bump (0.
|
|
289
|
+
- Update peer dependencies to match core package version bump (1.0.0) ([#9237](https://github.com/mastra-ai/mastra/pull/9237))
|
|
141
290
|
|
|
142
|
-
-
|
|
291
|
+
- Update peer dependencies to match core package version bump (0.22.1) ([#8649](https://github.com/mastra-ai/mastra/pull/8649))
|
|
143
292
|
|
|
144
|
-
-
|
|
293
|
+
- Add observeStream support for agent-builder template installation ([#9372](https://github.com/mastra-ai/mastra/pull/9372))
|
|
294
|
+
- Add observeStream, observeStreamVNext, observeStreamLegacy, and resumeStream methods to agent-builder client SDK
|
|
295
|
+
- Add corresponding server handlers and deployer routes for observe streaming
|
|
296
|
+
- Add tracingOptions parameter to existing agent-builder handlers for parity with workflows
|
|
297
|
+
- Update template installation processor to support both legacy and VNext streaming event formats
|
|
145
298
|
|
|
146
|
-
-
|
|
299
|
+
- Set `externals: true` as the default for `mastra build` and cloud-deployer to reduce bundle issues with native dependencies. ([`0dbf199`](https://github.com/mastra-ai/mastra/commit/0dbf199110f22192ce5c95b1c8148d4872b4d119))
|
|
147
300
|
|
|
148
|
-
|
|
149
|
-
- Fixes transpilation of ts files with binary dependencies
|
|
150
|
-
- Add logging to add packages to externals
|
|
151
|
-
- Updated dependencies [[`1ed9670`](https://github.com/mastra-ai/mastra/commit/1ed9670d3ca50cb60dc2e517738c5eef3968ed27), [`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`f59fc1e`](https://github.com/mastra-ai/mastra/commit/f59fc1e406b8912e692f6bff6cfd4754cc8d165c), [`158381d`](https://github.com/mastra-ai/mastra/commit/158381d39335be934b81ef8a1947bccace492c25), [`a1799bc`](https://github.com/mastra-ai/mastra/commit/a1799bcc1b5a1cdc188f2ac0165f17a1c4ac6f7b), [`6ff6094`](https://github.com/mastra-ai/mastra/commit/6ff60946f4ecfebdeef6e21d2b230c2204f2c9b8), [`2ddb851`](https://github.com/mastra-ai/mastra/commit/2ddb8519c4b6f1d31be10ffd33b41d2b649a04ff), [`fb703b9`](https://github.com/mastra-ai/mastra/commit/fb703b9634eeaff1a6eb2b5531ce0f9e8fb04727), [`37a2314`](https://github.com/mastra-ai/mastra/commit/37a23148e0e5a3b40d4f9f098b194671a8a49faf), [`7b1ef57`](https://github.com/mastra-ai/mastra/commit/7b1ef57fc071c2aa2a2e32905b18cd88719c5a39), [`05a9dee`](https://github.com/mastra-ai/mastra/commit/05a9dee3d355694d28847bfffb6289657fcf7dfa), [`e3c1077`](https://github.com/mastra-ai/mastra/commit/e3c107763aedd1643d3def5df450c235da9ff76c), [`1908ca0`](https://github.com/mastra-ai/mastra/commit/1908ca0521f90e43779cc29ab590173ca560443c), [`1bccdb3`](https://github.com/mastra-ai/mastra/commit/1bccdb33eb90cbeba2dc5ece1c2561fb774b26b6), [`5ef944a`](https://github.com/mastra-ai/mastra/commit/5ef944a3721d93105675cac2b2311432ff8cc393), [`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`d6b186f`](https://github.com/mastra-ai/mastra/commit/d6b186fb08f1caf1b86f73d3a5ee88fb999ca3be), [`ee68e82`](https://github.com/mastra-ai/mastra/commit/ee68e8289ea4408d29849e899bc6e78b3bd4e843), [`228228b`](https://github.com/mastra-ai/mastra/commit/228228b0b1de9291cb8887587f5cea1a8757ebad), [`ea33930`](https://github.com/mastra-ai/mastra/commit/ea339301e82d6318257720d811b043014ee44064), [`65493b3`](https://github.com/mastra-ai/mastra/commit/65493b31c36f6fdb78f9679f7e1ecf0c250aa5ee), [`a998b8f`](https://github.com/mastra-ai/mastra/commit/a998b8f858091c2ec47683e60766cf12d03001e4), [`b5a66b7`](https://github.com/mastra-ai/mastra/commit/b5a66b748a14fc8b3f63b04642ddb9621fbcc9e0), [`8a37bdd`](https://github.com/mastra-ai/mastra/commit/8a37bddb6d8614a32c5b70303d583d80c620ea61), [`7b1ef57`](https://github.com/mastra-ai/mastra/commit/7b1ef57fc071c2aa2a2e32905b18cd88719c5a39), [`135d6f2`](https://github.com/mastra-ai/mastra/commit/135d6f22a326ed1dffff858700669dff09d2c9eb), [`228228b`](https://github.com/mastra-ai/mastra/commit/228228b0b1de9291cb8887587f5cea1a8757ebad)]:
|
|
152
|
-
- @mastra/core@0.21.0
|
|
153
|
-
- @mastra/server@0.21.0
|
|
301
|
+
**Note:** If you previously relied on the default bundling behavior (all dependencies bundled), you can explicitly set `externals: false` in your bundler configuration.
|
|
154
302
|
|
|
155
|
-
|
|
303
|
+
- Added /health endpoint for service monitoring ([#9142](https://github.com/mastra-ai/mastra/pull/9142))
|
|
304
|
+
|
|
305
|
+
- Update peer dependencies to match core package version bump (0.22.3) ([#9144](https://github.com/mastra-ai/mastra/pull/9144))
|
|
156
306
|
|
|
157
307
|
### Patch Changes
|
|
158
308
|
|
|
159
|
-
-
|
|
160
|
-
-
|
|
161
|
-
- @mastra/core@0.21.0-alpha.4
|
|
309
|
+
- dependencies updates: ([#10131](https://github.com/mastra-ai/mastra/pull/10131))
|
|
310
|
+
- Updated dependency [`hono@^4.10.5` ↗︎](https://www.npmjs.com/package/hono/v/4.10.5) (from `^4.9.7`, in `dependencies`)
|
|
162
311
|
|
|
163
|
-
|
|
312
|
+
- dependencies updates: ([#11642](https://github.com/mastra-ai/mastra/pull/11642))
|
|
313
|
+
- Updated dependency [`fs-extra@^11.3.3` ↗︎](https://www.npmjs.com/package/fs-extra/v/11.3.3) (from `^11.3.2`, in `dependencies`)
|
|
164
314
|
|
|
165
|
-
|
|
315
|
+
- dependencies updates: ([`77ff370`](https://github.com/mastra-ai/mastra/commit/77ff370186ba77955620c465fd2e95360e1947ea))
|
|
316
|
+
- Updated dependency [`@babel/core@^7.28.5` ↗︎](https://www.npmjs.com/package/@babel/core/v/7.28.5) (from `^7.28.4`, in `dependencies`)
|
|
166
317
|
|
|
167
|
-
-
|
|
168
|
-
-
|
|
169
|
-
-
|
|
318
|
+
- dependencies updates: ([#9779](https://github.com/mastra-ai/mastra/pull/9779))
|
|
319
|
+
- Updated dependency [`@rollup/plugin-alias@6.0.0` ↗︎](https://www.npmjs.com/package/@rollup/plugin-alias/v/6.0.0) (from `5.1.1`, in `dependencies`)
|
|
320
|
+
- Updated dependency [`@rollup/plugin-commonjs@29.0.6` ↗︎](https://www.npmjs.com/package/@rollup/plugin-commonjs/v/29.0.6) (from `29.0.0`, in `dependencies`)
|
|
170
321
|
|
|
171
|
-
|
|
322
|
+
- dependencies updates: ([#9780](https://github.com/mastra-ai/mastra/pull/9780))
|
|
323
|
+
- Updated dependency [`@rollup/plugin-commonjs@29.0.0` ↗︎](https://www.npmjs.com/package/@rollup/plugin-commonjs/v/29.0.0) (from `28.0.6`, in `dependencies`)
|
|
172
324
|
|
|
173
|
-
|
|
325
|
+
- dependencies updates: ([#9851](https://github.com/mastra-ai/mastra/pull/9851))
|
|
326
|
+
- Updated dependency [`@rollup/plugin-node-resolve@16.0.3` ↗︎](https://www.npmjs.com/package/@rollup/plugin-node-resolve/v/16.0.3) (from `16.0.2`, in `dependencies`)
|
|
174
327
|
|
|
175
|
-
-
|
|
176
|
-
- @mastra/core@0.21.0-alpha.2
|
|
177
|
-
- @mastra/server@0.21.0-alpha.2
|
|
328
|
+
- Add support for configuring a cloud API endpoint via `MASTRA_CLOUD_API_ENDPOINT` environment variable. This value is now injected into the playground frontend as `window.MASTRA_CLOUD_API_ENDPOINT`. ([#11887](https://github.com/mastra-ai/mastra/pull/11887))
|
|
178
329
|
|
|
179
|
-
|
|
330
|
+
- Add embedded documentation support for Mastra packages ([#11472](https://github.com/mastra-ai/mastra/pull/11472))
|
|
180
331
|
|
|
181
|
-
|
|
332
|
+
Mastra packages now include embedded documentation in the published npm package under `dist/docs/`. This enables coding agents and AI assistants to understand and use the framework by reading documentation directly from `node_modules`.
|
|
182
333
|
|
|
183
|
-
|
|
334
|
+
Each package includes:
|
|
335
|
+
- **SKILL.md** - Entry point explaining the package's purpose and capabilities
|
|
336
|
+
- **SOURCE_MAP.json** - Machine-readable index mapping exports to types and implementation files
|
|
337
|
+
- **Topic folders** - Conceptual documentation organized by feature area
|
|
184
338
|
|
|
185
|
-
|
|
339
|
+
Documentation is driven by the `packages` frontmatter field in MDX files, which maps docs to their corresponding packages. CI validation ensures all docs include this field.
|
|
186
340
|
|
|
187
|
-
-
|
|
188
|
-
- Fixes transpilation of ts files with binary dependencies
|
|
189
|
-
- Add logging to add packages to externals
|
|
190
|
-
- Updated dependencies [[`1ed9670`](https://github.com/mastra-ai/mastra/commit/1ed9670d3ca50cb60dc2e517738c5eef3968ed27), [`158381d`](https://github.com/mastra-ai/mastra/commit/158381d39335be934b81ef8a1947bccace492c25), [`fb703b9`](https://github.com/mastra-ai/mastra/commit/fb703b9634eeaff1a6eb2b5531ce0f9e8fb04727), [`37a2314`](https://github.com/mastra-ai/mastra/commit/37a23148e0e5a3b40d4f9f098b194671a8a49faf), [`05a9dee`](https://github.com/mastra-ai/mastra/commit/05a9dee3d355694d28847bfffb6289657fcf7dfa), [`e3c1077`](https://github.com/mastra-ai/mastra/commit/e3c107763aedd1643d3def5df450c235da9ff76c), [`1bccdb3`](https://github.com/mastra-ai/mastra/commit/1bccdb33eb90cbeba2dc5ece1c2561fb774b26b6), [`5ef944a`](https://github.com/mastra-ai/mastra/commit/5ef944a3721d93105675cac2b2311432ff8cc393), [`d6b186f`](https://github.com/mastra-ai/mastra/commit/d6b186fb08f1caf1b86f73d3a5ee88fb999ca3be), [`65493b3`](https://github.com/mastra-ai/mastra/commit/65493b31c36f6fdb78f9679f7e1ecf0c250aa5ee), [`a998b8f`](https://github.com/mastra-ai/mastra/commit/a998b8f858091c2ec47683e60766cf12d03001e4), [`8a37bdd`](https://github.com/mastra-ai/mastra/commit/8a37bddb6d8614a32c5b70303d583d80c620ea61)]:
|
|
191
|
-
- @mastra/core@0.21.0-alpha.1
|
|
192
|
-
- @mastra/server@0.21.0-alpha.1
|
|
341
|
+
- Add --studio flag to bundle playground UI with mastra build ([#11327](https://github.com/mastra-ai/mastra/pull/11327))
|
|
193
342
|
|
|
194
|
-
|
|
343
|
+
Enables bundling the studio/playground UI into the build output so it can be served from the deployed server.
|
|
195
344
|
|
|
196
|
-
|
|
345
|
+
```bash
|
|
346
|
+
mastra build --studio
|
|
347
|
+
```
|
|
197
348
|
|
|
198
|
-
-
|
|
349
|
+
- Make step optional in all resume APIs ([#9454](https://github.com/mastra-ai/mastra/pull/9454))
|
|
199
350
|
|
|
200
|
-
-
|
|
351
|
+
- Fixed module resolution failing on Windows with `ERR_INVALID_URL_SCHEME` errors. Windows absolute paths (e.g., `C:\path\to\file`) are now correctly skipped during node_modules resolution instead of being treated as package names. ([#11639](https://github.com/mastra-ai/mastra/pull/11639))
|
|
201
352
|
|
|
202
|
-
|
|
353
|
+
- Improve analyze recursion in bundler when using monorepos ([#9490](https://github.com/mastra-ai/mastra/pull/9490))
|
|
203
354
|
|
|
204
|
-
-
|
|
205
|
-
- Updated dependency [`@rollup/plugin-node-resolve@^16.0.2` ↗︎](https://www.npmjs.com/package/@rollup/plugin-node-resolve/v/16.0.2) (from `^16.0.1`, in `dependencies`)
|
|
355
|
+
- Remove cast as any from MastraServer in deployer ([#10796](https://github.com/mastra-ai/mastra/pull/10796))
|
|
206
356
|
|
|
207
|
-
-
|
|
357
|
+
- Extract routing from @deployer/server into server adapter packages. ([#10263](https://github.com/mastra-ai/mastra/pull/10263))
|
|
358
|
+
New packages:
|
|
359
|
+
- @mastra/express
|
|
360
|
+
- @mastra/hono
|
|
208
361
|
|
|
209
|
-
|
|
362
|
+
These packages support mastra server routes on express and hono respectively.
|
|
363
|
+
Better abstractions will be built on top of these packages in the near future, enabling users to easily attach mastra routes to any existing server framework.
|
|
210
364
|
|
|
211
|
-
-
|
|
365
|
+
- Improve nested ts-config paths resolution for NX users ([#6243](https://github.com/mastra-ai/mastra/pull/6243))
|
|
212
366
|
|
|
213
|
-
-
|
|
367
|
+
- Rename "Playground" to "Studio" ([#10443](https://github.com/mastra-ai/mastra/pull/10443))
|
|
214
368
|
|
|
215
|
-
-
|
|
216
|
-
- @mastra/core@0.21.0-alpha.0
|
|
217
|
-
- @mastra/server@0.21.0-alpha.0
|
|
369
|
+
- Add exportConditions options to nodeResolve plugin to ensure proper handling of Node.js export condition resolution during production builds. ([#9394](https://github.com/mastra-ai/mastra/pull/9394))
|
|
218
370
|
|
|
219
|
-
|
|
371
|
+
- Fix dev playground auth to allow non-protected paths to bypass authentication when `MASTRA_DEV=true`, while still requiring the `x-mastra-dev-playground` header for protected endpoints ([#10722](https://github.com/mastra-ai/mastra/pull/10722))
|
|
220
372
|
|
|
221
|
-
|
|
373
|
+
- Fixed a bug where ESM shims were incorrectly injected even when the user had already declared `__filename` or `__dirname` ([#10809](https://github.com/mastra-ai/mastra/pull/10809))
|
|
222
374
|
|
|
223
|
-
-
|
|
224
|
-
- @mastra/server@0.20.2
|
|
225
|
-
- @mastra/core@0.20.2
|
|
375
|
+
- Fixes `mastra build` failing with `BABEL_TRANSFORM_ERROR` when using spread operator in Mastra config. The Babel plugins now correctly skip `SpreadElement` nodes when searching for config properties. ([#11309](https://github.com/mastra-ai/mastra/pull/11309))
|
|
226
376
|
|
|
227
|
-
|
|
377
|
+
Also fixes npm package aliases (like `"ai-v5": "npm:ai@5.0.93"`) not being resolved correctly when writing the output package.json - now uses the actual package name from the resolved package.json instead of the alias.
|
|
228
378
|
|
|
229
|
-
|
|
379
|
+
- Fixed Docker build failure with Bun due to invalid `file://` URLs ([#10960](https://github.com/mastra-ai/mastra/pull/10960))
|
|
230
380
|
|
|
231
|
-
-
|
|
232
|
-
- @mastra/server@0.20.2-alpha.1
|
|
233
|
-
- @mastra/core@0.20.2-alpha.1
|
|
381
|
+
- Fix npm resolving wrong @mastra/server version ([#11467](https://github.com/mastra-ai/mastra/pull/11467))
|
|
234
382
|
|
|
235
|
-
|
|
383
|
+
Changed `@mastra/server` dependency from `workspace:^` to `workspace:*` to prevent npm from resolving to incompatible stable versions (e.g., 1.0.3) instead of the required beta versions.
|
|
236
384
|
|
|
237
|
-
|
|
385
|
+
- Fix path alias resolution for extended tsconfig files. Reference issue: #11770 ([#11788](https://github.com/mastra-ai/mastra/pull/11788))
|
|
238
386
|
|
|
239
|
-
-
|
|
240
|
-
- @mastra/core@0.20.2-alpha.0
|
|
241
|
-
- @mastra/server@0.20.2-alpha.0
|
|
387
|
+
- Fixed bundling issues for packages without an `exports` field in their package.json. ([#11310](https://github.com/mastra-ai/mastra/pull/11310))
|
|
242
388
|
|
|
243
|
-
|
|
389
|
+
Previously, the deployer could produce incorrect import paths for older npm packages that don't use the modern exports map (like lodash). This caused runtime errors when deploying to production environments.
|
|
244
390
|
|
|
245
|
-
|
|
391
|
+
The fix ensures these packages now resolve correctly, while packages with proper exports maps continue to work as expected.
|
|
246
392
|
|
|
247
|
-
-
|
|
393
|
+
- The `hasPaths()` function now uses `strip-json-comments` to properly parse tsconfig.json files that contain comments. Previously, `JSON.parse()` would fail silently on JSONC comments, causing path aliases like `@src/*` to be incorrectly treated as npm scoped packages. ([#10952](https://github.com/mastra-ai/mastra/pull/10952))
|
|
248
394
|
|
|
249
|
-
|
|
250
|
-
- Custom routes are now protected by default or when specified with `requiresAuth: true`
|
|
251
|
-
- Custom routes properly inherit protection from parent patterns (like `/api/*`)
|
|
252
|
-
- Routes with explicit `requiresAuth: false` continue to work as public endpoints
|
|
253
|
-
- Enhanced `isProtectedPath` to consider both pattern matching and custom route auth config
|
|
395
|
+
- Remove extra console log statements in node-modules-extension-resolver ([#11470](https://github.com/mastra-ai/mastra/pull/11470))
|
|
254
396
|
|
|
255
|
-
|
|
397
|
+
- Add tool call approval ([#8649](https://github.com/mastra-ai/mastra/pull/8649))
|
|
256
398
|
|
|
257
|
-
-
|
|
399
|
+
- Fix error handling and serialization in agent streaming to ensure errors are consistently exposed and preserved. ([#9144](https://github.com/mastra-ai/mastra/pull/9144))
|
|
258
400
|
|
|
259
|
-
-
|
|
401
|
+
- **Breaking Changes** ([#11028](https://github.com/mastra-ai/mastra/pull/11028))
|
|
402
|
+
- Renamed `RuntimeContext` type to `ServerContext` to avoid confusion with the user-facing `RequestContext` (previously called `RuntimeContext`)
|
|
403
|
+
- Removed `playground` and `isDev` options from server adapter constructors - these only set context variables without any actual functionality
|
|
260
404
|
|
|
261
|
-
|
|
405
|
+
**Changes**
|
|
262
406
|
|
|
263
|
-
|
|
264
|
-
-
|
|
265
|
-
-
|
|
407
|
+
**@mastra/server**
|
|
408
|
+
- Renamed `RuntimeContext` type to `ServerContext` in route handler types
|
|
409
|
+
- Renamed `createTestRuntimeContext` to `createTestServerContext` in test utilities
|
|
410
|
+
- Renamed `isPlayground` parameter to `isStudio` in `formatAgent` function
|
|
266
411
|
|
|
267
|
-
|
|
412
|
+
**@mastra/hono**
|
|
413
|
+
- Removed `playground` and `isDev` from `HonoVariables` type
|
|
414
|
+
- Removed setting of `playground` and `isDev` context variables in middleware
|
|
268
415
|
|
|
269
|
-
|
|
416
|
+
**@mastra/express**
|
|
417
|
+
- Removed `playground` and `isDev` from `Express.Locals` interface
|
|
418
|
+
- Removed setting of `playground` and `isDev` in response locals
|
|
270
419
|
|
|
271
|
-
-
|
|
272
|
-
- @mastra/core@0.20.1-alpha.4
|
|
273
|
-
- @mastra/server@0.20.1-alpha.4
|
|
420
|
+
- Fixes issue where clicking the reset button in the model picker would fail to restore the original LanguageModelV2 (or any other types) object that was passed during agent construction. ([#9481](https://github.com/mastra-ai/mastra/pull/9481))
|
|
274
421
|
|
|
275
|
-
|
|
422
|
+
- Add Bun runtime detection for bundler platform selection ([#11548](https://github.com/mastra-ai/mastra/pull/11548))
|
|
276
423
|
|
|
277
|
-
|
|
424
|
+
When running under Bun, the bundler now uses `neutral` esbuild platform instead of `node` to preserve Bun-specific globals (like `Bun.s3`). This fixes compatibility issues where Bun APIs were being incorrectly transformed during the build process.
|
|
278
425
|
|
|
279
|
-
-
|
|
280
|
-
- @mastra/core@0.20.1-alpha.3
|
|
281
|
-
- @mastra/server@0.20.1-alpha.3
|
|
426
|
+
- Unified MastraServer API with MCP transport routes ([#10644](https://github.com/mastra-ai/mastra/pull/10644))
|
|
282
427
|
|
|
283
|
-
|
|
428
|
+
**Breaking Changes:**
|
|
429
|
+
- Renamed `HonoServerAdapter` to `MastraServer` in `@mastra/hono`
|
|
430
|
+
- Renamed `ExpressServerAdapter` to `MastraServer` in `@mastra/express`
|
|
431
|
+
- Configuration now passed to constructor instead of separate method calls
|
|
432
|
+
- Renamed base class from `ServerAdapter` to `MastraServerBase` in `@mastra/server`
|
|
284
433
|
|
|
285
|
-
|
|
434
|
+
**New Features:**
|
|
435
|
+
- Added MCP transport routes (HTTP and SSE) to server adapters
|
|
436
|
+
- MCP endpoints available at `/api/mcp/:serverId/mcp` (HTTP) and `/api/mcp/:serverId/sse` (SSE)
|
|
437
|
+
- Added `express.json()` middleware compatibility for MCP routes
|
|
438
|
+
- Moved authentication helpers from deployer to `@mastra/server/auth`
|
|
286
439
|
|
|
287
|
-
|
|
440
|
+
**Testing:**
|
|
441
|
+
- Added shared MCP route and transport test suites in `@internal/server-adapter-test-utils`
|
|
442
|
+
- Added comprehensive MCP endpoint tests for both Hono and Express adapters
|
|
443
|
+
- Added GitHub Actions workflow for server adapter CI testing
|
|
288
444
|
|
|
289
|
-
-
|
|
290
|
-
- @mastra/core@0.20.1-alpha.2
|
|
291
|
-
- @mastra/server@0.20.1-alpha.2
|
|
445
|
+
- Make sure external deps are built with side-effects. Fixes an issue with reflect-metadata #7328 ([#9714](https://github.com/mastra-ai/mastra/pull/9714))
|
|
292
446
|
|
|
293
|
-
|
|
447
|
+
- Remove deprecated playground-only prompt generation handler (functionality moved to @mastra/server) ([#11074](https://github.com/mastra-ai/mastra/pull/11074))
|
|
294
448
|
|
|
295
|
-
|
|
449
|
+
Improve prompt enhancement UX: show toast errors when enhancement fails, disable button when no model has a configured API key, and prevent users from disabling all models in the model list
|
|
450
|
+
|
|
451
|
+
Add missing `/api/agents/:agentId/instructions/enhance` endpoint that was referenced by `@mastra/client-js` and `@mastra/playground-ui`
|
|
452
|
+
|
|
453
|
+
- Fixed module not found errors during production builds by skipping transitive dependency validation. Production builds now only bundle direct dependencies, which also results in faster deployment times. ([#10587](https://github.com/mastra-ai/mastra/pull/10587))
|
|
454
|
+
|
|
455
|
+
- Add simple virtual check for tsconfigpaths plugin, misbehaves on CI ([#10832](https://github.com/mastra-ai/mastra/pull/10832))
|
|
456
|
+
|
|
457
|
+
- Simplify mastra intro doc template ([#9794](https://github.com/mastra-ai/mastra/pull/9794))
|
|
458
|
+
|
|
459
|
+
- Allow direct access to server app handle directly from Mastra instance. ([#10598](https://github.com/mastra-ai/mastra/pull/10598))
|
|
460
|
+
|
|
461
|
+
```ts
|
|
462
|
+
// Before: HTTP request to localhost
|
|
463
|
+
const response = await fetch(`http://localhost:5000/api/tools`);
|
|
464
|
+
|
|
465
|
+
// After: Direct call via app.fetch()
|
|
466
|
+
const app = mastra.getServerApp<Hono>();
|
|
467
|
+
const response = await app.fetch(new Request('http://internal/api/tools'));
|
|
468
|
+
```
|
|
469
|
+
|
|
470
|
+
- Added `mastra.getServerApp<T>()` to access the underlying Hono/Express app
|
|
471
|
+
- Added `mastra.getMastraServer()` and `mastra.setMastraServer()` for adapter access
|
|
472
|
+
- Added `MastraServerBase` class in `@mastra/core/server` for adapter implementations
|
|
473
|
+
- Server adapters now auto-register with Mastra in their constructor
|
|
474
|
+
|
|
475
|
+
- Fixed a bug where imports that were not used in the main entry point were tree-shaken during analysis, causing bundling errors. Tree-shaking now only runs during the bundling step. ([#10470](https://github.com/mastra-ai/mastra/pull/10470))
|
|
476
|
+
|
|
477
|
+
- Add back `/api` route during `mastra dev` which was accidentally removed. ([#12055](https://github.com/mastra-ai/mastra/pull/12055))
|
|
478
|
+
|
|
479
|
+
- Use a shared `getAllToolPaths()` method from the bundler to discover tool paths. ([#9204](https://github.com/mastra-ai/mastra/pull/9204))
|
|
480
|
+
|
|
481
|
+
- Remove unused /model-providers API ([#9533](https://github.com/mastra-ai/mastra/pull/9533))
|
|
482
|
+
|
|
483
|
+
- Internal changes to enable a custom base path for Mastra Studio ([#10441](https://github.com/mastra-ai/mastra/pull/10441))
|
|
484
|
+
|
|
485
|
+
- Fix undefined runtimeContext using memory from playground ([#9328](https://github.com/mastra-ai/mastra/pull/9328))
|
|
486
|
+
|
|
487
|
+
- Add restart method to workflow run that allows restarting an active workflow run ([#9750](https://github.com/mastra-ai/mastra/pull/9750))
|
|
488
|
+
Add status filter to `listWorkflowRuns`
|
|
489
|
+
Add automatic restart to restart active workflow runs when server starts
|
|
490
|
+
|
|
491
|
+
- Allow for `bundler.externals: true` to be set. ([#10218](https://github.com/mastra-ai/mastra/pull/10218))
|
|
492
|
+
|
|
493
|
+
With this configuration during `mastra build` all dependencies (except workspace dependencies) will be treated as "external" and not bundled. Instead they will be added to the `.mastra/output/package.json` file.
|
|
494
|
+
|
|
495
|
+
- Improved file persistence in dev mode. Files created by `mastra dev` are now saved in the public directory, so you can commit them to version control or ignore them via `.gitignore`. ([#11234](https://github.com/mastra-ai/mastra/pull/11234))
|
|
496
|
+
|
|
497
|
+
- Make step optional in resumeStreamVNext API ([#9453](https://github.com/mastra-ai/mastra/pull/9453))
|
|
296
498
|
|
|
297
|
-
-
|
|
499
|
+
- Add readable-streams to global externals, not compatible with CJS compilation ([#9735](https://github.com/mastra-ai/mastra/pull/9735))
|
|
298
500
|
|
|
299
|
-
Fixed a critical bug where custom routes were bypassing authentication when they should have been protected by default. The issue was in the `isProtectedPath` function which only checked pattern-based protection but ignored custom route configurations.
|
|
300
|
-
- Custom routes are now protected by default or when specified with `requiresAuth: true`
|
|
301
501
|
|
|
302
|
-
...
|
|
502
|
+
... 5922 more lines hidden. See full changelog in package directory.
|