@mastra/mcp-docs-server 1.3.8 → 1.3.9-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/mastra-platform/connect/channels.md +14 -2
- package/.docs/docs/mastra-platform/connect/overview.md +1 -1
- package/.docs/docs/mastra-platform/connect/providers.md +1 -0
- package/.docs/models/gateways/merge-gateway.md +2 -1
- package/.docs/models/gateways/netlify.md +7 -1
- package/.docs/models/gateways/openrouter.md +4 -1
- package/.docs/models/gateways/vercel.md +4 -3
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/302ai.md +2 -1
- package/.docs/models/providers/ambient.md +2 -1
- package/.docs/models/providers/cortecs.md +1 -2
- package/.docs/models/providers/deepinfra.md +2 -1
- package/.docs/models/providers/edenai.md +3 -1
- package/.docs/models/providers/engy.md +2 -2
- package/.docs/models/providers/fireworks-ai.md +2 -1
- package/.docs/models/providers/hyper.md +2 -1
- package/.docs/models/providers/iteracompute.md +11 -10
- package/.docs/models/providers/kilo.md +21 -18
- package/.docs/models/providers/llmgateway-providers.md +1 -7
- package/.docs/models/providers/llmgateway.md +1 -4
- package/.docs/models/providers/nano-gpt.md +5 -2
- package/.docs/models/providers/nebius.md +3 -1
- package/.docs/models/providers/ollama-cloud.md +2 -1
- package/.docs/models/providers/opencode-go.md +4 -4
- package/.docs/models/providers/opencode.md +5 -4
- package/.docs/models/providers/prime.md +3 -2
- package/.docs/models/providers/requesty.md +2 -1
- package/.docs/models/providers/wandb.md +24 -23
- package/.docs/models/providers/xiaomi-token-plan-ams.md +0 -2
- package/.docs/models/providers/xiaomi-token-plan-cn.md +0 -2
- package/.docs/models/providers/xiaomi-token-plan-sgp.md +0 -2
- package/.docs/models/providers/xiaomi.md +0 -3
- package/.docs/reference/agents/durable-agent.md +3 -1
- package/.docs/reference/classifier/classifier.md +2 -2
- package/.docs/reference/cli/mastra.md +5 -3
- package/.docs/reference/client-js/observability.md +44 -0
- package/.docs/reference/connect/channels.md +2 -2
- package/.docs/reference/connect/providers.md +34 -1
- package/.docs/reference/datasets/list.md +9 -1
- package/.docs/reference/observability/metrics/automatic-metrics.md +3 -3
- package/.docs/reference/observability/metrics/queries.md +1 -0
- package/.docs/reference/observability/tracing/interfaces.md +6 -0
- package/.docs/reference/streaming/agents/stream.md +18 -0
- package/package.json +5 -5
|
@@ -542,6 +542,9 @@ interface AgentRunAttributes {
|
|
|
542
542
|
|
|
543
543
|
/** Maximum steps allowed */
|
|
544
544
|
maxSteps?: number
|
|
545
|
+
|
|
546
|
+
/** When the run's model streamed its first chunk, copied from the agent's own first generation */
|
|
547
|
+
completionStartTime?: Date
|
|
545
548
|
}
|
|
546
549
|
```
|
|
547
550
|
|
|
@@ -639,6 +642,9 @@ interface ModelStepAttributes {
|
|
|
639
642
|
|
|
640
643
|
/** Result warnings */
|
|
641
644
|
warnings?: Record<string, any>
|
|
645
|
+
|
|
646
|
+
/** When the step's first inference streamed its first chunk */
|
|
647
|
+
completionStartTime?: Date
|
|
642
648
|
}
|
|
643
649
|
```
|
|
644
650
|
|
|
@@ -248,6 +248,24 @@ const stream = await agent.stream('message for agent')
|
|
|
248
248
|
|
|
249
249
|
**spanId** (`string`): The root span ID associated with this execution when Tracing is enabled. Use this for span-level lookup and correlation.
|
|
250
250
|
|
|
251
|
+
## `stopWhen` errors
|
|
252
|
+
|
|
253
|
+
If a `stopWhen` predicate throws, `fullStream` rejects with that error. The stream does not emit a `step-finish`, `finish`, or `error` chunk for the failure. Catch the rejection around stream consumption:
|
|
254
|
+
|
|
255
|
+
```ts
|
|
256
|
+
async function consumeStream() {
|
|
257
|
+
try {
|
|
258
|
+
for await (const chunk of stream.fullStream) {
|
|
259
|
+
console.log(chunk)
|
|
260
|
+
}
|
|
261
|
+
} catch (error) {
|
|
262
|
+
console.error('stopWhen failed', error)
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
Durable transports reconstruct cross-process errors from their serialized name and message. The original stack, cause, and subclass identity are not available to the stream consumer.
|
|
268
|
+
|
|
251
269
|
## Signal visibility
|
|
252
270
|
|
|
253
271
|
Signals, including reactive reminders, appear in `fullStream` by default. Set `hideSignals` to omit selected signal chunks from your stream:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.9-alpha.3",
|
|
4
4
|
"description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@mastra/mcp-legacy": "npm:@mastra/mcp@^1.18.0",
|
|
27
27
|
"local-pkg": "^1.1.2",
|
|
28
28
|
"zod": "^4.6.4",
|
|
29
|
-
"@mastra/
|
|
30
|
-
"@mastra/
|
|
29
|
+
"@mastra/mcp": "^2.4.2-alpha.0",
|
|
30
|
+
"@mastra/core": "1.79.0-alpha.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@hono/node-server": "^2.0.0",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"typescript": "^7.0.2",
|
|
45
45
|
"vitest": "4.1.11",
|
|
46
46
|
"@internal/lint": "0.0.144",
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
47
|
+
"@internal/types-builder": "0.0.119",
|
|
48
|
+
"@mastra/core": "1.79.0-alpha.1"
|
|
49
49
|
},
|
|
50
50
|
"homepage": "https://mastra.ai",
|
|
51
51
|
"repository": {
|