@mastra/mcp-docs-server 1.1.41 → 1.1.42-alpha.10

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 (180) hide show
  1. package/.docs/docs/agent-builder/access-control.md +97 -0
  2. package/.docs/docs/agent-builder/browser.md +61 -0
  3. package/.docs/docs/agent-builder/channels.md +76 -0
  4. package/.docs/docs/agent-builder/configuration.md +147 -0
  5. package/.docs/docs/agent-builder/deploying.md +121 -0
  6. package/.docs/docs/agent-builder/memory.md +65 -0
  7. package/.docs/docs/agent-builder/model-policy.md +48 -0
  8. package/.docs/docs/agent-builder/overview.md +97 -0
  9. package/.docs/docs/agent-builder/skill-registries.md +31 -0
  10. package/.docs/docs/agent-builder/workspace.md +60 -0
  11. package/.docs/docs/agents/a2a.md +1 -1
  12. package/.docs/docs/agents/acp.md +4 -4
  13. package/.docs/docs/agents/adding-voice.md +37 -6
  14. package/.docs/docs/agents/agent-approval.md +15 -1
  15. package/.docs/docs/agents/background-tasks.md +2 -2
  16. package/.docs/docs/agents/channels.md +3 -1
  17. package/.docs/docs/agents/code-mode.md +163 -0
  18. package/.docs/docs/agents/guardrails.md +2 -2
  19. package/.docs/docs/agents/networks.md +1 -1
  20. package/.docs/docs/agents/overview.md +1 -1
  21. package/.docs/docs/agents/processors.md +3 -3
  22. package/.docs/docs/agents/response-caching.md +1 -1
  23. package/.docs/docs/agents/sdk-agents.md +261 -0
  24. package/.docs/docs/agents/signals.md +150 -73
  25. package/.docs/docs/agents/structured-output.md +5 -5
  26. package/.docs/docs/agents/supervisor-agents.md +2 -2
  27. package/.docs/docs/agents/using-tools.md +5 -5
  28. package/.docs/docs/browser/agent-browser.md +1 -1
  29. package/.docs/docs/browser/browser-viewer.md +1 -1
  30. package/.docs/docs/browser/overview.md +1 -1
  31. package/.docs/docs/browser/stagehand.md +5 -5
  32. package/.docs/docs/editor/overview.md +70 -8
  33. package/.docs/docs/evals/custom-scorers.md +1 -1
  34. package/.docs/docs/evals/datasets/running-experiments.md +1 -1
  35. package/.docs/docs/evals/overview.md +2 -2
  36. package/.docs/docs/getting-started/manual-install.md +1 -1
  37. package/.docs/docs/mcp/mcp-apps.md +3 -3
  38. package/.docs/docs/mcp/overview.md +1 -1
  39. package/.docs/docs/memory/memory-processors.md +6 -6
  40. package/.docs/docs/memory/multi-user-threads.md +1 -1
  41. package/.docs/docs/memory/observational-memory.md +19 -0
  42. package/.docs/docs/memory/semantic-recall.md +2 -2
  43. package/.docs/docs/memory/storage.md +2 -1
  44. package/.docs/docs/memory/working-memory.md +1 -1
  45. package/.docs/docs/observability/metrics/overview.md +1 -0
  46. package/.docs/docs/observability/metrics/querying.md +292 -0
  47. package/.docs/docs/observability/tracing/exporters/langfuse.md +1 -1
  48. package/.docs/docs/observability/tracing/exporters/langsmith.md +2 -2
  49. package/.docs/docs/rag/graph-rag.md +2 -2
  50. package/.docs/docs/rag/retrieval.md +12 -12
  51. package/.docs/docs/server/auth/fga.md +4 -0
  52. package/.docs/docs/server/mastra-client.md +1 -1
  53. package/.docs/docs/server/request-context.md +3 -3
  54. package/.docs/docs/streaming/overview.md +1 -1
  55. package/.docs/docs/streaming/tool-streaming.md +1 -1
  56. package/.docs/docs/voice/overview.md +86 -24
  57. package/.docs/docs/voice/speech-to-speech.md +55 -4
  58. package/.docs/docs/voice/speech-to-text.md +1 -1
  59. package/.docs/docs/voice/text-to-speech.md +1 -1
  60. package/.docs/docs/workspace/filesystem.md +2 -2
  61. package/.docs/docs/workspace/overview.md +1 -1
  62. package/.docs/docs/workspace/sandbox.md +5 -3
  63. package/.docs/guides/build-your-ui/ai-sdk-ui.md +1 -1
  64. package/.docs/guides/deployment/inngest.md +69 -0
  65. package/.docs/guides/guide/ai-recruiter.md +1 -1
  66. package/.docs/guides/guide/chef-michel.md +1 -1
  67. package/.docs/guides/guide/code-review-bot.md +1 -1
  68. package/.docs/guides/guide/dev-assistant.md +1 -1
  69. package/.docs/guides/guide/docs-manager.md +1 -1
  70. package/.docs/guides/guide/firecrawl.md +6 -6
  71. package/.docs/guides/guide/github-actions-pr-description.md +1 -1
  72. package/.docs/guides/guide/research-assistant.md +1 -1
  73. package/.docs/guides/guide/research-coordinator.md +2 -2
  74. package/.docs/guides/guide/slack-assistant.md +1 -1
  75. package/.docs/guides/guide/stock-agent.md +2 -2
  76. package/.docs/guides/guide/whatsapp-chat-bot.md +2 -2
  77. package/.docs/guides/migrations/agentnetwork.md +4 -4
  78. package/.docs/guides/migrations/upgrade-to-v1/agent.md +1 -1
  79. package/.docs/guides/migrations/vnext-to-standard-apis.md +2 -2
  80. package/.docs/models/embeddings.md +2 -2
  81. package/.docs/reference/agents/agent.md +60 -21
  82. package/.docs/reference/agents/channels.md +48 -6
  83. package/.docs/reference/agents/generateLegacy.md +1 -1
  84. package/.docs/reference/agents/getLLM.md +2 -2
  85. package/.docs/reference/agents/getMetadata.md +2 -2
  86. package/.docs/reference/agents/network.md +1 -1
  87. package/.docs/reference/browser/agent-browser.md +1 -1
  88. package/.docs/reference/browser/browser-viewer.md +1 -1
  89. package/.docs/reference/browser/mastra-browser.md +1 -1
  90. package/.docs/reference/browser/stagehand-browser.md +5 -5
  91. package/.docs/reference/client-js/agent-builder.md +161 -0
  92. package/.docs/reference/client-js/agents.md +19 -2
  93. package/.docs/reference/client-js/mastra-client.md +4 -0
  94. package/.docs/reference/configuration.md +1 -1
  95. package/.docs/reference/editor/agent-builder/agent-builder-options.md +74 -0
  96. package/.docs/reference/editor/agent-builder/builder-agent-defaults.md +77 -0
  97. package/.docs/reference/editor/agent-builder/builder-models.md +64 -0
  98. package/.docs/reference/editor/blob-store-provider.md +59 -0
  99. package/.docs/reference/editor/browser-provider.md +75 -0
  100. package/.docs/reference/editor/filesystem-provider.md +62 -0
  101. package/.docs/reference/editor/mastra-editor.md +61 -1
  102. package/.docs/reference/editor/processor-provider.md +64 -0
  103. package/.docs/reference/editor/sandbox-provider.md +61 -0
  104. package/.docs/reference/editor/storage-browser-ref.md +80 -0
  105. package/.docs/reference/editor/storage-workspace-ref.md +93 -0
  106. package/.docs/reference/evals/answer-relevancy.md +1 -1
  107. package/.docs/reference/evals/answer-similarity.md +1 -1
  108. package/.docs/reference/evals/bias.md +1 -1
  109. package/.docs/reference/evals/context-precision.md +3 -3
  110. package/.docs/reference/evals/context-relevance.md +11 -11
  111. package/.docs/reference/evals/create-scorer.md +2 -0
  112. package/.docs/reference/evals/faithfulness.md +1 -1
  113. package/.docs/reference/evals/hallucination.md +5 -5
  114. package/.docs/reference/evals/noise-sensitivity.md +11 -11
  115. package/.docs/reference/evals/prompt-alignment.md +15 -15
  116. package/.docs/reference/evals/tool-call-accuracy.md +3 -3
  117. package/.docs/reference/evals/toxicity.md +1 -1
  118. package/.docs/reference/index.md +15 -0
  119. package/.docs/reference/memory/memory-class.md +3 -3
  120. package/.docs/reference/memory/observational-memory.md +6 -4
  121. package/.docs/reference/memory/serialized-memory-config.md +72 -0
  122. package/.docs/reference/observability/metrics/automatic-metrics.md +7 -1
  123. package/.docs/reference/observability/tracing/exporters/langfuse.md +1 -1
  124. package/.docs/reference/processors/batch-parts-processor.md +1 -1
  125. package/.docs/reference/processors/cost-guard-processor.md +1 -1
  126. package/.docs/reference/processors/language-detector.md +1 -1
  127. package/.docs/reference/processors/message-history-processor.md +1 -1
  128. package/.docs/reference/processors/moderation-processor.md +2 -2
  129. package/.docs/reference/processors/pii-detector.md +2 -2
  130. package/.docs/reference/processors/prefill-error-handler.md +2 -2
  131. package/.docs/reference/processors/processor-interface.md +2 -2
  132. package/.docs/reference/processors/prompt-injection-detector.md +1 -1
  133. package/.docs/reference/processors/regex-filter-processor.md +1 -1
  134. package/.docs/reference/processors/semantic-recall-processor.md +1 -1
  135. package/.docs/reference/processors/skill-search-processor.md +1 -1
  136. package/.docs/reference/processors/system-prompt-scrubber.md +1 -1
  137. package/.docs/reference/processors/token-limiter-processor.md +3 -3
  138. package/.docs/reference/processors/tool-call-filter.md +2 -2
  139. package/.docs/reference/processors/tool-search-processor.md +33 -2
  140. package/.docs/reference/processors/unicode-normalizer.md +1 -1
  141. package/.docs/reference/processors/working-memory-processor.md +1 -1
  142. package/.docs/reference/rag/rerank.md +1 -1
  143. package/.docs/reference/server/nestjs-adapter.md +1 -1
  144. package/.docs/reference/server/routes.md +108 -9
  145. package/.docs/reference/storage/dsql.md +1 -1
  146. package/.docs/reference/storage/mongodb.md +1 -1
  147. package/.docs/reference/storage/postgresql.md +1 -1
  148. package/.docs/reference/storage/redis.md +1 -1
  149. package/.docs/reference/storage/spanner.md +5 -0
  150. package/.docs/reference/storage/upstash.md +1 -1
  151. package/.docs/reference/streaming/agents/stream.md +1 -1
  152. package/.docs/reference/templates/overview.md +3 -3
  153. package/.docs/reference/tools/mcp-client.md +53 -2
  154. package/.docs/reference/tools/mcp-server.md +33 -1
  155. package/.docs/reference/tools/vector-query-tool.md +1 -1
  156. package/.docs/reference/vectors/libsql.md +1 -1
  157. package/.docs/reference/vectors/mongodb.md +1 -1
  158. package/.docs/reference/vectors/pg.md +3 -1
  159. package/.docs/reference/vectors/upstash.md +1 -1
  160. package/.docs/reference/voice/google-gemini-live.md +15 -2
  161. package/.docs/reference/voice/inworld-realtime.md +353 -0
  162. package/.docs/reference/voice/inworld.md +2 -0
  163. package/.docs/reference/voice/voice.addInstructions.md +1 -1
  164. package/.docs/reference/workspace/agentcore-runtime-sandbox.md +202 -0
  165. package/.docs/reference/workspace/agentfs-filesystem.md +1 -1
  166. package/.docs/reference/workspace/azure-blob-filesystem.md +1 -1
  167. package/.docs/reference/workspace/blaxel-sandbox.md +3 -0
  168. package/.docs/reference/workspace/docker-sandbox.md +4 -2
  169. package/.docs/reference/workspace/e2b-sandbox.md +9 -5
  170. package/.docs/reference/workspace/files-sdk-filesystem.md +1 -1
  171. package/.docs/reference/workspace/gcs-filesystem.md +1 -1
  172. package/.docs/reference/workspace/google-drive-filesystem.md +1 -1
  173. package/.docs/reference/workspace/local-filesystem.md +1 -1
  174. package/.docs/reference/workspace/local-sandbox.md +1 -1
  175. package/.docs/reference/workspace/modal-sandbox.md +1 -1
  176. package/.docs/reference/workspace/s3-filesystem.md +1 -1
  177. package/.docs/reference/workspace/vercel-microvm-sandbox.md +199 -0
  178. package/.docs/reference/workspace/vercel.md +2 -0
  179. package/CHANGELOG.md +65 -0
  180. package/package.json +8 -6
