@mastra/mcp-docs-server 0.13.23-alpha.0 → 0.13.23

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.
@@ -230,8 +230,7 @@ const aiSdkResult = await agent.generateVNext("message for agent", {
230
230
  name: "output",
231
231
  type: "Zod schema | JsonSchema7",
232
232
  isOptional: true,
233
- description:
234
- "**Deprecated.** Use structuredOutput with maxSteps:1 to achieve the same thing. Defines the expected structure of the output. Can be a JSON Schema object or a Zod schema.",
233
+ description: "**Deprecated.** Use structuredOutput with maxSteps:1 to achieve the same thing. Defines the expected structure of the output. Can be a JSON Schema object or a Zod schema.",
235
234
  },
236
235
  {
237
236
  name: "memory",
@@ -13,7 +13,7 @@ The `.streamVNext()` method enables real-time streaming of responses from an age
13
13
 
14
14
  ## Usage example
15
15
 
16
- ```typescript copy
16
+ ```ts filename="index.ts" copy
17
17
  // Default Mastra format
18
18
  const mastraStream = await agent.streamVNext("message for agent");
19
19
 
@@ -116,31 +116,31 @@ const aiSdkStream = await agent.streamVNext("message for agent", {
116
116
  name: "onChunk",
117
117
  type: "(chunk: ChunkType) => Promise<void> | void",
118
118
  isOptional: true,
119
- description: "Callback function called for each chunk during streaming."
119
+ description: "Callback function called for each chunk during streaming.",
120
120
  },
121
121
  {
122
122
  name: "onError",
123
123
  type: "({ error }: { error: Error | string }) => Promise<void> | void",
124
124
  isOptional: true,
125
- description: "Callback function called when an error occurs during streaming."
125
+ description: "Callback function called when an error occurs during streaming.",
126
126
  },
127
127
  {
128
128
  name: "onAbort",
129
129
  type: "(event: any) => Promise<void> | void",
130
130
  isOptional: true,
131
- description: "Callback function called when the stream is aborted."
131
+ description: "Callback function called when the stream is aborted.",
132
132
  },
133
133
  {
134
134
  name: "abortSignal",
135
135
  type: "AbortSignal",
136
136
  isOptional: true,
137
- description: "Signal object that allows you to abort the agent's execution. When the signal is aborted, all ongoing operations will be terminated."
137
+ description: "Signal object that allows you to abort the agent's execution. When the signal is aborted, all ongoing operations will be terminated.",
138
138
  },
139
139
  {
140
140
  name: "activeTools",
141
141
  type: "Array<keyof ToolSet> | undefined",
142
142
  isOptional: true,
143
- description: "Array of active tool names that can be used during execution."
143
+ description: "Array of active tool names that can be used during execution.",
144
144
  },
145
145
  {
146
146
  name: "prepareStep",
@@ -199,7 +199,7 @@ const aiSdkStream = await agent.streamVNext("message for agent", {
199
199
  isOptional: true,
200
200
  description: "Custom instructions for the structuring agent."
201
201
  }]
202
- },
202
+ }
203
203
  ]
204
204
  },
205
205
  {
@@ -534,7 +534,7 @@ const aiSdkStream = await agent.streamVNext("message for agent", {
534
534
 
535
535
  ### Mastra Format (Default)
536
536
 
537
- ```typescript showLineNumbers copy
537
+ ```ts filename="index.ts" showLineNumbers copy
538
538
  import { stepCountIs } from 'ai-v5';
539
539
 
540
540
  const stream = await agent.streamVNext("Tell me a story", {
@@ -555,7 +555,7 @@ const fullText = await stream.text;
555
555
 
556
556
  ### AI SDK v5 Format
557
557
 
558
- ```typescript showLineNumbers copy
558
+ ```ts filename="index.ts" showLineNumbers copy
559
559
  import { stepCountIs } from 'ai-v5';
560
560
 
561
561
  const stream = await agent.streamVNext("Tell me a story", {
@@ -581,7 +581,7 @@ return stream.toUIMessageStreamResponse();
581
581
 
582
582
  All callback functions are now available as top-level properties for a cleaner API experience.
583
583
 
584
- ```typescript showLineNumbers copy
584
+ ```ts filename="index.ts" showLineNumbers copy
585
585
  const stream = await agent.streamVNext("Tell me a story", {
586
586
  onFinish: (result) => {
587
587
  console.log('Streaming finished:', result);
@@ -608,15 +608,13 @@ for await (const chunk of stream.textStream) {
608
608
 
609
609
  ### Advanced Example with Options
610
610
 
611
- ```typescript showLineNumbers copy
611
+ ```ts filename="index.ts" showLineNumbers copy
612
612
  import { z } from "zod";
613
613
  import { stepCountIs } from 'ai-v5';
614
614
 
615
615
  await agent.streamVNext("message for agent", {
616
616
  format: 'aisdk', // Enable AI SDK v5 compatibility
617
617
  stopWhen: stepCountIs(3), // Stop after 3 steps
618
- modelSettings: {
619
- temperature: 0.7,
620
618
  modelSettings: {
621
619
  temperature: 0.7,
622
620
  },
@@ -624,7 +622,6 @@ await agent.streamVNext("message for agent", {
624
622
  thread: "user-123",
625
623
  resource: "test-app"
626
624
  },
627
- },
628
625
  toolChoice: "auto",
629
626
  // Structured output with better DX
630
627
  structuredOutput: {
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @mastra/mcp-docs-server
2
2
 
3
+ ## 0.13.23
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`fd00e63`](https://github.com/mastra-ai/mastra/commit/fd00e63759cbcca3473c40cac9843280b0557cff), [`ab610f6`](https://github.com/mastra-ai/mastra/commit/ab610f6f41dbfe6c9502368671485ca7a0aac09b), [`e6bda5f`](https://github.com/mastra-ai/mastra/commit/e6bda5f954ee8493ea18adc1a883f0a5b785ad9b)]:
8
+ - @mastra/core@0.17.1
9
+
3
10
  ## 0.13.23-alpha.0
4
11
 
5
12
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/mcp-docs-server",
3
- "version": "0.13.23-alpha.0",
3
+ "version": "0.13.23",
4
4
  "description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -33,7 +33,7 @@
33
33
  "uuid": "^11.1.0",
34
34
  "zod": "^3.25.76",
35
35
  "zod-to-json-schema": "^3.24.6",
36
- "@mastra/core": "0.17.1-alpha.0",
36
+ "@mastra/core": "0.17.1",
37
37
  "@mastra/mcp": "^0.13.0"
38
38
  },
39
39
  "devDependencies": {
@@ -49,8 +49,8 @@
49
49
  "tsx": "^4.19.4",
50
50
  "typescript": "^5.8.3",
51
51
  "vitest": "^3.2.4",
52
- "@internal/lint": "0.0.40",
53
- "@mastra/core": "0.17.1-alpha.0"
52
+ "@internal/lint": "0.0.41",
53
+ "@mastra/core": "0.17.1"
54
54
  },
55
55
  "homepage": "https://mastra.ai",
56
56
  "repository": {