@mastra/mcp-docs-server 0.13.1 → 0.13.2-alpha.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.
Files changed (102) hide show
  1. package/.docs/organized/changelogs/%40internal%2Fstorage-test-utils.md +21 -0
  2. package/.docs/organized/changelogs/%40mastra%2Fagui.md +37 -0
  3. package/.docs/organized/changelogs/%40mastra%2Fastra.md +25 -25
  4. package/.docs/organized/changelogs/%40mastra%2Fchroma.md +48 -48
  5. package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +71 -71
  6. package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +62 -62
  7. package/.docs/organized/changelogs/%40mastra%2Fcloud.md +25 -25
  8. package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +68 -68
  9. package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +37 -37
  10. package/.docs/organized/changelogs/%40mastra%2Fcore.md +64 -64
  11. package/.docs/organized/changelogs/%40mastra%2Fcouchbase.md +37 -31
  12. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +80 -80
  13. package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +77 -77
  14. package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +73 -73
  15. package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +94 -94
  16. package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +80 -41
  17. package/.docs/organized/changelogs/%40mastra%2Fevals.md +36 -36
  18. package/.docs/organized/changelogs/%40mastra%2Ffirecrawl.md +42 -42
  19. package/.docs/organized/changelogs/%40mastra%2Fgithub.md +36 -36
  20. package/.docs/organized/changelogs/%40mastra%2Flance.md +59 -0
  21. package/.docs/organized/changelogs/%40mastra%2Flibsql.md +62 -62
  22. package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +65 -65
  23. package/.docs/organized/changelogs/%40mastra%2Fmcp-registry-registry.md +45 -45
  24. package/.docs/organized/changelogs/%40mastra%2Fmcp.md +56 -56
  25. package/.docs/organized/changelogs/%40mastra%2Fmem0.md +36 -36
  26. package/.docs/organized/changelogs/%40mastra%2Fmemory.md +58 -58
  27. package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +74 -74
  28. package/.docs/organized/changelogs/%40mastra%2Fopensearch.md +47 -0
  29. package/.docs/organized/changelogs/%40mastra%2Fpg.md +75 -75
  30. package/.docs/organized/changelogs/%40mastra%2Fpinecone.md +14 -14
  31. package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +107 -107
  32. package/.docs/organized/changelogs/%40mastra%2Fqdrant.md +37 -37
  33. package/.docs/organized/changelogs/%40mastra%2Frag.md +41 -41
  34. package/.docs/organized/changelogs/%40mastra%2Fragie.md +36 -36
  35. package/.docs/organized/changelogs/%40mastra%2Fschema-compat.md +6 -0
  36. package/.docs/organized/changelogs/%40mastra%2Fserver.md +61 -61
  37. package/.docs/organized/changelogs/%40mastra%2Fturbopuffer.md +37 -37
  38. package/.docs/organized/changelogs/%40mastra%2Fupstash.md +75 -75
  39. package/.docs/organized/changelogs/%40mastra%2Fvectorize.md +14 -14
  40. package/.docs/organized/changelogs/%40mastra%2Fvoice-azure.md +24 -24
  41. package/.docs/organized/changelogs/%40mastra%2Fvoice-cloudflare.md +36 -36
  42. package/.docs/organized/changelogs/%40mastra%2Fvoice-deepgram.md +36 -36
  43. package/.docs/organized/changelogs/%40mastra%2Fvoice-elevenlabs.md +36 -36
  44. package/.docs/organized/changelogs/%40mastra%2Fvoice-gladia.md +34 -0
  45. package/.docs/organized/changelogs/%40mastra%2Fvoice-google.md +36 -36
  46. package/.docs/organized/changelogs/%40mastra%2Fvoice-murf.md +37 -37
  47. package/.docs/organized/changelogs/%40mastra%2Fvoice-openai-realtime.md +25 -25
  48. package/.docs/organized/changelogs/%40mastra%2Fvoice-openai.md +36 -36
  49. package/.docs/organized/changelogs/%40mastra%2Fvoice-playai.md +36 -36
  50. package/.docs/organized/changelogs/%40mastra%2Fvoice-sarvam.md +36 -36
  51. package/.docs/organized/changelogs/%40mastra%2Fvoice-speechify.md +36 -36
  52. package/.docs/organized/changelogs/create-mastra.md +35 -35
  53. package/.docs/organized/changelogs/mastra.md +116 -116
  54. package/.docs/organized/code-examples/a2a.md +1 -1
  55. package/.docs/organized/code-examples/agent-network.md +125 -7
  56. package/.docs/organized/code-examples/agent.md +1 -1
  57. package/.docs/organized/code-examples/agui.md +4 -4
  58. package/.docs/organized/code-examples/ai-sdk-useChat.md +6 -6
  59. package/.docs/organized/code-examples/assistant-ui.md +5 -5
  60. package/.docs/organized/code-examples/bird-checker-with-express.md +1 -1
  61. package/.docs/organized/code-examples/bird-checker-with-nextjs-and-eval.md +5 -5
  62. package/.docs/organized/code-examples/bird-checker-with-nextjs.md +5 -5
  63. package/.docs/organized/code-examples/client-side-tools.md +6 -6
  64. package/.docs/organized/code-examples/crypto-chatbot.md +4 -4
  65. package/.docs/organized/code-examples/experimental-auth-weather-agent.md +1 -1
  66. package/.docs/organized/code-examples/fireworks-r1.md +1 -1
  67. package/.docs/organized/code-examples/mcp-configuration.md +2 -2
  68. package/.docs/organized/code-examples/mcp-registry-registry.md +1 -1
  69. package/.docs/organized/code-examples/memory-per-resource-example.md +236 -0
  70. package/.docs/organized/code-examples/memory-with-mem0.md +1 -1
  71. package/.docs/organized/code-examples/memory-with-processors.md +1 -1
  72. package/.docs/organized/code-examples/openapi-spec-writer.md +5 -5
  73. package/.docs/organized/code-examples/quick-start.md +1 -1
  74. package/.docs/organized/code-examples/stock-price-tool.md +1 -1
  75. package/.docs/organized/code-examples/weather-agent.md +1 -1
  76. package/.docs/organized/code-examples/workflow-ai-recruiter.md +1 -1
  77. package/.docs/organized/code-examples/workflow-with-inline-steps.md +1 -1
  78. package/.docs/organized/code-examples/workflow-with-memory.md +1 -1
  79. package/.docs/organized/code-examples/workflow-with-separate-steps.md +1 -1
  80. package/.docs/raw/frameworks/agentic-uis/copilotkit.mdx +53 -10
  81. package/.docs/raw/local-dev/mastra-dev.mdx +103 -105
  82. package/.docs/raw/mastra-cloud/dashboard.mdx +100 -0
  83. package/.docs/raw/mastra-cloud/observability.mdx +24 -138
  84. package/.docs/raw/mastra-cloud/overview.mdx +50 -42
  85. package/.docs/raw/mastra-cloud/setting-up.mdx +51 -87
  86. package/.docs/raw/memory/overview.mdx +4 -0
  87. package/.docs/raw/memory/working-memory.mdx +88 -1
  88. package/.docs/raw/observability/nextjs-tracing.mdx +2 -2
  89. package/.docs/raw/reference/storage/libsql.mdx +1 -0
  90. package/.docs/raw/reference/tools/vector-query-tool.mdx +1 -0
  91. package/.docs/raw/reference/workflows/sleep.mdx +43 -0
  92. package/.docs/raw/reference/workflows/sleepUntil.mdx +43 -0
  93. package/.docs/raw/reference/workflows/waitForEvent.mdx +49 -0
  94. package/.docs/raw/storage/overview.mdx +50 -1
  95. package/.docs/raw/tools-mcp/mcp-overview.mdx +52 -0
  96. package/.docs/raw/workflows/inngest-workflow.mdx +1 -1
  97. package/.docs/raw/workflows/input-data-mapping.mdx +4 -4
  98. package/.docs/raw/workflows/pausing-execution.mdx +60 -0
  99. package/package.json +6 -6
  100. package/.docs/raw/local-dev/add-to-existing-project.mdx +0 -43
  101. package/.docs/raw/local-dev/creating-a-new-project.mdx +0 -53
  102. package/.docs/raw/mastra-cloud/deploying.mdx +0 -142