@@ -16,7 +16,7 @@ const voiceAgent = new Agent({
16
16
  id: 'voice-agent',
17
17
  name: 'Voice Agent',
18
18
  instructions: 'You are a voice assistant that can help users with their tasks.',
19
- model: 'openai/gpt-5.4',
19
+ model: 'openai/gpt-5.5',
20
20
  voice: new OpenAIVoice(),
21
21
  })
22
22
  ```
@@ -40,7 +40,7 @@ const voiceAgent = new Agent({
40
40
  id: 'voice-agent',
41
41
  name: 'Voice Agent',
42
42
  instructions: 'You are a voice assistant that can help users with their tasks.',
43
- model: 'openai/gpt-5.4',
43
+ model: 'openai/gpt-5.5',
44
44
  voice: new OpenAIVoice(),
45
45
  })
46
46
 
@@ -68,7 +68,7 @@ const voiceAgent = new Agent({
68
68
  id: 'voice-agent',
69
69
  name: 'Voice Agent',
70
70
  instructions: 'You are a voice assistant that can help users with their tasks.',
71
- model: 'openai/gpt-5.4',
71
+ model: 'openai/gpt-5.5',
72
72
  voice: new AzureVoice(),
73
73
  })
74
74
 
@@ -95,7 +95,7 @@ const voiceAgent = new Agent({
95
95
  id: 'voice-agent',
96
96
  name: 'Voice Agent',
97
97
  instructions: 'You are a voice assistant that can help users with their tasks.',
98
- model: 'openai/gpt-5.4',
98
+ model: 'openai/gpt-5.5',
99
99
  voice: new ElevenLabsVoice(),
100
100
  })
101
101
 
@@ -122,7 +122,7 @@ const voiceAgent = new Agent({
122
122
  id: 'voice-agent',
123
123
  name: 'Voice Agent',
124
124
  instructions: 'You are a voice assistant that can help users with their tasks.',
125
- model: 'openai/gpt-5.4',
125
+ model: 'openai/gpt-5.5',
126
126
  voice: new PlayAIVoice(),
127
127
  })
128
128
 
@@ -149,7 +149,7 @@ const voiceAgent = new Agent({
149
149
  id: 'voice-agent',
150
150
  name: 'Voice Agent',
151
151
  instructions: 'You are a voice assistant that can help users with their tasks.',
152
- model: 'openai/gpt-5.4',
152
+ model: 'openai/gpt-5.5',
153
153
  voice: new GoogleVoice(),
154
154
  })
155
155
 
@@ -176,7 +176,7 @@ const voiceAgent = new Agent({
176
176
  id: 'voice-agent',
177
177
  name: 'Voice Agent',
178
178
  instructions: 'You are a voice assistant that can help users with their tasks.',
179
- model: 'openai/gpt-5.4',
179
+ model: 'openai/gpt-5.5',
180
180
  voice: new CloudflareVoice(),
181
181
  })
182
182
 
@@ -203,7 +203,7 @@ const voiceAgent = new Agent({
203
203
  id: 'voice-agent',
204
204
  name: 'Voice Agent',
205
205
  instructions: 'You are a voice assistant that can help users with their tasks.',
206
- model: 'openai/gpt-5.4',
206
+ model: 'openai/gpt-5.5',
207
207
  voice: new DeepgramVoice(),
208
208
  })
209
209
 
@@ -230,7 +230,7 @@ const voiceAgent = new Agent({
230
230
  id: 'voice-agent',
231
231
  name: 'Voice Agent',
232
232
  instructions: 'You are a voice assistant that can help users with their tasks.',
233
- model: 'openai/gpt-5.4',
233
+ model: 'openai/gpt-5.5',
234
234
  voice: new InworldVoice(),
235
235
  })
236
236
 
@@ -257,7 +257,7 @@ const voiceAgent = new Agent({
257
257
  id: 'voice-agent',
258
258
  name: 'Voice Agent',
259
259
  instructions: 'You are a voice assistant that can help users with their tasks.',
260
- model: 'openai/gpt-5.4',
260
+ model: 'openai/gpt-5.5',
261
261
  voice: new SpeechifyVoice(),
262
262
  })
263
263
 
@@ -284,7 +284,7 @@ const voiceAgent = new Agent({
284
284
  id: 'voice-agent',
285
285
  name: 'Voice Agent',
286
286
  instructions: 'You are a voice assistant that can help users with their tasks.',
287
- model: 'openai/gpt-5.4',
287
+ model: 'openai/gpt-5.5',
288
288
  voice: new SarvamVoice(),
289
289
  })
290
290
 
@@ -311,7 +311,7 @@ const voiceAgent = new Agent({
311
311
  id: 'voice-agent',
312
312
  name: 'Voice Agent',
313
313
  instructions: 'You are a voice assistant that can help users with their tasks.',
314
- model: 'openai/gpt-5.4',
314
+ model: 'openai/gpt-5.5',
315
315
  voice: new MurfVoice(),
316
316
  })
317
317
 
@@ -346,7 +346,7 @@ const voiceAgent = new Agent({
346
346
  id: 'voice-agent',
347
347
  name: 'Voice Agent',
348
348
  instructions: 'You are a voice assistant that can help users with their tasks.',
349
- model: 'openai/gpt-5.4',
349
+ model: 'openai/gpt-5.5',
350
350
  voice: new OpenAIVoice(),
351
351
  })
352
352
 
@@ -375,7 +375,7 @@ const voiceAgent = new Agent({
375
375
  id: 'voice-agent',
376
376
  name: 'Voice Agent',
377
377
  instructions: 'You are a voice assistant that can help users with their tasks.',
378
- model: 'openai/gpt-5.4',
378
+ model: 'openai/gpt-5.5',
379
379
  voice: new AzureVoice(),
380
380
  })
381
381
 
@@ -403,7 +403,7 @@ const voiceAgent = new Agent({
403
403
  id: 'voice-agent',
404
404
  name: 'Voice Agent',
405
405
  instructions: 'You are a voice assistant that can help users with their tasks.',
406
- model: 'openai/gpt-5.4',
406
+ model: 'openai/gpt-5.5',
407
407
  voice: new ElevenLabsVoice(),
408
408
  })
409
409
 
@@ -431,7 +431,7 @@ const voiceAgent = new Agent({
431
431
  id: 'voice-agent',
432
432
  name: 'Voice Agent',
433
433
  instructions: 'You are a voice assistant that can help users with their tasks.',
434
- model: 'openai/gpt-5.4',
434
+ model: 'openai/gpt-5.5',
435
435
  voice: new GoogleVoice(),
436
436
  })
437
437
 
@@ -459,7 +459,7 @@ const voiceAgent = new Agent({
459
459
  id: 'voice-agent',
460
460
  name: 'Voice Agent',
461
461
  instructions: 'You are a voice assistant that can help users with their tasks.',
462
- model: 'openai/gpt-5.4',
462
+ model: 'openai/gpt-5.5',
463
463
  voice: new CloudflareVoice(),
464
464
  })
465
465
 
@@ -487,7 +487,7 @@ const voiceAgent = new Agent({
487
487
  id: 'voice-agent',
488
488
  name: 'Voice Agent',
489
489
  instructions: 'You are a voice assistant that can help users with their tasks.',
490
- model: 'openai/gpt-5.4',
490
+ model: 'openai/gpt-5.5',
491
491
  voice: new DeepgramVoice(),
492
492
  })
493
493
 
@@ -515,7 +515,7 @@ const voiceAgent = new Agent({
515
515
  id: 'voice-agent',
516
516
  name: 'Voice Agent',
517
517
  instructions: 'You are a voice assistant that can help users with their tasks.',
518
- model: 'openai/gpt-5.4',
518
+ model: 'openai/gpt-5.5',
519
519
  voice: new InworldVoice(),
520
520
  })
521
521
 
@@ -543,7 +543,7 @@ const voiceAgent = new Agent({
543
543
  id: 'voice-agent',
544
544
  name: 'Voice Agent',
545
545
  instructions: 'You are a voice assistant that can help users with their tasks.',
546
- model: 'openai/gpt-5.4',
546
+ model: 'openai/gpt-5.5',
547
547
  voice: new SarvamVoice(),
548
548
  })
549
549
 
@@ -575,7 +575,7 @@ const voiceAgent = new Agent({
575
575
  id: 'voice-agent',
576
576
  name: 'Voice Agent',
577
577
  instructions: 'You are a voice assistant that can help users with their tasks.',
578
- model: 'openai/gpt-5.4',
578
+ model: 'openai/gpt-5.5',
579
579
  voice: new OpenAIRealtimeVoice(),
580
580
  })
581
581
 
@@ -605,7 +605,7 @@ const voiceAgent = new Agent({
605
605
  id: 'voice-agent',
606
606
  name: 'Voice Agent',
607
607
  instructions: 'You are a voice assistant that can help users with their tasks.',
608
- model: 'openai/gpt-5.4',
608
+ model: 'openai/gpt-5.5',
609
609
  voice: new GeminiLiveVoice({
610
610
  // Live API mode
611
611
  apiKey: process.env.GOOGLE_API_KEY,
@@ -654,7 +654,7 @@ const voiceAgent = new Agent({
654
654
  id: 'voice-agent',
655
655
  name: 'Voice Agent',
656
656
  instructions: 'You are a voice assistant that can help users with their tasks.',
657
- model: 'openai/gpt-5.4',
657
+ model: 'openai/gpt-5.5',
658
658
  voice: new NovaSonicVoice({
659
659
  region: 'us-east-1',
660
660
  speaker: 'matthew',
@@ -686,6 +686,48 @@ await voiceAgent.voice.send(micStream)
686
686
 
687
687
  Visit the [AWS Nova Sonic Reference](https://mastra.ai/reference/voice/aws-nova-sonic) for more information on the AWS Nova Sonic voice provider.
688
688
 
689
+ **Inworld Realtime**:
690
+
691
+ ```typescript
692
+ import { Agent } from '@mastra/core/agent'
693
+ import { playAudio, getMicrophoneStream } from '@mastra/node-audio'
694
+ import { InworldRealtimeVoice } from '@mastra/voice-inworld'
695
+
696
+ const voiceAgent = new Agent({
697
+ id: 'voice-agent',
698
+ name: 'Voice Agent',
699
+ instructions: 'You are a voice assistant that can help users with their tasks.',
700
+ model: 'openai/gpt-5.5',
701
+ voice: new InworldRealtimeVoice({
702
+ apiKey: process.env.INWORLD_API_KEY,
703
+ model: 'inworld/models/gemma-4-26b-a4b-it',
704
+ speaker: 'Sarah',
705
+ }),
706
+ })
707
+
708
+ // Connect before using speak/send
709
+ await voiceAgent.voice.connect()
710
+
711
+ // Listen for agent audio (PCM stream)
712
+ voiceAgent.voice.on('speaker', stream => {
713
+ playAudio(stream)
714
+ })
715
+
716
+ // Listen for text responses and transcriptions
717
+ voiceAgent.voice.on('writing', ({ text, role }) => {
718
+ console.log(`${role}: ${text}`)
719
+ })
720
+
721
+ // Initiate the conversation
722
+ await voiceAgent.voice.speak('How can I help you today?')
723
+
724
+ // Send continuous audio from the microphone
725
+ const micStream = getMicrophoneStream()
726
+ await voiceAgent.voice.send(micStream)
727
+ ```
728
+
729
+ Visit the [Inworld Realtime Reference](https://mastra.ai/reference/voice/inworld-realtime) for more information on the Inworld Realtime voice provider.
730
+
689
731
  **xAI**:
690
732
 
691
733
  ```typescript
