@mastra/mcp-docs-server 0.13.40 → 0.13.41

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.
Files changed (31) hide show
  1. package/.docs/organized/changelogs/%40internal%2Fchangeset-cli.md +2 -0
  2. package/.docs/organized/changelogs/%40internal%2Fexternal-types.md +2 -0
  3. package/.docs/organized/changelogs/%40internal%2Fstorage-test-utils.md +8 -8
  4. package/.docs/organized/changelogs/%40internal%2Ftypes-builder.md +2 -0
  5. package/.docs/organized/changelogs/%40mastra%2Fai-sdk.md +35 -35
  6. package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +15 -15
  7. package/.docs/organized/changelogs/%40mastra%2Fcore.md +31 -31
  8. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +17 -17
  9. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +17 -17
  10. package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +17 -17
  11. package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +17 -17
  12. package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +17 -17
  13. package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +21 -21
  14. package/.docs/organized/changelogs/%40mastra%2Fmcp.md +20 -20
  15. package/.docs/organized/changelogs/%40mastra%2Fpinecone.md +19 -19
  16. package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +23 -23
  17. package/.docs/organized/changelogs/%40mastra%2Freact.md +15 -15
  18. package/.docs/organized/changelogs/%40mastra%2Fserver.md +15 -15
  19. package/.docs/organized/changelogs/%40mastra%2Fvoice-google-gemini-live.md +24 -24
  20. package/.docs/organized/changelogs/create-mastra.md +5 -5
  21. package/.docs/organized/changelogs/mastra.md +21 -21
  22. package/.docs/raw/reference/vectors/pinecone.mdx +16 -1
  23. package/.docs/raw/reference/voice/azure.mdx +95 -80
  24. package/CHANGELOG.md +20 -0
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/prompts/migration.d.ts +3 -0
  27. package/dist/prompts/migration.d.ts.map +1 -0
  28. package/dist/stdio.js +148 -1
  29. package/dist/tools/migration.d.ts +40 -0
  30. package/dist/tools/migration.d.ts.map +1 -0
  31. package/package.json +5 -5
package/dist/stdio.js CHANGED
@@ -102,6 +102,64 @@ function createLogger(server2) {
102
102
  };
103
103
  }
104
104
  var logger = createLogger();
105
+
106
+ // src/prompts/migration.ts
107
+ var UPGRADE_MESSAGE = `# Migration Guide Upgrade Required
108
+
109
+ To access migration guides for upgrading to Mastra v1.0-beta, you need to upgrade your mcp-docs-server to the beta version.
110
+
111
+ ## How to Upgrade
112
+
113
+ The migration tool and prompts are only available in the beta version of the mcp-docs-server.
114
+
115
+ Visit the installation guide for detailed instructions on how to upgrade to the beta version:
116
+
117
+ https://mastra.ai/docs/v1/getting-started/mcp-docs-server#installation
118
+
119
+ Once upgraded, you'll be able to:
120
+ - Browse migration guides with the \`mastraMigration\` tool
121
+ - Use migration prompts like \`upgrade-to-v1\` and \`migration-checklist\`
122
+ - Get step-by-step migration instructions for each breaking change
123
+ - Use automated codemods to handle many migrations automatically
124
+
125
+ ## Why Beta?
126
+
127
+ The migration guides are specific to the v1.0-beta release and are actively being updated as the beta evolves. The stable (0.x) documentation server doesn't include these guides as they're not relevant to users on the stable version.
128
+
129
+ ---
130
+
131
+ **Note:** This message is shown because you're currently using the stable (@latest) version of @mastra/mcp-docs-server. Upgrade to @beta to access migration guides and prompts.`;
132
+ var migrationPrompts = [
133
+ {
134
+ name: "upgrade-to-v1",
135
+ description: 'Get a guided migration plan for upgrading from Mastra v0.x to v1.0-beta. Optionally specify an area (e.g., "agent", "workflow") to focus on.',
136
+ arguments: [
137
+ {
138
+ name: "area",
139
+ description: 'Optional: A specific area to focus the migration guide on (e.g., "agent", "workflow", "tools")',
140
+ required: false
141
+ }
142
+ ]
143
+ },
144
+ {
145
+ name: "migration-checklist",
146
+ description: "Get a comprehensive checklist for migrating to Mastra v1.0-beta. Lists all breaking changes organized by area."
147
+ }
148
+ ];
149
+ var migrationPromptMessages = {
150
+ listPrompts: async () => migrationPrompts,
151
+ getPromptMessages: async () => {
152
+ return [
153
+ {
154
+ role: "user",
155
+ content: {
156
+ type: "text",
157
+ text: UPGRADE_MESSAGE
158
+ }
159
+ }
160
+ ];
161
+ }
162
+ };
105
163
  var BLOG_BASE_URL = process.env.BLOG_URL || "https://mastra.ai";
