@mastra/mcp-docs-server 0.13.2-alpha.0 → 0.13.2-alpha.2

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.
Files changed (115) hide show
  1. package/.docs/organized/changelogs/%40mastra%2Fagui.md +12 -0
  2. package/.docs/organized/changelogs/%40mastra%2Fastra.md +25 -25
  3. package/.docs/organized/changelogs/%40mastra%2Fchroma.md +25 -25
  4. package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +26 -26
  5. package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +32 -32
  6. package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +25 -25
  7. package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +26 -26
  8. package/.docs/organized/changelogs/%40mastra%2Fcore.md +26 -26
  9. package/.docs/organized/changelogs/%40mastra%2Fcouchbase.md +14 -14
  10. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +40 -40
  11. package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +44 -44
  12. package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +42 -42
  13. package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +45 -45
  14. package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +27 -27
  15. package/.docs/organized/changelogs/%40mastra%2Fevals.md +13 -13
  16. package/.docs/organized/changelogs/%40mastra%2Ffirecrawl.md +16 -16
  17. package/.docs/organized/changelogs/%40mastra%2Fgithub.md +13 -13
  18. package/.docs/organized/changelogs/%40mastra%2Flance.md +25 -0
  19. package/.docs/organized/changelogs/%40mastra%2Flibsql.md +28 -28
  20. package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +30 -30
  21. package/.docs/organized/changelogs/%40mastra%2Fmcp-registry-registry.md +16 -16
  22. package/.docs/organized/changelogs/%40mastra%2Fmcp.md +24 -24
  23. package/.docs/organized/changelogs/%40mastra%2Fmem0.md +13 -13
  24. package/.docs/organized/changelogs/%40mastra%2Fmemory.md +35 -35
  25. package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +28 -28
  26. package/.docs/organized/changelogs/%40mastra%2Fopensearch.md +24 -0
  27. package/.docs/organized/changelogs/%40mastra%2Fpg.md +28 -28
  28. package/.docs/organized/changelogs/%40mastra%2Fpinecone.md +14 -14
  29. package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +38 -38
  30. package/.docs/organized/changelogs/%40mastra%2Fqdrant.md +14 -14
  31. package/.docs/organized/changelogs/%40mastra%2Frag.md +14 -14
  32. package/.docs/organized/changelogs/%40mastra%2Fragie.md +13 -13
  33. package/.docs/organized/changelogs/%40mastra%2Fschema-compat.md +6 -0
  34. package/.docs/organized/changelogs/%40mastra%2Fserver.md +32 -32
  35. package/.docs/organized/changelogs/%40mastra%2Fturbopuffer.md +14 -14
  36. package/.docs/organized/changelogs/%40mastra%2Fupstash.md +26 -26
  37. package/.docs/organized/changelogs/%40mastra%2Fvectorize.md +14 -14
  38. package/.docs/organized/changelogs/%40mastra%2Fvoice-cloudflare.md +13 -13
  39. package/.docs/organized/changelogs/%40mastra%2Fvoice-deepgram.md +14 -14
  40. package/.docs/organized/changelogs/%40mastra%2Fvoice-elevenlabs.md +14 -14
  41. package/.docs/organized/changelogs/%40mastra%2Fvoice-gladia.md +12 -0
  42. package/.docs/organized/changelogs/%40mastra%2Fvoice-google.md +14 -14
  43. package/.docs/organized/changelogs/%40mastra%2Fvoice-murf.md +13 -13
  44. package/.docs/organized/changelogs/%40mastra%2Fvoice-openai.md +14 -14
  45. package/.docs/organized/changelogs/%40mastra%2Fvoice-playai.md +13 -13
  46. package/.docs/organized/changelogs/%40mastra%2Fvoice-sarvam.md +13 -13
  47. package/.docs/organized/changelogs/%40mastra%2Fvoice-speechify.md +14 -14
  48. package/.docs/organized/changelogs/create-mastra.md +7 -7
  49. package/.docs/organized/changelogs/mastra.md +48 -48
  50. package/.docs/organized/code-examples/a2a.md +1 -1
  51. package/.docs/organized/code-examples/agent-network.md +125 -7
  52. package/.docs/organized/code-examples/agent.md +183 -6
  53. package/.docs/organized/code-examples/agui.md +4 -4
  54. package/.docs/organized/code-examples/ai-sdk-useChat.md +6 -6
  55. package/.docs/organized/code-examples/assistant-ui.md +6 -6
  56. package/.docs/organized/code-examples/bird-checker-with-express.md +1 -1
  57. package/.docs/organized/code-examples/bird-checker-with-nextjs-and-eval.md +6 -6
  58. package/.docs/organized/code-examples/bird-checker-with-nextjs.md +6 -6
  59. package/.docs/organized/code-examples/client-side-tools.md +6 -6
  60. package/.docs/organized/code-examples/crypto-chatbot.md +6 -6
  61. package/.docs/organized/code-examples/experimental-auth-weather-agent.md +1 -1
  62. package/.docs/organized/code-examples/fireworks-r1.md +1 -1
  63. package/.docs/organized/code-examples/mcp-configuration.md +2 -2
  64. package/.docs/organized/code-examples/mcp-registry-registry.md +1 -1
  65. package/.docs/organized/code-examples/memory-per-resource-example.md +236 -0
  66. package/.docs/organized/code-examples/memory-with-mem0.md +1 -1
  67. package/.docs/organized/code-examples/memory-with-processors.md +1 -1
  68. package/.docs/organized/code-examples/openapi-spec-writer.md +6 -6
  69. package/.docs/organized/code-examples/quick-start.md +1 -1
  70. package/.docs/organized/code-examples/stock-price-tool.md +1 -1
  71. package/.docs/organized/code-examples/weather-agent.md +1 -1
  72. package/.docs/organized/code-examples/workflow-ai-recruiter.md +1 -1
  73. package/.docs/organized/code-examples/workflow-with-inline-steps.md +1 -1
  74. package/.docs/organized/code-examples/workflow-with-memory.md +1 -1
  75. package/.docs/organized/code-examples/workflow-with-separate-steps.md +1 -1
  76. package/.docs/raw/agents/using-tools-and-mcp.mdx +3 -2
  77. package/.docs/raw/deployment/cloud-providers/digital-ocean.mdx +111 -0
  78. package/.docs/raw/deployment/cloud-providers/index.mdx +15 -0
  79. package/.docs/raw/frameworks/agentic-uis/copilotkit.mdx +53 -10
  80. package/.docs/raw/mastra-cloud/dashboard.mdx +100 -0
  81. package/.docs/raw/mastra-cloud/observability.mdx +24 -138
  82. package/.docs/raw/mastra-cloud/overview.mdx +50 -42
  83. package/.docs/raw/mastra-cloud/setting-up.mdx +51 -87
  84. package/.docs/raw/memory/overview.mdx +4 -0
  85. package/.docs/raw/memory/working-memory.mdx +144 -1
  86. package/.docs/raw/networks-vnext/complex-task-execution.mdx +137 -0
  87. package/.docs/raw/networks-vnext/overview.mdx +85 -0
  88. package/.docs/raw/networks-vnext/single-task-execution.mdx +131 -0
  89. package/.docs/raw/observability/nextjs-tracing.mdx +2 -2
  90. package/.docs/raw/reference/client-js/agents.mdx +41 -0
  91. package/.docs/raw/reference/deployer/netlify.mdx +22 -68
  92. package/.docs/raw/reference/deployer/vercel.mdx +7 -77
  93. package/.docs/raw/reference/storage/libsql.mdx +1 -0
  94. package/.docs/raw/reference/tools/mcp-client.mdx +244 -0
  95. package/.docs/raw/reference/tools/mcp-server.mdx +186 -0
  96. package/.docs/raw/reference/tools/vector-query-tool.mdx +1 -0
  97. package/.docs/raw/reference/workflows/create-run.mdx +1 -1
  98. package/.docs/raw/reference/workflows/resume.mdx +1 -1
  99. package/.docs/raw/reference/workflows/sleep.mdx +43 -0
  100. package/.docs/raw/reference/workflows/sleepUntil.mdx +43 -0
  101. package/.docs/raw/reference/workflows/start.mdx +1 -1
  102. package/.docs/raw/reference/workflows/stream.mdx +1 -1
  103. package/.docs/raw/reference/workflows/waitForEvent.mdx +49 -0
  104. package/.docs/raw/reference/workflows/watch.mdx +1 -1
  105. package/.docs/raw/reference/workflows/workflow.mdx +6 -2
  106. package/.docs/raw/storage/overview.mdx +50 -1
  107. package/.docs/raw/tools-mcp/mcp-overview.mdx +52 -0
  108. package/.docs/raw/workflows/control-flow.mdx +42 -1
  109. package/.docs/raw/workflows/inngest-workflow.mdx +1 -1
  110. package/.docs/raw/workflows/overview.mdx +73 -5
  111. package/.docs/raw/workflows/pausing-execution.mdx +60 -0
  112. package/.docs/raw/workflows/suspend-and-resume.mdx +68 -23
  113. package/.docs/raw/workflows/using-with-agents-and-tools.mdx +1 -1
  114. package/package.json +6 -6
  115. package/.docs/raw/mastra-cloud/deploying.mdx +0 -142
