@mastra/mcp-docs-server 1.2.15-alpha.3 → 1.2.15-alpha.6

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 (38) hide show
  1. package/.docs/docs/agents/a2a.md +39 -0
  2. package/.docs/docs/agents/skills.md +15 -1
  3. package/.docs/docs/evals/overview.md +16 -4
  4. package/.docs/docs/index.md +1 -1
  5. package/.docs/docs/observability/feedback.md +16 -0
  6. package/.docs/guides/getting-started/quickstart.md +1 -1
  7. package/.docs/models/gateways/neon.md +4 -1
  8. package/.docs/models/gateways/netlify.md +1 -2
  9. package/.docs/models/gateways/openrouter.md +1 -1
  10. package/.docs/models/gateways/vercel.md +8 -2
  11. package/.docs/models/index.md +1 -1
  12. package/.docs/models/providers/cortecs.md +2 -1
  13. package/.docs/models/providers/deepinfra.md +2 -2
  14. package/.docs/models/providers/digitalocean.md +3 -2
  15. package/.docs/models/providers/empiriolabs.md +6 -4
  16. package/.docs/models/providers/hyper.md +4 -5
  17. package/.docs/models/providers/kilo.md +3 -3
  18. package/.docs/models/providers/llmgateway.md +2 -2
  19. package/.docs/models/providers/nano-gpt.md +3 -2
  20. package/.docs/models/providers/neuralwatt.md +2 -1
  21. package/.docs/models/providers/ofox.md +74 -16
  22. package/.docs/models/providers/opencode-go.md +1 -1
  23. package/.docs/models/providers/opencode.md +2 -2
  24. package/.docs/models/providers/vivgrid.md +4 -2
  25. package/.docs/models/providers/wandb.md +1 -1
  26. package/.docs/reference/agents/channels.md +20 -1
  27. package/.docs/reference/client-js/workflows.md +13 -0
  28. package/.docs/reference/file-based-agents/config.md +22 -21
  29. package/.docs/reference/file-based-agents/instructions.md +42 -17
  30. package/.docs/reference/index.md +1 -0
  31. package/.docs/reference/observability/metrics/automatic-metrics.md +10 -8
  32. package/.docs/reference/server/routes.md +25 -11
  33. package/.docs/reference/storage/composite.md +58 -0
  34. package/.docs/reference/tools/bedrock-kb-tool.md +117 -0
  35. package/.docs/reference/voice/google.md +19 -3
  36. package/.docs/reference/workflows/step.md +40 -0
  37. package/CHANGELOG.md +15 -0
  38. package/package.json +5 -5