106
164
  async function fetchBlogPosts() {
107
165
  void logger.debug("Fetching list of blog posts");
@@ -1090,6 +1148,93 @@ var examplesTool = {
1090
1148
  }
1091
1149
  }
1092
1150
  };
1151
+ var migrationInputSchema = z.object({
1152
+ path: z.string().optional().describe(
1153
+ 'Path to the migration guide (e.g., "upgrade-to-v1/agent", "agentnetwork"). If not provided, lists all available migrations.\n\nExample migration paths:\n- agentnetwork\n- upgrade-to-v1/agent\n- upgrade-to-v1/cli\n- upgrade-to-v1/client\n- upgrade-to-v1/evals\n...'
1154
+ ),
1155
+ listSections: z.boolean().optional().describe("Set to true to list all section headers in a migration guide without fetching full content."),
1156
+ sections: z.array(z.string()).optional().describe(
1157
+ "Specific section titles to fetch from the migration guide. If not provided, returns the entire guide. Use this after exploring section headers."
1158
+ ),
1159
+ queryKeywords: z.array(z.string()).optional().describe("Keywords to search across all migration guides. Use this to find guides related to specific topics.")
1160
+ });
1161
+ var UPGRADE_MESSAGE2 = `# Migration Guide Upgrade Required
1162
+
1163
+ To access migration guides for upgrading to Mastra v1.0-beta, you need to upgrade your mcp-docs-server to the beta version.
1164
+
1165
+ ## How to Upgrade
1166
+
1167
+ The migration tool is only available in the beta version of the mcp-docs-server.
1168
+
1169
+ 1. **Update your MCP server configuration** to use the beta version. Visit the installation guide for detailed instructions:
1170
+
1171
+ https://mastra.ai/docs/v1/getting-started/mcp-docs-server#installation
1172
+
1173
+ 2. **Restart your MCP server** after updating to pick up the beta version
1174
+
1175
+ 3. **Access migration guides** - Once upgraded, you'll be able to:
1176
+ - Browse migration guides with the \`mastraMigration\` tool
1177
+ - Get step-by-step migration instructions for each breaking change
1178
+ - Use automated codemods to handle many migrations automatically
1179
+
1180
+ ## Why Beta?
1181
+
1182
+ The migration guides are specific to the v1.0-beta release and are actively being updated as the beta evolves. The stable (0.x) documentation server doesn't include these guides as they're not relevant to users on the stable version.
1183
+
1184
+ ## Need Help?
1185
+
1186
+ If you have questions about upgrading:
1187
+ - Check the Mastra documentation at https://mastra.ai/docs
1188
+ - Visit the GitHub repository for issues and discussions
1189
+ - Join the Mastra community for support
1190
+
1191
+ ---
1192
+
1193
+ **Note:** This message is shown because you're currently using the stable (@latest) version of @mastra/mcp-docs-server. Upgrade to @beta to access migration guides.`;
1194
+ var migrationTool = {
1195
+ name: "mastraMigration",
1196
+ description: `Get migration guidance for Mastra version upgrades and breaking changes.
1197
+
1198
+ This tool works like a file browser - navigate through directories to find migration guides:
1199
+
1200
+ **Step 1: List top-level migrations**
1201
+ - Call with no parameters: \`{}\`
1202
+ - Shows all top-level migration guides and directories
1203
+
1204
+ **Step 2: Navigate into a directory**
1205
+ - Add trailing slash to explore: \`{ path: "upgrade-to-v1/" }\`
1206
+ - Lists all migration guides in that directory
1207
+
1208
+ **Step 3: View a migration guide**
1209
+ - Without trailing slash: \`{ path: "upgrade-to-v1/agent" }\`
1210
+ - Returns the full migration guide content
1211
+
1212
+ **Step 4: Explore guide sections (optional)**
1213
+ - List sections: \`{ path: "upgrade-to-v1/agent", listSections: true }\`
1214
+ - Get specific sections: \`{ path: "upgrade-to-v1/agent", sections: ["Voice methods"] }\`
1215
+
1216
+ **Alternative: Search by keywords**
1217
+ - \`{ queryKeywords: ["RuntimeContext", "pagination"] }\`
1218
+
1219
+ **Examples:**
1220
+ 1. List top-level: \`{}\`
1221
+ 2. Navigate to upgrade-to-v1: \`{ path: "upgrade-to-v1/" }\`
1222
+ 3. Get agent guide: \`{ path: "upgrade-to-v1/agent" }\`
1223
+ 4. List guide sections: \`{ path: "upgrade-to-v1/agent", listSections: true }\`
1224
+ 5. Search: \`{ queryKeywords: ["RuntimeContext"] }\`
1225
+
1226
+ **Tip:** Paths ending with \`/\` list directory contents. Paths without \`/\` fetch the migration guide.`,
1227
+ parameters: migrationInputSchema,
1228
+ execute: async (args) => {
1229
+ void logger.debug("Executing mastraMigration tool (stub version)", { args });
1230
+ try {
1231
+ return UPGRADE_MESSAGE2;
1232
+ } catch (error) {
1233
+ void logger.error("Failed to execute mastraMigration tool", error);
1234
+ throw error;
1235
+ }
1236
+ }
1237
+ };
1093
1238
 