@@ -0,0 +1,100 @@
1
+ ---
2
+ title: Understanding the Mastra Cloud Dashboard
3
+ description: Details of each feature available in Mastra Cloud
4
+ ---
5
+
6
+ import { MastraCloudCallout } from '@/components/mastra-cloud-callout'
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 [Playground](/docs/mastra-cloud/dashboard#playground).
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
+ ![Project dashboard](/image/mastra-cloud/mastra-cloud-project-dashboard.jpg)
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
+ ![Dashboard deployment](/image/mastra-cloud/mastra-cloud-dashboard-deployments.jpg)
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
+ ![Dashboard logs](/image/mastra-cloud/mastra-cloud-dashboard-logs.jpg)
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
+ ![Dashboard settings](/image/mastra-cloud/mastra-cloud-dashboard-settings.jpg)
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
+ ## Playground
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
+ ![Dashboard playground agents](/image/mastra-cloud/mastra-cloud-dashboard-playground-agents.jpg)
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
+ ![Dashboard playground workflows](/image/mastra-cloud/mastra-cloud-dashboard-playground-workflows.jpg)
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
+ ![Dashboard playground tools](/image/mastra-cloud/mastra-cloud-dashboard-playground-tools.jpg)
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
+ ![Dashboard playground mcp servers](/image/mastra-cloud/mastra-cloud-dashboard-playground-mcpservers.jpg)
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/mastra-cloud/observability)
@@ -3,164 +3,50 @@ title: Observability in Mastra Cloud
3
3
  description: Monitoring and debugging tools for Mastra Cloud deployments
