@mastra/mcp-docs-server 1.1.39-alpha.15 → 1.1.39-alpha.18
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.
|
@@ -92,6 +92,8 @@ A tool can also pause _during_ its `execute` function by calling `suspend()`. Th
|
|
|
92
92
|
|
|
93
93
|
The stream emits a `tool-call-suspended` chunk with a custom payload defined by the tool's `suspendSchema`. You resume by calling `resumeStream()` with data matching the tool's `resumeSchema`.
|
|
94
94
|
|
|
95
|
+
> **Note:** `suspend()` does not throw — return immediately after calling it (e.g. `return await suspend({ ... })`). Code after `await suspend(...)` still runs before the tool pauses.
|
|
96
|
+
|
|
95
97
|
## Tool approval with `generate()`
|
|
96
98
|
|
|
97
99
|
Tool approval also works with `generate()` for non-streaming use cases. When a tool requires approval, `generate()` returns immediately with `finishReason: 'suspended'`, a `suspendPayload` containing the tool call details (`toolCallId`, `toolName`, `args`), and a `runId`:
|
package/.docs/models/index.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Model Providers
|
|
2
2
|
|
|
3
|
-
Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to
|
|
3
|
+
Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to 4216 models from 121 providers through a single API.
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# OpenCode Zen
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 41 OpenCode Zen models through Mastra's model router. Authentication is handled automatically using the `OPENCODE_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [OpenCode Zen documentation](https://opencode.ai/docs/zen).
|
|
6
6
|
|
|
@@ -46,6 +46,7 @@ for await (const chunk of stream) {
|
|
|
46
46
|
| `opencode/deepseek-v4-flash-free` | 200K | | | | | | — | — |
|
|
47
47
|
| `opencode/gemini-3-flash` | 1.0M | | | | | | $0.50 | $3 |
|
|
48
48
|
| `opencode/gemini-3.1-pro` | 1.0M | | | | | | $2 | $12 |
|
|
49
|
+
| `opencode/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
|
|
49
50
|
| `opencode/glm-5` | 205K | | | | | | $1 | $3 |
|
|
50
51
|
| `opencode/glm-5.1` | 205K | | | | | | $1 | $4 |
|
|
51
52
|
| `opencode/gpt-5` | 400K | | | | | | $1 | $9 |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# The Grid AI
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 9 The Grid AI models through Mastra's model router. Authentication is handled automatically using the `THEGRIDAI_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [The Grid AI documentation](https://thegrid.ai/docs).
|
|
6
6
|
|
|
@@ -15,7 +15,7 @@ const agent = new Agent({
|
|
|
15
15
|
id: "my-agent",
|
|
16
16
|
name: "My Agent",
|
|
17
17
|
instructions: "You are a helpful assistant",
|
|
18
|
-
model: "the-grid-ai/
|
|
18
|
+
model: "the-grid-ai/agent-max"
|
|
19
19
|
});
|
|
20
20
|
|
|
21
21
|
// Generate a response
|
|
@@ -32,11 +32,17 @@ for await (const chunk of stream) {
|
|
|
32
32
|
|
|
33
33
|
## Models
|
|
34
34
|
|
|
35
|
-
| Model
|
|
36
|
-
|
|
|
37
|
-
| `the-grid-ai/
|
|
38
|
-
| `the-grid-ai/
|
|
39
|
-
| `the-grid-ai/
|
|
35
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
36
|
+
| ---------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
37
|
+
| `the-grid-ai/agent-max` | 1.0M | | | | | | — | — |
|
|
38
|
+
| `the-grid-ai/agent-prime` | 128K | | | | | | — | — |
|
|
39
|
+
| `the-grid-ai/agent-standard` | 128K | | | | | | — | — |
|
|
40
|
+
| `the-grid-ai/code-max` | 1.0M | | | | | | — | — |
|
|
41
|
+
| `the-grid-ai/code-prime` | 128K | | | | | | — | — |
|
|
42
|
+
| `the-grid-ai/code-standard` | 128K | | | | | | — | — |
|
|
43
|
+
| `the-grid-ai/text-max` | 1.0M | | | | | | — | — |
|
|
44
|
+
| `the-grid-ai/text-prime` | 128K | | | | | | — | — |
|
|
45
|
+
| `the-grid-ai/text-standard` | 128K | | | | | | — | — |
|
|
40
46
|
|
|
41
47
|
## Advanced configuration
|
|
42
48
|
|
|
@@ -48,7 +54,7 @@ const agent = new Agent({
|
|
|
48
54
|
name: "custom-agent",
|
|
49
55
|
model: {
|
|
50
56
|
url: "https://api.thegrid.ai/v1",
|
|
51
|
-
id: "the-grid-ai/
|
|
57
|
+
id: "the-grid-ai/agent-max",
|
|
52
58
|
apiKey: process.env.THEGRIDAI_API_KEY,
|
|
53
59
|
headers: {
|
|
54
60
|
"X-Custom-Header": "value"
|
|
@@ -67,7 +73,7 @@ const agent = new Agent({
|
|
|
67
73
|
const useAdvanced = requestContext.task === "complex";
|
|
68
74
|
return useAdvanced
|
|
69
75
|
? "the-grid-ai/text-standard"
|
|
70
|
-
: "the-grid-ai/
|
|
76
|
+
: "the-grid-ai/agent-max";
|
|
71
77
|
}
|
|
72
78
|
});
|
|
73
79
|
```
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @mastra/mcp-docs-server
|
|
2
2
|
|
|
3
|
+
## 1.1.39-alpha.17
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`1698f5e`](https://github.com/mastra-ai/mastra/commit/1698f5ec141d34f22a873efdb145ce3cdf848a5e)]:
|
|
8
|
+
- @mastra/core@1.36.0-alpha.9
|
|
9
|
+
|
|
10
|
+
## 1.1.39-alpha.16
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`9aee493`](https://github.com/mastra-ai/mastra/commit/9aee493ed6089b5133472623dcce49934bf2d509)]:
|
|
15
|
+
- @mastra/core@1.36.0-alpha.8
|
|
16
|
+
|
|
3
17
|
## 1.1.39-alpha.14
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "1.1.39-alpha.
|
|
3
|
+
"version": "1.1.39-alpha.18",
|
|
4
4
|
"description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"jsdom": "^26.1.0",
|
|
30
30
|
"local-pkg": "^1.1.2",
|
|
31
31
|
"zod": "^4.3.6",
|
|
32
|
-
"@mastra/core": "1.36.0-alpha.
|
|
32
|
+
"@mastra/core": "1.36.0-alpha.9",
|
|
33
33
|
"@mastra/mcp": "^1.8.0-alpha.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"typescript": "^6.0.3",
|
|
48
48
|
"vitest": "4.1.5",
|
|
49
49
|
"@internal/lint": "0.0.96",
|
|
50
|
-
"@
|
|
51
|
-
"@
|
|
50
|
+
"@mastra/core": "1.36.0-alpha.9",
|
|
51
|
+
"@internal/types-builder": "0.0.71"
|
|
52
52
|
},
|
|
53
53
|
"homepage": "https://mastra.ai",
|
|
54
54
|
"repository": {
|