@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.
- package/.docs/organized/changelogs/%40internal%2Fstorage-test-utils.md +21 -0
- package/.docs/organized/changelogs/%40mastra%2Fagui.md +37 -0
- package/.docs/organized/changelogs/%40mastra%2Fastra.md +25 -25
- package/.docs/organized/changelogs/%40mastra%2Fchroma.md +48 -48
- package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +71 -71
- package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +62 -62
- package/.docs/organized/changelogs/%40mastra%2Fcloud.md +25 -25
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +68 -68
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +37 -37
- package/.docs/organized/changelogs/%40mastra%2Fcore.md +64 -64
- package/.docs/organized/changelogs/%40mastra%2Fcouchbase.md +37 -31
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +80 -80
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +77 -77
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +73 -73
- package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +94 -94
- package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +80 -41
- package/.docs/organized/changelogs/%40mastra%2Fevals.md +36 -36
- package/.docs/organized/changelogs/%40mastra%2Ffirecrawl.md +42 -42
- package/.docs/organized/changelogs/%40mastra%2Fgithub.md +36 -36
- package/.docs/organized/changelogs/%40mastra%2Flance.md +59 -0
- package/.docs/organized/changelogs/%40mastra%2Flibsql.md +62 -62
- package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +65 -65
- package/.docs/organized/changelogs/%40mastra%2Fmcp-registry-registry.md +45 -45
- package/.docs/organized/changelogs/%40mastra%2Fmcp.md +56 -56
- package/.docs/organized/changelogs/%40mastra%2Fmem0.md +36 -36
- package/.docs/organized/changelogs/%40mastra%2Fmemory.md +58 -58
- package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +74 -74
- package/.docs/organized/changelogs/%40mastra%2Fopensearch.md +47 -0
- package/.docs/organized/changelogs/%40mastra%2Fpg.md +75 -75
- package/.docs/organized/changelogs/%40mastra%2Fpinecone.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +107 -107
- package/.docs/organized/changelogs/%40mastra%2Fqdrant.md +37 -37
- package/.docs/organized/changelogs/%40mastra%2Frag.md +41 -41
- package/.docs/organized/changelogs/%40mastra%2Fragie.md +36 -36
- package/.docs/organized/changelogs/%40mastra%2Fschema-compat.md +6 -0
- package/.docs/organized/changelogs/%40mastra%2Fserver.md +61 -61
- package/.docs/organized/changelogs/%40mastra%2Fturbopuffer.md +37 -37
- package/.docs/organized/changelogs/%40mastra%2Fupstash.md +75 -75
- package/.docs/organized/changelogs/%40mastra%2Fvectorize.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fvoice-azure.md +24 -24
- package/.docs/organized/changelogs/%40mastra%2Fvoice-cloudflare.md +36 -36
- package/.docs/organized/changelogs/%40mastra%2Fvoice-deepgram.md +36 -36
- package/.docs/organized/changelogs/%40mastra%2Fvoice-elevenlabs.md +36 -36
- package/.docs/organized/changelogs/%40mastra%2Fvoice-gladia.md +34 -0
- package/.docs/organized/changelogs/%40mastra%2Fvoice-google.md +36 -36
- package/.docs/organized/changelogs/%40mastra%2Fvoice-murf.md +37 -37
- package/.docs/organized/changelogs/%40mastra%2Fvoice-openai-realtime.md +25 -25
- package/.docs/organized/changelogs/%40mastra%2Fvoice-openai.md +36 -36
- package/.docs/organized/changelogs/%40mastra%2Fvoice-playai.md +36 -36
- package/.docs/organized/changelogs/%40mastra%2Fvoice-sarvam.md +36 -36
- package/.docs/organized/changelogs/%40mastra%2Fvoice-speechify.md +36 -36
- package/.docs/organized/changelogs/create-mastra.md +35 -35
- package/.docs/organized/changelogs/mastra.md +116 -116
- package/.docs/organized/code-examples/a2a.md +1 -1
- package/.docs/organized/code-examples/agent-network.md +125 -7
- package/.docs/organized/code-examples/agent.md +1 -1
- package/.docs/organized/code-examples/agui.md +4 -4
- package/.docs/organized/code-examples/ai-sdk-useChat.md +6 -6
- package/.docs/organized/code-examples/assistant-ui.md +5 -5
- package/.docs/organized/code-examples/bird-checker-with-express.md +1 -1
- package/.docs/organized/code-examples/bird-checker-with-nextjs-and-eval.md +5 -5
- package/.docs/organized/code-examples/bird-checker-with-nextjs.md +5 -5
- package/.docs/organized/code-examples/client-side-tools.md +6 -6
- package/.docs/organized/code-examples/crypto-chatbot.md +4 -4
- package/.docs/organized/code-examples/experimental-auth-weather-agent.md +1 -1
- package/.docs/organized/code-examples/fireworks-r1.md +1 -1
- package/.docs/organized/code-examples/mcp-configuration.md +2 -2
- package/.docs/organized/code-examples/mcp-registry-registry.md +1 -1
- package/.docs/organized/code-examples/memory-per-resource-example.md +236 -0
- package/.docs/organized/code-examples/memory-with-mem0.md +1 -1
- package/.docs/organized/code-examples/memory-with-processors.md +1 -1
- package/.docs/organized/code-examples/openapi-spec-writer.md +5 -5
- package/.docs/organized/code-examples/quick-start.md +1 -1
- package/.docs/organized/code-examples/stock-price-tool.md +1 -1
- package/.docs/organized/code-examples/weather-agent.md +1 -1
- package/.docs/organized/code-examples/workflow-ai-recruiter.md +1 -1
- package/.docs/organized/code-examples/workflow-with-inline-steps.md +1 -1
- package/.docs/organized/code-examples/workflow-with-memory.md +1 -1
- package/.docs/organized/code-examples/workflow-with-separate-steps.md +1 -1
- package/.docs/raw/frameworks/agentic-uis/copilotkit.mdx +53 -10
- package/.docs/raw/local-dev/mastra-dev.mdx +103 -105
- package/.docs/raw/mastra-cloud/dashboard.mdx +100 -0
- package/.docs/raw/mastra-cloud/observability.mdx +24 -138
- package/.docs/raw/mastra-cloud/overview.mdx +50 -42
- package/.docs/raw/mastra-cloud/setting-up.mdx +51 -87
- package/.docs/raw/memory/overview.mdx +4 -0
- package/.docs/raw/memory/working-memory.mdx +88 -1
- package/.docs/raw/observability/nextjs-tracing.mdx +2 -2
- package/.docs/raw/reference/storage/libsql.mdx +1 -0
- package/.docs/raw/reference/tools/vector-query-tool.mdx +1 -0
- package/.docs/raw/reference/workflows/sleep.mdx +43 -0
- package/.docs/raw/reference/workflows/sleepUntil.mdx +43 -0
- package/.docs/raw/reference/workflows/waitForEvent.mdx +49 -0
- package/.docs/raw/storage/overview.mdx +50 -1
- package/.docs/raw/tools-mcp/mcp-overview.mdx +52 -0
- package/.docs/raw/workflows/inngest-workflow.mdx +1 -1
- package/.docs/raw/workflows/input-data-mapping.mdx +4 -4
- package/.docs/raw/workflows/pausing-execution.mdx +60 -0
- package/package.json +6 -6
- package/.docs/raw/local-dev/add-to-existing-project.mdx +0 -43
- package/.docs/raw/local-dev/creating-a-new-project.mdx +0 -53
- package/.docs/raw/mastra-cloud/deploying.mdx +0 -142
|
@@ -1,172 +1,170 @@
|
|
|
1
1
|
---
|
|
2
|
-
title: "Inspecting
|
|
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
|
-
#
|
|
9
|
+
# Playground
|
|
9
10
|
|
|
10
|
-
Mastra provides a local development environment where you can test your agents, workflows, and tools
|
|
11
|
+
Mastra provides a local development environment where you can test your agents, workflows, and tools during development.
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
Start the local development server by running:
|
|
13
14
|
|
|
14
|
-
|
|
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
|
-
|
|
28
|
+
The local development server provides access to the following interfaces:
|
|
17
29
|
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
23
|
-
mastra server config.
|
|
35
|
+
## Local Development Playground
|
|
24
36
|
|
|
25
|
-
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
+