4
4
  ---
5
5
 
6
- # Observability in Mastra Cloud
6
+ import { MastraCloudCallout } from '@/components/mastra-cloud-callout'
7
7
 
8
- > **Beta Notice**
9
- > Mastra Cloud is currently in **beta**.
8
+ # Understanding Tracing and Logs
10
9
 
11
- Mastra Cloud records execution data for monitoring and debugging. It captures traces, logs, and runtime information from agents and workflows.
10
+ Mastra Cloud captures execution data to help you monitor your application's behavior in the production environment.
12
11
 
13
- ## Agent Interface
12
+ <MastraCloudCallout />
14
13
 
15
- The agent interface offers three main views, accessible via tabs:
16
-
17
- 1. **Chat**: Interactive messaging interface to test your agent
18
- 2. **Traces**: Detailed execution records
19
- 3. **Evaluation**: Agent performance assessment
20
-
21
- ![Agent Interface with Chat Tab](../../../../../public/image/cloud-agent.png)
22
-
23
- ### Chat Interface
24
-
25
- The Chat tab provides:
26
-
27
- - Interactive messaging with deployed agents
28
- - System response to user queries
29
- - Suggested prompt buttons (e.g., "What capabilities do you have?")
30
- - Message input area
31
- - Branch indicator (e.g., "main")
32
- - Note about agent memory limitations
33
-
34
- ### Agent Configuration Panel
35
-
36
- The right sidebar displays agent details:
37
-
38
- - Agent name and deployment identifier
39
- - Model information (e.g., "OpenAI")
40
- - Tools available to the agent (e.g., "getWeather")
41
- - Complete system prompt text
42
-
43
- This panel provides visibility into how the agent is configured without needing to check the source code.
44
-
45
- ## Trace System
46
-
47
- Mastra Cloud records traces for agent and workflow interactions.
48
-
49
- ### Trace Explorer Interface
50
-
51
- ![Agent Traces View](/image/cloud-agent-traces.png)
52
-
53
- The Trace Explorer interface shows:
54
-
55
- - All agent and workflow interactions
56
- - Specific trace details
57
- - Input and output data
58
- - Tool calls with parameters and results
59
- - Workflow execution paths
60
- - Filtering options by type, status, timestamp, and agent/workflow
61
-
62
- ### Trace Data Structure
63
-
64
- Each trace contains:
65
-
66
- 1. **Request Data**: The request that initiated the agent or workflow
67
- 2. **Tool Call Records**: Tool calls during execution with parameters
68
- 3. **Tool Response Data**: The responses from tool calls
69
- 4. **Agent Response Data**: The generated agent response
70
- 5. **Execution Timestamps**: Timing information for each execution step
71
- 6. **Model Metadata**: Information about model usage and tokens
72
-
73
- The trace view displays all API calls and results throughout execution. This data helps debug tool usage and agent logic flows.
74
-
75
- ### Agent Interaction Data
76
-
77
- Agent interaction traces include:
78
-
79
- - User input text
80
- - Agent processing steps
81
- - Tool calls (e.g., weather API calls)
82
- - Parameters and results for each tool call
83
- - Final agent response text
84
-
85
- ## Dashboard Structure
86
-
87
- The Mastra Cloud dashboard contains:
88
-
89
- - Project deployment history
90
- - Environment variable configuration
91
- - Agent configuration details (model, system prompt, tools)
92
- - Workflow step visualization
93
- - Deployment URLs
94
- - Recent activity log
95
-
96
- ## Agent Testing
97
-
98
- Test your agents using the Chat interface:
99
-
100
- 1. Navigate to the Agents section
101
- 2. Select the agent you want to test
102
- 3. Use the Chat tab to interact with your agent
103
- 4. Send messages and view responses
104
- 5. Use suggested prompts for common queries
105
- 6. Switch to the Traces tab to view execution details
106
-
107
- 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 image."
14
+ ## Logs
108
15
 
