@mastra/mcp-docs-server 1.1.40-alpha.5 → 1.1.40-alpha.9

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.
@@ -246,7 +246,7 @@ costGuard.onViolation = ({ processorId, message, detail }) => {
246
246
 
247
247
  // Log moderation violations
248
248
  const moderation = new ModerationProcessor({
249
- model: 'openai/gpt-5-nano',
249
+ model: '__OPENAI_MODEL_NANO__',
250
250
  strategy: 'block',
251
251
  })
252
252
 
@@ -360,7 +360,7 @@ See [workflows as processors](https://mastra.ai/docs/agents/processors) for more
360
360
  Guardrail processors don't need your primary model. Use a small, fast model for classification tasks:
361
361
 
362
362
  ```typescript
363
- const GUARDRAIL_MODEL = 'openai/gpt-5-nano'
363
+ const GUARDRAIL_MODEL = '__OPENAI_MODEL_NANO__'
364
364
 
365
365
  new ModerationProcessor({ model: GUARDRAIL_MODEL })
366
366
  new PIIDetector({ model: GUARDRAIL_MODEL })
@@ -97,9 +97,9 @@ const agent = new Agent({
97
97
  instructions: '...',
98
98
  inputProcessors: [
99
99
  new TokenLimiter(4000),
100
- new ModerationProcessor({ model: 'openai/gpt-4.1-nano' }),
100
+ new ModerationProcessor({ model: 'openai/gpt-5-nano' }),
101
101
  ],
102
- outputProcessors: [new ModerationProcessor({ model: 'openai/gpt-4.1-nano' })],
102
+ outputProcessors: [new ModerationProcessor({ model: 'openai/gpt-5-nano' })],
103
103
  errorProcessors: [new PrefillErrorHandler()],
104
104
  })
105
105
  ```
@@ -104,7 +104,7 @@ const summary = await dataset.startExperiment({
104
104
  ```typescript
105
105
  import { createAnswerRelevancyScorer } from '@mastra/evals/scorers/prebuilt'
106
106
 
107
- const relevancy = createAnswerRelevancyScorer({ model: 'openai/gpt-5-mini' })
107
+ const relevancy = createAnswerRelevancyScorer({ model: '__OPENAI_MODEL_MINI__' })
108
108
 
109
109
  const summary = await dataset.startExperiment({
110
110
  name: 'with-scorer-instances',
@@ -57,11 +57,11 @@ import { createAnswerRelevancyScorer, createToxicityScorer } from '@mastra/evals
57
57
  export const evaluatedAgent = new Agent({
58
58
  scorers: {
59
59
  relevancy: {
60
- scorer: createAnswerRelevancyScorer({ model: 'openai/gpt-5-mini' }),
60
+ scorer: createAnswerRelevancyScorer({ model: '__OPENAI_MODEL_MINI__' }),
61
61
  sampling: { type: 'ratio', rate: 0.5 },
62
62
  },
63
63
  safety: {
64
- scorer: createToxicityScorer({ model: 'openai/gpt-5-mini' }),
64
+ scorer: createToxicityScorer({ model: '__OPENAI_MODEL_MINI__' }),
65
65
  sampling: { type: 'ratio', rate: 1 },
66
66
  },
67
67
  },
@@ -93,7 +93,7 @@ export const myAgent = new Agent({
93
93
  id: 'my-agent',
94
94
  name: 'My Agent',
95
95
  instructions: 'You have access to interactive UI tools.',
96
- model: 'openai/gpt-5-mini',
96
+ model: '__OPENAI_MODEL_MINI__',
97
97
  tools: { calculatorTool },
98
98
  })
99
99
  ```
@@ -125,7 +125,7 @@ const mcpClient = new MCPClient({
125
125
  const myAgent = new Agent({
126
126
  id: 'my-agent',
127
127
  name: 'My Agent',
128
- model: 'openai/gpt-5-mini',
128
+ model: '__OPENAI_MODEL_MINI__',
129
129
  tools: await mcpClient.listTools(),
130
130
  })
131
131
 
@@ -270,7 +270,7 @@ const mcpClient = new MCPClient({
270
270
  const myAgent = new Agent({
271
271
  id: 'my-agent',
272
272
  name: 'My Agent',
273
- model: 'openai/gpt-5-mini',
273
+ model: '__OPENAI_MODEL_MINI__',
274
274
  tools: await mcpClient.listTools(),
275
275
  })
276
276
 
@@ -65,7 +65,7 @@ const memory = new Memory({
65
65
  export const collabAgent = new Agent({
66
66
  id: 'collab',
67
67
  name: 'CollabAgent',
68
- model: 'openai/gpt-5.4-mini',
68
+ model: '__OPENAI_MODEL_MINI__',
69
69
  memory,
70
70
  instructions: `
71
71
  You are a collaborative document assistant. Multiple users talk to you in the SAME thread.
@@ -316,7 +316,7 @@ const memory = new Memory({
316
316
  // Faster, cheaper models for smaller inputs; stronger models for larger contexts
317
317
  5_000: 'openrouter/mistralai/ministral-8b-2512',
318
318
  20_000: 'openrouter/mistralai/mistral-small-2603',
319
- 40_000: 'openai/gpt-5.4-mini',
319
+ 40_000: 'openai/gpt-5-mini',
320
320
  1_000_000: 'google/gemini-3.1-flash-lite-preview',
321
321
  },
322
322
  }),
@@ -324,7 +324,7 @@ const memory = new Memory({
324
324
  reflection: {
325
325
  model: new ModelByInputTokens({
326
326
  upTo: {
327
- 20_000: 'openai/gpt-5.4-mini',
327
+ 20_000: 'openai/gpt-5-mini',
328
328
  100_000: 'google/gemini-2.5-flash',
329
329
  },
330
330
  }),
@@ -179,7 +179,7 @@ export const agent = new Agent({
179
179
  memory: new Memory({
180
180
  options: {
181
181
  generateTitle: {
182
- model: 'openai/gpt-5-mini',
182
+ model: '__OPENAI_MODEL_MINI__',
183
183
  instructions: 'Generate a 1 word title',
184
184
  },
185
185
  },
@@ -472,7 +472,10 @@ const initialResults = await pgVector.query({
472
472
  })
473
473
 
474
474
  // Create a relevance scorer
475
- const relevanceProvider = new MastraAgentRelevanceScorer('relevance-scorer', 'openai/gpt-5.4')
475
+ const relevanceProvider = new MastraAgentRelevanceScorer(
476
+ 'relevance-scorer',
477
+ 'openai/gpt-5.4',
478
+ )
476
479
 
477
480
  // Re-rank the results
478
481
  const rerankedResults = await rerank({
@@ -115,7 +115,7 @@ const workspace = new Workspace({
115
115
 
116
116
  const agent = new Agent({
117
117
  id: 'multi-role-agent',
118
- model: 'openai/gpt-4o',
118
+ model: 'openai/gpt-5.4',
119
119
  workspace,
120
120
  })
121
121
  ```
@@ -39,7 +39,7 @@ Use stagehand_extract to get data from pages.`,
39
39
 
40
40
  **projectId** (`string`): Browserbase project ID. Required when env is 'BROWSERBASE'.
41
41
 
42
- **model** (`string | ModelConfiguration`): Model configuration for AI operations. Can be a string like 'openai/gpt-5.4' or an object with modelName, apiKey, and baseURL. (Default: `'openai/gpt-5.4'`)
42
+ **model** (`string | ModelConfiguration`): Model configuration for AI operations. Can be a string like '\_\_GATEWAY\_OPENAI\_MODEL\_\_' or an object with modelName, apiKey, and baseURL. (Default: `'openai/gpt-5.4'`)
43
43
 
44
44
  **selfHeal** (`boolean`): Enable self-healing selectors. When enabled, Stagehand uses AI to find elements even when initial selectors fail. (Default: `true`)
45
45
 
@@ -547,7 +547,7 @@ import { createNoiseSensitivityScorerLLM } from '@mastra/evals'
547
547
  async function compareModelRobustness() {
548
548
  const models = [
549
549
  { name: 'GPT-5.4', model: 'openai/gpt-5.4' },
550
- { name: 'GPT-5.4-mini', model: 'openai/gpt-5.4-mini' },
550
+ { name: 'GPT-5.4-mini', model: 'openai/gpt-5-mini' },
551
551
  { name: 'Claude', model: 'anthropic/claude-opus-4-6' },
552
552
  ]
553
553
 
@@ -656,7 +656,7 @@ const modelId = harness.getReflectorModelId()
656
656
  Switch the observer model. Persists the setting to thread metadata and emits an `om_model_changed` event.
657
657
 
658
658
  ```typescript
659
- await harness.switchObserverModel({ modelId: 'anthropic/claude-haiku-3.5' })
659
+ await harness.switchObserverModel({ modelId: 'anthropic/claude-haiku-4-5' })
660
660
  ```
661
661
 
662
662
  #### `switchReflectorModel({ modelId })`
@@ -664,7 +664,7 @@ await harness.switchObserverModel({ modelId: 'anthropic/claude-haiku-3.5' })
664
664
  Switch the reflector model. Persists the setting to thread metadata and emits an `om_model_changed` event.
665
665
 
666
666
  ```typescript
667
- await harness.switchReflectorModel({ modelId: 'anthropic/claude-haiku-3.5' })
667
+ await harness.switchReflectorModel({ modelId: 'anthropic/claude-haiku-4-5' })
668
668
  ```
669
669
 
670
670
  #### `getObservationThreshold()`
@@ -702,7 +702,10 @@ Set the subagent model ID. Pass an `agentType` to set a per-type override, or om
702
702
  await harness.setSubagentModelId({ modelId: 'anthropic/claude-sonnet-4-6' })
703
703
 
704
704
  // Set per-type model
705
- await harness.setSubagentModelId({ modelId: 'anthropic/claude-haiku-3.5', agentType: 'explore' })
705
+ await harness.setSubagentModelId({
706
+ modelId: 'anthropic/claude-haiku-4-5',
707
+ agentType: 'explore',
708
+ })
706
709
  ```
707
710
 
708
711
  ### Forked subagents
@@ -674,7 +674,7 @@ import { ModelByInputTokens } from '@mastra/memory'
674
674
  const selector = new ModelByInputTokens({
675
675
  upTo: {
676
676
  10_000: 'google/gemini-2.5-flash', // Fast for small inputs
677
- 40_000: 'openai/gpt-5.4-mini', // Stronger for medium inputs
677
+ 40_000: 'openai/gpt-5-mini', // Stronger for medium inputs
678
678
  1_000_000: 'openai/gpt-5.4', // Most capable for large inputs
679
679
  },
680
680
  })
@@ -56,7 +56,7 @@ costGuard.onViolation = ({ detail }) => {
56
56
 
57
57
  const agent = new Agent({
58
58
  name: 'my-agent',
59
- model: 'openai/gpt-5-nano',
59
+ model: '__OPENAI_MODEL_NANO__',
60
60
  processors: {
61
61
  input: [costGuard],
62
62
  },
@@ -318,7 +318,7 @@ processInputStep?<TTripwireMetadata = unknown>(
318
318
 
319
319
  The object form can return any combination of these properties:
320
320
 
321
- **model** (`LanguageModelV2 | string`): Change the model for this step. Can be a model instance or router ID like 'openai/gpt-5.4'.
321
+ **model** (`LanguageModelV2 | string`): Change the model for this step. Can be a model instance or router ID like '\_\_GATEWAY\_OPENAI\_MODEL\_\_'.
322
322
 
323
323
  **toolChoice** (`ToolChoice`): Change tool selection behavior for this step.
324
324
 
@@ -49,7 +49,7 @@ import { RegexFilterProcessor } from '@mastra/core/processors'
49
49
 
50
50
  const agent = new Agent({
51
51
  name: 'my-agent',
52
- model: 'openai/gpt-5-nano',
52
+ model: '__OPENAI_MODEL_NANO__',
53
53
  processors: {
54
54
  input: [
55
55
  new RegexFilterProcessor({
@@ -74,7 +74,7 @@ const agent = new Agent({
74
74
  name: 'skill-agent',
75
75
  instructions:
76
76
  'You are a helpful assistant. Use search_skills to find relevant skills, then load_skill to load their instructions.',
77
- model: 'openai/gpt-4o',
77
+ model: 'openai/gpt-5.4',
78
78
  workspace,
79
79
  inputProcessors: [skillSearch],
80
80
  })
@@ -114,7 +114,7 @@ import { Mastra } from '@mastra/core/mastra'
114
114
  greeter: {
115
115
  name: 'greeter',
116
116
  description: 'Greets the user',
117
- model: config.get('MASTRA_MODEL', 'openai/gpt-4o-mini'),
117
+ model: config.get('MASTRA_MODEL', '__OPENAI_MODEL_MINI__'),
118
118
  },
119
119
  },
120
120
  }),
@@ -241,7 +241,7 @@ export const dsqlAgent = new Agent({
241
241
  name: 'DSQL Agent',
242
242
  instructions:
243
243
  'You are an AI agent with the ability to automatically recall memories from previous interactions.',
244
- model: 'openai/gpt-5.1',
244
+ model: 'openai/gpt-5.4',
245
245
  memory: new Memory({
246
246
  storage: new DSQLStore({
247
247
  id: 'dsql-agent-storage',
@@ -181,7 +181,7 @@ export const redisAgent = new Agent({
181
181
  name: 'Redis Agent',
182
182
  instructions:
183
183
  'You are an AI agent with the ability to automatically recall memories from previous interactions.',
184
- model: 'openai/gpt-4o',
184
+ model: 'openai/gpt-5.4',
185
185
  memory: new Memory({
186
186
  storage: new RedisStore({
187
187
  id: 'redis-agent-storage',
@@ -49,7 +49,7 @@ const workspace = new Workspace({
49
49
  const agent = new Agent({
50
50
  id: 'drive-agent',
51
51
  name: 'Drive Agent',
52
- model: 'openai/gpt-4o-mini',
52
+ model: '__OPENAI_MODEL_MINI__',
53
53
  workspace,
54
54
  })
55
55
  ```
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @mastra/mcp-docs-server
2
2
 
3
+ ## 1.1.40-alpha.8
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`b7286f4`](https://github.com/mastra-ai/mastra/commit/b7286f4308267f5fd70e6bfee10dba9472640906), [`a481027`](https://github.com/mastra-ai/mastra/commit/a481027b549ba1018414990c8f045eaee7b9f413), [`801baa0`](https://github.com/mastra-ai/mastra/commit/801baa07cccdbaec1d00942a92bdc831111744a2), [`b3c3b18`](https://github.com/mastra-ai/mastra/commit/b3c3b189121489a3a51a8fd8204b569be9a89fe5)]:
8
+ - @mastra/core@1.37.0-alpha.4
9
+
10
+ ## 1.1.40-alpha.6
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies [[`ac442a4`](https://github.com/mastra-ai/mastra/commit/ac442a42fda0354ac2bcea772bf6691cb3e9dbb3), [`1e5c067`](https://github.com/mastra-ai/mastra/commit/1e5c067d2e20a781af670578180d1ee249806d41), [`008baaf`](https://github.com/mastra-ai/mastra/commit/008baafd8d851f831407045aebead5a2e3342eff), [`8116436`](https://github.com/mastra-ai/mastra/commit/81164363eb225d774e41ff27da6a5ea611406688), [`c27c4b9`](https://github.com/mastra-ai/mastra/commit/c27c4b9f137df5414fca4e45896aceccff6b0ed5), [`08b3b59`](https://github.com/mastra-ai/mastra/commit/08b3b590dd960dee6c9a6e39272f8927d803db6e)]:
15
+ - @mastra/core@1.37.0-alpha.3
16
+
3
17
  ## 1.1.40-alpha.4
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.40-alpha.5",
3
+ "version": "1.1.40-alpha.9",
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.37.0-alpha.2",
32
+ "@mastra/core": "1.37.0-alpha.4",
33
33
  "@mastra/mcp": "^1.8.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.97",
50
- "@mastra/core": "1.37.0-alpha.2",
51
- "@internal/types-builder": "0.0.72"
49
+ "@internal/types-builder": "0.0.72",
50
+ "@mastra/core": "1.37.0-alpha.4",
51
+ "@internal/lint": "0.0.97"
52
52
  },
53
53
  "homepage": "https://mastra.ai",
54
54
  "repository": {