@mastra/mcp-docs-server 1.2.13 → 1.2.14-alpha.3
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/docs/agents/a2a.md +1 -1
- package/.docs/docs/agents/acp.md +1 -1
- package/.docs/docs/agents/agent-approval.md +1 -1
- package/.docs/docs/agents/networks.md +2 -2
- package/.docs/docs/agents/overview.md +2 -2
- package/.docs/docs/agents/using-tools.md +2 -2
- package/.docs/docs/capabilities/channels/overview.md +1 -1
- package/.docs/docs/{agents/supervisor-agents.md → capabilities/subagents.md} +58 -58
- package/.docs/docs/deployment/sandbox.md +95 -1
- package/.docs/docs/getting-started/develop.md +2 -0
- package/.docs/docs/harness/agent-controller.md +370 -0
- package/.docs/docs/long-running-agents/background-tasks.md +1 -1
- package/.docs/docs/long-running-agents/goals.md +3 -3
- package/.docs/docs/mcp/overview.md +222 -281
- package/.docs/docs/memory/overview.md +2 -2
- package/.docs/docs/observability/integrations/exporters/confident-ai.md +140 -0
- package/.docs/docs/observability/integrations/overview.md +1 -1
- package/.docs/docs/observability/overview.md +122 -8
- package/.docs/docs/observability/tracing/overview.md +2 -2
- package/.docs/docs/server/mastra-client.md +1 -1
- package/.docs/docs/server/server-adapters.md +2 -0
- package/.docs/docs/storage/overview.md +2 -2
- package/.docs/guides/build-your-ui/copilotkit/channels.md +49 -39
- package/.docs/guides/concepts/multi-agent-systems.md +7 -7
- package/.docs/guides/guide/coding-agent.md +2 -2
- package/.docs/guides/guide/research-coordinator.md +1 -1
- package/.docs/guides/migrations/network-to-supervisor.md +1 -1
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/cortecs.md +2 -1
- package/.docs/models/providers/digitalocean.md +9 -9
- package/.docs/models/providers/kilo.md +1 -1
- package/.docs/models/providers/llmgateway.md +1 -1
- package/.docs/models/providers/opencode.md +2 -1
- package/.docs/reference/acp/acp-agent.md +1 -1
- package/.docs/reference/agent-controller/agent-controller-class.md +195 -506
- package/.docs/reference/agent-controller/session.md +274 -111
- package/.docs/reference/agents/network.md +1 -1
- package/.docs/reference/ai-sdk/handle-network-stream.md +1 -1
- package/.docs/reference/ai-sdk/network-route.md +1 -1
- package/.docs/reference/cli/create-mastra.md +1 -1
- package/.docs/reference/editor/versioning.md +1 -1
- package/.docs/reference/evals/rubric.md +1 -1
- package/.docs/reference/file-based-agents/observability.md +2 -2
- package/.docs/reference/file-based-agents/storage.md +1 -1
- package/.docs/reference/file-based-agents/subagents.md +1 -1
- package/.docs/reference/file-based-agents/tools.md +1 -1
- package/.docs/reference/observability/tracing/configuration.md +1 -1
- package/.docs/reference/observability/tracing/exporters/confident-ai.md +138 -0
- package/.docs/reference/observability/tracing/interfaces.md +29 -0
- package/.docs/reference/signals/signal-provider.md +2 -0
- package/.docs/reference/tools/mcp-server.md +1 -1
- package/.docs/reference/tools/submit-plan-tool.md +1 -1
- package/.docs/reference/workspace/railway-sandbox.md +5 -5
- package/CHANGELOG.md +14 -0
- package/package.json +3 -3
- package/.docs/docs/agent-controller/channels.md +0 -111
- package/.docs/docs/agent-controller/modes.md +0 -147
- package/.docs/docs/agent-controller/overview.md +0 -136
- package/.docs/docs/agent-controller/session.md +0 -161
- package/.docs/docs/agent-controller/subagents.md +0 -110
- package/.docs/docs/agent-controller/threads-and-state.md +0 -148
- package/.docs/docs/agent-controller/tool-approvals.md +0 -147
- package/.docs/docs/mcp/mcp-apps.md +0 -306
- package/.docs/docs/observability/config.md +0 -140
- package/.docs/docs/observability/storage.md +0 -81
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
-
|
|
3
|
-
# Configuration
|
|
4
|
-
|
|
5
|
-
Observability is configured once on your Mastra instance and applies across traces, logs, and metrics.
|
|
6
|
-
|
|
7
|
-
## When to use configuration
|
|
8
|
-
|
|
9
|
-
- Set up a default observability pipeline for local development.
|
|
10
|
-
- Route different environments or request types to different observability configs.
|
|
11
|
-
- Keep Mastra Studio and Mastra platform access enabled while also sending data to external providers.
|
|
12
|
-
|
|
13
|
-
## Quickstart
|
|
14
|
-
|
|
15
|
-
The following example demonstrates the standard starter setup: composite storage with DuckDB for the observability domain, plus Mastra storage, Mastra platform, and sensitive-data redaction.
|
|
16
|
-
|
|
17
|
-
```ts
|
|
18
|
-
import { Mastra } from '@mastra/core/mastra'
|
|
19
|
-
import { MastraCompositeStore } from '@mastra/core/storage'
|
|
20
|
-
import { DuckDBStore } from '@mastra/duckdb'
|
|
21
|
-
import { LibSQLStore } from '@mastra/libsql'
|
|
22
|
-
import {
|
|
23
|
-
Observability,
|
|
24
|
-
MastraStorageExporter,
|
|
25
|
-
MastraPlatformExporter,
|
|
26
|
-
SensitiveDataFilter,
|
|
27
|
-
} from '@mastra/observability'
|
|
28
|
-
|
|
29
|
-
export const mastra = new Mastra({
|
|
30
|
-
storage: new MastraCompositeStore({
|
|
31
|
-
id: 'composite-storage',
|
|
32
|
-
default: new LibSQLStore({
|
|
33
|
-
id: 'mastra-storage',
|
|
34
|
-
url: 'file:./mastra.db',
|
|
35
|
-
}),
|
|
36
|
-
domains: {
|
|
37
|
-
observability: await new DuckDBStore().getStore('observability'),
|
|
38
|
-
},
|
|
39
|
-
}),
|
|
40
|
-
observability: new Observability({
|
|
41
|
-
configs: {
|
|
42
|
-
default: {
|
|
43
|
-
serviceName: 'mastra',
|
|
44
|
-
exporters: [new MastraStorageExporter(), new MastraPlatformExporter()],
|
|
45
|
-
spanOutputProcessors: [new SensitiveDataFilter()],
|
|
46
|
-
logging: {
|
|
47
|
-
enabled: true,
|
|
48
|
-
level: 'info',
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
}),
|
|
53
|
-
})
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
## Basic config
|
|
57
|
-
|
|
58
|
-
An observability config usually contains:
|
|
59
|
-
|
|
60
|
-
- `serviceName`: The service identifier attached to exported observability data.
|
|
61
|
-
- `exporters`: One or more destinations for traces, logs, and derived metrics.
|
|
62
|
-
- `spanOutputProcessors`: Transformations that run before spans are exported.
|
|
63
|
-
- `logging`: Log forwarding settings for observability storage.
|
|
64
|
-
|
|
65
|
-
For destinations and processors, see [Integrations overview](https://mastra.ai/docs/observability/integrations/overview).
|
|
66
|
-
|
|
67
|
-
## Maintaining Studio access
|
|
68
|
-
|
|
69
|
-
When you add external exporters, keep `MastraStorageExporter` for Studio observability and/or `MastraPlatformExporter` for hosted Mastra platform observability.
|
|
70
|
-
|
|
71
|
-
This example shows only the observability config. Configure storage separately.
|
|
72
|
-
|
|
73
|
-
```ts
|
|
74
|
-
import { Observability, MastraStorageExporter, MastraPlatformExporter } from '@mastra/observability'
|
|
75
|
-
import { ArizeExporter } from '@mastra/arize'
|
|
76
|
-
|
|
77
|
-
export const observability = new Observability({
|
|
78
|
-
configs: {
|
|
79
|
-
production: {
|
|
80
|
-
serviceName: 'my-service',
|
|
81
|
-
exporters: [
|
|
82
|
-
new ArizeExporter({
|
|
83
|
-
endpoint: process.env.PHOENIX_COLLECTOR_ENDPOINT,
|
|
84
|
-
apiKey: process.env.PHOENIX_API_KEY,
|
|
85
|
-
}),
|
|
86
|
-
new MastraStorageExporter(),
|
|
87
|
-
new MastraPlatformExporter(),
|
|
88
|
-
],
|
|
89
|
-
},
|
|
90
|
-
},
|
|
91
|
-
})
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
## Flushing in serverless environments
|
|
95
|
-
|
|
96
|
-
In serverless environments, flush observability exporters before the runtime pauses or exits:
|
|
97
|
-
|
|
98
|
-
```ts
|
|
99
|
-
await mastra.observability.flush()
|
|
100
|
-
```
|
|
101
|
-
|
|
102
|
-
Use external storage in serverless environments instead of local file storage. For storage selection and routing, see [Storage](https://mastra.ai/docs/observability/storage).
|
|
103
|
-
|
|
104
|
-
## Multi-config setup
|
|
105
|
-
|
|
106
|
-
Use multiple configs when different environments or request types need different exporters or sampling behavior. Select the active config at runtime with `configSelector`.
|
|
107
|
-
|
|
108
|
-
```ts
|
|
109
|
-
import { Mastra } from '@mastra/core'
|
|
110
|
-
import { Observability, MastraStorageExporter } from '@mastra/observability'
|
|
111
|
-
import { LangfuseExporter } from '@mastra/langfuse'
|
|
112
|
-
|
|
113
|
-
const storageExporter = new MastraStorageExporter()
|
|
114
|
-
const langfuseExporter = new LangfuseExporter()
|
|
115
|
-
|
|
116
|
-
export const mastra = new Mastra({
|
|
117
|
-
observability: new Observability({
|
|
118
|
-
configs: {
|
|
119
|
-
development: {
|
|
120
|
-
serviceName: 'my-service-dev',
|
|
121
|
-
exporters: [storageExporter],
|
|
122
|
-
},
|
|
123
|
-
production: {
|
|
124
|
-
serviceName: 'my-service-prod',
|
|
125
|
-
exporters: [storageExporter, langfuseExporter],
|
|
126
|
-
},
|
|
127
|
-
},
|
|
128
|
-
configSelector: () => process.env.NODE_ENV || 'development',
|
|
129
|
-
}),
|
|
130
|
-
})
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
For trace sampling, see [Tracing](https://mastra.ai/docs/observability/tracing/overview).
|
|
134
|
-
|
|
135
|
-
## Related
|
|
136
|
-
|
|
137
|
-
- [Observability overview](https://mastra.ai/docs/observability/overview)
|
|
138
|
-
- [Storage](https://mastra.ai/docs/observability/storage)
|
|
139
|
-
- [Tracing](https://mastra.ai/docs/observability/tracing/overview)
|
|
140
|
-
- [Integrations overview](https://mastra.ai/docs/observability/integrations/overview)
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
-
|
|
3
|
-
# Storage
|
|
4
|
-
|
|
5
|
-
Storage determines which observability signals persist, which queries are available, and whether metrics aggregation works. Use a dedicated observability store instead of your primary application store.
|
|
6
|
-
|
|
7
|
-
## When to use storage
|
|
8
|
-
|
|
9
|
-
- Keep traces, logs, and metrics available in Mastra Studio during development.
|
|
10
|
-
- Enable metrics with an OLAP-capable observability store.
|
|
11
|
-
- Route the observability domain to a dedicated production backend.
|
|
12
|
-
|
|
13
|
-
## Quickstart
|
|
14
|
-
|
|
15
|
-
The following example demonstrates the recommended local testing setup: route observability data to DuckDB while keeping the rest of your application on LibSQL.
|
|
16
|
-
|
|
17
|
-
```ts
|
|
18
|
-
import { Mastra } from '@mastra/core/mastra'
|
|
19
|
-
import { LibSQLStore } from '@mastra/libsql'
|
|
20
|
-
import { DuckDBStore } from '@mastra/duckdb'
|
|
21
|
-
import { MastraCompositeStore } from '@mastra/core/storage'
|
|
22
|
-
import { Observability, MastraStorageExporter } from '@mastra/observability'
|
|
23
|
-
|
|
24
|
-
export const mastra = new Mastra({
|
|
25
|
-
storage: new MastraCompositeStore({
|
|
26
|
-
id: 'composite-storage',
|
|
27
|
-
default: new LibSQLStore({
|
|
28
|
-
id: 'mastra-storage',
|
|
29
|
-
url: 'file:./mastra.db',
|
|
30
|
-
}),
|
|
31
|
-
domains: {
|
|
32
|
-
observability: await new DuckDBStore().getStore('observability'),
|
|
33
|
-
},
|
|
34
|
-
}),
|
|
35
|
-
observability: new Observability({
|
|
36
|
-
configs: {
|
|
37
|
-
default: {
|
|
38
|
-
serviceName: 'mastra',
|
|
39
|
-
exporters: [new MastraStorageExporter()],
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
}),
|
|
43
|
-
})
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
## Signal support
|
|
47
|
-
|
|
48
|
-
Mastra storage-backed observability currently depends on an OLAP-capable backend for full signal support:
|
|
49
|
-
|
|
50
|
-
- DuckDB: Recommended for local testing and development.
|
|
51
|
-
- ClickHouse: Recommended for production observability.
|
|
52
|
-
- Mastra platform: Use `MastraPlatformExporter` if you want hosted observability without managing the backend yourself.
|
|
53
|
-
|
|
54
|
-
Primary application stores such as LibSQL or PostgreSQL shouldn't be used as the observability store. Route the `observability` domain separately with composite storage when you use `MastraStorageExporter`.
|
|
55
|
-
|
|
56
|
-
## Local development
|
|
57
|
-
|
|
58
|
-
For local development, the recommended setup is:
|
|
59
|
-
|
|
60
|
-
- `LibSQLStore` for primary application storage
|
|
61
|
-
- `DuckDBStore` for the `observability` domain
|
|
62
|
-
- `MastraStorageExporter` for local Studio access
|
|
63
|
-
|
|
64
|
-
This setup is for local testing and development. It gives you persisted traces, logs, and metrics without introducing external infrastructure.
|
|
65
|
-
|
|
66
|
-
## Production deployment
|
|
67
|
-
|
|
68
|
-
Observability traffic is usually more write-heavy than the rest of the application. In production:
|
|
69
|
-
|
|
70
|
-
- Use `MastraStorageExporter` with ClickHouse for the `observability` domain when you keep observability in your own storage.
|
|
71
|
-
- Use `MastraPlatformExporter` if you want hosted Mastra platform observability instead of managing the backend yourself.
|
|
72
|
-
- Don't route observability to your primary application store.
|
|
73
|
-
|
|
74
|
-
For backend compatibility details and exporter batching behavior, see [Mastra Storage exporter](https://mastra.ai/docs/observability/integrations/exporters/mastra-storage).
|
|
75
|
-
|
|
76
|
-
## Next steps
|
|
77
|
-
|
|
78
|
-
- [Configuration](https://mastra.ai/docs/observability/config)
|
|
79
|
-
- [Logging](https://mastra.ai/docs/observability/logging)
|
|
80
|
-
- [Metrics overview](https://mastra.ai/docs/observability/metrics/overview)
|
|
81
|
-
- [Mastra Storage exporter](https://mastra.ai/docs/observability/integrations/exporters/mastra-storage)
|