109
- ## Workflow Monitoring
16
+ You can view detailed logs for debugging and monitoring your application's behavior on the [Logs](/docs/mastra-cloud/dashboard#logs) page of the Dashboard.
110
17
 
111
- ![Workflow Interface](/image/cloud-workflow.png)
18
+ ![Dashboard logs](/image/mastra-cloud/mastra-cloud-dashboard-logs.jpg)
112
19
 
113
- Workflow monitoring shows:
20
+ Key features:
114
21
 
115
- - Diagram of workflow steps and connections
116
- - Status for each workflow step
117
- - Execution details for each step
118
- - Execution trace records
119
- - Multi-step process execution (e.g., weather lookup followed by activity planning)
22
+ Each log entry includes its severity level and a detailed message showing agent, workflow, or storage activity.
120
23
 
121
- ### Workflow Execution
24
+ ## Traces
122
25
 
123
- ![Workflow Run Details](/image/cloud-workflow-run.png)
26
+ More detailed traces are available for both agents and workflows by using a [logger](/docs/observability/logging) or enabling [telemetry](/docs/observability/tracing) using one of our [supported providers](/reference/observability/providers).
124
27
 
125
- When examining a specific workflow execution, you can see the detailed steps and their outputs.
28
+ ### Agents
126
29
 
127
- ## Logs
30
+ With a [logger](/docs/observability/logging) enabled, you can view detailed outputs from your agents in the **Traces** section of the Agents Playground.
128
31
 
129
- ![Logs Interface](/image/cloud-logs.png)
32
+ ![observability agents](/image/mastra-cloud/mastra-cloud-observability-agents.jpg)
130
33
 
131
- The Logs section provides detailed information about your application:
34
+ Key features:
132
35
 
133
- - **Time**: When the log entry was created
134
- - **Level**: Log level (info, debug)
135
- - **Hostname**: Server identification
136
- - **Message**: Detailed log information, including:
137
- - API initialization
138
- - Storage connections
139
- - Agent and workflow activity
36
+ Tools passed to the agent during generation are standardized using `convertTools`. This includes retrieving client-side tools, memory tools, and tools exposed from workflows.
140
37
 
141
- ## Technical Features
142
38
 
143
- The observability system includes:
39
+ ### Workflows
144
40
 