@@ -1,172 +1,170 @@
1
1
  ---
2
- title: "Inspecting Agents with `mastra dev` | Mastra Local Dev Docs"
2
+ title: "Inspecting agents and workflows with mastra dev | Mastra Local Dev Docs"
3
3
  description: Documentation for the Mastra local development environment for Mastra applications.
4
4
  ---
5
5
 
6
6
  import YouTube from "@/components/youtube";
7
+ import { Tabs, Tab } from "@/components/tabs";
7
8
 
8
- # Local Development Environment
9
+ # Playground
9
10
 
10
- Mastra provides a local development environment where you can test your agents, workflows, and tools while developing locally.
11
+ Mastra provides a local development environment where you can test your agents, workflows, and tools during development.
11
12
 
12
- <YouTube id="spGlcTEjuXY" />
13
+ Start the local development server by running:
13
14
 
14
- ## Launch Development Server
15
+ <Tabs items={["npm", "Mastra CLI"]}>
16
+ <Tab>
17
+ ```bash copy
18
+ npm run dev
19
+ ```
20
+ </Tab>
21
+ <Tab>
22
+ ```bash copy
23
+ mastra dev
24
+ ```
25
+ </Tab>
26
+ </Tabs>
15
27
 
16
- You can launch the Mastra development environment using the Mastra CLI by running:
28
+ The local development server provides access to the following interfaces:
17
29
 