|
|
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
|
-
|
|
57
|
+
Validate workflows by supplying defined inputs and visualizing each step within the Workflow Playground.
|
|
37
58
|
|
|
38
|
-
|
|
59
|
+

|
|
39
60
|
|
|
40
|
-
|
|
61
|
+
Key features:
|
|
41
62
|
|
|
42
|
-
|
|
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
|
-
|
|
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
|
-
|
|
71
|
+
Quickly test and debug custom tools in isolation using the Tools Playground, without running a full agent or workflow.
|
|
60
72
|
|
|
61
|
-
|
|
73
|
+

|
|
62
74
|
|
|
63
|
-
|
|
75
|
+
Key features:
|
|
64
76
|
|
|
65
|
-
- **
|
|
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
|
-
|
|
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
|
-
|
|
84
|
+
Explore connection details, tool usage, and IDE configuration for local MCP server development.
|
|
80
85
|
|
|
81
|
-
|
|
86
|
+

|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
108
|
-
|
|
109
|
-
},
|
|
114
|
+
openAPIDocs: true
|
|
115
|
+
}
|
|
110
116
|
},
|
|
111
117
|
});
|
|
112
118
|
```
|
|
113
119
|
|
|
114
120
|
## Swagger UI
|
|
115
121
|
|
|
116
|
-
|
|
117
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
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
|
-
|
|
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
|
-
- **
|
|
147
|
-
|
|
148
|
-
|
|
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
|
|
147
|
+
This setup lets you start developing immediately with production-like behavior, no database or vector store setup required.
|
|
152
148
|
|
|
153
|
-
|
|
149
|
+
## Configuration
|
|
154
150
|
|
|
155
|
-
|
|
151
|
+
By default, the server runs on port `4111`. You can customize the host and port through the Mastra server configuration.
|
|
156
152
|
|
|
157
|
-
|
|
153
|
+
```typescript {6,7} filename="src/mastra/index.ts" showLineNumbers copy
|
|
154
|
+
import { Mastra } from "@mastra/core/mastra";
|
|
158
155
|
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
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
|
-
|
|
166
|
+
## Next steps
|
|
171
167
|
|
|
172
|
-
- [Mastra
|
|
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
|
+

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

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

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

|
|
49
|
+
|
|
50
|
+
Key features:
|
|
51
|
+
|
|
52
|
+
You can manage environment variables, edit key project settings like the name and branch, configure storage with LibSQLStore, and set a stable URL for your endpoints.
|
|
53
|
+
|
|
54
|
+
> Changes to configuration require a new deployment before taking effect.
|
|
55
|
+
|
|
56
|
+
## 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
|
+

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

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

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

|
|
93
|
+
|
|
94
|
+
Key features:
|
|
95
|
+
|
|
96
|
+
Each MCP Server includes API endpoints for HTTP and SSE, along with IDE configuration snippets for tools like Cursor and Windsurf.
|
|
97
|
+
|
|
98
|
+
## Next steps
|
|
99
|
+
|
|
100
|
+
- [Understanding Tracing and Logs](/docs/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
|
-
|
|
6
|
+
import { MastraCloudCallout } from '@/components/mastra-cloud-callout'
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
> Mastra Cloud is currently in **beta**.
|
|
8
|
+
# Understanding Tracing and Logs
|
|
10
9
|
|
|
11
|
-
Mastra Cloud
|
|
10
|
+
Mastra Cloud captures execution data to help you monitor your application's behavior in the production environment.
|
|
12
11
|
|
|
13
|
-
|
|
12
|
+
<MastraCloudCallout />
|
|
14
13
|
|
|
15
|
-
|
|
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
|
-

|
|
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
|
-

|
|
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
|
-
|
|
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
|
-

|
|
112
19
|
|
|
113
|
-
|
|
20
|
+
Key features:
|
|
114
21
|
|
|
115
|
-
|
|
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
|
-
|
|
24
|
+
## Traces
|
|
122
25
|
|
|
123
|
-
|
|
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
|
-
|
|
28
|
+
### Agents
|
|
126
29
|
|
|
127
|
-
|
|
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
|
-

|
|
130
33
|
|
|
131
|
-
|
|
34
|
+
Key features:
|
|
132
35
|
|
|
133
|
-
|
|
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
|
-
|
|
39
|
+
### Workflows
|
|
144
40
|
|
|
145
|
-
|
|
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
|
-
|
|
43
|
+

|
|
151
44
|
|
|
152
|
-
|
|
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
|
-
|
|
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
|
-
|
|
49
|
+
## Next steps
|
|
163
50
|
|
|
164
|
-
-
|
|
165
|
-
-
|
|
166
|
-
- Join the [Discord developer channel](https://discord.gg/mastra)
|
|
51
|
+
- [Logging](/docs/observability/logging)
|
|
52
|
+
- [Tracing](/docs/observability/tracing)
|