@mastra/mcp-docs-server 1.0.0-beta.9 → 1.0.1
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 +3 -1
- package/.docs/organized/changelogs/%40internal%2Fexternal-types.md +3 -1
- package/.docs/organized/changelogs/%40internal%2Fplayground.md +60 -0
- package/.docs/organized/changelogs/%40internal%2Fstorage-test-utils.md +15 -15
- package/.docs/organized/changelogs/%40internal%2Ftypes-builder.md +3 -1
- package/.docs/organized/changelogs/%40mastra%2Fagent-builder.md +287 -287
- package/.docs/organized/changelogs/%40mastra%2Fai-sdk.md +302 -302
- package/.docs/organized/changelogs/%40mastra%2Fastra.md +53 -53
- package/.docs/organized/changelogs/%40mastra%2Fauth.md +38 -0
- package/.docs/organized/changelogs/%40mastra%2Fchroma.md +66 -66
- package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +522 -212
- package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +239 -239
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +439 -234
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +450 -211
- package/.docs/organized/changelogs/%40mastra%2Fcodemod.md +202 -0
- package/.docs/organized/changelogs/%40mastra%2Fconvex.md +448 -22
- package/.docs/organized/changelogs/%40mastra%2Fcore.md +348 -348
- package/.docs/organized/changelogs/%40mastra%2Fcouchbase.md +60 -60
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +287 -287
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +106 -106
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +90 -90
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +86 -86
- package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +221 -221
- package/.docs/organized/changelogs/%40mastra%2Fduckdb.md +70 -0
- package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +403 -225
- package/.docs/organized/changelogs/%40mastra%2Felasticsearch.md +72 -0
- package/.docs/organized/changelogs/%40mastra%2Fevals.md +145 -145
- package/.docs/organized/changelogs/%40mastra%2Ffastembed.md +54 -0
- package/.docs/organized/changelogs/%40mastra%2Flance.md +456 -226
- package/.docs/organized/changelogs/%40mastra%2Flibsql.md +625 -229
- package/.docs/organized/changelogs/%40mastra%2Floggers.md +71 -71
- package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +245 -245
- package/.docs/organized/changelogs/%40mastra%2Fmcp-registry-registry.md +28 -28
- package/.docs/organized/changelogs/%40mastra%2Fmcp.md +281 -281
- package/.docs/organized/changelogs/%40mastra%2Fmemory.md +354 -156
- package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +545 -212
- package/.docs/organized/changelogs/%40mastra%2Fmssql.md +481 -202
- package/.docs/organized/changelogs/%40mastra%2Fopensearch.md +194 -194
- package/.docs/organized/changelogs/%40mastra%2Fpg.md +781 -235
- package/.docs/organized/changelogs/%40mastra%2Fpinecone.md +198 -198
- package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +282 -282
- package/.docs/organized/changelogs/%40mastra%2Fqdrant.md +163 -163
- package/.docs/organized/changelogs/%40mastra%2Frag.md +310 -310
- package/.docs/organized/changelogs/%40mastra%2Freact.md +328 -237
- package/.docs/organized/changelogs/%40mastra%2Fs3vectors.md +64 -0
- package/.docs/organized/changelogs/%40mastra%2Fschema-compat.md +160 -0
- package/.docs/organized/changelogs/%40mastra%2Fserver.md +230 -230
- package/.docs/organized/changelogs/%40mastra%2Fturbopuffer.md +57 -57
- package/.docs/organized/changelogs/%40mastra%2Fupstash.md +479 -232
- package/.docs/organized/changelogs/%40mastra%2Fvectorize.md +53 -53
- package/.docs/organized/changelogs/%40mastra%2Fvoice-azure.md +45 -45
- package/.docs/organized/changelogs/%40mastra%2Fvoice-cloudflare.md +45 -45
- package/.docs/organized/changelogs/%40mastra%2Fvoice-deepgram.md +47 -47
- package/.docs/organized/changelogs/%40mastra%2Fvoice-elevenlabs.md +110 -110
- package/.docs/organized/changelogs/%40mastra%2Fvoice-gladia.md +15 -0
- package/.docs/organized/changelogs/%40mastra%2Fvoice-google-gemini-live.md +98 -0
- package/.docs/organized/changelogs/%40mastra%2Fvoice-google.md +54 -54
- package/.docs/organized/changelogs/%40mastra%2Fvoice-murf.md +46 -46
- package/.docs/organized/changelogs/%40mastra%2Fvoice-openai-realtime.md +93 -93
- package/.docs/organized/changelogs/%40mastra%2Fvoice-openai.md +47 -47
- package/.docs/organized/changelogs/%40mastra%2Fvoice-playai.md +45 -45
- package/.docs/organized/changelogs/%40mastra%2Fvoice-sarvam.md +45 -45
- package/.docs/organized/changelogs/%40mastra%2Fvoice-speechify.md +45 -45
- package/.docs/organized/changelogs/create-mastra.md +219 -219
- package/.docs/organized/changelogs/mastra.md +276 -276
- package/.docs/organized/code-examples/a2a.md +2 -2
- package/.docs/organized/code-examples/agent-v6.md +221 -0
- package/.docs/organized/code-examples/agui.md +4 -4
- package/.docs/organized/code-examples/ai-elements.md +3 -3
- package/.docs/organized/code-examples/ai-sdk-useChat.md +2 -2
- package/.docs/organized/code-examples/ai-sdk-v5.md +3 -3
- package/.docs/organized/code-examples/assistant-ui.md +5 -5
- package/.docs/organized/code-examples/bird-checker-with-express.md +1 -1
- package/.docs/organized/code-examples/bird-checker-with-nextjs-and-eval.md +2 -2
- package/.docs/organized/code-examples/bird-checker-with-nextjs.md +3 -3
- package/.docs/organized/code-examples/client-side-tools.md +4 -4
- package/.docs/organized/code-examples/crypto-chatbot.md +5 -5
- package/.docs/organized/code-examples/experimental-auth-weather-agent.md +1 -1
- package/.docs/organized/code-examples/fireworks-r1.md +2 -2
- package/.docs/organized/code-examples/heads-up-game.md +7 -7
- package/.docs/organized/code-examples/inngest.md +1075 -0
- package/.docs/organized/code-examples/mcp-configuration.md +1 -1
- package/.docs/organized/code-examples/mcp-server-adapters.md +2 -2
- package/.docs/organized/code-examples/memory-per-resource-example.md +3 -3
- package/.docs/organized/code-examples/memory-todo-agent.md +1 -1
- package/.docs/organized/code-examples/memory-with-context.md +1 -1
- package/.docs/organized/code-examples/memory-with-processors.md +1 -1
- package/.docs/organized/code-examples/openapi-spec-writer.md +3 -3
- package/.docs/organized/code-examples/quick-start.md +1 -5
- package/.docs/organized/code-examples/server-app-access.md +2 -2
- package/.docs/organized/code-examples/server-express-adapter.md +1 -1
- package/.docs/organized/code-examples/server-fastify-adapter.md +83 -0
- package/.docs/organized/code-examples/server-hono-adapter.md +2 -2
- package/.docs/organized/code-examples/server-koa-adapter.md +94 -0
- package/.docs/organized/code-examples/stock-price-tool.md +21 -2
- package/.docs/organized/code-examples/workflow-ai-recruiter.md +1 -1
- package/.docs/organized/code-examples/workflow-with-inline-steps.md +1 -1
- package/.docs/organized/code-examples/workflow-with-memory.md +1 -1
- package/.docs/organized/code-examples/workflow-with-separate-steps.md +1 -1
- package/.docs/organized/code-examples/workflow-with-suspend-resume.md +1 -1
- package/.docs/raw/agents/adding-voice.mdx +24 -6
- package/.docs/raw/agents/agent-approval.mdx +209 -12
- package/.docs/raw/agents/agent-memory.mdx +36 -32
- package/.docs/raw/agents/guardrails.mdx +105 -56
- package/.docs/raw/agents/network-approval.mdx +281 -0
- package/.docs/raw/agents/networks.mdx +69 -13
- package/.docs/raw/agents/overview.mdx +43 -25
- package/.docs/raw/agents/processors.mdx +234 -17
- package/.docs/raw/agents/structured-output.mdx +78 -8
- package/.docs/raw/agents/using-tools.mdx +67 -6
- package/.docs/raw/course/01-first-agent/07-creating-your-agent.md +1 -2
- package/.docs/raw/course/01-first-agent/12-connecting-tool-to-agent.md +1 -1
- package/.docs/raw/course/01-first-agent/16-adding-memory-to-agent.md +1 -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 +3 -3
- package/.docs/raw/course/03-agent-memory/04-creating-basic-memory-agent.md +1 -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/13-vector-store-configuration.md +1 -1
- package/.docs/raw/course/03-agent-memory/16-configuring-semantic-recall.md +4 -5
- package/.docs/raw/course/03-agent-memory/18-advanced-configuration-semantic-recall.md +1 -1
- package/.docs/raw/course/03-agent-memory/21-configuring-working-memory.md +3 -4
- package/.docs/raw/course/03-agent-memory/22-custom-working-memory-templates.md +3 -4
- package/.docs/raw/course/03-agent-memory/25-combining-memory-features.md +3 -4
- package/.docs/raw/course/03-agent-memory/27-creating-learning-assistant.md +3 -4
- 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 +35 -48
- package/.docs/raw/deployment/web-framework.mdx +17 -19
- package/.docs/raw/deployment/workflow-runners.mdx +16 -0
- package/.docs/raw/evals/built-in-scorers.mdx +2 -0
- package/.docs/raw/evals/custom-scorers.mdx +60 -12
- package/.docs/raw/evals/overview.mdx +6 -6
- package/.docs/raw/evals/running-in-ci.mdx +4 -2
- package/.docs/raw/getting-started/manual-install.mdx +20 -20
- package/.docs/raw/getting-started/mcp-docs-server.mdx +59 -2
- package/.docs/raw/getting-started/project-structure.mdx +2 -2
- package/.docs/raw/getting-started/start.mdx +17 -1
- package/.docs/raw/getting-started/studio.mdx +6 -35
- package/.docs/raw/guides/agent-frameworks/ai-sdk.mdx +23 -33
- package/.docs/raw/guides/build-your-ui/ai-sdk-ui.mdx +1034 -80
- package/.docs/raw/guides/build-your-ui/assistant-ui.mdx +8 -8
- package/.docs/raw/guides/build-your-ui/copilotkit.mdx +32 -11
- package/.docs/raw/{deployment/cloud-providers → guides/deployment}/amazon-ec2.mdx +9 -9
- package/.docs/raw/{deployment/cloud-providers → guides/deployment}/aws-lambda.mdx +13 -16
- package/.docs/raw/{deployment/cloud-providers → guides/deployment}/azure-app-services.mdx +5 -7
- package/.docs/raw/{deployment/cloud-providers → guides/deployment}/cloudflare-deployer.mdx +8 -5
- package/.docs/raw/{deployment/cloud-providers → guides/deployment}/digital-ocean.mdx +18 -23
- package/.docs/raw/guides/deployment/index.mdx +32 -0
- package/.docs/raw/guides/deployment/inngest.mdx +673 -0
- package/.docs/raw/{deployment/cloud-providers → guides/deployment}/netlify-deployer.mdx +7 -3
- package/.docs/raw/{deployment/cloud-providers → guides/deployment}/vercel-deployer.mdx +8 -5
- package/.docs/raw/guides/getting-started/astro.mdx +292 -451
- package/.docs/raw/guides/getting-started/express.mdx +72 -153
- package/.docs/raw/guides/getting-started/hono.mdx +227 -0
- package/.docs/raw/guides/getting-started/next-js.mdx +173 -61
- package/.docs/raw/guides/getting-started/nuxt.mdx +505 -0
- package/.docs/raw/guides/getting-started/quickstart.mdx +5 -5
- package/.docs/raw/guides/getting-started/sveltekit.mdx +238 -409
- package/.docs/raw/guides/getting-started/vite-react.mdx +317 -147
- package/.docs/raw/guides/guide/ai-recruiter.mdx +10 -10
- package/.docs/raw/guides/guide/chef-michel.mdx +9 -11
- package/.docs/raw/guides/guide/notes-mcp-server.mdx +15 -15
- package/.docs/raw/guides/guide/research-assistant.mdx +20 -20
- package/.docs/raw/guides/guide/stock-agent.mdx +5 -5
- package/.docs/raw/guides/guide/web-search.mdx +38 -38
- package/.docs/raw/guides/guide/whatsapp-chat-bot.mdx +7 -7
- package/.docs/raw/guides/index.mdx +0 -1
- package/.docs/raw/guides/migrations/ai-sdk-v4-to-v5.mdx +2 -2
- package/.docs/raw/guides/migrations/upgrade-to-v1/agent.mdx +105 -4
- package/.docs/raw/guides/migrations/upgrade-to-v1/cli.mdx +15 -1
- package/.docs/raw/guides/migrations/upgrade-to-v1/client.mdx +170 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/deployment.mdx +42 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/mastra.mdx +0 -35
- package/.docs/raw/guides/migrations/upgrade-to-v1/memory.mdx +40 -3
- package/.docs/raw/guides/migrations/upgrade-to-v1/overview.mdx +17 -2
- package/.docs/raw/guides/migrations/upgrade-to-v1/processors.mdx +11 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/rag.mdx +47 -0
- package/.docs/raw/guides/migrations/upgrade-to-v1/storage.mdx +271 -25
- package/.docs/raw/guides/migrations/upgrade-to-v1/tracing.mdx +72 -17
- package/.docs/raw/guides/migrations/upgrade-to-v1/vectors.mdx +46 -1
- package/.docs/raw/guides/migrations/upgrade-to-v1/workflows.mdx +50 -7
- package/.docs/raw/guides/migrations/vnext-to-standard-apis.mdx +21 -23
- package/.docs/raw/index.mdx +2 -2
- package/.docs/raw/mastra-cloud/deployment.mdx +86 -0
- package/.docs/raw/mastra-cloud/observability.mdx +43 -0
- package/.docs/raw/mastra-cloud/overview.mdx +31 -0
- package/.docs/raw/mastra-cloud/setup.mdx +64 -0
- package/.docs/raw/mastra-cloud/studio.mdx +35 -0
- package/.docs/raw/mcp/overview.mdx +60 -25
- package/.docs/raw/mcp/publishing-mcp-server.mdx +7 -4
- package/.docs/raw/memory/memory-processors.mdx +17 -12
- package/.docs/raw/memory/message-history.mdx +72 -0
- package/.docs/raw/memory/overview.mdx +38 -76
- package/.docs/raw/memory/semantic-recall.mdx +65 -52
- package/.docs/raw/memory/storage.mdx +248 -0
- package/.docs/raw/memory/working-memory.mdx +24 -13
- package/.docs/raw/observability/logging.mdx +16 -15
- package/.docs/raw/observability/overview.mdx +27 -7
- package/.docs/raw/observability/tracing/bridges/otel.mdx +7 -4
- package/.docs/raw/observability/tracing/exporters/arize.mdx +61 -24
- package/.docs/raw/observability/tracing/exporters/braintrust.mdx +32 -22
- package/.docs/raw/observability/tracing/exporters/cloud.mdx +24 -5
- package/.docs/raw/observability/tracing/exporters/datadog.mdx +175 -0
- package/.docs/raw/observability/tracing/exporters/default.mdx +28 -7
- package/.docs/raw/observability/tracing/exporters/laminar.mdx +89 -0
- package/.docs/raw/observability/tracing/exporters/langfuse.mdx +31 -22
- package/.docs/raw/observability/tracing/exporters/langsmith.mdx +33 -3
- package/.docs/raw/observability/tracing/exporters/otel.mdx +194 -22
- package/.docs/raw/observability/tracing/exporters/posthog.mdx +32 -22
- package/.docs/raw/observability/tracing/exporters/sentry.mdx +198 -0
- package/.docs/raw/observability/tracing/overview.mdx +388 -108
- package/.docs/raw/observability/tracing/processors/sensitive-data-filter.mdx +27 -7
- package/.docs/raw/rag/chunking-and-embedding.mdx +22 -33
- package/.docs/raw/rag/graph-rag.mdx +223 -0
- package/.docs/raw/rag/overview.mdx +6 -3
- package/.docs/raw/rag/retrieval.mdx +53 -57
- package/.docs/raw/rag/vector-databases.mdx +55 -31
- package/.docs/raw/reference/agents/agent.mdx +17 -14
- package/.docs/raw/reference/agents/generate.mdx +172 -44
- package/.docs/raw/reference/agents/generateLegacy.mdx +5 -3
- package/.docs/raw/reference/agents/getDefaultGenerateOptions.mdx +5 -3
- package/.docs/raw/reference/agents/getDefaultOptions.mdx +5 -3
- package/.docs/raw/reference/agents/getDefaultStreamOptions.mdx +5 -3
- package/.docs/raw/reference/agents/getDescription.mdx +3 -1
- package/.docs/raw/reference/agents/getInstructions.mdx +5 -3
- package/.docs/raw/reference/agents/getLLM.mdx +5 -3
- package/.docs/raw/reference/agents/getMemory.mdx +5 -3
- package/.docs/raw/reference/agents/getModel.mdx +5 -3
- package/.docs/raw/reference/agents/getTools.mdx +4 -2
- package/.docs/raw/reference/agents/getVoice.mdx +4 -2
- package/.docs/raw/reference/agents/listAgents.mdx +4 -2
- package/.docs/raw/reference/agents/listScorers.mdx +5 -3
- package/.docs/raw/reference/agents/listTools.mdx +4 -2
- package/.docs/raw/reference/agents/listWorkflows.mdx +4 -2
- package/.docs/raw/reference/agents/network.mdx +113 -1
- package/.docs/raw/reference/ai-sdk/chat-route.mdx +6 -3
- package/.docs/raw/reference/ai-sdk/handle-chat-stream.mdx +4 -2
- package/.docs/raw/reference/ai-sdk/handle-network-stream.mdx +4 -2
- package/.docs/raw/reference/ai-sdk/handle-workflow-stream.mdx +5 -3
- package/.docs/raw/reference/ai-sdk/network-route.mdx +6 -3
- package/.docs/raw/reference/ai-sdk/to-ai-sdk-stream.mdx +10 -6
- 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 +7 -4
- package/.docs/raw/reference/auth/auth0.mdx +5 -3
- package/.docs/raw/reference/auth/clerk.mdx +5 -3
- package/.docs/raw/reference/auth/firebase.mdx +6 -5
- package/.docs/raw/reference/auth/jwt.mdx +5 -3
- package/.docs/raw/reference/auth/supabase.mdx +5 -3
- package/.docs/raw/reference/auth/workos.mdx +5 -3
- package/.docs/raw/reference/cli/create-mastra.mdx +12 -10
- package/.docs/raw/reference/cli/mastra.mdx +63 -15
- package/.docs/raw/reference/client-js/agents.mdx +77 -35
- package/.docs/raw/reference/client-js/error-handling.mdx +3 -3
- package/.docs/raw/reference/client-js/logs.mdx +2 -0
- package/.docs/raw/reference/client-js/mastra-client.mdx +4 -2
- package/.docs/raw/reference/client-js/memory.mdx +43 -1
- package/.docs/raw/reference/client-js/observability.mdx +2 -0
- package/.docs/raw/reference/client-js/telemetry.mdx +2 -0
- package/.docs/raw/reference/client-js/tools.mdx +2 -0
- package/.docs/raw/reference/client-js/vectors.mdx +2 -0
- package/.docs/raw/reference/client-js/workflows.mdx +47 -3
- package/.docs/raw/reference/configuration.mdx +761 -0
- package/.docs/raw/reference/core/addGateway.mdx +2 -0
- package/.docs/raw/reference/core/getAgent.mdx +3 -1
- package/.docs/raw/reference/core/getAgentById.mdx +3 -1
- package/.docs/raw/reference/core/getDeployer.mdx +3 -1
- package/.docs/raw/reference/core/getGateway.mdx +2 -0
- package/.docs/raw/reference/core/getGatewayById.mdx +2 -0
- package/.docs/raw/reference/core/getLogger.mdx +3 -1
- package/.docs/raw/reference/core/getMCPServer.mdx +3 -1
- package/.docs/raw/reference/core/getMCPServerById.mdx +3 -1
- package/.docs/raw/reference/core/getMemory.mdx +7 -3
- package/.docs/raw/reference/core/getScorer.mdx +2 -0
- package/.docs/raw/reference/core/getScorerById.mdx +2 -0
- package/.docs/raw/reference/core/getServer.mdx +6 -4
- package/.docs/raw/reference/core/getStorage.mdx +5 -3
- package/.docs/raw/reference/core/getStoredAgentById.mdx +6 -4
- package/.docs/raw/reference/core/getTelemetry.mdx +3 -1
- package/.docs/raw/reference/core/getVector.mdx +3 -1
- package/.docs/raw/reference/core/getWorkflow.mdx +3 -1
- package/.docs/raw/reference/core/listAgents.mdx +3 -1
- package/.docs/raw/reference/core/listGateways.mdx +2 -0
- package/.docs/raw/reference/core/listLogs.mdx +3 -1
- package/.docs/raw/reference/core/listLogsByRunId.mdx +3 -1
- package/.docs/raw/reference/core/listMCPServers.mdx +3 -1
- package/.docs/raw/reference/core/listMemory.mdx +8 -4
- package/.docs/raw/reference/core/listScorers.mdx +2 -0
- package/.docs/raw/reference/core/listStoredAgents.mdx +7 -5
- package/.docs/raw/reference/core/listVectors.mdx +3 -1
- package/.docs/raw/reference/core/listWorkflows.mdx +3 -1
- package/.docs/raw/reference/core/mastra-class.mdx +27 -20
- package/.docs/raw/reference/core/mastra-model-gateway.mdx +2 -0
- package/.docs/raw/reference/core/setLogger.mdx +3 -1
- package/.docs/raw/reference/core/setStorage.mdx +6 -4
- package/.docs/raw/reference/deployer/cloudflare.mdx +22 -53
- package/.docs/raw/reference/deployer/deployer.mdx +2 -1
- package/.docs/raw/reference/deployer/netlify.mdx +4 -1
- package/.docs/raw/reference/deployer/vercel.mdx +5 -4
- package/.docs/raw/reference/evals/answer-relevancy.mdx +4 -1
- package/.docs/raw/reference/evals/answer-similarity.mdx +4 -1
- package/.docs/raw/reference/evals/bias.mdx +4 -1
- package/.docs/raw/reference/evals/completeness.mdx +4 -1
- package/.docs/raw/reference/evals/content-similarity.mdx +4 -1
- package/.docs/raw/reference/evals/context-precision.mdx +4 -1
- package/.docs/raw/reference/evals/context-relevance.mdx +2 -0
- package/.docs/raw/reference/evals/create-scorer.mdx +11 -3
- package/.docs/raw/reference/evals/faithfulness.mdx +4 -1
- package/.docs/raw/reference/evals/hallucination.mdx +4 -1
- package/.docs/raw/reference/evals/keyword-coverage.mdx +4 -1
- package/.docs/raw/reference/evals/mastra-scorer.mdx +2 -0
- package/.docs/raw/reference/evals/noise-sensitivity.mdx +2 -0
- package/.docs/raw/reference/evals/prompt-alignment.mdx +9 -7
- package/.docs/raw/reference/evals/run-evals.mdx +3 -1
- package/.docs/raw/reference/evals/scorer-utils.mdx +3 -0
- package/.docs/raw/reference/evals/textual-difference.mdx +4 -1
- package/.docs/raw/reference/evals/tone-consistency.mdx +4 -1
- package/.docs/raw/reference/evals/tool-call-accuracy.mdx +25 -23
- package/.docs/raw/reference/evals/toxicity.mdx +4 -1
- package/.docs/raw/reference/index.mdx +2 -1
- package/.docs/raw/reference/logging/pino-logger.mdx +10 -8
- 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 +6 -4
- package/.docs/raw/reference/memory/deleteMessages.mdx +4 -2
- package/.docs/raw/reference/memory/getThreadById.mdx +3 -1
- package/.docs/raw/reference/memory/listThreads.mdx +187 -0
- package/.docs/raw/reference/memory/memory-class.mdx +27 -20
- package/.docs/raw/reference/memory/recall.mdx +6 -4
- package/.docs/raw/reference/observability/tracing/bridges/otel.mdx +6 -2
- package/.docs/raw/reference/observability/tracing/configuration.mdx +51 -0
- package/.docs/raw/reference/observability/tracing/exporters/arize.mdx +25 -6
- package/.docs/raw/reference/observability/tracing/exporters/braintrust.mdx +23 -2
- package/.docs/raw/reference/observability/tracing/exporters/cloud-exporter.mdx +10 -0
- package/.docs/raw/reference/observability/tracing/exporters/console-exporter.mdx +3 -0
- package/.docs/raw/reference/observability/tracing/exporters/datadog.mdx +172 -0
- package/.docs/raw/reference/observability/tracing/exporters/default-exporter.mdx +10 -0
- package/.docs/raw/reference/observability/tracing/exporters/laminar.mdx +139 -0
- package/.docs/raw/reference/observability/tracing/exporters/langfuse.mdx +26 -4
- package/.docs/raw/reference/observability/tracing/exporters/langsmith.mdx +10 -0
- package/.docs/raw/reference/observability/tracing/exporters/otel.mdx +51 -34
- package/.docs/raw/reference/observability/tracing/exporters/posthog.mdx +25 -4
- package/.docs/raw/reference/observability/tracing/exporters/sentry.mdx +224 -0
- package/.docs/raw/reference/observability/tracing/instances.mdx +2 -0
- package/.docs/raw/reference/observability/tracing/interfaces.mdx +20 -0
- package/.docs/raw/reference/observability/tracing/processors/sensitive-data-filter.mdx +2 -0
- package/.docs/raw/reference/observability/tracing/spans.mdx +2 -0
- package/.docs/raw/reference/processors/batch-parts-processor.mdx +4 -2
- package/.docs/raw/reference/processors/language-detector.mdx +6 -3
- package/.docs/raw/reference/processors/message-history-processor.mdx +5 -2
- package/.docs/raw/reference/processors/moderation-processor.mdx +6 -4
- package/.docs/raw/reference/processors/pii-detector.mdx +6 -4
- package/.docs/raw/reference/processors/processor-interface.mdx +326 -23
- package/.docs/raw/reference/processors/prompt-injection-detector.mdx +5 -3
- package/.docs/raw/reference/processors/semantic-recall-processor.mdx +7 -2
- package/.docs/raw/reference/processors/system-prompt-scrubber.mdx +5 -3
- package/.docs/raw/reference/processors/token-limiter-processor.mdx +62 -19
- package/.docs/raw/reference/processors/tool-call-filter.mdx +5 -3
- package/.docs/raw/reference/processors/unicode-normalizer.mdx +6 -3
- package/.docs/raw/reference/processors/working-memory-processor.mdx +6 -3
- package/.docs/raw/reference/rag/chunk.mdx +7 -6
- package/.docs/raw/reference/rag/database-config.mdx +8 -6
- package/.docs/raw/reference/rag/document.mdx +2 -0
- package/.docs/raw/reference/rag/embeddings.mdx +2 -0
- package/.docs/raw/reference/rag/extract-params.mdx +57 -3
- package/.docs/raw/reference/rag/graph-rag.mdx +2 -0
- package/.docs/raw/reference/rag/metadata-filters.mdx +27 -7
- package/.docs/raw/reference/rag/rerank.mdx +2 -0
- package/.docs/raw/reference/rag/rerankWithScorer.mdx +2 -0
- package/.docs/raw/reference/server/create-route.mdx +34 -18
- package/.docs/raw/reference/server/express-adapter.mdx +27 -51
- package/.docs/raw/reference/server/fastify-adapter.mdx +130 -0
- package/.docs/raw/reference/server/hono-adapter.mdx +27 -51
- package/.docs/raw/reference/server/koa-adapter.mdx +129 -0
- package/.docs/raw/reference/server/mastra-server.mdx +52 -34
- package/.docs/raw/reference/server/routes.mdx +73 -10
- package/.docs/raw/reference/storage/cloudflare-d1.mdx +10 -5
- package/.docs/raw/reference/storage/cloudflare.mdx +12 -2
- package/.docs/raw/reference/storage/composite.mdx +245 -0
- package/.docs/raw/reference/storage/convex.mdx +8 -6
- package/.docs/raw/reference/storage/dynamodb.mdx +134 -8
- package/.docs/raw/reference/storage/lance.mdx +9 -5
- package/.docs/raw/reference/storage/libsql.mdx +76 -54
- package/.docs/raw/reference/storage/mongodb.mdx +115 -16
- package/.docs/raw/reference/storage/mssql.mdx +11 -6
- package/.docs/raw/{server-db/storage.mdx → reference/storage/overview.mdx} +15 -111
- package/.docs/raw/reference/storage/postgresql.mdx +228 -83
- package/.docs/raw/reference/storage/upstash.mdx +78 -2
- package/.docs/raw/reference/streaming/ChunkType.mdx +31 -3
- package/.docs/raw/reference/streaming/agents/MastraModelOutput.mdx +67 -6
- package/.docs/raw/reference/streaming/agents/stream.mdx +48 -51
- package/.docs/raw/reference/streaming/agents/streamLegacy.mdx +5 -3
- package/.docs/raw/reference/streaming/workflows/observeStream.mdx +3 -1
- package/.docs/raw/reference/streaming/workflows/resumeStream.mdx +3 -1
- package/.docs/raw/reference/streaming/workflows/stream.mdx +37 -22
- package/.docs/raw/reference/streaming/workflows/timeTravelStream.mdx +6 -4
- package/.docs/raw/reference/templates/overview.mdx +3 -2
- package/.docs/raw/reference/tools/client.mdx +3 -0
- package/.docs/raw/reference/tools/create-tool.mdx +127 -5
- package/.docs/raw/reference/tools/document-chunker-tool.mdx +2 -0
- package/.docs/raw/reference/tools/graph-rag-tool.mdx +40 -3
- package/.docs/raw/reference/tools/mcp-client.mdx +110 -1
- package/.docs/raw/reference/tools/mcp-server.mdx +278 -24
- package/.docs/raw/reference/tools/vector-query-tool.mdx +68 -4
- package/.docs/raw/reference/vectors/astra.mdx +5 -3
- package/.docs/raw/reference/vectors/chroma.mdx +5 -3
- package/.docs/raw/reference/vectors/convex.mdx +14 -12
- package/.docs/raw/reference/vectors/couchbase.mdx +7 -5
- package/.docs/raw/reference/vectors/duckdb.mdx +12 -10
- package/.docs/raw/reference/vectors/elasticsearch.mdx +12 -4
- package/.docs/raw/reference/vectors/lance.mdx +6 -4
- package/.docs/raw/reference/vectors/libsql.mdx +66 -13
- package/.docs/raw/reference/vectors/mongodb.mdx +90 -10
- package/.docs/raw/reference/vectors/opensearch.mdx +30 -3
- package/.docs/raw/reference/vectors/pg.mdx +58 -6
- package/.docs/raw/reference/vectors/pinecone.mdx +23 -8
- package/.docs/raw/reference/vectors/qdrant.mdx +148 -4
- package/.docs/raw/reference/vectors/s3vectors.mdx +8 -6
- package/.docs/raw/reference/vectors/turbopuffer.mdx +6 -4
- package/.docs/raw/reference/vectors/upstash.mdx +60 -6
- package/.docs/raw/reference/vectors/vectorize.mdx +5 -3
- package/.docs/raw/reference/voice/azure.mdx +2 -0
- package/.docs/raw/reference/voice/cloudflare.mdx +2 -0
- package/.docs/raw/reference/voice/composite-voice.mdx +4 -0
- package/.docs/raw/reference/voice/deepgram.mdx +2 -0
- package/.docs/raw/reference/voice/elevenlabs.mdx +2 -0
- package/.docs/raw/reference/voice/google-gemini-live.mdx +3 -0
- package/.docs/raw/reference/voice/google.mdx +2 -0
- package/.docs/raw/reference/voice/mastra-voice.mdx +2 -0
- package/.docs/raw/reference/voice/murf.mdx +2 -0
- package/.docs/raw/reference/voice/openai-realtime.mdx +3 -0
- package/.docs/raw/reference/voice/openai.mdx +2 -0
- package/.docs/raw/reference/voice/playai.mdx +2 -0
- package/.docs/raw/reference/voice/sarvam.mdx +2 -0
- package/.docs/raw/reference/voice/speechify.mdx +2 -0
- package/.docs/raw/reference/voice/voice.addInstructions.mdx +3 -0
- package/.docs/raw/reference/voice/voice.addTools.mdx +3 -0
- package/.docs/raw/reference/voice/voice.answer.mdx +4 -0
- package/.docs/raw/reference/voice/voice.close.mdx +3 -0
- package/.docs/raw/reference/voice/voice.connect.mdx +5 -1
- package/.docs/raw/reference/voice/voice.events.mdx +2 -0
- package/.docs/raw/reference/voice/voice.getSpeakers.mdx +3 -0
- package/.docs/raw/reference/voice/voice.listen.mdx +6 -0
- package/.docs/raw/reference/voice/voice.off.mdx +2 -0
- package/.docs/raw/reference/voice/voice.on.mdx +5 -1
- package/.docs/raw/reference/voice/voice.send.mdx +4 -0
- package/.docs/raw/reference/voice/voice.speak.mdx +6 -0
- package/.docs/raw/reference/voice/voice.updateConfig.mdx +2 -0
- package/.docs/raw/reference/workflows/run-methods/cancel.mdx +55 -5
- package/.docs/raw/reference/workflows/run-methods/restart.mdx +3 -3
- package/.docs/raw/reference/workflows/run-methods/resume.mdx +6 -4
- package/.docs/raw/reference/workflows/run-methods/start.mdx +7 -5
- package/.docs/raw/reference/workflows/run-methods/startAsync.mdx +145 -0
- package/.docs/raw/reference/workflows/run-methods/timeTravel.mdx +10 -8
- package/.docs/raw/reference/workflows/run.mdx +11 -3
- package/.docs/raw/reference/workflows/step.mdx +56 -3
- package/.docs/raw/reference/workflows/workflow-methods/branch.mdx +3 -1
- package/.docs/raw/reference/workflows/workflow-methods/commit.mdx +3 -1
- package/.docs/raw/reference/workflows/workflow-methods/create-run.mdx +39 -2
- package/.docs/raw/reference/workflows/workflow-methods/dountil.mdx +3 -1
- package/.docs/raw/reference/workflows/workflow-methods/dowhile.mdx +3 -1
- package/.docs/raw/reference/workflows/workflow-methods/foreach.mdx +71 -4
- package/.docs/raw/reference/workflows/workflow-methods/map.mdx +9 -7
- package/.docs/raw/reference/workflows/workflow-methods/parallel.mdx +3 -1
- package/.docs/raw/reference/workflows/workflow-methods/sleep.mdx +4 -6
- package/.docs/raw/reference/workflows/workflow-methods/sleepUntil.mdx +4 -6
- package/.docs/raw/reference/workflows/workflow-methods/then.mdx +3 -1
- package/.docs/raw/reference/workflows/workflow.mdx +193 -2
- package/.docs/raw/{auth → server/auth}/auth0.mdx +40 -21
- package/.docs/raw/{auth → server/auth}/clerk.mdx +37 -16
- package/.docs/raw/{auth → server/auth}/firebase.mdx +47 -25
- package/.docs/raw/{auth → server/auth}/index.mdx +8 -6
- package/.docs/raw/{auth → server/auth}/jwt.mdx +22 -10
- package/.docs/raw/{auth → server/auth}/supabase.mdx +45 -25
- package/.docs/raw/{auth → server/auth}/workos.mdx +39 -20
- package/.docs/raw/{server-db → server}/custom-adapters.mdx +40 -24
- package/.docs/raw/{server-db → server}/custom-api-routes.mdx +6 -6
- package/.docs/raw/{server-db → server}/mastra-client.mdx +35 -38
- package/.docs/raw/server/mastra-server.mdx +86 -0
- package/.docs/raw/{server-db → server}/middleware.mdx +11 -9
- package/.docs/raw/{server-db → server}/request-context.mdx +85 -43
- package/.docs/raw/{server-db → server}/server-adapters.mdx +154 -33
- package/.docs/raw/streaming/events.mdx +16 -7
- package/.docs/raw/streaming/overview.mdx +30 -17
- package/.docs/raw/streaming/tool-streaming.mdx +8 -6
- package/.docs/raw/streaming/workflow-streaming.mdx +8 -8
- package/.docs/raw/tools-mcp/advanced-usage.mdx +4 -2
- package/.docs/raw/tools-mcp/mcp-overview.mdx +46 -12
- package/.docs/raw/tools-mcp/overview.mdx +14 -13
- package/.docs/raw/voice/overview.mdx +17 -2
- package/.docs/raw/voice/speech-to-speech.mdx +5 -0
- package/.docs/raw/voice/speech-to-text.mdx +4 -0
- package/.docs/raw/voice/text-to-speech.mdx +3 -0
- package/.docs/raw/workflows/agents-and-tools.mdx +70 -21
- package/.docs/raw/workflows/control-flow.mdx +369 -34
- package/.docs/raw/workflows/error-handling.mdx +192 -18
- package/.docs/raw/workflows/human-in-the-loop.mdx +8 -7
- package/.docs/raw/workflows/input-data-mapping.mdx +9 -7
- package/.docs/raw/workflows/overview.mdx +80 -34
- package/.docs/raw/workflows/snapshots.mdx +19 -45
- package/.docs/raw/workflows/suspend-and-resume.mdx +14 -14
- package/.docs/raw/workflows/time-travel.mdx +25 -21
- package/.docs/raw/workflows/workflow-state.mdx +7 -8
- package/CHANGELOG.md +260 -0
- package/README.md +36 -0
- 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/stdio.js +746 -49
- 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/package.json +9 -8
- package/.docs/organized/changelogs/%40internal%2Fai-sdk-v4.md +0 -1
- package/.docs/raw/deployment/building-mastra.mdx +0 -73
- package/.docs/raw/deployment/cloud-providers/index.mdx +0 -55
- package/.docs/raw/deployment/mastra-cloud/dashboard.mdx +0 -100
- package/.docs/raw/deployment/mastra-cloud/observability.mdx +0 -53
- package/.docs/raw/deployment/mastra-cloud/overview.mdx +0 -65
- package/.docs/raw/deployment/mastra-cloud/setting-up.mdx +0 -105
- package/.docs/raw/memory/conversation-history.mdx +0 -24
- package/.docs/raw/memory/storage/memory-with-libsql.mdx +0 -140
- package/.docs/raw/memory/storage/memory-with-mongodb.mdx +0 -150
- 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/reference/core/setTelemetry.mdx +0 -36
- package/.docs/raw/reference/memory/listThreadsByResourceId.mdx +0 -110
- package/.docs/raw/reference/memory/query.mdx +0 -189
- 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/server-db/mastra-server.mdx +0 -97
- package/.docs/raw/workflows/inngest-workflow.mdx +0 -363
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"course.d.ts","sourceRoot":"","sources":["../../src/tools/course.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,QAAA,MAAM,mBAAmB;;;;;;EAEvB,CAAC;AAEH,QAAA,MAAM,mBAAmB;;;;;;EAEvB,CAAC;AAGH,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,KAAK,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,KAAK,CAAC;YACX,IAAI,EAAE,MAAM,CAAC;YACb,MAAM,EAAE,MAAM,CAAC;SAChB,CAAC,CAAC;KACJ,CAAC,CAAC;CACJ,CAAC;AAqGF,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAmCzE;AA+CD,wBAAgB,gCAAgC,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAgDpG;AA6LD,eAAO,MAAM,iBAAiB;;;;;;;;;;oBAON;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;CA0HzC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;
|
|
1
|
+
{"version":3,"file":"course.d.ts","sourceRoot":"","sources":["../../src/tools/course.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,QAAA,MAAM,mBAAmB;;;;;;EAEvB,CAAC;AAEH,QAAA,MAAM,mBAAmB;;;;;;EAEvB,CAAC;AAGH,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,KAAK,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,KAAK,CAAC;YACX,IAAI,EAAE,MAAM,CAAC;YACb,MAAM,EAAE,MAAM,CAAC;SAChB,CAAC,CAAC;KACJ,CAAC,CAAC;CACJ,CAAC;AAqGF,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAmCzE;AA+CD,wBAAgB,gCAAgC,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAgDpG;AA6LD,eAAO,MAAM,iBAAiB;;;;;;;;;;oBAON;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;CA0HzC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;qBAKT,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;CAqF7C,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;oBAKZ,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC;CAwD1D,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;qBAKR,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;CA4F7C,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;oBAKb,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC;CA8B1D,CAAC"}
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const getMastraHelpTool: {
|
|
3
|
+
name: string;
|
|
4
|
+
description: string;
|
|
5
|
+
parameters: z.ZodObject<{
|
|
6
|
+
projectPath: z.ZodString;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
projectPath: string;
|
|
9
|
+
}, {
|
|
10
|
+
projectPath: string;
|
|
11
|
+
}>;
|
|
12
|
+
execute: (args: {
|
|
13
|
+
projectPath: string;
|
|
14
|
+
}) => Promise<string>;
|
|
15
|
+
};
|
|
16
|
+
export declare const listInstalledPackagesTool: {
|
|
17
|
+
name: string;
|
|
18
|
+
description: string;
|
|
19
|
+
parameters: z.ZodObject<{
|
|
20
|
+
projectPath: z.ZodString;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
projectPath: string;
|
|
23
|
+
}, {
|
|
24
|
+
projectPath: string;
|
|
25
|
+
}>;
|
|
26
|
+
execute: (args: {
|
|
27
|
+
projectPath: string;
|
|
28
|
+
}) => Promise<string>;
|
|
29
|
+
};
|
|
30
|
+
export declare const readSourceMapTool: {
|
|
31
|
+
name: string;
|
|
32
|
+
description: string;
|
|
33
|
+
parameters: z.ZodObject<{
|
|
34
|
+
package: z.ZodString;
|
|
35
|
+
projectPath: z.ZodString;
|
|
36
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
package: string;
|
|
39
|
+
projectPath: string;
|
|
40
|
+
filter?: string | undefined;
|
|
41
|
+
}, {
|
|
42
|
+
package: string;
|
|
43
|
+
projectPath: string;
|
|
44
|
+
filter?: string | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
execute: (args: {
|
|
47
|
+
package: string;
|
|
48
|
+
projectPath: string;
|
|
49
|
+
filter?: string;
|
|
50
|
+
}) => Promise<string>;
|
|
51
|
+
};
|
|
52
|
+
export declare const findExportTool: {
|
|
53
|
+
name: string;
|
|
54
|
+
description: string;
|
|
55
|
+
parameters: z.ZodObject<{
|
|
56
|
+
package: z.ZodString;
|
|
57
|
+
exportName: z.ZodString;
|
|
58
|
+
includeTypes: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
59
|
+
includeImplementation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
60
|
+
implementationLines: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
61
|
+
projectPath: z.ZodString;
|
|
62
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
|
+
package: string;
|
|
64
|
+
projectPath: string;
|
|
65
|
+
exportName: string;
|
|
66
|
+
includeTypes: boolean;
|
|
67
|
+
includeImplementation: boolean;
|
|
68
|
+
implementationLines: number;
|
|
69
|
+
}, {
|
|
70
|
+
package: string;
|
|
71
|
+
projectPath: string;
|
|
72
|
+
exportName: string;
|
|
73
|
+
includeTypes?: boolean | undefined;
|
|
74
|
+
includeImplementation?: boolean | undefined;
|
|
75
|
+
implementationLines?: number | undefined;
|
|
76
|
+
}>;
|
|
77
|
+
execute: (args: {
|
|
78
|
+
package: string;
|
|
79
|
+
exportName: string;
|
|
80
|
+
projectPath: string;
|
|
81
|
+
includeTypes?: boolean;
|
|
82
|
+
includeImplementation?: boolean;
|
|
83
|
+
implementationLines?: number;
|
|
84
|
+
}) => Promise<string>;
|
|
85
|
+
};
|
|
86
|
+
export declare const readEmbeddedDocsTool: {
|
|
87
|
+
name: string;
|
|
88
|
+
description: string;
|
|
89
|
+
parameters: z.ZodObject<{
|
|
90
|
+
package: z.ZodString;
|
|
91
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
92
|
+
file: z.ZodOptional<z.ZodString>;
|
|
93
|
+
projectPath: z.ZodString;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
package: string;
|
|
96
|
+
projectPath: string;
|
|
97
|
+
topic?: string | undefined;
|
|
98
|
+
file?: string | undefined;
|
|
99
|
+
}, {
|
|
100
|
+
package: string;
|
|
101
|
+
projectPath: string;
|
|
102
|
+
topic?: string | undefined;
|
|
103
|
+
file?: string | undefined;
|
|
104
|
+
}>;
|
|
105
|
+
execute: (args: {
|
|
106
|
+
package: string;
|
|
107
|
+
projectPath: string;
|
|
108
|
+
topic?: string;
|
|
109
|
+
file?: string;
|
|
110
|
+
}) => Promise<string>;
|
|
111
|
+
};
|
|
112
|
+
export declare const searchEmbeddedDocsTool: {
|
|
113
|
+
name: string;
|
|
114
|
+
description: string;
|
|
115
|
+
parameters: z.ZodObject<{
|
|
116
|
+
query: z.ZodString;
|
|
117
|
+
package: z.ZodOptional<z.ZodString>;
|
|
118
|
+
maxResults: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
119
|
+
projectPath: z.ZodString;
|
|
120
|
+
}, "strip", z.ZodTypeAny, {
|
|
121
|
+
projectPath: string;
|
|
122
|
+
query: string;
|
|
123
|
+
maxResults: number;
|
|
124
|
+
package?: string | undefined;
|
|
125
|
+
}, {
|
|
126
|
+
projectPath: string;
|
|
127
|
+
query: string;
|
|
128
|
+
package?: string | undefined;
|
|
129
|
+
maxResults?: number | undefined;
|
|
130
|
+
}>;
|
|
131
|
+
execute: (args: {
|
|
132
|
+
query: string;
|
|
133
|
+
projectPath: string;
|
|
134
|
+
package?: string;
|
|
135
|
+
maxResults?: number;
|
|
136
|
+
}) => Promise<string>;
|
|
137
|
+
};
|
|
138
|
+
export declare const embeddedDocsTools: {
|
|
139
|
+
getMastraHelp: {
|
|
140
|
+
name: string;
|
|
141
|
+
description: string;
|
|
142
|
+
parameters: z.ZodObject<{
|
|
143
|
+
projectPath: z.ZodString;
|
|
144
|
+
}, "strip", z.ZodTypeAny, {
|
|
145
|
+
projectPath: string;
|
|
146
|
+
}, {
|
|
147
|
+
projectPath: string;
|
|
148
|
+
}>;
|
|
149
|
+
execute: (args: {
|
|
150
|
+
projectPath: string;
|
|
151
|
+
}) => Promise<string>;
|
|
152
|
+
};
|
|
153
|
+
listMastraPackages: {
|
|
154
|
+
name: string;
|
|
155
|
+
description: string;
|
|
156
|
+
parameters: z.ZodObject<{
|
|
157
|
+
projectPath: z.ZodString;
|
|
158
|
+
}, "strip", z.ZodTypeAny, {
|
|
159
|
+
projectPath: string;
|
|
160
|
+
}, {
|
|
161
|
+
projectPath: string;
|
|
162
|
+
}>;
|
|
163
|
+
execute: (args: {
|
|
164
|
+
projectPath: string;
|
|
165
|
+
}) => Promise<string>;
|
|
166
|
+
};
|
|
167
|
+
getMastraExports: {
|
|
168
|
+
name: string;
|
|
169
|
+
description: string;
|
|
170
|
+
parameters: z.ZodObject<{
|
|
171
|
+
package: z.ZodString;
|
|
172
|
+
projectPath: z.ZodString;
|
|
173
|
+
filter: z.ZodOptional<z.ZodString>;
|
|
174
|
+
}, "strip", z.ZodTypeAny, {
|
|
175
|
+
package: string;
|
|
176
|
+
projectPath: string;
|
|
177
|
+
filter?: string | undefined;
|
|
178
|
+
}, {
|
|
179
|
+
package: string;
|
|
180
|
+
projectPath: string;
|
|
181
|
+
filter?: string | undefined;
|
|
182
|
+
}>;
|
|
183
|
+
execute: (args: {
|
|
184
|
+
package: string;
|
|
185
|
+
projectPath: string;
|
|
186
|
+
filter?: string;
|
|
187
|
+
}) => Promise<string>;
|
|
188
|
+
};
|
|
189
|
+
getMastraExportDetails: {
|
|
190
|
+
name: string;
|
|
191
|
+
description: string;
|
|
192
|
+
parameters: z.ZodObject<{
|
|
193
|
+
package: z.ZodString;
|
|
194
|
+
exportName: z.ZodString;
|
|
195
|
+
includeTypes: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
196
|
+
includeImplementation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
197
|
+
implementationLines: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
198
|
+
projectPath: z.ZodString;
|
|
199
|
+
}, "strip", z.ZodTypeAny, {
|
|
200
|
+
package: string;
|
|
201
|
+
projectPath: string;
|
|
202
|
+
exportName: string;
|
|
203
|
+
includeTypes: boolean;
|
|
204
|
+
includeImplementation: boolean;
|
|
205
|
+
implementationLines: number;
|
|
206
|
+
}, {
|
|
207
|
+
package: string;
|
|
208
|
+
projectPath: string;
|
|
209
|
+
exportName: string;
|
|
210
|
+
includeTypes?: boolean | undefined;
|
|
211
|
+
includeImplementation?: boolean | undefined;
|
|
212
|
+
implementationLines?: number | undefined;
|
|
213
|
+
}>;
|
|
214
|
+
execute: (args: {
|
|
215
|
+
package: string;
|
|
216
|
+
exportName: string;
|
|
217
|
+
projectPath: string;
|
|
218
|
+
includeTypes?: boolean;
|
|
219
|
+
includeImplementation?: boolean;
|
|
220
|
+
implementationLines?: number;
|
|
221
|
+
}) => Promise<string>;
|
|
222
|
+
};
|
|
223
|
+
readMastraDocs: {
|
|
224
|
+
name: string;
|
|
225
|
+
description: string;
|
|
226
|
+
parameters: z.ZodObject<{
|
|
227
|
+
package: z.ZodString;
|
|
228
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
229
|
+
file: z.ZodOptional<z.ZodString>;
|
|
230
|
+
projectPath: z.ZodString;
|
|
231
|
+
}, "strip", z.ZodTypeAny, {
|
|
232
|
+
package: string;
|
|
233
|
+
projectPath: string;
|
|
234
|
+
topic?: string | undefined;
|
|
235
|
+
file?: string | undefined;
|
|
236
|
+
}, {
|
|
237
|
+
package: string;
|
|
238
|
+
projectPath: string;
|
|
239
|
+
topic?: string | undefined;
|
|
240
|
+
file?: string | undefined;
|
|
241
|
+
}>;
|
|
242
|
+
execute: (args: {
|
|
243
|
+
package: string;
|
|
244
|
+
projectPath: string;
|
|
245
|
+
topic?: string;
|
|
246
|
+
file?: string;
|
|
247
|
+
}) => Promise<string>;
|
|
248
|
+
};
|
|
249
|
+
searchMastraDocs: {
|
|
250
|
+
name: string;
|
|
251
|
+
description: string;
|
|
252
|
+
parameters: z.ZodObject<{
|
|
253
|
+
query: z.ZodString;
|
|
254
|
+
package: z.ZodOptional<z.ZodString>;
|
|
255
|
+
maxResults: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
256
|
+
projectPath: z.ZodString;
|
|
257
|
+
}, "strip", z.ZodTypeAny, {
|
|
258
|
+
projectPath: string;
|
|
259
|
+
query: string;
|
|
260
|
+
maxResults: number;
|
|
261
|
+
package?: string | undefined;
|
|
262
|
+
}, {
|
|
263
|
+
projectPath: string;
|
|
264
|
+
query: string;
|
|
265
|
+
package?: string | undefined;
|
|
266
|
+
maxResults?: number | undefined;
|
|
267
|
+
}>;
|
|
268
|
+
execute: (args: {
|
|
269
|
+
query: string;
|
|
270
|
+
projectPath: string;
|
|
271
|
+
package?: string;
|
|
272
|
+
maxResults?: number;
|
|
273
|
+
}) => Promise<string>;
|
|
274
|
+
};
|
|
275
|
+
};
|
|
276
|
+
//# sourceMappingURL=embedded-docs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"embedded-docs.d.ts","sourceRoot":"","sources":["../../src/tools/embedded-docs.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwJxB,eAAO,MAAM,iBAAiB;;;;;;;;;;oBAiDN;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE;CAwG9C,CAAC;AAMF,eAAO,MAAM,yBAAyB;;;;;;;;;;oBAgBd;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE;CAkC9C,CAAC;AAMF,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;oBAoBN;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;CAqChF,CAAC;AAMF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;oBAiCH;QACpB,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;QAChC,mBAAmB,CAAC,EAAE,MAAM,CAAC;KAC9B;CAmFF,CAAC;AAMF,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;oBA2BT;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;CAgG9F,CAAC;AAMF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;oBA4BX;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE;CAoFpG,CAAC;AAGF,eAAO,MAAM,iBAAiB;;;;;;;;;;;wBA1lBN;YAAE,WAAW,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;wBA8HvB;YAAE,WAAW,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;wBA4DvB;YAAE,OAAO,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA4EzD;YACpB,OAAO,EAAE,MAAM,CAAC;YAChB,UAAU,EAAE,MAAM,CAAC;YACnB,WAAW,EAAE,MAAM,CAAC;YACpB,YAAY,CAAC,EAAE,OAAO,CAAC;YACvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;YAChC,mBAAmB,CAAC,EAAE,MAAM,CAAC;SAC9B;;;;;;;;;;;;;;;;;;;;;wBAoHqB;YAAE,OAAO,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;;;;wBAkIvE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAC;YAAC,OAAO,CAAC,EAAE,MAAM,CAAC;YAAC,UAAU,CAAC,EAAE,MAAM,CAAA;SAAE;;CA8FpG,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -27,9 +27,10 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@modelcontextprotocol/sdk": "^1.17.5",
|
|
29
29
|
"jsdom": "^26.1.0",
|
|
30
|
+
"local-pkg": "^1.1.2",
|
|
30
31
|
"zod": "^3.25.76",
|
|
31
|
-
"@mastra/core": "1.0.
|
|
32
|
-
"@mastra/mcp": "^1.0.0
|
|
32
|
+
"@mastra/core": "1.0.4",
|
|
33
|
+
"@mastra/mcp": "^1.0.0"
|
|
33
34
|
},
|
|
34
35
|
"devDependencies": {
|
|
35
36
|
"@hono/node-server": "^1.19.6",
|
|
@@ -40,13 +41,13 @@
|
|
|
40
41
|
"@wong2/mcp-cli": "^1.13.0",
|
|
41
42
|
"cross-env": "^10.1.0",
|
|
42
43
|
"eslint": "^9.37.0",
|
|
43
|
-
"hono": "^4.
|
|
44
|
+
"hono": "^4.11.3",
|
|
44
45
|
"tsup": "^8.5.0",
|
|
45
46
|
"tsx": "^4.19.4",
|
|
46
|
-
"typescript": "^5.
|
|
47
|
-
"vitest": "4.0.
|
|
48
|
-
"@internal/lint": "0.0.
|
|
49
|
-
"@mastra/core": "1.0.
|
|
47
|
+
"typescript": "^5.9.3",
|
|
48
|
+
"vitest": "4.0.16",
|
|
49
|
+
"@internal/lint": "0.0.55",
|
|
50
|
+
"@mastra/core": "1.0.4"
|
|
50
51
|
},
|
|
51
52
|
"homepage": "https://mastra.ai",
|
|
52
53
|
"repository": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
No changelog available.
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "Building Mastra | Deployment"
|
|
3
|
-
description: "Learn how to build a Mastra server with build settings and deployment options."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Building Mastra
|
|
7
|
-
|
|
8
|
-
Mastra runs as a standard Node.js server and can be deployed across a wide range of environments.
|
|
9
|
-
|
|
10
|
-
## Default project structure
|
|
11
|
-
|
|
12
|
-
The [getting started guide](/guides/v1/getting-started/quickstart) scaffolds a project with sensible defaults to help you begin quickly. By default, the CLI organizes application files under the `src/mastra/` directory, resulting in a structure similar to the following:
|
|
13
|
-
|
|
14
|
-
```
|
|
15
|
-
src/
|
|
16
|
-
└── mastra/
|
|
17
|
-
├── agents/
|
|
18
|
-
├── tools/
|
|
19
|
-
├── workflows/
|
|
20
|
-
└── index.ts
|
|
21
|
-
package.json
|
|
22
|
-
tsconfig.json
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
## Building
|
|
26
|
-
|
|
27
|
-
The `mastra build` command starts the build process:
|
|
28
|
-
|
|
29
|
-
```bash copy
|
|
30
|
-
mastra build
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Customizing the input directory
|
|
34
|
-
|
|
35
|
-
If your Mastra files are located elsewhere, use the `--dir` flag to specify the custom location. The `--dir` flag tells Mastra where to find your entry point file (`index.ts` or `index.js`) and related directories.
|
|
36
|
-
|
|
37
|
-
```bash copy
|
|
38
|
-
mastra build --dir ./my-project/mastra
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
## Build process
|
|
42
|
-
|
|
43
|
-
The build process follows these steps:
|
|
44
|
-
|
|
45
|
-
1. **Locates entry file**: Finds `index.ts` or `index.js` in your specified directory (default: `src/mastra/`).
|
|
46
|
-
2. **Creates build directory**: Generates a `.mastra/` directory containing:
|
|
47
|
-
- **`.build`**: Contains dependency analysis, bundled dependencies, and build configuration files.
|
|
48
|
-
- **`output`**: Contains the production-ready application bundle with `index.mjs` and project-specific files.
|
|
49
|
-
3. **Copies static assets**: Copies the `public/` folder contents to the `output` directory for serving static files.
|
|
50
|
-
4. **Bundles code**: Uses Rollup with tree shaking and source maps for optimization.
|
|
51
|
-
5. **Generates server**: Creates a [Hono](https://hono.dev) HTTP server ready for deployment.
|
|
52
|
-
|
|
53
|
-
### Build output structure
|
|
54
|
-
|
|
55
|
-
After building, Mastra creates a `.mastra/` directory with the following structure:
|
|
56
|
-
|
|
57
|
-
```
|
|
58
|
-
.mastra/
|
|
59
|
-
├── .build/
|
|
60
|
-
└── output/
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
### `public` folder
|
|
64
|
-
|
|
65
|
-
If a `public` folder exists in `src/mastra`, its contents are copied into the `.build/output` directory during the build process.
|
|
66
|
-
|
|
67
|
-
## Running the Server
|
|
68
|
-
|
|
69
|
-
Start the HTTP server:
|
|
70
|
-
|
|
71
|
-
```bash copy
|
|
72
|
-
node .mastra/output/index.mjs
|
|
73
|
-
```
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "Cloud Providers | Deployment"
|
|
3
|
-
description: "Deploy your Mastra applications to popular cloud providers."
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Cloud Providers
|
|
7
|
-
|
|
8
|
-
Standalone Mastra applications can be deployed to popular cloud providers, see one of the following guides for more information:
|
|
9
|
-
|
|
10
|
-
- [Amazon EC2](/docs/v1/deployment/cloud-providers/amazon-ec2)
|
|
11
|
-
- [AWS Lambda](/docs/v1/deployment/cloud-providers/aws-lambda)
|
|
12
|
-
- [Azure App Services](/docs/v1/deployment/cloud-providers/azure-app-services)
|
|
13
|
-
- [Cloudflare](/docs/v1/deployment/cloud-providers/cloudflare-deployer)
|
|
14
|
-
- [Digital Ocean](/docs/v1/deployment/cloud-providers/digital-ocean)
|
|
15
|
-
- [Netlify](/docs/v1/deployment/cloud-providers/netlify-deployer)
|
|
16
|
-
- [Vercel](/docs/v1/deployment/cloud-providers/vercel-deployer)
|
|
17
|
-
|
|
18
|
-
For self-hosted Node.js server deployment, see the [Creating A Mastra Server](/docs/v1/deployment/building-mastra) guide.
|
|
19
|
-
|
|
20
|
-
## Prerequisites
|
|
21
|
-
|
|
22
|
-
Before deploying to a cloud provider, ensure you have:
|
|
23
|
-
|
|
24
|
-
- A [Mastra application](/guides/v1/getting-started/quickstart)
|
|
25
|
-
- Node.js `v22.13.0` or later
|
|
26
|
-
- A GitHub repository for your application (required for most CI/CD setups)
|
|
27
|
-
- Domain name management access (for SSL and HTTPS)
|
|
28
|
-
- Basic familiarity with server setup (e.g. Nginx, environment variables)
|
|
29
|
-
|
|
30
|
-
## LibSQLStore
|
|
31
|
-
|
|
32
|
-
`LibSQLStore` writes to the local filesystem, which is not supported in cloud environments that use ephemeral file systems. If you're deploying to platforms like AWS Lambda, Netlify, Azure App Services, or Digital Ocean App Platform, you must remove all usage of `LibSQLStore`.
|
|
33
|
-
|
|
34
|
-
Specifically, ensure you've removed it from all Mastra files, including configuration on the main Mastra instance and any agents using it, e.g. for memory storage.
|
|
35
|
-
|
|
36
|
-
```diff title="src/mastra/index.ts"
|
|
37
|
-
export const mastra = new Mastra({
|
|
38
|
-
- storage: new LibSQLStore({
|
|
39
|
-
- id: 'mastra-storage',
|
|
40
|
-
- url: ":memory:",
|
|
41
|
-
- }),
|
|
42
|
-
});
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
```diff
|
|
46
|
-
export const weatherAgent = new Agent({
|
|
47
|
-
id: "weather-agent",
|
|
48
|
-
memory: new Memory({
|
|
49
|
-
- storage: new LibSQLStore({
|
|
50
|
-
- id: 'mastra-storage',
|
|
51
|
-
- url: "file:../mastra.db",
|
|
52
|
-
- }),
|
|
53
|
-
}),
|
|
54
|
-
});
|
|
55
|
-
```
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "Navigating the Dashboard | Mastra Cloud"
|
|
3
|
-
description: Details of each feature available in Mastra Cloud
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
import { MastraCloudCallout } from "@site/src/components/MastraCloudCallout";
|
|
7
|
-
|
|
8
|
-
# Navigating the Dashboard
|
|
9
|
-
|
|
10
|
-
This page explains how to navigate the Mastra Cloud dashboard, where you can configure your project, view deployment details, and interact with agents and workflows using the built-in [Studio](/docs/v1/deployment/mastra-cloud/dashboard#studio).
|
|
11
|
-
|
|
12
|
-
<MastraCloudCallout />
|
|
13
|
-
|
|
14
|
-
## Overview
|
|
15
|
-
|
|
16
|
-
The **Overview** page provides details about your application, including its domain URL, status, latest deployment, and connected agents and workflows.
|
|
17
|
-
|
|
18
|
-

|
|
19
|
-
|
|
20
|
-
Key features:
|
|
21
|
-
|
|
22
|
-
Each project shows its current deployment status, active domains, and environment variables, so you can quickly understand how your application is running.
|
|
23
|
-
|
|
24
|
-
## Deployments
|
|
25
|
-
|
|
26
|
-
The **Deployments** page shows recent builds and gives you quick access to detailed build logs. Click any row to view more information about a specific deployment.
|
|
27
|
-
|
|
28
|
-

|
|
29
|
-
|
|
30
|
-
Key features:
|
|
31
|
-
|
|
32
|
-
Each deployment includes its current status, the Git branch it was deployed from, and a title generated from the commit hash.
|
|
33
|
-
|
|
34
|
-
## Logs
|
|
35
|
-
|
|
36
|
-
The **Logs** page is where you'll find detailed information to help debug and monitor your application's behavior in the production environment.
|
|
37
|
-
|
|
38
|
-

|
|
39
|
-
|
|
40
|
-
Key features:
|
|
41
|
-
|
|
42
|
-
Each log includes a severity level and detailed messages showing agent, workflow, and storage activity.
|
|
43
|
-
|
|
44
|
-
## Settings
|
|
45
|
-
|
|
46
|
-
On the **Settings** page you can modify the configuration of your application.
|
|
47
|
-
|
|
48
|
-

|
|
49
|
-
|
|
50
|
-
Key features:
|
|
51
|
-
|
|
52
|
-
You can manage environment variables, edit key project settings like the name and branch, configure storage with LibSQLStore, and set a stable URL for your endpoints.
|
|
53
|
-
|
|
54
|
-
> Changes to configuration require a new deployment before taking effect.
|
|
55
|
-
|
|
56
|
-
## Studio
|
|
57
|
-
|
|
58
|
-
### Agents
|
|
59
|
-
|
|
60
|
-
On the **Agents** page you'll see all agents used in your application. Click any agent to interact using the chat interface.
|
|
61
|
-
|
|
62
|
-

|
|
63
|
-
|
|
64
|
-
Key features:
|
|
65
|
-
|
|
66
|
-
Test your agents in real time using the chat interface, review traces of each interaction, and see evaluation scores for every response.
|
|
67
|
-
|
|
68
|
-
### Workflows
|
|
69
|
-
|
|
70
|
-
On the **Workflows** page you'll see all workflows used in your application. Click any workflow to interact using the runner interface.
|
|
71
|
-
|
|
72
|
-

|
|
73
|
-
|
|
74
|
-
Key features:
|
|
75
|
-
|
|
76
|
-
Visualize your workflow with a step-by-step graph, view execution traces, and run workflows directly using the built-in runner.
|
|
77
|
-
|
|
78
|
-
### Tools
|
|
79
|
-
|
|
80
|
-
On the **Tools** page you'll see all tools used by your agents. Click any tool to interact using the input interface.
|
|
81
|
-
|
|
82
|
-

|
|
83
|
-
|
|
84
|
-
Key features:
|
|
85
|
-
|
|
86
|
-
Test your tools by providing an input that matches the schema and viewing the structured output.
|
|
87
|
-
|
|
88
|
-
## MCP Servers
|
|
89
|
-
|
|
90
|
-
The **MCP Servers** page lists all MCP Servers included in your application. Click any MCP Server for more information.
|
|
91
|
-
|
|
92
|
-

|
|
93
|
-
|
|
94
|
-
Key features:
|
|
95
|
-
|
|
96
|
-
Each MCP Server includes API endpoints for HTTP and SSE, along with IDE configuration snippets for tools like Cursor and Windsurf.
|
|
97
|
-
|
|
98
|
-
## Next steps
|
|
99
|
-
|
|
100
|
-
- [Understanding Tracing and Logs](/docs/v1/deployment/mastra-cloud/observability)
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "Understanding Tracing and Logs | Mastra Cloud"
|
|
3
|
-
description: Monitoring and debugging tools for Mastra Cloud deployments
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
import { MastraCloudCallout } from "@site/src/components/MastraCloudCallout";
|
|
7
|
-
|
|
8
|
-
# Understanding Tracing and Logs
|
|
9
|
-
|
|
10
|
-
Mastra Cloud provides full observability for production applications, giving you insight into how your agents and workflows behave. Observability can be enabled whether your application is deployed to Mastra Cloud, running locally, or hosted on your own infrastructure. Any Mastra project can send traces and logs to the platform regardless of where it's running.
|
|
11
|
-
|
|
12
|
-
For details on configuring observability, see the [Cloud Exporter](/docs/v1/observability/tracing/exporters/cloud) docs.
|
|
13
|
-
|
|
14
|
-
<MastraCloudCallout />
|
|
15
|
-
|
|
16
|
-
## Traces
|
|
17
|
-
|
|
18
|
-
More detailed traces are available for both agents and workflows by enabling [observability](/docs/v1/observability/tracing/overview) using one of our [supported providers](/docs/v1/observability/tracing/overview#exporters).
|
|
19
|
-
|
|
20
|
-
### Agents
|
|
21
|
-
|
|
22
|
-
With observability enabled, you can view detailed outputs from your agents in the **Traces** section in Studio.
|
|
23
|
-
|
|
24
|
-

|
|
25
|
-
|
|
26
|
-
Key features:
|
|
27
|
-
|
|
28
|
-
Agent traces break a run into clear steps, model calls, tool calls, and intermediate chunks, each with timing, inputs, outputs, and errors. You can drill into any span to inspect prompts, token usage, and results, making it easy to diagnose issues and understand how the agent produced its output.
|
|
29
|
-
|
|
30
|
-
### Workflows
|
|
31
|
-
|
|
32
|
-
With observability enabled, you can view detailed outputs from your workflows in the **Traces** section in Studio.
|
|
33
|
-
|
|
34
|
-

|
|
35
|
-
|
|
36
|
-
Key features:
|
|
37
|
-
|
|
38
|
-
Workflow traces capture each step in the run, including transitions, branching, timing, and any tool calls inside the workflow. You can inspect inputs, outputs, and errors for every step, making it easy to debug long-running or multi-step processes and understand how data flows through the workflow.
|
|
39
|
-
|
|
40
|
-
## Logs
|
|
41
|
-
|
|
42
|
-
You can view detailed logs for debugging and monitoring your application's behavior on the [Logs](/docs/v1/deployment/mastra-cloud/dashboard#logs) page of the Dashboard.
|
|
43
|
-
|
|
44
|
-

|
|
45
|
-
|
|
46
|
-
Key features:
|
|
47
|
-
|
|
48
|
-
Each log entry includes its severity level and a detailed message showing agent, workflow, or storage activity.
|
|
49
|
-
|
|
50
|
-
## Next steps
|
|
51
|
-
|
|
52
|
-
- [Logging](/docs/v1/observability/logging)
|
|
53
|
-
- [Tracing](/docs/v1/observability/tracing/overview)
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: "Mastra Cloud | Mastra Cloud"
|
|
3
|
-
description: Deployment and monitoring service for Mastra applications
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
import { MastraCloudCallout } from "@site/src/components/MastraCloudCallout";
|
|
7
|
-
|
|
8
|
-
# Mastra Cloud
|
|
9
|
-
|
|
10
|
-
[Mastra Cloud](https://mastra.ai/cloud) is a platform for deploying, managing, monitoring, and debugging Mastra applications. When you [deploy](/docs/v1/deployment/mastra-cloud/setting-up) your application, Mastra Cloud exposes your agents, tools, and workflows as REST API endpoints.
|
|
11
|
-
|
|
12
|
-
<MastraCloudCallout />
|
|
13
|
-
|
|
14
|
-
## Platform features
|
|
15
|
-
|
|
16
|
-
Deploy and manage your applications with automated builds, organized projects, and no additional configuration.
|
|
17
|
-
|
|
18
|
-

|
|
19
|
-
|
|
20
|
-
Key features:
|
|
21
|
-
|
|
22
|
-
Mastra Cloud supports zero-config deployment, continuous integration with GitHub, and atomic deployments that package agents, tools, and workflows together.
|
|
23
|
-
|
|
24
|
-
## Project Dashboard
|
|
25
|
-
|
|
26
|
-
Monitor and debug your applications with detailed output logs, deployment state, and interactive tools.
|
|
27
|
-
|
|
28
|
-

|
|
29
|
-
|
|
30
|
-
Key features:
|
|
31
|
-
|
|
32
|
-
The Project Dashboard gives you an overview of your application's status and deployments, with access to logs and a Studio for testing agents and workflows.
|
|
33
|
-
|
|
34
|
-
## Project structure
|
|
35
|
-
|
|
36
|
-
Use a standard Mastra project structure for proper detection and deployment.
|
|
37
|
-
|
|
38
|
-
```shell
|
|
39
|
-
src
|
|
40
|
-
└── mastra
|
|
41
|
-
├── agents
|
|
42
|
-
│ └── agent-name.ts
|
|
43
|
-
├── tools
|
|
44
|
-
│ └── tool-name.ts
|
|
45
|
-
├── workflows
|
|
46
|
-
│ └── workflow-name.ts
|
|
47
|
-
└── index.ts
|
|
48
|
-
package.json
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
Mastra Cloud scans your repository for:
|
|
52
|
-
|
|
53
|
-
- **Agents**: Defined using: `new Agent({...})`
|
|
54
|
-
- **Tools**: Defined using: `createTool({...})`
|
|
55
|
-
- **Workflows**: Defined using: `createWorkflow({...})`
|
|
56
|
-
- **Steps**: Defined using: `createStep({...})`
|
|
57
|
-
- **Environment Variables**: API keys and configuration variables
|
|
58
|
-
|
|
59
|
-
## Technical implementation
|
|
60
|
-
|
|
61
|
-
Mastra Cloud is purpose-built for Mastra agents, tools, and workflows. It handles long-running requests, records detailed traces for every execution, and includes built-in support for evals.
|
|
62
|
-
|
|
63
|
-
## Next steps
|
|
64
|
-
|
|
65
|
-
- [Setting Up and Deploying](/docs/v1/deployment/mastra-cloud/setting-up)
|