18
- ```bash
19
- mastra dev
20
- ```
30
+ - Playground: [http://localhost:4111/](http://localhost:4111/)
31
+ - Mastra API: [http://localhost:4111/api](http://localhost:4111/api)
32
+ - OpenAPI Spec: [http://localhost:4111/openapi.json](http://localhost:4111/openapi.json)
33
+ - Swagger UI – API explorer: [http://localhost:4111/swagger-ui](http://localhost:4111/swagger-ui)
21
34
 
22
- By default, the server runs on localhost at http://localhost:4111. Custom port and host can be configured via the
23
- mastra server config.
35
+ ## Local Development Playground
24
36
 
25
- ```typescript
26
- import { Mastra } from "@mastra/core";
37
+ The Playground lets you interact with your agents, workflows, and tools. It provides dedicated interfaces for testing each component of your Mastra application during development and is available at: [http://localhost:4111/](http://localhost:4111/).
27
38
 
28
- export const mastra = new Mastra({
29
- server: {
30
- port: "4111",
31
- host: "0.0.0.0",
32
- },
33
- });
34
- ```
39
+ <YouTube id="spGlcTEjuXY" startTime={126}/>
40
+
41
+ ### Agents
42
+
43
+ Quickly test and debug your agents during development using the interactive chat interface in the Agent Playground.
44
+
45
+ ![Agents Playground](/image/local-dev/local-dev-agents-playground.jpg)
46
+
47
+ Key features:
48
+
49
+ - **Chat Interface**: Talk to your agent and see how it responds in real time.
50
+ - **Model Settings**: Tweak settings like temperature and top-p to see how they affect output.
51
+ - **Agent Endpoints**: See the available REST API routes your agent exposes and how to use them.
52
+ - **Agent Traces**: Step through what the agent did behind the scenes, tool calls, decisions, and more.
53
+ - **Agent Evals**: Run tests against your agent and see how well it performs.
54
+
55
+ ### Workflows
35
56
 
36
- ## Dev Playground
57
+ Validate workflows by supplying defined inputs and visualizing each step within the Workflow Playground.
37
58
 
38
- `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.
59
+ ![Workflows Playground](/image/local-dev/local-dev-workflow-playground.jpg)
39
60
 
40
- ### Agent Playground
61
+ Key features:
41
62
 
42
- The Agent playground provides an interactive chat interface where you can test and debug your agents during development. Key features include:
63
+ - **Workflow Visualization**: See your workflow as a visual graph so you can follow the steps and branches at a glance.
64
+ - **Step Inputs & Outputs**: Check the data going into and coming out of each step to see how everything flows.
65
+ - **Run Workflows**: Test your workflow with real inputs to validate the logic and debug any issues.
66
+ - **Execution JSON**: Get the full picture of a run as raw JSON—inputs, outputs, errors, and results included.
67
+ - **Workflow Traces**: Dig into a detailed breakdown of each step, including data flow, tool calls, and any errors along the way.
43
68
 
44
- - **Chat Interface**: Directly interact with your agents to test their responses and behavior.
45
- - **Prompt CMS**: Experiment with different system instructions for your agent:
46
- - A/B test different prompt versions.
47
- - Track performance metrics for each variant.
48
- - Select and deploy the most effective prompt version.
49
- - **Agent Traces**: View detailed execution traces to understand how your agent processes requests, including:
50
- - Prompt construction.
51
- - Tool usage.
52
- - Decision-making steps.
53
- - Response generation.
54
- - **Agent Evals**: When you've set up [Agent evaluation metrics](/docs/evals/overview), you can:
55
- - Run evaluations directly from the playground.
56
- - View evaluation results and metrics.
57
- - Compare agent performance across different test cases.
69
+ ### Tools
58
70
 
59
- ### Workflow Playground
71
+ Quickly test and debug custom tools in isolation using the Tools Playground, without running a full agent or workflow.
60
72
 
61
- The Workflow playground helps you visualize and test your workflow implementations:
73
+ ![Tools Playground](/image/local-dev/local-dev-tools-playground.jpg)
62
74
 
63
- - **Workflow Visualization**: Workflow graph visualization.
75
+ Key features:
64
76
 
65
- - **Run Workflows**:
77
+ - **Test Tools in Isolation**: Try out individual tools on their own without running a full agent or workflow.
78
+ - **Input & Responses**: Send sample inputs to see how the tool responds.
79
+ - **Tool Usage**: Find out which agents rely on this tool and how they’re using it.
66
80
 
67
- - Trigger test workflow runs with custom input data.
68
- - Debug workflow logic and conditions.
69
- - Simulate different execution paths.
70
- - View detailed execution logs for each step.
71
81
 
72
- - **Workflow Traces**: Examine detailed execution traces that show:
73
- - Step-by-step workflow progression.
74
- - State transitions and data flow.
75
- - Tool invocations and their results.
76
- - Decision points and branching logic.
77
- - Error handling and recovery paths.
82
+ ### MCP Servers
78
83
 
79
- ### Tools Playground
84
+ Explore connection details, tool usage, and IDE configuration for local MCP server development.
80
85
 
81
- The Tools playground allows you to test your custom tools in isolation:
86
+ ![MCP Servers Playground](/image/local-dev/local-dev-mcp-server-playground.jpg)
87
+
88
+ Key features:
89
+
90
+ - **Connection Details**: Access the endpoints and config needed to wire up your MCP environment.
91
+ - **Available Tools**: See all tools currently published, including their names, versions, and which agents use them.
92
+ - **IDE Configuration**: Grab ready-to-use config you can drop into your local setup for testing and publishing tools.
82
93
 
83
- - Test individual tools without running a full agent or workflow.
84
- - Input test data and view tool responses.
85
- - Debug tool implementation and error handling.
86
- - Verify tool input/output schemas.
87
- - Monitor tool performance and execution time.
88
94
 
89
95
  ## REST API Endpoints
90
96
 
91
- `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.
97
+ The local development server exposes a set of REST API routes via the [Mastra Server](/docs/deployment/server), allowing you to test and interact with your agents and workflows before deployment.
92
98
 
93
- You can then leverage the [Mastra Client](/docs/deployment/client) SDK to interact with your served REST API routes seamlessly.
99
+ For a full overview of available API routes, including agents, tools, and workflows, see the [Routes reference](/reference/cli/dev#routes).
94
100
 
95
101
  ## OpenAPI Specification
96
102
 
97
- `mastra dev` provides an OpenAPI spec at http://localhost:4111/openapi.json
103
+ The local development server includes an OpenAPI specification available at: [http://localhost:4111/openapi.json](http://localhost:4111/openapi.json).
98
104
 
99
- To enable OpenAPI documentation in your Mastra instance, add the following configuration:
105
+ To include OpenAPI documentation in your production server, enable it in the Mastra instance:
100
106
 
101
- ```typescript
102
- import { Mastra } from "@mastra/core";
107
+ ```typescript {7} filename="src/mastra/index.ts" showLineNumbers copy
108
+ import { Mastra } from "@mastra/core/mastra";
103
109
 
104
110
  export const mastra = new Mastra({
111
+ // ...
105
112
  server: {
106
113
  build: {
107
- openAPIDocs: true, // Enable OpenAPI documentation
108
- // ... other build config options
109
- },
114
+ openAPIDocs: true
115
+ }
110
116
  },
111
117
  });
112
118
  ```
113
119
 
114
120
  ## Swagger UI
115
121
 
116
- Swagger UI provides an interactive interface for testing your API endpoints at `mastra dev` provides an OpenAPI spec at http://localhost:4111/swagger-ui.
117
- To enable Swagger UI in your Mastra instance, add the following configuration:
122
+ The local development server includes an interactive Swagger UI - API explorer available at: [http://localhost:4111/swagger-ui](http://localhost:4111/swagger-ui).
123
+
124
+ To include Swagger UI in your production server, enable it in the Mastra instance:
118
125
 
119
- ```typescript
120
- import { Mastra } from "@mastra/core";
126
+ ```typescript {7} filename="src/mastra/index.ts" showLineNumbers copy
127
+ import { Mastra } from "@mastra/core/mastra";
121
128
 
122
129
  export const mastra = new Mastra({
130
+ // ...
123
131
  server: {
124
132
  build: {
125
- openAPIDocs: true, // Enable OpenAPI documentation
126
- swaggerUI: true, // Enable Swagger UI
127
- // ... other build config options
133
+ swaggerUI: true
128
134
  },
129
135
  },
130
136
  });
131
137
  ```
132
138
 
133
- ## Local Dev Architecture
134
-
135
- The local development server is designed to run without any external dependencies or containerization. This is achieved through:
136
-
137
- - **Dev Server**: Uses [Hono](https://hono.dev) as the underlying framework to power the [Mastra Server](/docs/deployment/server).
138
-
139
- - **In-Memory Storage**: Uses [LibSQL](https://libsql.org/) memory adapters for:
139
+ ## Architecture
140
140
 
141
- - Agent memory management.
142
- - Trace storage.
143
- - Evals storage.
144
- - Workflow snapshots.
141
+ The local development server runs fully self-contained without external dependencies or containers. It leverages:
145
142
 
146
- - **Vector Storage**: Uses [FastEmbed](https://github.com/qdrant/fastembed) for:
147
- - Default embedding generation.
148
- - Vector storage and retrieval.
149
- - Semantic search capabilities.
143
+ - **Dev Server** powered by [Hono](https://hono.dev) for the core [Mastra Server](/docs/deployment/server).
144
+ - **In-Memory Storage** via [LibSQL](https://libsql.org/) adapters for agent memory, traces, evals, and workflow snapshots.
145
+ - **Vector Storage** using [FastEmbed](https://github.com/qdrant/fastembed) for embeddings, vector search, and semantic retrieval.
150
146
 
151
- 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.
147
+ This setup lets you start developing immediately with production-like behavior, no database or vector store setup required.
152
148
 
153
- ### Model settings
149
+ ## Configuration
154
150
 
155
- The local development server also lets you configure the model settings in Overview > Model Settings.
151
+ By default, the server runs on port `4111`. You can customize the host and port through the Mastra server configuration.
156
152
 
157
- You can configure the following settings:
153
+ ```typescript {6,7} filename="src/mastra/index.ts" showLineNumbers copy
154
+ import { Mastra } from "@mastra/core/mastra";
158
155
 
159
- - **Temperature**: Controls randomness in model outputs. Higher values (0-2) produce more creative responses while lower values make outputs more focused and deterministic.
160
- - **Top P**: Sets cumulative probability threshold for token sampling. Lower values (0-1) make outputs more focused by considering only the most likely tokens.
161
- - **Top K**: Limits the number of tokens considered for each generation step. Lower values produce more focused outputs by sampling from fewer options.
162
- - **Frequency Penalty**: Reduces repetition by penalizing tokens based on their frequency in previous text. Higher values (0-2) discourage reuse of common tokens.
163
- - **Presence Penalty**: Reduces repetition by penalizing tokens that appear in previous text. Higher values (0-2) encourage the model to discuss new topics.
164
- - **Max Tokens**: Maximum number of tokens allowed in the model's response. Higher values allow for longer outputs but may increase latency.
165
- - **Max Steps**: Maximum number of steps a workflow or agent can execute before stopping. Prevents infinite loops and runaway processes.
166
- - **Max Retries**: Number of times to retry failed API calls or model requests before giving up. Helps handle temporary failures gracefully.
156
+ export const mastra = new Mastra({
157
+ // ...
158
+ server: {
159
+ port: 8080,
160
+ host: "0.0.0.0",
161
+ },
162
+ });
163
+ ```
167
164
 
168
- ## Summary
169
165
 
170
- `mastra dev` makes it easy to develop, debug, and iterate on your AI logic in a self-contained environment before deploying to production.
166
+ ## Next steps
171
167
 
172
- - [Mastra Dev reference](../../reference/cli/dev.mdx)
168
+ - [Mastra Cloud](/docs/mastra-cloud/overview)
169
+ - [Deployment Overview](/docs/deployment/overview)
170
+ - [Mastra Client SDK](/docs/client-js/overview)
@@ -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)