1094
1239
  // src/index.ts
1095
1240
  var server;
@@ -1110,12 +1255,14 @@ server = new MCPServer({
1110
1255
  mastraDocs: docsTool,
1111
1256
  mastraExamples: examplesTool,
1112
1257
  mastraChanges: changesTool,
1258
+ mastraMigration: migrationTool,
1113
1259
  startMastraCourse,
1114
1260
  getMastraCourseStatus,
1115
1261
  startMastraCourseLesson,
1116
1262
  nextMastraCourseStep,
1117
1263
  clearMastraCourseHistory
1118
- }
1264
+ },
1265
+ prompts: migrationPromptMessages
1119
1266
  });
1120
1267
  Object.assign(logger, createLogger(server));
1121
1268
  async function runServer() {
@@ -0,0 +1,40 @@
1
+ import { z } from 'zod';
2
+ export declare const migrationInputSchema: z.ZodObject<{
3
+ path: z.ZodOptional<z.ZodString>;
4
+ listSections: z.ZodOptional<z.ZodBoolean>;
5
+ sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
6
+ queryKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ path?: string | undefined;
9
+ queryKeywords?: string[] | undefined;
10
+ listSections?: boolean | undefined;
11
+ sections?: string[] | undefined;
12
+ }, {
13
+ path?: string | undefined;
14
+ queryKeywords?: string[] | undefined;
15
+ listSections?: boolean | undefined;
16
+ sections?: string[] | undefined;
17
+ }>;
18
+ export type MigrationInput = z.infer<typeof migrationInputSchema>;
19
+ export declare const migrationTool: {
20
+ name: string;
21
+ description: string;
22
+ parameters: z.ZodObject<{
23
+ path: z.ZodOptional<z.ZodString>;
24
+ listSections: z.ZodOptional<z.ZodBoolean>;
25
+ sections: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
26
+ queryKeywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
27
+ }, "strip", z.ZodTypeAny, {
28
+ path?: string | undefined;
29
+ queryKeywords?: string[] | undefined;
30
+ listSections?: boolean | undefined;
31
+ sections?: string[] | undefined;
32
+ }, {
33
+ path?: string | undefined;
34
+ queryKeywords?: string[] | undefined;
35
+ listSections?: boolean | undefined;
36
+ sections?: string[] | undefined;
37
+ }>;
38
+ execute: (args: MigrationInput) => Promise<string>;
39
+ };
40
+ //# sourceMappingURL=migration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"migration.d.ts","sourceRoot":"","sources":["../../src/tools/migration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;EAqB/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAoClE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;oBAkCF,cAAc;CAUrC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/mcp-docs-server",
3
- "version": "0.13.40",
3
+ "version": "0.13.41",
4
4
  "description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -33,8 +33,8 @@
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.24.1",
37
- "@mastra/mcp": "^0.14.2"
36
+ "@mastra/core": "0.24.2",
37
+ "@mastra/mcp": "^0.14.3"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@hono/node-server": "^1.19.5",
@@ -49,8 +49,8 @@
49
49
  "tsx": "^4.19.4",
50
50
  "typescript": "^5.8.3",
51
51
  "vitest": "^3.2.4",
52
- "@mastra/core": "0.24.1",
53
- "@internal/lint": "0.0.59"
52
+ "@internal/lint": "0.0.60",
53
+ "@mastra/core": "0.24.2"
54
54
  },
55
55
  "homepage": "https://mastra.ai",
56
56
  "repository": {