145
- - **API Endpoints**: For programmatic access to trace data
146
- - **Structured Trace Format**: JSON format for filtering and query operations
147
- - **Historical Data Storage**: Retention of past execution records
148
- - **Deployment Version Links**: Correlation between traces and deployment versions
41
+ With a [logger](/docs/observability/logging) enabled, you can view detailed outputs from your workflows in the **Traces** section of the Workflows Playground.
149
42
 
150
- ## Debugging Patterns
43
+ ![observability workflows](/image/mastra-cloud/mastra-cloud-observability-workflows.jpg)
151
44
 
152
- - Compare trace data when testing agent behavior changes
153
- - Use the chat interface to test edge case inputs
154
- - View system prompts to understand agent behavior
155
- - Examine tool call parameters and results
156
- - Verify workflow execution step sequencing
157
- - Identify execution bottlenecks in trace timing data
158
- - Compare trace differences between agent versions
45
+ Key features:
159
46
 
160
- ## Support Resources
47
+ Workflows are created using `createWorkflow`, which sets up steps, metadata, and tools. You can run them with `runWorkflow` by passing input and options.
161
48
 
162
- For technical assistance with observability:
49
+ ## Next steps
163
50
 
164
- - Review the [Troubleshooting Documentation]()
165
- - Contact technical support through the dashboard
166
- - Join the [Discord developer channel](https://discord.gg/mastra)
51
+ - [Logging](/docs/observability/logging)
52
+ - [Tracing](/docs/observability/tracing)
@@ -3,61 +3,69 @@ title: Mastra Cloud
3
3
  description: Deployment and monitoring service for Mastra applications
4
4
  ---
5
5
 
6
+ import { MastraCloudCallout } from '@/components/mastra-cloud-callout'
7
+ import { FileTree } from "nextra/components";
8
+
6
9
  # Mastra Cloud
7
10
 
8
- Mastra Cloud is a deployment service built by the Mastra team that runs,
9
- manages, and monitors Mastra applications. It works with standard Mastra
10
- projects and handles deployment, scaling, and operational tasks.
11
+ [Mastra Cloud](https://mastra.ai/cloud) is a platform for deploying, managing, monitoring, and debugging Mastra applications. When you [deploy](/docs/mastra-cloud/setting-up) your application, Mastra Cloud exposes your agents, tools, and workflows as REST API endpoints.
12
+
13
+ <MastraCloudCallout />
14
+
15
+ ## Platform features
16
+
17
+ Deploy and manage your applications with automated builds, organized projects, and no additional configuration.
18
+
19
+ ![Platform features](/image/mastra-cloud/mastra-cloud-platform-features.jpg)
20
+
21
+ Key features:
22
+
23
+ Mastra Cloud supports zero-config deployment, continuous integration with GitHub, and atomic deployments that package agents, tools, and workflows together.
11
24
 
12
- > **Beta Notice**
13
- > Mastra Cloud is currently in **public beta**. Features, APIs, and UIs may
14
- > change as development continues.
25
+ ## Project Dashboard
15
26
 
16
- ## Core Functionality
27
+ Monitor and debug your applications with detailed output logs, deployment state, and interactive tools.
17
28
 
18
- - **Atomic Deployments** - Agents and workflows deploy as a single unit
19
- - **Project Organization** - Group agents and workflows into projects with assigned URLs
20
- - **Environment Variables** - Store configuration securely by environment
21
- - **Testing Console** - Send messages to agents through a web interface
22
- - **Execution Tracing** - Record agent interactions and tool calls
23
- - **Workflow Visualization** - Display workflow steps and execution paths
24
- - **Logs** - Standard logging output for debugging
25
- - **Platform Compatibility** - Uses the same infrastructure as Cloudflare, Vercel, and Netlify deployers
29
+ ![Project dashboard](/image/mastra-cloud/mastra-cloud-project-dashboard.jpg)
26
30
 
27
- ## Dashboard Components
31
+ Key features:
28
32
 
29
- The Mastra Cloud dashboard contains:
33
+ The Project Dashboard gives you an overview of your application's status and deployments, with access to logs and a built-in playground for testing agents and workflows.
30
34
 
31
- - **Projects List** - All projects in the account
32
- - **Project Details** - Deployments, environment variables, and access URLs
33
- - **Deployment History** - Record of deployments with timestamps and status
34
- - **Agent Inspector** - Agent configuration view showing models, tools, and system prompts
35
- - **Testing Console** - Interface for sending messages to agents
36
- - **Trace Explorer** - Records of tool calls, parameters, and responses
37
- - **Workflow Viewer** - Diagram of workflow steps and connections
35
+ ## Project structure
38
36
 
39
- ## Technical Implementation
37
+ Use a standard Mastra project structure for proper detection and deployment.
40
38
 
41
- Mastra Cloud runs on the same core code as the platform-specific deployers with these modifications:
39
+ <FileTree>
40
+ <FileTree.Folder name="src" defaultOpen>
41
+ <FileTree.Folder name="mastra" defaultOpen>
42
+ <FileTree.Folder name="agents" defaultOpen>
43
+ <FileTree.File name="agent-name.ts" />
44
+ </FileTree.Folder>
45
+ <FileTree.Folder name="tools" defaultOpen>
46
+ <FileTree.File name="tool-name.ts" />
47
+ </FileTree.Folder>
48
+ <FileTree.Folder name="workflows" defaultOpen>
49
+ <FileTree.File name="workflow-name.ts" />
50
+ </FileTree.Folder>
51
+ <FileTree.File name="index.ts" />
52
+ </FileTree.Folder>
53
+ </FileTree.Folder>
54
+ <FileTree.File name="package.json" />
55
+ </FileTree>
42
56
 
43
- - **Edge Network Distribution** - Geographically distributed execution
44
- - **Dynamic Resource Allocation** - Adjusts compute resources based on traffic
45
- - **Mastra-specific Runtime** - Runtime optimized for agent execution
46
- - **Standard Deployment API** - Consistent deployment interface across environments
47
- - **Tracing Infrastructure** - Records all agent and workflow execution steps
57
+ Mastra Cloud scans your repository for:
48
58
 
49
- ## Use Cases
59
+ - **Agents**: Defined using: `new Agent({...})`
60
+ - **Tools**: Defined using: `createTool({...})`
61
+ - **Workflows**: Defined using: `createWorkflow({...})`
62
+ - **Steps**: Defined using: `createStep({...})`
63
+ - **Environment Variables**: API keys and configuration variables
50
64
 
51
- Common usage patterns:
65
+ ## Technical implementation
52
66
 
53
- - Deploying applications without managing infrastructure
54
- - Maintaining staging and production environments
55
- - Monitoring agent behavior across many requests
56
- - Testing agent responses through a web interface
57
- - Deploying to multiple regions
67
+ 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.
58
68
 
59
- ## Setup Process
69
+ ## Next steps
60
70
 
61
- 1. [Configure a Mastra Cloud project](/docs/mastra-cloud/setting-up)
62
- 2. [Deploy code](/docs/mastra-cloud/deploying)
63
- 3. [View execution traces](/docs/mastra-cloud/observability)
71
+ - [Setting Up and Deploying](/docs/mastra-cloud/setting-up)
@@ -3,126 +3,90 @@ title: Setting Up a Project
3
3
  description: Configuration steps for Mastra Cloud projects
4
4
  ---
5
5
 
6
- # Setting Up a Mastra Cloud Project
6
+ import { MastraCloudCallout } from '@/components/mastra-cloud-callout'
7
+ import { Steps } from "nextra/components";
7
8
 
8
- > **Beta Notice**
9
- > Mastra Cloud is currently in **beta**.
9
+ # Setting Up and Deploying
10
10
 
11
- This page describes the steps to set up a project on Mastra Cloud using GitHub integration.
11
+ This page explains how to set up a project on [Mastra Cloud](https://mastra.ai/cloud) with automatic deployments using our GitHub integration.
12
12
 
13
- ## Prerequisites
14
-
15
- - A Mastra Cloud account
16
- - A GitHub account
17
- - A GitHub repository containing a Mastra application
13
+ <MastraCloudCallout />
18
14
 
19
- ## Project Creation Process
20
-
21
- 1. **Sign in to Mastra Cloud**
15
+ ## Prerequisites
22
16
 
23
- - Navigate to the Mastra Cloud dashboard at https://cloud.mastra.ai
24
- - Sign in with your account credentials
17
+ - A [Mastra Cloud](https://mastra.ai/cloud) account
18
+ - A GitHub account / repository containing a Mastra application
25
19
 
26
- 2. **Add a New Project**
20
+ > See our [Getting started](/docs/getting-started/installation) guide to scaffold out a new Mastra project with sensible defaults.
27
21
 
28
- - From the "All Projects" view, click the "Add new" button in the top right
29
- - This opens the GitHub repository import dialog
22
+ ## Setup and Deploy process
30
23
 
31
- ![Mastra Cloud Projects Dashboard](/image/cloud-agents.png)
24
+ <Steps>
32
25
 
33
- 3. **Import Git Repository**
26
+ ### Sign in to Mastra Cloud
34
27
 
35
- - Search for repositories or select from the list of available GitHub repositories
36
- - Click the "Import" button next to the repository you want to deploy
28
+ Head over to [https://cloud.mastra.ai/](https://cloud.mastra.ai) and sign in with either:
37
29
 
38
- 4. **Configure Deployment Details**
39
- The deployment configuration page includes:
40
- - **Repo Name**: The GitHub repository name (read-only)
41
- - **Project Name**: Customize the project name (defaults to repo name)
42
- - **Branch**: Select the branch to deploy (dropdown, defaults to `main`)
43
- - **Project root**: Set the root directory of your project (defaults to `/`)
44
- - **Mastra Directory**: Specify where Mastra files are located (defaults to `src/mastra`)
45
- - **Build Command**: Optional command to run during build process
46
- - **Store Settings**: Configure data storage options
47
- - **Environment Variables**: Add key-value pairs for configuration (e.g., API keys)
30
+ - **GitHub**
31
+ - **Google**
48
32
 
49
- ## Project Structure Requirements
33
+ ### Install the Mastra GitHub app
50
34
 
51
- Mastra Cloud scans the GitHub repository for:
35
+ When prompted, install the Mastra GitHub app.
52
36
 
53
- - **Agents**: Agent definitions (e.g., Weather Agent) with models and tools
54
- - **Workflows**: Workflow step definitions (e.g., weather-workflow)
55
- - **Environment Variables**: Required API keys and configuration variables
37
+ ![Install GitHub](/image/mastra-cloud/mastra-cloud-install-github.jpg)
56
38
 
57
- The repository should contain a standard Mastra project structure for proper detection and deployment.
39
+ ### Create a new project
58
40
 
59
- ## Understanding the Dashboard
41
+ Click the **Create new project** button to create a new project.
60
42
 
61
- After creating a project, the dashboard shows:
43
+ ![Create new project](/image/mastra-cloud/mastra-cloud-create-new-project.jpg)
62
44
 
63
- ### Project Overview
45
+ ### Import a Git repository
64
46
 
65
- - **Created Date**: When the project was created
66
- - **Domains**: URLs for accessing your deployed application
67
- - Format: `https://[project-name].mastra.cloud`
68
- - Format: `https://[random-id].mastra.cloud`
69
- - **Status**: Current deployment status (success or archived)
70
- - **Branch**: The branch deployed (typically `main`)
71
- - **Environment Variables**: Configured API keys and settings
72
- - **Workflows**: List of detected workflows with step counts
73
- - **Agents**: List of detected agents with models and tools
74
- - **Database Usage**: Reads, writes, and storage statistics
47
+ Search for a repository, then click **Import**.
75
48
 
76
- ### Deployments Section
49
+ ![Import Git repository](/image/mastra-cloud/mastra-cloud-import-git-repository.jpg)
77
50
 
78
- - List of all deployments with:
79
- - Deployment ID (based on commit hash)
80
- - Status (success/archived)
81
- - Branch
82
- - Commit hash
83
- - Timestamp
51
+ ### Configure the deployment
84
52
 
85
- ### Logs Section
53
+ Mastra Cloud automatically detects the right build settings, but you can customize them using the options described below.
86
54
 
87
- The Logs view displays:
55
+ ![Deployment details](/image/mastra-cloud/mastra-cloud-deployment-details.jpg)
88
56
 
89
- - Timestamp for each log entry
90
- - Log level (info, debug)
91
- - Hostname
92
- - Detailed log messages, including:
93
- - API startup information
94
- - Storage initialization
95
- - Agent and workflow activity
57
+ - **Importing from GitHub**: The GitHub repository name
58
+ - **Project name**: Customize the project name
59
+ - **Branch**: The branch to deploy from
60
+ - **Project root**: The root directory of your project
61
+ - **Mastra directory**: Where Mastra files are located
62
+ - **Environment variables**: Add environment variables used by the application
63
+ - **Build and Store settings**:
64
+ - **Install command**: Runs pre-build to install project dependencies
65
+ - **Project setup command**: Runs pre-build to prepare any external dependencies
66
+ - **Port**: The network port the server will use
67
+ - **Store settings**: Use Mastra Cloud's built-in [LibSQLStore](/docs/storage/overview) storage
68
+ - **Deploy Project**: Starts the deployment process
96
69
 
97
- ## Navigation
70
+ ### Deploy project
98
71
 
99
- The sidebar provides access to:
72
+ Click **Deploy Project** to create and deploy your application using the configuration you’ve set.
100
73
 
101
- - **Overview**: Project summary and statistics
102
- - **Deployments**: Deployment history and details
103
- - **Logs**: Application logs for debugging
104
- - **Agents**: List and configuration of all agents
105
- - **Workflows**: List and structure of all workflows
106
- - **Settings**: Project configuration options
74
+ </Steps>
107
75
 
108
- ## Environment Variable Configuration
76
+ ## Successful deployment
109
77
 
110
- Set environment variables through the dashboard:
78
+ After a successful deployment you'll be shown the **Overview** screen where you can view your project's status, domains, latest deployments and connected agents and workflows.
111
79
 
112
- 1. Navigate to your project in the dashboard
113
- 2. Go to the "Environment Variables" section
114
- 3. Add or edit variables (such as `OPENAI_API_KEY`)
115
- 4. Save the configuration
80
+ ![Successful deployment](/image/mastra-cloud/mastra-cloud-successful-deployment.jpg)
116
81
 
117
- Environment variables are encrypted and made available to your application during deployment and execution.
82
+ ## Continuous integration
118
83
 
119
- ## Testing Your Deployment
84
+ Your project is now configured with automatic deployments which occur whenever you push to the configured branch of your GitHub repository.
120
85
 
121
- After deployment, you can test your agents and workflows using:
86
+ ## Testing your application
122
87
 
123
- 1. The custom domain assigned to your project: `https://[project-name].mastra.cloud`
124
- 2. The dashboard interface for direct interaction with agents
88
+ After a successful deployment you can test your agents and workflows from the [Playground](/docs/mastra-cloud/dashboard#playground) in Mastra Cloud, or interact with them using our [Client SDK](/docs/client-js/overview).
125
89
 
126
- ## Next Steps
90
+ ## Next steps
127
91
 
128
- After setting up your project, automatic deployments occur whenever you push to the `main` branch of your GitHub repository. See the [deployment documentation](./deploying.mdx) for more details.
92
+ - [Navigating the Dashboard](/docs/mastra-cloud/dashboard)
@@ -8,6 +8,8 @@ The context window is the total information visible to the language model at any
8
8
 
9
9
  In Mastra, context is broken up into three parts: system instructions and information about the user ([working memory](./working-memory.mdx)), recent messages ([message history](#conversation-history)), and older messages that are relevant to the user’s query ([semantic recall](./semantic-recall.mdx)).
10
10
 
11
+ Working memory can persist at different scopes - either per conversation thread (default) or across all threads for the same user (resource-scoped), enabling persistent user profiles that remember context across conversations.
12
+
11
13
  In addition, we provide [memory processors](./memory-processors.mdx) to trim context or remove information if the context is too long.
12
14
 
13
15
  ## Quick Start
@@ -69,6 +71,8 @@ Mastra organizes memory into threads, which are records that identify specific c
69
71
  1. **`threadId`**: A specific conversation id (e.g., `support_123`).
70
72
  2. **`resourceId`**: The user or entity id that owns each thread (e.g., `user_123`, `org_456`).
71
73
 
74
+ The `resourceId` is particularly important for [resource-scoped working memory](./working-memory.mdx#resource-scoped-memory), which allows memory to persist across all conversation threads for the same user.
75
+
72
76
  ```typescript {2,3}
73
77
  const response = await myMemoryAgent.stream("Hello, my name is Alice.", {
74
78
  resourceId: "user_alice",