@mastra/mcp-docs-server 1.1.35-alpha.0 → 1.1.35-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.
@@ -21,27 +21,29 @@ Install the required packages:
21
21
  **npm**:
22
22
 
23
23
  ```bash
24
- npm install @mastra/inngest@latest inngest @inngest/realtime
24
+ npm install @mastra/inngest@latest inngest
25
25
  ```
26
26
 
27
27
  **pnpm**:
28
28
 
29
29
  ```bash
30
- pnpm add @mastra/inngest@latest inngest @inngest/realtime
30
+ pnpm add @mastra/inngest@latest inngest
31
31
  ```
32
32
 
33
33
  **Yarn**:
34
34
 
35
35
  ```bash
36
- yarn add @mastra/inngest@latest inngest @inngest/realtime
36
+ yarn add @mastra/inngest@latest inngest
37
37
  ```
38
38
 
39
39
  **Bun**:
40
40
 
41
41
  ```bash
42
- bun add @mastra/inngest@latest inngest @inngest/realtime
42
+ bun add @mastra/inngest@latest inngest
43
43
  ```
44
44
 
45
+ > **Note:** Requires `inngest@^4` and Inngest Dev Server `v1.18.0` or later. Realtime is built into the SDK in v4, so `@inngest/realtime` and `realtimeMiddleware` are no longer used.
46
+
45
47
  ## Building an Inngest workflow
46
48
 
47
49
  This guide walks through creating a workflow with Inngest and Mastra, demonstrating a counter application that increments a value until it reaches 10.
@@ -54,13 +56,11 @@ In development:
54
56
 
55
57
  ```ts
56
58
  import { Inngest } from 'inngest'
57
- import { realtimeMiddleware } from '@inngest/realtime/middleware'
58
59
 
59
60
  export const inngest = new Inngest({
60
61
  id: 'mastra',
61
62
  baseUrl: 'http://localhost:8288',
62
63
  isDev: true,
63
- middleware: [realtimeMiddleware()],
64
64
  })
65
65
  ```
66
66
 
@@ -68,11 +68,9 @@ In production:
68
68
 
69
69
  ```ts
70
70
  import { Inngest } from 'inngest'
71
- import { realtimeMiddleware } from '@inngest/realtime/middleware'
72
71
 
73
72
  export const inngest = new Inngest({
74
73
  id: 'mastra',
75
- middleware: [realtimeMiddleware()],
76
74
  })
77
75
  ```
78
76
 