@@ -1051,6 +1093,26 @@ const voice = new NovaSonicVoice({
1051
1093
 
1052
1094
  Visit the [AWS Nova Sonic Reference](https://mastra.ai/reference/voice/aws-nova-sonic) for more information on the AWS Nova Sonic voice provider.
1053
1095
 
1096
+ **Inworld Realtime**:
1097
+
1098
+ ```typescript
1099
+ // Inworld Realtime Voice Configuration
1100
+ const voice = new InworldRealtimeVoice({
1101
+ apiKey: process.env.INWORLD_API_KEY,
1102
+ model: 'inworld/models/gemma-4-26b-a4b-it',
1103
+ speaker: 'Sarah',
1104
+ // Typed Inworld realtime knobs (semantic VAD, playback speed, MCP tool routing, ...)
1105
+ session: {
1106
+ audio: {
1107
+ output: { speed: 1.1 },
1108
+ input: { turn_detection: { type: 'semantic_vad', eagerness: 'high' } },
1109
+ },
1110
+ },
1111
+ })
1112
+ ```
1113
+
1114
+ Visit the [Inworld Realtime Reference](https://mastra.ai/reference/voice/inworld-realtime) for more information on the Inworld Realtime voice provider.
1115
+
1054
1116
  **AI SDK**:
1055
1117
 
1056
1118
  ```typescript
@@ -1070,7 +1132,7 @@ const voiceAgent = new Agent({
1070
1132
  id: 'aisdk-voice-agent',
1071
1133
  name: 'AI SDK Voice Agent',
1072
1134
  instructions: 'You are a helpful assistant with voice capabilities.',
1073
- model: 'openai/gpt-5.4',
1135
+ model: 'openai/gpt-5.5',
1074
1136
  voice,
1075
1137
  })
1076
1138
  ```
@@ -32,7 +32,7 @@ const agent = new Agent({
32
32
  id: 'agent',
33
33
  name: 'OpenAI Realtime Agent',
34
34
  instructions: `You are a helpful assistant with real-time voice capabilities.`,
35
- model: 'openai/gpt-5.4',
35
+ model: 'openai/gpt-5.5',
36
36
  voice: new OpenAIRealtimeVoice(),
37
37
  })
38
38
 
@@ -66,7 +66,7 @@ const agent = new Agent({
66
66
  name: 'Gemini Live Agent',
67
67
  instructions: 'You are a helpful assistant with real-time voice capabilities.',
68
68
  // Model used for text generation; voice provider handles realtime audio
69
- model: 'openai/gpt-5.4',
69
+ model: 'openai/gpt-5.5',
70
70
  voice: new GeminiLiveVoice({
71
71
  apiKey: process.env.GOOGLE_API_KEY,
72
72
  model: 'gemini-2.0-flash-exp',
@@ -113,7 +113,7 @@ const agent = new Agent({
113
113
  name: 'Nova Sonic Agent',
114
114
  instructions: 'You are a helpful assistant with real-time voice capabilities.',
115
115
  // Model used for text generation; voice provider handles realtime audio
116
- model: 'openai/gpt-5.4',
116
+ model: 'openai/gpt-5.5',
117
117
  voice: new NovaSonicVoice({
118
118
  region: 'us-east-1',
119
119
  speaker: 'matthew',
@@ -143,4 +143,55 @@ Note:
143
143
 
144
144
  - Available regions: `us-east-1`, `us-west-2`, and `ap-northeast-1`.
145
145
  - Authenticates through the standard AWS credential provider chain. Pass `credentials` to override.
146
- - Events: `speaking` (Int16Array audio), `writing` (text with `generationStage`), `toolCall`, `interrupt`, `turnComplete`, `usage`, `session`, and `error`.
146
+ - Events: `speaking` (Int16Array audio), `writing` (text with `generationStage`), `toolCall`, `interrupt`, `turnComplete`, `usage`, `session`, and `error`.
147
+
148
+ ## Inworld Realtime
149
+
150
+ ```typescript
151
+ import { Agent } from '@mastra/core/agent'
152
+ import { InworldRealtimeVoice } from '@mastra/voice-inworld'
153
+ import { playAudio, getMicrophoneStream } from '@mastra/node-audio'
154
+
155
+ const agent = new Agent({
156
+ id: 'agent',
157
+ name: 'Inworld Realtime Agent',
158
+ instructions: 'You are a helpful assistant with real-time voice capabilities.',
159
+ // Model used for text generation; voice provider handles realtime audio
160
+ model: 'openai/gpt-5.5',
161
+ voice: new InworldRealtimeVoice({
162
+ apiKey: process.env.INWORLD_API_KEY,
163
+ model: 'inworld/models/gemma-4-26b-a4b-it',
164
+ speaker: 'Sarah',
165
+ // Typed Inworld realtime knobs (semantic VAD, playback speed, etc.)
166
+ // session: {
167
+ // audio: {
168
+ // output: { speed: 1.1 },
169
+ // input: { turn_detection: { type: 'semantic_vad', eagerness: 'high' } },
170
+ // },
171
+ // },
172
+ }),
173
+ })
174
+
175
+ await agent.voice.connect()
176
+
177
+ agent.voice.on('speaker', stream => {
178
+ playAudio(stream)
179
+ })
180
+
181
+ agent.voice.on('writing', ({ role, text }) => {
182
+ console.log(`${role}: ${text}`)
183
+ })
184
+
185
+ await agent.voice.speak('How can I help you today?')
186
+
187
+ const micStream = getMicrophoneStream()
188
+ await agent.voice.send(micStream)
189
+ ```
190
+
191
+ Note:
192
+
193
+ - Requires `INWORLD_API_KEY`. Inworld API keys ship pre-Basic-encoded — paste them verbatim.
194
+ - The WebSocket URL appends a client-generated `?key=...&protocol=realtime`. The model is configured via the initial `session.update`, not in the URL.
195
+ - Inworld's wire protocol is the OpenAI Realtime GA spec, so event names match `@mastra/voice-openai-realtime`.
196
+ - Typed Inworld realtime knobs (MCP tool routing, semantic VAD eagerness, playback speed, transcription model, output modalities, …) are exposed through the `session` constructor field; an untyped `providerData` escape hatch is also deep-merged for forward compatibility with new Inworld features.
197
+ - Events: `speaker` (PCM audio stream), `speaking` (audio Buffer per delta), `writing` (text), `conversation.item.added`, `conversation.item.done`, `function_call.arguments`, `tool-call-start`, `tool-call-result`, and `error`.
@@ -57,7 +57,7 @@ const agent = new Agent({
57
57
  id: 'voice-agent',
58
58
  name: 'Voice Agent',
59
59
  instructions: 'You are a voice assistant that provides recommendations based on user input.',
60
- model: 'openai/gpt-5.4',
60
+ model: 'openai/gpt-5.5',
61
61
  voice,
62
62
  })
63
63
 
@@ -64,7 +64,7 @@ const agent = new Agent({
64
64
  id: 'voice-agent',
65
65
  name: 'Voice Agent',
66
66
  instructions: 'You are a voice assistant that can help users with their tasks.',
67
- model: 'openai/gpt-5.4',
67
+ model: 'openai/gpt-5.5',
68
68
  voice,
69
69
  })
70
70
 
@@ -44,7 +44,7 @@ const workspace = new Workspace({
44
44
 
45
45
  const agent = new Agent({
46
46
  id: 'file-agent',
47
- model: 'openai/gpt-5.4',
47
+ model: 'openai/gpt-5.5',
48
48
  instructions: 'You are a helpful file management assistant.',
49
49
  workspace,
50
50
  })
@@ -116,7 +116,7 @@ const workspace = new Workspace({
116
116
 
117
117
  const agent = new Agent({
118
118
  id: 'multi-role-agent',
119
- model: 'openai/gpt-5.4',
119
+ model: 'openai/gpt-5.5',
120
120
  workspace,
121
121
  })
122
122
  ```
@@ -75,7 +75,7 @@ const workspace = new Workspace({
75
75
 
76
76
  export const myAgent = new Agent({
77
77
  id: 'my-agent',
78
- model: 'openai/gpt-5.4',
78
+ model: 'openai/gpt-5.5',
79
79
  workspace,
80
80
  })
81
81
  ```
@@ -16,6 +16,7 @@ A sandbox provider executes commands in a controlled environment:
16
16
  ## Supported providers
17
17
 
18
18
  - [`LocalSandbox`](https://mastra.ai/reference/workspace/local-sandbox): Executes commands on the local machine
19
+ - [`AgentCoreRuntimeSandbox`](https://mastra.ai/reference/workspace/agentcore-runtime-sandbox): Executes commands in AWS Bedrock AgentCore Runtime sessions
19
20
  - [`BlaxelSandbox`](https://mastra.ai/reference/workspace/blaxel-sandbox): Executes commands in isolated Blaxel cloud sandboxes
20
21
  - [`DaytonaSandbox`](https://mastra.ai/reference/workspace/daytona-sandbox): Executes commands in isolated Daytona cloud sandboxes
21
22
  - [`E2BSandbox`](https://mastra.ai/reference/workspace/e2b-sandbox): Executes commands in isolated E2B cloud sandboxes
@@ -40,7 +41,7 @@ const workspace = new Workspace({
40
41
 
41
42
  const agent = new Agent({
42
43
  id: 'dev-agent',
43
- model: 'openai/gpt-5.4',
44
+ model: 'openai/gpt-5.5',
44
45
  instructions: 'You are a helpful development assistant.',
45
46
  workspace,
46
47
  })
@@ -118,9 +119,10 @@ Use `null` or `false` for cloud sandboxes (for example, E2B, Daytona, or Modal)
118
119
  ## Related
119
120
 
120
121
  - [`SandboxProcessManager` reference](https://mastra.ai/reference/workspace/process-manager)
121
- - [`LocalSandbox` reference](https://mastra.ai/reference/workspace/local-sandbox)
122
- - [`ModalSandbox` reference](https://mastra.ai/reference/workspace/modal-sandbox)
122
+ - [`AgentCoreRuntimeSandbox` reference](https://mastra.ai/reference/workspace/agentcore-runtime-sandbox)
123
123
  - [`DaytonaSandbox` reference](https://mastra.ai/reference/workspace/daytona-sandbox)
124
124
  - [`E2BSandbox` reference](https://mastra.ai/reference/workspace/e2b-sandbox)
125
+ - [`LocalSandbox` reference](https://mastra.ai/reference/workspace/local-sandbox)
126
+ - [`ModalSandbox` reference](https://mastra.ai/reference/workspace/modal-sandbox)
125
127
  - [Workspace overview](https://mastra.ai/docs/workspace/overview)
126
128
  - [Filesystem](https://mastra.ai/docs/workspace/filesystem)
@@ -1305,7 +1305,7 @@ import { nestedAgentTool } from '../tools/nested-agent-tool'
1305
1305
  export const forecastAgent = new Agent({
1306
1306
  id: 'forecast-agent',
1307
1307
  instructions: 'Use the nested-agent-stream tool when asked about weather.',
1308
- model: 'openai/gpt-5.4',
1308
+ model: 'openai/gpt-5.5',
1309
1309
  tools: { nestedAgentTool },
1310
1310
  })
1311
1311
  ```
@@ -431,6 +431,75 @@ export { handler as GET, handler as POST, handler as PUT }
431
431
 
432
432
  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.
433
433
 
434
+ ## Running as a Connect worker
435
+
436
+ `serve()` exposes an HTTP endpoint that Inngest calls into. As an alternative, `connect()` opens a long-lived outbound connection from your worker to Inngest, so the worker does not need a publicly reachable endpoint. Use this for long-running worker processes on runtimes such as Kubernetes, Docker, ECS, Fly.io, or Render.
437
+
438
+ > **Note:** Inngest Connect is in public beta. Serverless runtimes such as Vercel and AWS Lambda are not supported for Connect workers.
439
+
440
+ ### When to use `connect()` instead of `serve()`
441
+
442
+ - The worker process runs in a private network that only allows outbound connections.
443
+ - You want to keep heavy workflow execution out of the same process that serves user-facing HTTP traffic.
444
+ - You want to scale workers up and down independently of the Mastra HTTP server, with per-worker concurrency limits.
445
+
446
+ Use the same Mastra workflow definitions with either `serve()` or `connect()`. The collection behavior is the same for standard workflows, nested workflows, cron workflows, and additional Inngest functions.
447
+
448
+ ### Requirements
449
+
450
+ - `inngest@^4`
451
+ - Node.js `22.13.0` or later
452
+ - A long-running process for the worker
453
+
454
+ ### Setup
455
+
456
+ Run the Mastra server and the Connect worker as two processes. The Mastra server in this setup does not need to expose `/inngest/api`:
457
+
458
+ ```ts
459
+ import { Mastra } from '@mastra/core'
460
+ import { incrementWorkflow } from './workflows'
461
+ import { PinoLogger } from '@mastra/loggers'
462
+
463
+ export const mastra = new Mastra({
464
+ workflows: { incrementWorkflow },
465
+ logger: new PinoLogger({ name: 'Mastra', level: 'info' }),
466
+ })
467
+ ```
468
+
469
+ ```ts
470
+ import { connect } from '@mastra/inngest/connect'
471
+ import { mastra } from './mastra'
472
+ import { inngest } from './mastra/inngest'
473
+
474
+ await connect({
475
+ mastra,
476
+ inngest,
477
+ instanceId: process.env.INNGEST_CONNECT_INSTANCE_ID,
478
+ maxWorkerConcurrency: Number(process.env.INNGEST_CONNECT_MAX_WORKER_CONCURRENCY ?? 10),
479
+ })
480
+ ```
481
+
482
+ Start the worker with `INNGEST_DEV=1 node --import tsx src/worker.ts` during local development. The Inngest Dev Server discovers the worker through the outbound connection, so no `-u` flag is required.
483
+
484
+ In production, set `INNGEST_EVENT_KEY` and `INNGEST_SIGNING_KEY`. Set `appVersion` on the `Inngest` client to a deploy identifier, such as a commit SHA or image tag, so Inngest can manage rolling deploys.
485
+
486
+ When migrating an existing production app from `serve()` to `connect()`, test the worker with a separate Inngest app before moving traffic.
487
+
488
+ ### Options
489
+
490
+ `connect()` accepts the same options as Inngest's [`connect`](https://www.inngest.com/docs/setup/connect) plus the Mastra-specific fields. The most common ones:
491
+
492
+ - `mastra`: The Mastra instance whose workflows should be exposed.
493
+ - `inngest`: The Inngest client. Use the same client you would pass to `serve()`.
494
+ - `functions`: Optional array of additional Inngest functions to register alongside Mastra workflows.
495
+ - `instanceId`: Stable identifier for the worker, shown in the Inngest dashboard. Defaults to the machine hostname.
496
+ - `maxWorkerConcurrency`: Maximum number of steps the worker runs at a time. Defaults to unlimited.
497
+ - `registerOptions`: Forwarded to Inngest during app registration (for example `signingKey`). When a field is set both here and at the top level, `registerOptions` wins — this matches the behavior of `serve()`.
498
+
499
+ `connect()` returns Inngest's `WorkerConnection`. The Inngest SDK handles `SIGINT` and `SIGTERM` by default. Store the returned connection and call `.close()` only when your worker needs custom shutdown control.
500
+
501
+ If the Mastra instance has no `InngestWorkflow` and no additional `functions` are provided, `connect()` logs a warning because the worker would otherwise stay connected with nothing to execute. Register at least one workflow on Mastra or pass `functions: [...]`.
502
+
434
503
  ## Using a custom `apiPrefix`
435
504
 
436
505
  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:
@@ -47,7 +47,7 @@ Set up the Workflow, define steps to extract and classify candidate data, and th
47
47
  id: 'recruiter-agent',
48
48
  name: 'Recruiter Agent',
49
49
  instructions: `You are a recruiter.`,
50
- model: 'openai/gpt-5.4',
50
+ model: 'openai/gpt-5.5',
51
51
  })
52
52
 
53
53
  const gatherCandidateInfo = createStep({
@@ -27,7 +27,7 @@ To create an agent in Mastra use the `Agent` class to define it and then registe
27
27
  instructions:
28
28
  'You are Michel, a practical and experienced home chef' +
29
29
  'You help people cook with whatever ingredients they have available.',
30
- model: 'openai/gpt-5.4',
30
+ model: 'openai/gpt-5.5',
31
31
  })
32
32
  ```
33
33
 
@@ -122,7 +122,7 @@ When asked to review code:
122
122
  2. Follow the review process from the skill
123
123
  3. Check against the style guide in skill references
124
124
  4. Be constructive and specific with line numbers`,
125
- model: 'openai/gpt-5.4',
125
+ model: 'openai/gpt-5.5',
126
126
  })
127
127
  ```
128
128
 
@@ -195,7 +195,7 @@ When adding features:
195
195
  For every new feature: Write code → Write tests → Run tests → Update docs
196
196
 
197
197
  Always explain your reasoning and steps.`,
198
- model: 'openai/gpt-5.4',
198
+ model: 'openai/gpt-5.5',
199
199
  })
200
200
  ```
201
201
 
@@ -103,7 +103,7 @@ When updating existing docs:
103
103
 
104
104
  Use kebab-case naming for files (getting-started.md).
105
105
  Always explain what you're creating and why.`,
106
- model: 'openai/gpt-5.4',
106
+ model: 'openai/gpt-5.5',
107
107
  })
108
108
  ```
109
109
 
@@ -16,25 +16,25 @@ Install the Firecrawl SDK:
16
16
  **npm**:
17
17
 
18
18
  ```bash
19
- npm install @mendable/firecrawl-js
19
+ npm install firecrawl
20
20
  ```
21
21
 
22
22
  **pnpm**:
23
23
 
24
24
  ```bash
25
- pnpm add @mendable/firecrawl-js
25
+ pnpm add firecrawl
26
26
  ```
27
27
 
28
28
  **Yarn**:
29
29
 
30
30
  ```bash
31
- yarn add @mendable/firecrawl-js
31
+ yarn add firecrawl
32
32
  ```
33
33
 
34
34
  **Bun**:
35
35
 
36
36
  ```bash
37
- bun add @mendable/firecrawl-js
37
+ bun add firecrawl
38
38
  ```
39
39
 
40
40
  ## Configure environment variables
@@ -53,7 +53,7 @@ Create a tool file that exposes Firecrawl search and scrape to Mastra.
53
53
  1. Create `src/mastra/tools/firecrawl.ts` and set up Firecrawl:
54
54
 
55
55
  ```ts
56
- import Firecrawl from '@mendable/firecrawl-js'
56
+ import { Firecrawl } from 'firecrawl'
57
57
  import { createTool } from '@mastra/core/tools'
58
58
  import { z } from 'zod'
59
59
 
@@ -107,7 +107,7 @@ Create a tool file that exposes Firecrawl search and scrape to Mastra.
107
107
  id: 'web-agent',
108
108
  name: 'Web Agent',
109
109
  instructions: 'Use Firecrawl tools to search and scrape web pages, then summarize the results.',
110
- model: 'openai/gpt-5.4',
110
+ model: 'openai/gpt-5.5',
111
111
  tools: { firecrawlSearch, firecrawlScrape },
112
112
  })
113
113
  ```
@@ -97,7 +97,7 @@ Output format:
97
97
 
98
98
  - [Same changes in Japanese]
99
99
  `,
100
- model: 'openai/gpt-5.4',
100
+ model: 'openai/gpt-5.5',
101
101
  })
102
102
  ```
103
103
 
@@ -99,7 +99,7 @@ Let's define the agent's behavior, connect it to your Mastra project, and create
99
99
  and provide accurate, well-supported answers based on the retrieved content.
100
100
  Focus on the specific content available in the tool and acknowledge if you cannot find sufficient information to answer a question.
101
101
  Base your responses only on the content provided, not on general knowledge.`,
102
- model: 'openai/gpt-5.4',
102
+ model: 'openai/gpt-5.5',
103
103
  tools: {
104
104
  vectorQueryTool,
105
105
  },
@@ -94,7 +94,7 @@ Success criteria:
94
94
  - Information is accurate and well-sourced
95
95
  - Final output is well-formatted and complete
96
96
  - If anything is missing or uncertain, continue gathering information`,
97
- model: 'openai/gpt-5.4',
97
+ model: 'openai/gpt-5.5',
98
98
  agents: {
99
99
  researchAgent,
100
100
  writingAgent,
@@ -288,7 +288,7 @@ Success criteria:
288
288
  - Information is accurate and well-sourced
289
289
  - Final output is well-formatted and complete
290
290
  - If anything is missing or uncertain, continue gathering information`,
291
- model: 'openai/gpt-5.4',
291
+ model: 'openai/gpt-5.5',
292
292
  agents: {
293
293
  researchAgent,
294
294
  writingAgent,