@mastra/mcp-docs-server 0.0.0-a2a-20250421213654
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/%40mastra%2Fastra.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fchroma.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +253 -0
- package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +16 -0
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +202 -0
- package/.docs/organized/changelogs/%40mastra%2Fcore.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fevals.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Ffirecrawl.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fgithub.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Floggers.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fmcp-registry-registry.md +113 -0
- package/.docs/organized/changelogs/%40mastra%2Fmcp.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fmem0.md +281 -0
- package/.docs/organized/changelogs/%40mastra%2Fmemory.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fpg.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fpinecone.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fqdrant.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Frag.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fragie.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fserver.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fspeech-azure.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fspeech-deepgram.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fspeech-elevenlabs.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fspeech-google.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fspeech-ibm.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fspeech-murf.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fspeech-openai.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fspeech-playai.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fspeech-replicate.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fspeech-speechify.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fturbopuffer.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fupstash.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fvectorize.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fvoice-azure.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fvoice-cloudflare.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fvoice-deepgram.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fvoice-elevenlabs.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fvoice-google.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fvoice-murf.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fvoice-openai-realtime.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fvoice-openai.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fvoice-playai.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fvoice-sarvam.md +302 -0
- package/.docs/organized/changelogs/%40mastra%2Fvoice-speechify.md +302 -0
- package/.docs/organized/changelogs/create-mastra.md +302 -0
- package/.docs/organized/changelogs/mastra.md +302 -0
- package/.docs/organized/code-examples/agent-network.md +282 -0
- package/.docs/organized/code-examples/agent.md +426 -0
- package/.docs/organized/code-examples/ai-sdk-useChat.md +378 -0
- package/.docs/organized/code-examples/assistant-ui.md +37 -0
- package/.docs/organized/code-examples/bird-checker-with-express.md +235 -0
- package/.docs/organized/code-examples/bird-checker-with-nextjs-and-eval.md +360 -0
- package/.docs/organized/code-examples/bird-checker-with-nextjs.md +250 -0
- package/.docs/organized/code-examples/client-side-tools.md +69 -0
- package/.docs/organized/code-examples/crypto-chatbot.md +96 -0
- package/.docs/organized/code-examples/fireworks-r1.md +159 -0
- package/.docs/organized/code-examples/mcp-registry-registry.md +63 -0
- package/.docs/organized/code-examples/memory-todo-agent.md +164 -0
- package/.docs/organized/code-examples/memory-with-context.md +167 -0
- package/.docs/organized/code-examples/memory-with-libsql.md +204 -0
- package/.docs/organized/code-examples/memory-with-mem0.md +121 -0
- package/.docs/organized/code-examples/memory-with-pg.md +224 -0
- package/.docs/organized/code-examples/memory-with-upstash.md +268 -0
- package/.docs/organized/code-examples/quick-start.md +129 -0
- package/.docs/organized/code-examples/stock-price-tool.md +124 -0
- package/.docs/organized/code-examples/weather-agent.md +331 -0
- package/.docs/organized/code-examples/workflow-ai-recruiter.md +159 -0
- package/.docs/organized/code-examples/workflow-with-inline-steps.md +111 -0
- package/.docs/organized/code-examples/workflow-with-memory.md +393 -0
- package/.docs/organized/code-examples/workflow-with-separate-steps.md +131 -0
- package/.docs/raw/agents/adding-tools.mdx +288 -0
- package/.docs/raw/agents/adding-voice.mdx +200 -0
- package/.docs/raw/agents/agent-memory.mdx +62 -0
- package/.docs/raw/agents/mcp-guide.mdx +215 -0
- package/.docs/raw/agents/overview.mdx +303 -0
- package/.docs/raw/agents/runtime-variables.mdx +137 -0
- package/.docs/raw/community/discord.mdx +12 -0
- package/.docs/raw/community/licensing.mdx +63 -0
- package/.docs/raw/deployment/client.mdx +120 -0
- package/.docs/raw/deployment/deployment.mdx +127 -0
- package/.docs/raw/deployment/overview.mdx +63 -0
- package/.docs/raw/deployment/server.mdx +282 -0
- package/.docs/raw/evals/custom-eval.mdx +22 -0
- package/.docs/raw/evals/overview.mdx +95 -0
- package/.docs/raw/evals/running-in-ci.mdx +81 -0
- package/.docs/raw/evals/textual-evals.mdx +54 -0
- package/.docs/raw/faq/index.mdx +63 -0
- package/.docs/raw/frameworks/ai-sdk.mdx +296 -0
- package/.docs/raw/frameworks/next-js.mdx +238 -0
- package/.docs/raw/getting-started/installation.mdx +442 -0
- package/.docs/raw/getting-started/mcp-docs-server.mdx +141 -0
- package/.docs/raw/getting-started/model-capability.mdx +11 -0
- package/.docs/raw/getting-started/project-structure.mdx +80 -0
- package/.docs/raw/index.mdx +22 -0
- package/.docs/raw/integrations/index.mdx +213 -0
- package/.docs/raw/local-dev/add-to-existing-project.mdx +48 -0
- package/.docs/raw/local-dev/creating-a-new-project.mdx +54 -0
- package/.docs/raw/local-dev/mastra-dev.mdx +124 -0
- package/.docs/raw/mastra-cloud/deploying.mdx +136 -0
- package/.docs/raw/mastra-cloud/observability.mdx +163 -0
- package/.docs/raw/mastra-cloud/overview.mdx +57 -0
- package/.docs/raw/mastra-cloud/setting-up.mdx +122 -0
- package/.docs/raw/memory/memory-processors.mdx +131 -0
- package/.docs/raw/memory/overview.mdx +119 -0
- package/.docs/raw/memory/semantic-recall.mdx +126 -0
- package/.docs/raw/memory/working-memory.mdx +87 -0
- package/.docs/raw/observability/logging.mdx +38 -0
- package/.docs/raw/observability/nextjs-tracing.mdx +108 -0
- package/.docs/raw/observability/tracing.mdx +115 -0
- package/.docs/raw/rag/chunking-and-embedding.mdx +156 -0
- package/.docs/raw/rag/overview.mdx +85 -0
- package/.docs/raw/rag/retrieval.mdx +365 -0
- package/.docs/raw/rag/vector-databases.mdx +340 -0
- package/.docs/raw/reference/agents/createTool.mdx +229 -0
- package/.docs/raw/reference/agents/generate.mdx +334 -0
- package/.docs/raw/reference/agents/getAgent.mdx +54 -0
- package/.docs/raw/reference/agents/stream.mdx +369 -0
- package/.docs/raw/reference/cli/build.mdx +55 -0
- package/.docs/raw/reference/cli/dev.mdx +134 -0
- package/.docs/raw/reference/cli/init.mdx +43 -0
- package/.docs/raw/reference/client-js/agents.mdx +107 -0
- package/.docs/raw/reference/client-js/error-handling.mdx +38 -0
- package/.docs/raw/reference/client-js/logs.mdx +24 -0
- package/.docs/raw/reference/client-js/memory.mdx +97 -0
- package/.docs/raw/reference/client-js/telemetry.mdx +20 -0
- package/.docs/raw/reference/client-js/tools.mdx +44 -0
- package/.docs/raw/reference/client-js/vectors.mdx +79 -0
- package/.docs/raw/reference/client-js/workflows.mdx +136 -0
- package/.docs/raw/reference/core/mastra-class.mdx +232 -0
- package/.docs/raw/reference/deployer/cloudflare.mdx +212 -0
- package/.docs/raw/reference/deployer/deployer.mdx +159 -0
- package/.docs/raw/reference/deployer/netlify.mdx +116 -0
- package/.docs/raw/reference/deployer/vercel.mdx +122 -0
- package/.docs/raw/reference/evals/answer-relevancy.mdx +186 -0
- package/.docs/raw/reference/evals/bias.mdx +186 -0
- package/.docs/raw/reference/evals/completeness.mdx +174 -0
- package/.docs/raw/reference/evals/content-similarity.mdx +183 -0
- package/.docs/raw/reference/evals/context-position.mdx +190 -0
- package/.docs/raw/reference/evals/context-precision.mdx +189 -0
- package/.docs/raw/reference/evals/context-relevancy.mdx +188 -0
- package/.docs/raw/reference/evals/contextual-recall.mdx +191 -0
- package/.docs/raw/reference/evals/faithfulness.mdx +193 -0
- package/.docs/raw/reference/evals/hallucination.mdx +219 -0
- package/.docs/raw/reference/evals/keyword-coverage.mdx +176 -0
- package/.docs/raw/reference/evals/prompt-alignment.mdx +238 -0
- package/.docs/raw/reference/evals/summarization.mdx +205 -0
- package/.docs/raw/reference/evals/textual-difference.mdx +161 -0
- package/.docs/raw/reference/evals/tone-consistency.mdx +181 -0
- package/.docs/raw/reference/evals/toxicity.mdx +165 -0
- package/.docs/raw/reference/index.mdx +12 -0
- package/.docs/raw/reference/memory/Memory.mdx +212 -0
- package/.docs/raw/reference/memory/createThread.mdx +95 -0
- package/.docs/raw/reference/memory/getThreadById.mdx +46 -0
- package/.docs/raw/reference/memory/getThreadsByResourceId.mdx +48 -0
- package/.docs/raw/reference/memory/query.mdx +167 -0
- package/.docs/raw/reference/networks/agent-network.mdx +159 -0
- package/.docs/raw/reference/observability/create-logger.mdx +106 -0
- package/.docs/raw/reference/observability/logger.mdx +55 -0
- package/.docs/raw/reference/observability/otel-config.mdx +120 -0
- package/.docs/raw/reference/observability/providers/braintrust.mdx +40 -0
- package/.docs/raw/reference/observability/providers/dash0.mdx +40 -0
- package/.docs/raw/reference/observability/providers/index.mdx +16 -0
- package/.docs/raw/reference/observability/providers/laminar.mdx +41 -0
- package/.docs/raw/reference/observability/providers/langfuse.mdx +51 -0
- package/.docs/raw/reference/observability/providers/langsmith.mdx +48 -0
- package/.docs/raw/reference/observability/providers/langwatch.mdx +45 -0
- package/.docs/raw/reference/observability/providers/new-relic.mdx +40 -0
- package/.docs/raw/reference/observability/providers/signoz.mdx +40 -0
- package/.docs/raw/reference/observability/providers/traceloop.mdx +40 -0
- package/.docs/raw/reference/rag/astra.mdx +258 -0
- package/.docs/raw/reference/rag/chroma.mdx +281 -0
- package/.docs/raw/reference/rag/chunk.mdx +235 -0
- package/.docs/raw/reference/rag/document.mdx +127 -0
- package/.docs/raw/reference/rag/embeddings.mdx +160 -0
- package/.docs/raw/reference/rag/extract-params.mdx +249 -0
- package/.docs/raw/reference/rag/graph-rag.mdx +182 -0
- package/.docs/raw/reference/rag/libsql.mdx +357 -0
- package/.docs/raw/reference/rag/metadata-filters.mdx +298 -0
- package/.docs/raw/reference/rag/pg.mdx +501 -0
- package/.docs/raw/reference/rag/pinecone.mdx +281 -0
- package/.docs/raw/reference/rag/qdrant.mdx +236 -0
- package/.docs/raw/reference/rag/rerank.mdx +212 -0
- package/.docs/raw/reference/rag/turbopuffer.mdx +249 -0
- package/.docs/raw/reference/rag/upstash.mdx +247 -0
- package/.docs/raw/reference/rag/vectorize.mdx +298 -0
- package/.docs/raw/reference/storage/cloudflare-d1.mdx +89 -0
- package/.docs/raw/reference/storage/cloudflare.mdx +93 -0
- package/.docs/raw/reference/storage/libsql.mdx +74 -0
- package/.docs/raw/reference/storage/postgresql.mdx +93 -0
- package/.docs/raw/reference/storage/upstash.mdx +86 -0
- package/.docs/raw/reference/tools/client.mdx +321 -0
- package/.docs/raw/reference/tools/document-chunker-tool.mdx +141 -0
- package/.docs/raw/reference/tools/graph-rag-tool.mdx +154 -0
- package/.docs/raw/reference/tools/mcp-configuration.mdx +222 -0
- package/.docs/raw/reference/tools/vector-query-tool.mdx +212 -0
- package/.docs/raw/reference/voice/azure.mdx +215 -0
- package/.docs/raw/reference/voice/cloudflare.mdx +152 -0
- package/.docs/raw/reference/voice/composite-voice.mdx +140 -0
- package/.docs/raw/reference/voice/deepgram.mdx +164 -0
- package/.docs/raw/reference/voice/elevenlabs.mdx +216 -0
- package/.docs/raw/reference/voice/google.mdx +198 -0
- package/.docs/raw/reference/voice/mastra-voice.mdx +394 -0
- package/.docs/raw/reference/voice/murf.mdx +251 -0
- package/.docs/raw/reference/voice/openai-realtime.mdx +432 -0
- package/.docs/raw/reference/voice/openai.mdx +168 -0
- package/.docs/raw/reference/voice/playai.mdx +159 -0
- package/.docs/raw/reference/voice/sarvam.mdx +260 -0
- package/.docs/raw/reference/voice/speechify.mdx +145 -0
- package/.docs/raw/reference/voice/voice.addInstructions.mdx +70 -0
- package/.docs/raw/reference/voice/voice.addTools.mdx +77 -0
- package/.docs/raw/reference/voice/voice.answer.mdx +69 -0
- package/.docs/raw/reference/voice/voice.close.mdx +56 -0
- package/.docs/raw/reference/voice/voice.connect.mdx +124 -0
- package/.docs/raw/reference/voice/voice.events.mdx +80 -0
- package/.docs/raw/reference/voice/voice.getSpeakers.mdx +283 -0
- package/.docs/raw/reference/voice/voice.listen.mdx +198 -0
- package/.docs/raw/reference/voice/voice.off.mdx +72 -0
- package/.docs/raw/reference/voice/voice.on.mdx +129 -0
- package/.docs/raw/reference/voice/voice.send.mdx +81 -0
- package/.docs/raw/reference/voice/voice.speak.mdx +203 -0
- package/.docs/raw/reference/voice/voice.updateConfig.mdx +87 -0
- package/.docs/raw/reference/workflows/after.mdx +88 -0
- package/.docs/raw/reference/workflows/afterEvent.mdx +76 -0
- package/.docs/raw/reference/workflows/commit.mdx +37 -0
- package/.docs/raw/reference/workflows/createRun.mdx +77 -0
- package/.docs/raw/reference/workflows/else.mdx +72 -0
- package/.docs/raw/reference/workflows/events.mdx +305 -0
- package/.docs/raw/reference/workflows/execute.mdx +110 -0
- package/.docs/raw/reference/workflows/if.mdx +107 -0
- package/.docs/raw/reference/workflows/resume.mdx +155 -0
- package/.docs/raw/reference/workflows/resumeWithEvent.mdx +133 -0
- package/.docs/raw/reference/workflows/snapshots.mdx +207 -0
- package/.docs/raw/reference/workflows/start.mdx +84 -0
- package/.docs/raw/reference/workflows/step-class.mdx +100 -0
- package/.docs/raw/reference/workflows/step-condition.mdx +134 -0
- package/.docs/raw/reference/workflows/step-function.mdx +92 -0
- package/.docs/raw/reference/workflows/step-options.mdx +69 -0
- package/.docs/raw/reference/workflows/step-retries.mdx +203 -0
- package/.docs/raw/reference/workflows/suspend.mdx +70 -0
- package/.docs/raw/reference/workflows/then.mdx +74 -0
- package/.docs/raw/reference/workflows/until.mdx +165 -0
- package/.docs/raw/reference/workflows/watch.mdx +118 -0
- package/.docs/raw/reference/workflows/while.mdx +168 -0
- package/.docs/raw/reference/workflows/workflow.mdx +233 -0
- package/.docs/raw/storage/overview.mdx +378 -0
- package/.docs/raw/voice/overview.mdx +816 -0
- package/.docs/raw/voice/speech-to-speech.mdx +73 -0
- package/.docs/raw/voice/speech-to-text.mdx +84 -0
- package/.docs/raw/voice/text-to-speech.mdx +89 -0
- package/.docs/raw/workflows/control-flow.mdx +778 -0
- package/.docs/raw/workflows/dynamic-workflows.mdx +236 -0
- package/.docs/raw/workflows/error-handling.mdx +183 -0
- package/.docs/raw/workflows/nested-workflows.mdx +352 -0
- package/.docs/raw/workflows/overview.mdx +170 -0
- package/.docs/raw/workflows/runtime-variables.mdx +153 -0
- package/.docs/raw/workflows/steps.mdx +108 -0
- package/.docs/raw/workflows/suspend-and-resume.mdx +404 -0
- package/.docs/raw/workflows/variables.mdx +313 -0
- package/LICENSE.md +46 -0
- package/README.md +129 -0
- package/dist/_tsup-dts-rollup.d.ts +140 -0
- package/dist/chunk-HYPVNJL7.js +194 -0
- package/dist/prepare-docs/prepare.d.ts +1 -0
- package/dist/prepare-docs/prepare.js +1 -0
- package/dist/stdio.d.ts +1 -0
- package/dist/stdio.js +650 -0
- package/package.json +60 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "Inspecting Agents with `mastra dev` | Mastra Local Dev Docs"
|
|
3
|
+
description: Documentation for the Mastra local development environment for Mastra applications.
|
|
4
|
+
---
|
|
5
|
+
import YouTube from "@/components/youtube";
|
|
6
|
+
|
|
7
|
+
# Local Development Environment
|
|
8
|
+
|
|
9
|
+
Mastra provides a local development environment where you can test your agents, workflows, and tools while developing locally.
|
|
10
|
+
|
|
11
|
+
<YouTube id="spGlcTEjuXY" />
|
|
12
|
+
|
|
13
|
+
## Launch Development Server
|
|
14
|
+
|
|
15
|
+
You can launch the Mastra development environment using the Mastra CLI by running:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
mastra dev
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
By default, the server runs at http://localhost:4111, but you can change the port with the `--port` flag.
|
|
22
|
+
|
|
23
|
+
## Dev Playground
|
|
24
|
+
|
|
25
|
+
`mastra dev` serves a playground UI for interacting with your agents, workflows, and tools. The playground provides dedicated interfaces for testing each component of your Mastra application during development.
|
|
26
|
+
|
|
27
|
+
### Agent Playground
|
|
28
|
+
|
|
29
|
+
The Agent playground provides an interactive chat interface where you can test and debug your agents during development. Key features include:
|
|
30
|
+
|
|
31
|
+
- **Chat Interface**: Directly interact with your agents to test their responses and behavior.
|
|
32
|
+
- **Prompt CMS**: Experiment with different system instructions for your agent:
|
|
33
|
+
- A/B test different prompt versions.
|
|
34
|
+
- Track performance metrics for each variant.
|
|
35
|
+
- Select and deploy the most effective prompt version.
|
|
36
|
+
- **Agent Traces**: View detailed execution traces to understand how your agent processes requests, including:
|
|
37
|
+
- Prompt construction.
|
|
38
|
+
- Tool usage.
|
|
39
|
+
- Decision-making steps.
|
|
40
|
+
- Response generation.
|
|
41
|
+
- **Agent Evals**: When you've set up [Agent evaluation metrics](/docs/evals/overview), you can:
|
|
42
|
+
- Run evaluations directly from the playground.
|
|
43
|
+
- View evaluation results and metrics.
|
|
44
|
+
- Compare agent performance across different test cases.
|
|
45
|
+
|
|
46
|
+
### Workflow Playground
|
|
47
|
+
|
|
48
|
+
The Workflow playground helps you visualize and test your workflow implementations:
|
|
49
|
+
|
|
50
|
+
- **Workflow Visualization**: Workflow graph visualization.
|
|
51
|
+
|
|
52
|
+
- **Run Workflows**:
|
|
53
|
+
- Trigger test workflow runs with custom input data.
|
|
54
|
+
- Debug workflow logic and conditions.
|
|
55
|
+
- Simulate different execution paths.
|
|
56
|
+
- View detailed execution logs for each step.
|
|
57
|
+
|
|
58
|
+
- **Workflow Traces**: Examine detailed execution traces that show:
|
|
59
|
+
- Step-by-step workflow progression.
|
|
60
|
+
- State transitions and data flow.
|
|
61
|
+
- Tool invocations and their results.
|
|
62
|
+
- Decision points and branching logic.
|
|
63
|
+
- Error handling and recovery paths.
|
|
64
|
+
|
|
65
|
+
### Tools Playground
|
|
66
|
+
|
|
67
|
+
The Tools playground allows you to test your custom tools in isolation:
|
|
68
|
+
|
|
69
|
+
- Test individual tools without running a full agent or workflow.
|
|
70
|
+
- Input test data and view tool responses.
|
|
71
|
+
- Debug tool implementation and error handling.
|
|
72
|
+
- Verify tool input/output schemas.
|
|
73
|
+
- Monitor tool performance and execution time.
|
|
74
|
+
|
|
75
|
+
## REST API Endpoints
|
|
76
|
+
|
|
77
|
+
`mastra dev` also spins up REST API routes for your agents and workflows via the local [Mastra Server](/docs/deployment/server). This allows you to test your API endpoints before deployment. See [Mastra Dev reference](/reference/cli/dev#routes) for more details about all endpoints.
|
|
78
|
+
|
|
79
|
+
You can then leverage the [Mastra Client](/docs/deployment/client) SDK to interact with your served REST API routes seamlessly.
|
|
80
|
+
|
|
81
|
+
## OpenAPI Specification
|
|
82
|
+
|
|
83
|
+
`mastra dev` provides an OpenAPI spec at http://localhost:4111/openapi.json
|
|
84
|
+
|
|
85
|
+
## Local Dev Architecture
|
|
86
|
+
|
|
87
|
+
The local development server is designed to run without any external dependencies or containerization. This is achieved through:
|
|
88
|
+
|
|
89
|
+
- **Dev Server**: Uses [Hono](https://hono.dev) as the underlying framework to power the [Mastra Server](/docs/deployment/server).
|
|
90
|
+
|
|
91
|
+
- **In-Memory Storage**: Uses [LibSQL](https://libsql.org/) memory adapters for:
|
|
92
|
+
- Agent memory management.
|
|
93
|
+
- Trace storage.
|
|
94
|
+
- Evals storage.
|
|
95
|
+
- Workflow snapshots.
|
|
96
|
+
|
|
97
|
+
- **Vector Storage**: Uses [FastEmbed](https://github.com/qdrant/fastembed) for:
|
|
98
|
+
- Default embedding generation.
|
|
99
|
+
- Vector storage and retrieval.
|
|
100
|
+
- Semantic search capabilities.
|
|
101
|
+
|
|
102
|
+
This architecture allows you to start developing immediately without setting up databases or vector stores, while still maintaining production-like behavior in your local environment.
|
|
103
|
+
|
|
104
|
+
### Model settings
|
|
105
|
+
|
|
106
|
+
The local devleopment server also lets you configure the model settings in Overview > Model Settings.
|
|
107
|
+
|
|
108
|
+
You can configure the following settings:
|
|
109
|
+
|
|
110
|
+
- **Temperature**: Controls randomness in model outputs. Higher values (0-2) produce more creative responses while lower values make outputs more focused and deterministic.
|
|
111
|
+
- **Top P**: Sets cumulative probability threshold for token sampling. Lower values (0-1) make outputs more focused by considering only the most likely tokens.
|
|
112
|
+
- **Top K**: Limits the number of tokens considered for each generation step. Lower values produce more focused outputs by sampling from fewer options.
|
|
113
|
+
- **Frequency Penalty**: Reduces repetition by penalizing tokens based on their frequency in previous text. Higher values (0-2) discourage reuse of common tokens.
|
|
114
|
+
- **Presence Penalty**: Reduces repetition by penalizing tokens that appear in previous text. Higher values (0-2) encourage the model to discuss new topics.
|
|
115
|
+
- **Max Tokens**: Maximum number of tokens allowed in the model's response. Higher values allow for longer outputs but may increase latency.
|
|
116
|
+
- **Max Steps**: Maximum number of steps a workflow or agent can execute before stopping. Prevents infinite loops and runaway processes.
|
|
117
|
+
- **Max Retries**: Number of times to retry failed API calls or model requests before giving up. Helps handle temporary failures gracefully.
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
## Summary
|
|
121
|
+
|
|
122
|
+
`mastra dev` makes it easy to develop, debug, and iterate on your AI logic in a self-contained environment before deploying to production.
|
|
123
|
+
|
|
124
|
+
- [Mastra Dev reference](../../reference/cli/dev.mdx)
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Deploying to Mastra Cloud
|
|
3
|
+
description: GitHub-based deployment process for Mastra applications
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Deploying to Mastra Cloud
|
|
7
|
+
|
|
8
|
+
This page describes the deployment process for Mastra applications to Mastra Cloud using GitHub integration.
|
|
9
|
+
|
|
10
|
+
## Prerequisites
|
|
11
|
+
|
|
12
|
+
- A GitHub account
|
|
13
|
+
- A GitHub repository containing a Mastra application
|
|
14
|
+
- Access to Mastra Cloud
|
|
15
|
+
|
|
16
|
+
## Deployment Process
|
|
17
|
+
|
|
18
|
+
Mastra Cloud uses a Git-based deployment workflow similar to platforms like Vercel and Netlify:
|
|
19
|
+
|
|
20
|
+
1. **Import GitHub Repository**
|
|
21
|
+
- From the Projects dashboard, click "Add new"
|
|
22
|
+
- Select the repository containing your Mastra application
|
|
23
|
+
- Click "Import" next to the desired repository
|
|
24
|
+
|
|
25
|
+
2. **Configure Deployment Settings**
|
|
26
|
+
- Set the project name (defaults to repository name)
|
|
27
|
+
- Select branch to deploy (typically `main`)
|
|
28
|
+
- Configure the Mastra directory path (defaults to `src/mastra`)
|
|
29
|
+
- Add necessary environment variables (like API keys)
|
|
30
|
+
|
|
31
|
+
3. **Deploy from Git**
|
|
32
|
+
- After initial configuration, deployments are triggered by pushes to the selected branch
|
|
33
|
+
- Mastra Cloud automatically builds and deploys your application
|
|
34
|
+
- Each deployment creates an atomic snapshot of your agents and workflows
|
|
35
|
+
|
|
36
|
+
## Automatic Deployments
|
|
37
|
+
|
|
38
|
+
Mastra Cloud follows a Git-driven workflow:
|
|
39
|
+
|
|
40
|
+
1. Make changes to your Mastra application locally
|
|
41
|
+
2. Commit changes to the `main` branch
|
|
42
|
+
3. Push to GitHub
|
|
43
|
+
4. Mastra Cloud automatically detects the push and creates a new deployment
|
|
44
|
+
5. Once the build completes, your application is live
|
|
45
|
+
|
|
46
|
+
## Deployment Domains
|
|
47
|
+
|
|
48
|
+
Each project receives two URLs:
|
|
49
|
+
|
|
50
|
+
1. **Project-specific domain**: `https://[project-name].mastra.cloud`
|
|
51
|
+
- Example: `https://gray-acoustic-helicopter.mastra.cloud`
|
|
52
|
+
|
|
53
|
+
2. **Deployment-specific domain**: `https://[deployment-id].mastra.cloud`
|
|
54
|
+
- Example: `https://young-loud-caravan-6156280f-ad56-4ec8-9701-6bb5271fd73d.mastra.cloud`
|
|
55
|
+
|
|
56
|
+
These URLs provide direct access to your deployed agents and workflows.
|
|
57
|
+
|
|
58
|
+
## Viewing Deployments
|
|
59
|
+
|
|
60
|
+

|
|
61
|
+
|
|
62
|
+
The deployments section in the dashboard shows:
|
|
63
|
+
|
|
64
|
+
- **Title**: Deployment identifier (based on commit hash)
|
|
65
|
+
- **Status**: Current state (success or archived)
|
|
66
|
+
- **Branch**: The branch used (typically `main`)
|
|
67
|
+
- **Commit**: The Git commit hash
|
|
68
|
+
- **Updated At**: Timestamp of the deployment
|
|
69
|
+
|
|
70
|
+
Each deployment represents an atomic snapshot of your Mastra application at a specific point in time.
|
|
71
|
+
|
|
72
|
+
## Interacting with Agents
|
|
73
|
+
|
|
74
|
+

|
|
75
|
+
|
|
76
|
+
After deployment, interact with your agents:
|
|
77
|
+
|
|
78
|
+
1. Navigate to your project in the dashboard
|
|
79
|
+
2. Go to the Agents section
|
|
80
|
+
3. Select an agent to view its details and interface
|
|
81
|
+
4. Use the Chat tab to communicate with your agent
|
|
82
|
+
5. View the agent's configuration in the right panel:
|
|
83
|
+
- Model information (e.g., OpenAI)
|
|
84
|
+
- Available tools (e.g., getWeather)
|
|
85
|
+
- Complete system prompt
|
|
86
|
+
6. Use suggested prompts (like "What capabilities do you have?") or enter custom messages
|
|
87
|
+
|
|
88
|
+
The interface shows the agent's branch (typically "main") and indicates whether conversation memory is enabled.
|
|
89
|
+
|
|
90
|
+
## Monitoring Logs
|
|
91
|
+
|
|
92
|
+
The Logs section provides detailed information about your application:
|
|
93
|
+
|
|
94
|
+
- **Time**: When the log entry was created
|
|
95
|
+
- **Level**: Log level (info, debug)
|
|
96
|
+
- **Hostname**: Server identification
|
|
97
|
+
- **Message**: Detailed log information, including:
|
|
98
|
+
- API initialization
|
|
99
|
+
- Storage connections
|
|
100
|
+
- Agent and workflow activity
|
|
101
|
+
|
|
102
|
+
These logs help debug and monitor your application's behavior in the production environment.
|
|
103
|
+
|
|
104
|
+
## Workflows
|
|
105
|
+
|
|
106
|
+

|
|
107
|
+
|
|
108
|
+
The Workflows section allows you to view and interact with your deployed workflows:
|
|
109
|
+
|
|
110
|
+
1. View all workflows in your project
|
|
111
|
+
2. Examine workflow structure and steps
|
|
112
|
+
3. Access execution history and performance data
|
|
113
|
+
|
|
114
|
+
## Database Usage
|
|
115
|
+
|
|
116
|
+
Mastra Cloud tracks database utilization metrics:
|
|
117
|
+
|
|
118
|
+
- Number of reads
|
|
119
|
+
- Number of writes
|
|
120
|
+
- Storage used (MB)
|
|
121
|
+
|
|
122
|
+
These metrics appear in the project overview, helping you monitor resource consumption.
|
|
123
|
+
|
|
124
|
+
## Deployment Configuration
|
|
125
|
+
|
|
126
|
+
Configure your deployment through the dashboard:
|
|
127
|
+
|
|
128
|
+
1. Navigate to your project settings
|
|
129
|
+
2. Set environment variables (like `OPENAI_API_KEY`)
|
|
130
|
+
3. Configure project-specific settings
|
|
131
|
+
|
|
132
|
+
Changes to configuration require a new deployment to take effect.
|
|
133
|
+
|
|
134
|
+
## Next Steps
|
|
135
|
+
|
|
136
|
+
After deployment, [trace and monitor execution](/docs/mastra-cloud/observability) using the observability tools.
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Observability in Mastra Cloud
|
|
3
|
+
description: Monitoring and debugging tools for Mastra Cloud deployments
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Observability in Mastra Cloud
|
|
7
|
+
|
|
8
|
+
Mastra Cloud records execution data for monitoring and debugging. It captures traces, logs, and runtime information from agents and workflows.
|
|
9
|
+
|
|
10
|
+
## Agent Interface
|
|
11
|
+
|
|
12
|
+
The agent interface offers three main views, accessible via tabs:
|
|
13
|
+
|
|
14
|
+
1. **Chat**: Interactive messaging interface to test your agent
|
|
15
|
+
2. **Traces**: Detailed execution records
|
|
16
|
+
3. **Evaluation**: Agent performance assessment
|
|
17
|
+
|
|
18
|
+

|
|
19
|
+
|
|
20
|
+
### Chat Interface
|
|
21
|
+
|
|
22
|
+
The Chat tab provides:
|
|
23
|
+
|
|
24
|
+
- Interactive messaging with deployed agents
|
|
25
|
+
- System response to user queries
|
|
26
|
+
- Suggested prompt buttons (e.g., "What capabilities do you have?")
|
|
27
|
+
- Message input area
|
|
28
|
+
- Branch indicator (e.g., "main")
|
|
29
|
+
- Note about agent memory limitations
|
|
30
|
+
|
|
31
|
+
### Agent Configuration Panel
|
|
32
|
+
|
|
33
|
+
The right sidebar displays agent details:
|
|
34
|
+
|
|
35
|
+
- Agent name and deployment identifier
|
|
36
|
+
- Model information (e.g., "OpenAI")
|
|
37
|
+
- Tools available to the agent (e.g., "getWeather")
|
|
38
|
+
- Complete system prompt text
|
|
39
|
+
|
|
40
|
+
This panel provides visibility into how the agent is configured without needing to check the source code.
|
|
41
|
+
|
|
42
|
+
## Trace System
|
|
43
|
+
|
|
44
|
+
Mastra Cloud records traces for agent and workflow interactions.
|
|
45
|
+
|
|
46
|
+
### Trace Explorer Interface
|
|
47
|
+
|
|
48
|
+

|
|
49
|
+
|
|
50
|
+
The Trace Explorer interface shows:
|
|
51
|
+
|
|
52
|
+
- All agent and workflow interactions
|
|
53
|
+
- Specific trace details
|
|
54
|
+
- Input and output data
|
|
55
|
+
- Tool calls with parameters and results
|
|
56
|
+
- Workflow execution paths
|
|
57
|
+
- Filtering options by type, status, timestamp, and agent/workflow
|
|
58
|
+
|
|
59
|
+
### Trace Data Structure
|
|
60
|
+
|
|
61
|
+
Each trace contains:
|
|
62
|
+
|
|
63
|
+
1. **Request Data**: The request that initiated the agent or workflow
|
|
64
|
+
2. **Tool Call Records**: Tool calls during execution with parameters
|
|
65
|
+
3. **Tool Response Data**: The responses from tool calls
|
|
66
|
+
4. **Agent Response Data**: The generated agent response
|
|
67
|
+
5. **Execution Timestamps**: Timing information for each execution step
|
|
68
|
+
6. **Model Metadata**: Information about model usage and tokens
|
|
69
|
+
|
|
70
|
+
The trace view displays all API calls and results throughout execution. This data helps debug tool usage and agent logic flows.
|
|
71
|
+
|
|
72
|
+
### Agent Interaction Data
|
|
73
|
+
|
|
74
|
+
Agent interaction traces include:
|
|
75
|
+
|
|
76
|
+
- User input text
|
|
77
|
+
- Agent processing steps
|
|
78
|
+
- Tool calls (e.g., weather API calls)
|
|
79
|
+
- Parameters and results for each tool call
|
|
80
|
+
- Final agent response text
|
|
81
|
+
|
|
82
|
+
## Dashboard Structure
|
|
83
|
+
|
|
84
|
+
The Mastra Cloud dashboard contains:
|
|
85
|
+
|
|
86
|
+
- Project deployment history
|
|
87
|
+
- Environment variable configuration
|
|
88
|
+
- Agent configuration details (model, system prompt, tools)
|
|
89
|
+
- Workflow step visualization
|
|
90
|
+
- Deployment URLs
|
|
91
|
+
- Recent activity log
|
|
92
|
+
|
|
93
|
+
## Agent Testing
|
|
94
|
+
|
|
95
|
+
Test your agents using the Chat interface:
|
|
96
|
+
|
|
97
|
+
1. Navigate to the Agents section
|
|
98
|
+
2. Select the agent you want to test
|
|
99
|
+
3. Use the Chat tab to interact with your agent
|
|
100
|
+
4. Send messages and view responses
|
|
101
|
+
5. Use suggested prompts for common queries
|
|
102
|
+
6. Switch to the Traces tab to view execution details
|
|
103
|
+
|
|
104
|
+
Note that by default, agents do not remember conversation history across sessions. The interface indicates this with the message: "Agent will not remember previous messages. To enable memory for agent see docs."
|
|
105
|
+
|
|
106
|
+
## Workflow Monitoring
|
|
107
|
+
|
|
108
|
+

|
|
109
|
+
|
|
110
|
+
Workflow monitoring shows:
|
|
111
|
+
|
|
112
|
+
- Diagram of workflow steps and connections
|
|
113
|
+
- Status for each workflow step
|
|
114
|
+
- Execution details for each step
|
|
115
|
+
- Execution trace records
|
|
116
|
+
- Multi-step process execution (e.g., weather lookup followed by activity planning)
|
|
117
|
+
|
|
118
|
+
### Workflow Execution
|
|
119
|
+
|
|
120
|
+

|
|
121
|
+
|
|
122
|
+
When examining a specific workflow execution, you can see the detailed steps and their outputs.
|
|
123
|
+
|
|
124
|
+
## Logs
|
|
125
|
+
|
|
126
|
+

|
|
127
|
+
|
|
128
|
+
The Logs section provides detailed information about your application:
|
|
129
|
+
|
|
130
|
+
- **Time**: When the log entry was created
|
|
131
|
+
- **Level**: Log level (info, debug)
|
|
132
|
+
- **Hostname**: Server identification
|
|
133
|
+
- **Message**: Detailed log information, including:
|
|
134
|
+
- API initialization
|
|
135
|
+
- Storage connections
|
|
136
|
+
- Agent and workflow activity
|
|
137
|
+
|
|
138
|
+
## Technical Features
|
|
139
|
+
|
|
140
|
+
The observability system includes:
|
|
141
|
+
|
|
142
|
+
- **API Endpoints**: For programmatic access to trace data
|
|
143
|
+
- **Structured Trace Format**: JSON format for filtering and query operations
|
|
144
|
+
- **Historical Data Storage**: Retention of past execution records
|
|
145
|
+
- **Deployment Version Links**: Correlation between traces and deployment versions
|
|
146
|
+
|
|
147
|
+
## Debugging Patterns
|
|
148
|
+
|
|
149
|
+
- Compare trace data when testing agent behavior changes
|
|
150
|
+
- Use the chat interface to test edge case inputs
|
|
151
|
+
- View system prompts to understand agent behavior
|
|
152
|
+
- Examine tool call parameters and results
|
|
153
|
+
- Verify workflow execution step sequencing
|
|
154
|
+
- Identify execution bottlenecks in trace timing data
|
|
155
|
+
- Compare trace differences between agent versions
|
|
156
|
+
|
|
157
|
+
## Support Resources
|
|
158
|
+
|
|
159
|
+
For technical assistance with observability:
|
|
160
|
+
|
|
161
|
+
- Review the [Troubleshooting Documentation]()
|
|
162
|
+
- Contact technical support through the dashboard
|
|
163
|
+
- Join the [Discord developer channel](https://discord.gg/mastra)
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Mastra Cloud
|
|
3
|
+
description: Deployment and monitoring service for Mastra applications
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Mastra Cloud
|
|
7
|
+
|
|
8
|
+
Mastra Cloud is a deployment service that runs, manages, and monitors Mastra applications. It works with standard Mastra projects and handles deployment, scaling, and operational tasks.
|
|
9
|
+
|
|
10
|
+
## Core Functionality
|
|
11
|
+
|
|
12
|
+
- **Atomic Deployments** - Agents and workflows deploy as a single unit
|
|
13
|
+
- **Project Organization** - Group agents and workflows into projects with assigned URLs
|
|
14
|
+
- **Environment Variables** - Store configuration securely by environment
|
|
15
|
+
- **Testing Console** - Send messages to agents through a web interface
|
|
16
|
+
- **Execution Tracing** - Record agent interactions and tool calls
|
|
17
|
+
- **Workflow Visualization** - Display workflow steps and execution paths
|
|
18
|
+
- **Logs** - Standard logging output for debugging
|
|
19
|
+
- **Platform Compatibility** - Uses the same infrastructure as Cloudflare, Vercel, and Netlify deployers
|
|
20
|
+
|
|
21
|
+
## Dashboard Components
|
|
22
|
+
|
|
23
|
+
The Mastra Cloud dashboard contains:
|
|
24
|
+
|
|
25
|
+
- **Projects List** - All projects in the account
|
|
26
|
+
- **Project Details** - Deployments, environment variables, and access URLs
|
|
27
|
+
- **Deployment History** - Record of deployments with timestamps and status
|
|
28
|
+
- **Agent Inspector** - Agent configuration view showing models, tools, and system prompts
|
|
29
|
+
- **Testing Console** - Interface for sending messages to agents
|
|
30
|
+
- **Trace Explorer** - Records of tool calls, parameters, and responses
|
|
31
|
+
- **Workflow Viewer** - Diagram of workflow steps and connections
|
|
32
|
+
|
|
33
|
+
## Technical Implementation
|
|
34
|
+
|
|
35
|
+
Mastra Cloud runs on the same core code as the platform-specific deployers with these modifications:
|
|
36
|
+
|
|
37
|
+
- **Edge Network Distribution** - Geographically distributed execution
|
|
38
|
+
- **Dynamic Resource Allocation** - Adjusts compute resources based on traffic
|
|
39
|
+
- **Mastra-specific Runtime** - Runtime optimized for agent execution
|
|
40
|
+
- **Standard Deployment API** - Consistent deployment interface across environments
|
|
41
|
+
- **Tracing Infrastructure** - Records all agent and workflow execution steps
|
|
42
|
+
|
|
43
|
+
## Use Cases
|
|
44
|
+
|
|
45
|
+
Common usage patterns:
|
|
46
|
+
|
|
47
|
+
- Deploying applications without managing infrastructure
|
|
48
|
+
- Maintaining staging and production environments
|
|
49
|
+
- Monitoring agent behavior across many requests
|
|
50
|
+
- Testing agent responses through a web interface
|
|
51
|
+
- Deploying to multiple regions
|
|
52
|
+
|
|
53
|
+
## Setup Process
|
|
54
|
+
|
|
55
|
+
1. [Configure a Mastra Cloud project](/docs/mastra-cloud/setting-up)
|
|
56
|
+
2. [Deploy code](/docs/mastra-cloud/deploying)
|
|
57
|
+
3. [View execution traces](/docs/mastra-cloud/observability)
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Setting Up a Project
|
|
3
|
+
description: Configuration steps for Mastra Cloud projects
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Setting Up a Mastra Cloud Project
|
|
7
|
+
|
|
8
|
+
This page describes the steps to set up a project on Mastra Cloud using GitHub integration.
|
|
9
|
+
|
|
10
|
+
## Prerequisites
|
|
11
|
+
|
|
12
|
+
- A Mastra Cloud account
|
|
13
|
+
- A GitHub account
|
|
14
|
+
- A GitHub repository containing a Mastra application
|
|
15
|
+
|
|
16
|
+
## Project Creation Process
|
|
17
|
+
|
|
18
|
+
1. **Sign in to Mastra Cloud**
|
|
19
|
+
- Navigate to the Mastra Cloud dashboard at https://cloud.mastra.ai
|
|
20
|
+
- Sign in with your account credentials
|
|
21
|
+
|
|
22
|
+
2. **Add a New Project**
|
|
23
|
+
- From the "All Projects" view, click the "Add new" button in the top right
|
|
24
|
+
- This opens the GitHub repository import dialog
|
|
25
|
+
|
|
26
|
+

|
|
27
|
+
|
|
28
|
+
3. **Import Git Repository**
|
|
29
|
+
- Search for repositories or select from the list of available GitHub repositories
|
|
30
|
+
- Click the "Import" button next to the repository you want to deploy
|
|
31
|
+
|
|
32
|
+
4. **Configure Deployment Details**
|
|
33
|
+
The deployment configuration page includes:
|
|
34
|
+
- **Repo Name**: The GitHub repository name (read-only)
|
|
35
|
+
- **Project Name**: Customize the project name (defaults to repo name)
|
|
36
|
+
- **Branch**: Select the branch to deploy (dropdown, defaults to `main`)
|
|
37
|
+
- **Project root**: Set the root directory of your project (defaults to `/`)
|
|
38
|
+
- **Mastra Directory**: Specify where Mastra files are located (defaults to `src/mastra`)
|
|
39
|
+
- **Build Command**: Optional command to run during build process
|
|
40
|
+
- **Store Settings**: Configure data storage options
|
|
41
|
+
- **Environment Variables**: Add key-value pairs for configuration (e.g., API keys)
|
|
42
|
+
|
|
43
|
+
## Project Structure Requirements
|
|
44
|
+
|
|
45
|
+
Mastra Cloud scans the GitHub repository for:
|
|
46
|
+
|
|
47
|
+
- **Agents**: Agent definitions (e.g., Weather Agent) with models and tools
|
|
48
|
+
- **Workflows**: Workflow step definitions (e.g., weather-workflow)
|
|
49
|
+
- **Environment Variables**: Required API keys and configuration variables
|
|
50
|
+
|
|
51
|
+
The repository should contain a standard Mastra project structure for proper detection and deployment.
|
|
52
|
+
|
|
53
|
+
## Understanding the Dashboard
|
|
54
|
+
|
|
55
|
+
After creating a project, the dashboard shows:
|
|
56
|
+
|
|
57
|
+
### Project Overview
|
|
58
|
+
|
|
59
|
+
- **Created Date**: When the project was created
|
|
60
|
+
- **Domains**: URLs for accessing your deployed application
|
|
61
|
+
- Format: `https://[project-name].mastra.cloud`
|
|
62
|
+
- Format: `https://[random-id].mastra.cloud`
|
|
63
|
+
- **Status**: Current deployment status (success or archived)
|
|
64
|
+
- **Branch**: The branch deployed (typically `main`)
|
|
65
|
+
- **Environment Variables**: Configured API keys and settings
|
|
66
|
+
- **Workflows**: List of detected workflows with step counts
|
|
67
|
+
- **Agents**: List of detected agents with models and tools
|
|
68
|
+
- **Database Usage**: Reads, writes, and storage statistics
|
|
69
|
+
|
|
70
|
+
### Deployments Section
|
|
71
|
+
|
|
72
|
+
- List of all deployments with:
|
|
73
|
+
- Deployment ID (based on commit hash)
|
|
74
|
+
- Status (success/archived)
|
|
75
|
+
- Branch
|
|
76
|
+
- Commit hash
|
|
77
|
+
- Timestamp
|
|
78
|
+
|
|
79
|
+
### Logs Section
|
|
80
|
+
|
|
81
|
+
The Logs view displays:
|
|
82
|
+
|
|
83
|
+
- Timestamp for each log entry
|
|
84
|
+
- Log level (info, debug)
|
|
85
|
+
- Hostname
|
|
86
|
+
- Detailed log messages, including:
|
|
87
|
+
- API startup information
|
|
88
|
+
- Storage initialization
|
|
89
|
+
- Agent and workflow activity
|
|
90
|
+
|
|
91
|
+
## Navigation
|
|
92
|
+
|
|
93
|
+
The sidebar provides access to:
|
|
94
|
+
|
|
95
|
+
- **Overview**: Project summary and statistics
|
|
96
|
+
- **Deployments**: Deployment history and details
|
|
97
|
+
- **Logs**: Application logs for debugging
|
|
98
|
+
- **Agents**: List and configuration of all agents
|
|
99
|
+
- **Workflows**: List and structure of all workflows
|
|
100
|
+
- **Settings**: Project configuration options
|
|
101
|
+
|
|
102
|
+
## Environment Variable Configuration
|
|
103
|
+
|
|
104
|
+
Set environment variables through the dashboard:
|
|
105
|
+
|
|
106
|
+
1. Navigate to your project in the dashboard
|
|
107
|
+
2. Go to the "Environment Variables" section
|
|
108
|
+
3. Add or edit variables (such as `OPENAI_API_KEY`)
|
|
109
|
+
4. Save the configuration
|
|
110
|
+
|
|
111
|
+
Environment variables are encrypted and made available to your application during deployment and execution.
|
|
112
|
+
|
|
113
|
+
## Testing Your Deployment
|
|
114
|
+
|
|
115
|
+
After deployment, you can test your agents and workflows using:
|
|
116
|
+
|
|
117
|
+
1. The custom domain assigned to your project: `https://[project-name].mastra.cloud`
|
|
118
|
+
2. The dashboard interface for direct interaction with agents
|
|
119
|
+
|
|
120
|
+
## Next Steps
|
|
121
|
+
|
|
122
|
+
After setting up your project, automatic deployments occur whenever you push to the `main` branch of your GitHub repository. See the [deployment documentation](/docs/mastra-cloud/deploying) for more details.
|