@@ -191,8 +191,48 @@ const agentStep = createStep(testAgent, {
191
191
 
192
192
  **execute.retryCount** (`number`): The retry count for this specific step, it automatically increases each time the step is retried
193
193
 
194
+ **scorers** (`MastraScorers | (({ requestContext }) => MastraScorers | Promise<MastraScorers>)`): Scorers that run automatically after the step completes successfully. Each scorer evaluates the step's own input and output, and the results are stored and attached to the step's trace. Provide a map of { \[name]: { scorer, sampling? } }, or a function that returns one. Scoring runs asynchronously and doesn't block the workflow. See Scoring step output.
195
+
196
+ **retries** (`number`): Number of times to retry the step's execute function if it throws.
197
+
194
198
  **metadata** (`Record<string, any>`): Optional key-value pairs for storing additional step information. Values must be serializable (no functions, circular references, etc.).
195
199
 
200
+ ## Scoring step output
201
+
202
+ Attach `scorers` to a step to evaluate that step's output automatically, at the point it runs, instead of only scoring the workflow's final answer. This is useful for multi-step and RAG workflows, where you want to see which step degraded quality, for example whether a retrieval step returned relevant chunks before later steps reason over them.
203
+
204
+ Each scorer receives the step's own `input` and `output`. Scoring runs asynchronously after the step succeeds, and the result is stored against the step's trace. Use `sampling` to control how often a scorer runs.
205
+
206
+ The following example attaches a scorer to a retrieval step so every execution is scored:
207
+
208
+ ```typescript
209
+ import { createStep } from '@mastra/core/workflows'
210
+ import { z } from 'zod'
211
+ import { retrievalRelevanceScorer } from '../scorers/retrieval-relevance'
212
+
213
+ const retrievalStep = createStep({
214
+ id: 'retrieval',
215
+ inputSchema: z.object({ query: z.string() }),
216
+ outputSchema: z.object({ query: z.string(), chunks: z.array(z.string()) }),
217
+ scorers: {
218
+ retrievalRelevance: {
219
+ scorer: retrievalRelevanceScorer(),
220
+ sampling: { type: 'ratio', rate: 1 },
221
+ },
222
+ },
223
+ execute: async ({ inputData }) => {
224
+ const chunks = await retrieve(inputData.query)
225
+ return { query: inputData.query, chunks }
226
+ },
227
+ })
228
+ ```
229
+
230
+ Attach a scorer to each step you want to measure to build per-step scores across a multi-step workflow. Because scoring is scoped to a single step, you don't need a dedicated cross-step metric to see where quality changes.
231
+
232
+ Agent and tool steps added with [`Workflow.agent()`](https://mastra.ai/reference/workflows/workflow-methods/agent) and [`Workflow.tool()`](https://mastra.ai/reference/workflows/workflow-methods/tool) accept the same `scorers` option in their step options.
233
+
234
+ > **Note:** Visit the [Scorers overview](https://mastra.ai/docs/evals/overview) to learn how live evaluations run and where results are stored, and [Custom scorers](https://mastra.ai/docs/evals/custom-scorers) to build your own.
235
+
196
236
  ## Related
197
237
 
198
238
  - [Workflow state](https://mastra.ai/docs/workflows/workflow-state)
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @mastra/mcp-docs-server
2
2
 
3
+ ## 1.2.15-alpha.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`cdd5c33`](https://github.com/mastra-ai/mastra/commit/cdd5c33ac6c7118a9f139e6dc0e14e6a8ae31658), [`d7cf7fa`](https://github.com/mastra-ai/mastra/commit/d7cf7fafc1ae1b50bd8462dd0e6c671a8606db93), [`0f9a448`](https://github.com/mastra-ai/mastra/commit/0f9a448502157e59f7b76f24360ad497168f5ef8), [`289f4ce`](https://github.com/mastra-ai/mastra/commit/289f4ce16e3293370440172132c52ee787cbc09f), [`4f16ff8`](https://github.com/mastra-ai/mastra/commit/4f16ff824bf2f9b0ddc93f210477c10c8a4fb1ab), [`1c67d85`](https://github.com/mastra-ai/mastra/commit/1c67d85e9da8285662f4dbbf47e0378c3fee0747), [`ba24be6`](https://github.com/mastra-ai/mastra/commit/ba24be662439c331ab23a600041f93803c89eca8), [`842b5fe`](https://github.com/mastra-ai/mastra/commit/842b5fe22b6a7fa811bd14e48eb9af523ac989f2), [`80bdf3a`](https://github.com/mastra-ai/mastra/commit/80bdf3ae16ade6ff63bde0cb16fa2df8ab7dd4dd), [`9ba1247`](https://github.com/mastra-ai/mastra/commit/9ba12470c77f1c03642d720ce67e517e878f666e), [`fd96298`](https://github.com/mastra-ai/mastra/commit/fd96298a8367622f4ebfcaa97b5b6c1fbbd14564), [`6a84954`](https://github.com/mastra-ai/mastra/commit/6a84954a2667f85b6d59da652dab1bbff007ccb0), [`52d8ef0`](https://github.com/mastra-ai/mastra/commit/52d8ef03801f1deb7ee48532fc4190dd4a33916c), [`cdd5c33`](https://github.com/mastra-ai/mastra/commit/cdd5c33ac6c7118a9f139e6dc0e14e6a8ae31658), [`289f4ce`](https://github.com/mastra-ai/mastra/commit/289f4ce16e3293370440172132c52ee787cbc09f), [`efd5c81`](https://github.com/mastra-ai/mastra/commit/efd5c81cc25fde3c2ddd86fc1178deb4ec176e19), [`0976933`](https://github.com/mastra-ai/mastra/commit/0976933142333ec78451feef265b68bcb45aa5e7), [`242b945`](https://github.com/mastra-ai/mastra/commit/242b94558777bfbdeb42cbfea84afff0b6ad0633), [`fea5cae`](https://github.com/mastra-ai/mastra/commit/fea5caedc7e2cfea51784a15e015952692027abf), [`4b59f78`](https://github.com/mastra-ai/mastra/commit/4b59f786cbc9a7d1ef07a07517dbd4b96865e99d), [`9ba1247`](https://github.com/mastra-ai/mastra/commit/9ba12470c77f1c03642d720ce67e517e878f666e), [`7010c5d`](https://github.com/mastra-ai/mastra/commit/7010c5d15728bf9c5dfe4fb6b1bf80ce23bf143a)]:
8
+ - @mastra/core@1.58.0-alpha.3
9
+ - @mastra/mcp@1.16.0-alpha.1
10
+
11
+ ## 1.2.15-alpha.4
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [[`b4c89b4`](https://github.com/mastra-ai/mastra/commit/b4c89b4371b0c86da57403ad1a3b3ef0681f3128), [`e44e8f3`](https://github.com/mastra-ai/mastra/commit/e44e8f370b66c339ddcaba946d33da6d3c3f06cd), [`c967a5e`](https://github.com/mastra-ai/mastra/commit/c967a5eec150c5dc5418c4a4388982d1fb7ad27c), [`f53d5bd`](https://github.com/mastra-ai/mastra/commit/f53d5bd4885b29e4ac29a428a6044088ea8d6aa3), [`bda2235`](https://github.com/mastra-ai/mastra/commit/bda22353ee28f2df0eaea555f7cae1549f979c0b), [`a7eb4a1`](https://github.com/mastra-ai/mastra/commit/a7eb4a11450f6170274ed5141bffe821d4fdd5a6), [`2f9ef3f`](https://github.com/mastra-ai/mastra/commit/2f9ef3f4ca06fc2dcdd5088c26b7f4da6a016791), [`e7eefcb`](https://github.com/mastra-ai/mastra/commit/e7eefcb162cda7c493e8c3bf43050ead0efbcb2c), [`4d7aca2`](https://github.com/mastra-ai/mastra/commit/4d7aca2fe75f225c83d1502d63079568e6ec163f), [`c4ec889`](https://github.com/mastra-ai/mastra/commit/c4ec889561c0264c43f66d04d587bee4ce35e792), [`9be8878`](https://github.com/mastra-ai/mastra/commit/9be8878dcf0388e84fc4873e0eec27bd49b881a4)]:
16
+ - @mastra/core@1.58.0-alpha.2
17
+
3
18
  ## 1.2.15-alpha.2
4
19
 
5
20
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/mcp-docs-server",
3
- "version": "1.2.15-alpha.3",
3
+ "version": "1.2.15-alpha.6",
4
4
  "description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -28,8 +28,8 @@
28
28
  "jsdom": "^26.1.0",
29
29
  "local-pkg": "^1.1.2",
30
30
  "zod": "^4.4.3",
31
- "@mastra/mcp": "^1.16.0-alpha.0",
32
- "@mastra/core": "1.58.0-alpha.1"
31
+ "@mastra/mcp": "^1.16.0-alpha.1",
32
+ "@mastra/core": "1.58.0-alpha.3"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@hono/node-server": "^2.0.0",
@@ -45,9 +45,9 @@
45
45
  "tsx": "^4.23.1",
46
46
  "typescript": "^6.0.3",
47
47
  "vitest": "4.1.10",
48
- "@internal/types-builder": "0.0.96",
49
48
  "@internal/lint": "0.0.121",
50
- "@mastra/core": "1.58.0-alpha.1"
49
+ "@mastra/core": "1.58.0-alpha.3",
50
+ "@internal/types-builder": "0.0.96"
51
51
  },
52
52
  "homepage": "https://mastra.ai",
53
53
  "repository": {