@@ -141,7 +139,7 @@ export const mastra = new Mastra({
141
139
  host: '0.0.0.0',
142
140
  apiRoutes: [
143
141
  {
144
- path: '/api/inngest',
142
+ path: '/inngest/api',
145
143
  method: 'ALL',
146
144
  createHandler: async ({ mastra }) => {
147
145
  return serve({ mastra, inngest })
@@ -153,6 +151,8 @@ export const mastra = new Mastra({
153
151
  })
154
152
  ```
155
153
 
154
+ > **Note:** The path is `/inngest/api`, not `/api/inngest`. Mastra reserves the `/api` prefix for built-in routes (agents, workflows, memory). Custom `apiRoutes` paths that start with the server's `apiPrefix` (default `/api`) throw at startup. See [#15743](https://github.com/mastra-ai/mastra/pull/15743) for context, or skip to [Using a custom `apiPrefix`](#using-a-custom-apiprefix) if you need to keep `/api/inngest`.
155
+
156
156
  ## Running workflows
157
157
 
158
158
  ### Running locally
@@ -162,10 +162,10 @@ export const mastra = new Mastra({
162
162
  2. Start the Inngest Dev Server. In a new terminal, run:
163
163
 
164
164
  ```bash
165
- npx inngest-cli@latest dev -u http://localhost:4111/api/inngest
165
+ npx inngest-cli@latest dev -u http://localhost:4111/inngest/api
166
166
  ```
167
167
 
168
- > **Note:** The URL after `-u` tells the Inngest dev server where to find your Mastra `/api/inngest` endpoint
168
+ > **Note:** The URL after `-u` tells the Inngest dev server where to find your Mastra `/inngest/api` endpoint
169
169
 
170
170
  3. Open the Inngest Dashboard at <http://localhost:8288> and go to the **Apps** section in the sidebar to verify your Mastra workflow is registered
171
171
 
@@ -229,6 +229,8 @@ Before you begin, make sure you have:
229
229
 
230
230
  5. Sync with the [Inngest dashboard](https://app.inngest.com/env/production/apps) by selecting **Sync new app with Vercel** and following the instructions
231
231
 
232
+ > **Warning:** Inngest's auto-discover convention assumes `/api/inngest`. Because this guide uses `/inngest/api`, set the **URL** field on the Inngest app to your deployed origin plus `/inngest/api` (for example `https://your-app.vercel.app/inngest/api`). If you leave it on the default, the Inngest dashboard will not find your app's functions.
233
+
232
234
  6. Invoke the workflow by going to **Functions**, selecting `workflow.increment-workflow`, selecting **All actions** > **Invoke**, and providing the following input:
233
235
 
234
236
  ```json
@@ -294,7 +296,7 @@ export const mastra = new Mastra({
294
296
  host: '0.0.0.0',
295
297
  apiRoutes: [
296
298
  {
297
- path: '/api/inngest',
299
+ path: '/inngest/api',
298
300
  method: 'ALL',
299
301
  createHandler: async ({ mastra }) => {
300
302
  return serve({
@@ -316,7 +318,7 @@ When you include custom functions:
316
318
 
317
319
  1. Mastra workflows are automatically converted to Inngest functions with IDs like `workflow.${workflowId}`
318
320
  2. Custom functions retain their specified IDs (e.g., `send-welcome-email`, `process-webhook`)
319
- 3. All functions are served together on the same `/api/inngest` endpoint
321
+ 3. All functions are served together on the same `/inngest/api` endpoint
320
322
 
321
323
  This allows you to combine Mastra's workflow orchestration with your existing Inngest functions.
322
324
 
@@ -338,7 +340,7 @@ const app = express()
338
340
  app.use(express.json())
339
341
 
340
342
  const handler = createServe(expressAdapter)({ mastra, inngest })
341
- app.use('/api/inngest', handler)
343
+ app.use('/inngest/api', handler)
342
344
 
343
345
  app.listen(3000)
344
346
  ```
@@ -358,7 +360,7 @@ const handler = createServe(fastifyAdapter)({ mastra, inngest })
358
360
 
359
361
  fastify.route({
360
362
  method: ['GET', 'POST', 'PUT'],
361
- url: '/api/inngest',
363
+ url: '/inngest/api',
362
364
  handler,
363
365
  })
364
366
 
@@ -382,7 +384,7 @@ const router = new Router()
382
384
  app.use(bodyParser())
383
385
 
384
386
  const handler = createServe(koaAdapter)({ mastra, inngest })
385
- router.all('/api/inngest', handler)
387
+ router.all('/inngest/api', handler)
386
388
 
387
389
  app.use(router.routes())
388
390
  app.use(router.allowedMethods())
@@ -406,6 +408,33 @@ export { handler as GET, handler as POST, handler as PUT }
406
408
 
407
409
  The `createServe` function works with any Inngest adapter. See the [Inngest serve documentation](https://www.inngest.com/docs/reference/serve) for a complete list of available adapters including AWS Lambda, Cloudflare Workers, and more.
408
410
 
411
+ ## Using a custom `apiPrefix`
412
+
413
+ If you need to keep `/api/inngest` (for example to match Inngest's auto-discover convention without changing the dashboard URL), set `server.apiPrefix` to relocate Mastra's built-in routes:
414
+
415
+ ```ts
416
+ import { Mastra } from '@mastra/core'
417
+ import { serve } from '@mastra/inngest'
418
+ import { inngest } from './inngest'
419
+
420
+ export const mastra = new Mastra({
421
+ server: {
422
+ apiPrefix: '/_mastra',
423
+ apiRoutes: [
424
+ {
425
+ path: '/api/inngest',
426
+ method: 'ALL',
427
+ createHandler: async ({ mastra }) => serve({ mastra, inngest }),
428
+ },
429
+ ],
430
+ },
431
+ })
432
+ ```
433
+
434
+ Mastra's built-in routes now resolve under `/_mastra/agents`, `/_mastra/workflows`, and so on, freeing the `/api/inngest` path for your custom route.
435
+
436
+ > **Warning:** The default auth configuration protects `/api/*` and treats `/api`, `/api/auth/*` as public. When you change `apiPrefix`, those defaults no longer match and built-in routes fall outside the protected pattern. Update `server.auth.protected` and `server.auth.public` to reference the new prefix, and update any client code (including [`MastraClient`](https://mastra.ai/docs/server/mastra-client) `apiPrefix`) that hits `/api/*`.
437
+
409
438
  ## Flow control
410
439
 
411
440
  Inngest workflows support flow control features including concurrency limits, rate limiting, throttling, debouncing, and priority queuing. These options are configured in the `createWorkflow()` call and help manage workflow execution at scale.
@@ -1,6 +1,6 @@
1
1
  # Netlify
2
2
 
3
- Netlify AI Gateway provides unified access to multiple providers with built-in caching and observability. Access 66 models through Mastra's model router.
3
+ Netlify AI Gateway provides unified access to multiple providers with built-in caching and observability. Access 67 models through Mastra's model router.
4
4
 
5
5
  Learn more in the [Netlify documentation](https://docs.netlify.com/build/ai-gateway/overview/).
6
6
 
@@ -62,6 +62,7 @@ ANTHROPIC_API_KEY=ant-...
62
62
  | `gemini/gemini-3.1-pro-preview-customtools` |
63
63
  | `gemini/gemini-flash-latest` |
64
64
  | `gemini/gemini-flash-lite-latest` |
65
+ | `openai/chat-latest` |
65
66
  | `openai/gpt-4.1` |
66
67
  | `openai/gpt-4.1-mini` |
67
68
  | `openai/gpt-4.1-nano` |
@@ -1,6 +1,6 @@
1
1
  # ![OpenRouter logo](https://models.dev/logos/openrouter.svg)OpenRouter
2
2
 
3
- OpenRouter aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 185 models through Mastra's model router.
3
+ OpenRouter aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 186 models through Mastra's model router.
4
4
 
5
5
  Learn more in the [OpenRouter documentation](https://openrouter.ai/models).
6
6
 
@@ -172,6 +172,7 @@ ANTHROPIC_API_KEY=ant-...
172
172
  | `poolside/laguna-xs.2:free` |
173
173
  | `prime-intellect/intellect-3` |
174
174
  | `qwen/qwen-2.5-coder-32b-instruct` |
175
+ | `qwen/qwen-3.6-27b` |
175
176
  | `qwen/qwen2.5-vl-72b-instruct` |
176
177
  | `qwen/qwen3-235b-a22b-07-25` |
177
178
  | `qwen/qwen3-235b-a22b-thinking-2507` |
@@ -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 3875 models from 107 providers through a single API.
3
+ Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to 3879 models from 107 providers through a single API.
4
4
 
5
5
  ## Features
6
6
 
@@ -1,6 +1,6 @@
1
1
  # ![Deep Infra logo](https://models.dev/logos/deepinfra.svg)Deep Infra
2
2
 
3
- Access 35 Deep Infra models through Mastra's model router. Authentication is handled automatically using the `DEEPINFRA_API_KEY` environment variable.
3
+ Access 36 Deep Infra models through Mastra's model router. Authentication is handled automatically using the `DEEPINFRA_API_KEY` environment variable.
4
4
 
5
5
  Learn more in the [Deep Infra documentation](https://deepinfra.com/models).
6
6
 
@@ -36,6 +36,7 @@ for await (const chunk of stream) {
36
36
  | `deepinfra/anthropic/claude-4-opus` | 200K | | | | | | $17 | $83 |
37
37
  | `deepinfra/deepseek-ai/DeepSeek-R1-0528` | 164K | | | | | | $0.50 | $2 |
38
38
  | `deepinfra/deepseek-ai/DeepSeek-V3.2` | 164K | | | | | | $0.26 | $0.38 |
39
+ | `deepinfra/deepseek-ai/DeepSeek-V4-Flash` | 1.0M | | | | | | $0.14 | $0.28 |
39
40
  | `deepinfra/deepseek-ai/DeepSeek-V4-Pro` | 66K | | | | | | $2 | $3 |
40
41
  | `deepinfra/google/gemma-4-26B-A4B-it` | 256K | | | | | | $0.07 | $0.34 |
41
42
  | `deepinfra/google/gemma-4-31B-it` | 256K | | | | | | $0.13 | $0.38 |
@@ -1,6 +1,6 @@
1
1
  # ![DigitalOcean logo](https://models.dev/logos/digitalocean.svg)DigitalOcean
2
2
 
3
- Access 63 DigitalOcean models through Mastra's model router. Authentication is handled automatically using the `DIGITALOCEAN_ACCESS_TOKEN` environment variable.
3
+ Access 64 DigitalOcean models through Mastra's model router. Authentication is handled automatically using the `DIGITALOCEAN_ACCESS_TOKEN` environment variable.
4
4
 
5
5
  Learn more in the [DigitalOcean documentation](https://docs.digitalocean.com/products/gradient-ai-platform/details/models/).
6
6
 
@@ -60,6 +60,7 @@ for await (const chunk of stream) {
60
60
  | `digitalocean/glm-5` | 203K | | | | | | $1 | $3 |
61
61
  | `digitalocean/gte-large-en-v1.5` | 8K | | | | | | $0.09 | — |
62
62
  | `digitalocean/kimi-k2.5` | 262K | | | | | | $0.50 | $3 |
63
+ | `digitalocean/kimi-k2.6` | 262K | | | | | | $0.95 | $4 |
63
64
  | `digitalocean/llama-4-maverick` | 1.0M | | | | | | $0.25 | $0.87 |
64
65
  | `digitalocean/llama-guard-4-12b` | 128K | | | | | | — | — |
65
66
  | `digitalocean/llama3.3-70b-instruct` | 128K | | | | | | $0.65 | $0.65 |
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @mastra/mcp-docs-server
2
2
 
3
+ ## 1.1.35-alpha.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`ac47842`](https://github.com/mastra-ai/mastra/commit/ac478427aa7a5f5fdaed633a911218689b438c60)]:
8
+ - @mastra/core@1.33.0-alpha.0
9
+
3
10
  ## 1.1.34
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": "1.1.35-alpha.0",
3
+ "version": "1.1.35-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",
@@ -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.32.1",
32
+ "@mastra/core": "1.33.0-alpha.0",
33
33
  "@mastra/mcp": "^1.7.0"
34
34
  },
35
35
  "devDependencies": {
@@ -46,9 +46,9 @@
46
46
  "tsx": "^4.21.0",
47
47
  "typescript": "^6.0.3",
48
48
  "vitest": "4.1.5",
49
- "@internal/lint": "0.0.92",
50
49
  "@internal/types-builder": "0.0.67",
51
- "@mastra/core": "1.32.1"
50
+ "@mastra/core": "1.33.0-alpha.0",
51
+ "@internal/lint": "0.0.92"
52
52
  },
53
53
  "homepage": "https://mastra.ai",
54
54
  "repository": {