@mastra/mcp-docs-server 1.2.24-alpha.7 → 1.2.24
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.
- package/.docs/docs/agents/processors.md +1 -0
- package/.docs/docs/evals/datasets.md +13 -3
- package/.docs/docs/evals/experiments.md +8 -0
- package/.docs/docs/guides/agent-lifecycle.md +161 -0
- package/.docs/docs/harness/durable-agents.md +11 -0
- package/.docs/docs/index.md +7 -7
- package/.docs/docs/server/middleware.md +17 -7
- package/.docs/docs/server/request-context.md +7 -5
- package/.docs/docs/workflows/control-flow.md +0 -8
- package/.docs/integrations/browsers/browser-viewer.md +10 -2
- package/.docs/integrations/databases/clickhouse.md +6 -0
- package/.docs/integrations/deploy/kubernetes-helm.md +13 -2
- package/.docs/integrations/frameworks/tanstack-start.md +3 -3
- package/.docs/integrations/observability/langfuse.md +3 -0
- package/.docs/integrations/tools/parallel.md +2 -2
- package/.docs/models/gateways/merge-gateway.md +2 -1
- package/.docs/models/gateways/neon.md +5 -1
- package/.docs/models/gateways/netlify.md +3 -3
- package/.docs/models/gateways/openrouter.md +8 -9
- package/.docs/models/gateways/vercel.md +9 -5
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/302ai.md +52 -33
- package/.docs/models/providers/anthropic.md +1 -31
- package/.docs/models/providers/cerebras.md +6 -36
- package/.docs/models/providers/cline-pass.md +2 -1
- package/.docs/models/providers/cortecs.md +2 -5
- package/.docs/models/providers/crof.md +27 -26
- package/.docs/models/providers/crossmodel.md +2 -2
- package/.docs/models/providers/crusoe.md +7 -4
- package/.docs/models/providers/deepinfra.md +2 -33
- package/.docs/models/providers/digitalocean.md +2 -1
- package/.docs/models/providers/edenai.md +12 -9
- package/.docs/models/providers/fireworks-ai.md +3 -1
- package/.docs/models/providers/freemodel.md +0 -28
- package/.docs/models/providers/google.md +1 -31
- package/.docs/models/providers/groq.md +1 -31
- package/.docs/models/providers/hyper.md +6 -5
- package/.docs/models/providers/kilo.md +18 -18
- package/.docs/models/providers/kimi-for-coding.md +0 -28
- package/.docs/models/providers/llmgateway-providers.md +10 -5
- package/.docs/models/providers/llmgateway.md +6 -4
- package/.docs/models/providers/meta.md +0 -28
- package/.docs/models/providers/minimax-cn-coding-plan.md +0 -28
- package/.docs/models/providers/minimax-cn.md +0 -28
- package/.docs/models/providers/minimax-coding-plan.md +0 -28
- package/.docs/models/providers/minimax.md +1 -31
- package/.docs/models/providers/mistral.md +1 -31
- package/.docs/models/providers/moonshotai-cn.md +4 -10
- package/.docs/models/providers/moonshotai.md +4 -10
- package/.docs/models/providers/nano-gpt.md +15 -17
- package/.docs/models/providers/neosmith.md +0 -28
- package/.docs/models/providers/ofox.md +2 -1
- package/.docs/models/providers/openai.md +3 -32
- package/.docs/models/providers/opencode.md +6 -1
- package/.docs/models/providers/orcarouter.md +2 -2
- package/.docs/models/providers/perplexity-agent.md +0 -28
- package/.docs/models/providers/perplexity.md +1 -31
- package/.docs/models/providers/privatemode-ai.md +3 -1
- package/.docs/models/providers/requesty.md +9 -8
- package/.docs/models/providers/sensenova.md +3 -1
- package/.docs/models/providers/subconscious.md +0 -28
- package/.docs/models/providers/thinkingmachines.md +0 -28
- package/.docs/models/providers/togetherai.md +1 -31
- package/.docs/models/providers/vivgrid.md +9 -32
- package/.docs/models/providers/wandb.md +3 -2
- package/.docs/models/providers/xai.md +4 -34
- package/.docs/reference/agent-controller/session.md +2 -0
- package/.docs/reference/agents/durable-agent.md +7 -1
- package/.docs/reference/build-with-ai.md +8 -24
- package/.docs/reference/cli/mastra.md +30 -0
- package/.docs/reference/client-js/datasets.md +56 -1
- package/.docs/reference/client-js/mastra-client.md +3 -1
- package/.docs/reference/client-js/observability.md +14 -0
- package/.docs/reference/datasets/dataset.md +1 -0
- package/.docs/reference/datasets/datasets-manager.md +14 -0
- package/.docs/reference/datasets/deleteExperiment.md +47 -9
- package/.docs/reference/datasets/purgeItem.md +41 -0
- package/.docs/reference/editor/versioning.md +1 -1
- package/.docs/reference/index.md +1 -0
- package/.docs/reference/observability/tracing/interfaces.md +16 -0
- package/.docs/reference/processors/processor-interface.md +21 -83
- package/.docs/reference/server/routes.md +44 -19
- package/.docs/reference/tools/graph-rag-tool.md +3 -1
- package/.docs/reference/tools/vector-query-tool.md +4 -2
- package/package.json +6 -6
|
@@ -61,7 +61,7 @@ const graphTool = createGraphRAGTool({
|
|
|
61
61
|
|
|
62
62
|
The tool returns an object with:
|
|
63
63
|
|
|
64
|
-
**relevantContext** (`string`):
|
|
64
|
+
**relevantContext** (`string[]`): Array of chunk text strings for the most relevant document chunks, in rank order, retrieved using graph-based ranking. Text is read from the text field of each chunk's metadata.
|
|
65
65
|
|
|
66
66
|
**sources** (`QueryResult[]`): Array of full retrieval result objects. Each object contains all information needed to reference the original document, chunk, and similarity score.
|
|
67
67
|
|
|
@@ -77,6 +77,8 @@ The tool returns an object with:
|
|
|
77
77
|
}
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
+
The graph is built from the `text` field of each result's metadata, so `document` (and `relevantContext`) contain that text. Store the chunk text under `metadata.text` when upserting.
|
|
81
|
+
|
|
80
82
|
## Default tool description
|
|
81
83
|
|
|
82
84
|
The default description focuses on:
|
|
@@ -79,7 +79,7 @@ const queryTool = createVectorQueryTool({
|
|
|
79
79
|
|
|
80
80
|
The tool returns an object with:
|
|
81
81
|
|
|
82
|
-
**relevantContext** (`
|
|
82
|
+
**relevantContext** (`any[]`): Array of metadata objects for the most relevant chunks, in rank order (one entry per result). The chunk text is available at relevantContext\[i].text when it was stored in metadata during ingestion.
|
|
83
83
|
|
|
84
84
|
**sources** (`QueryResult[]`): Array of full retrieval result objects. Each object contains all information needed to reference the original document, chunk, and similarity score.
|
|
85
85
|
|
|
@@ -95,6 +95,8 @@ The tool returns an object with:
|
|
|
95
95
|
}
|
|
96
96
|
```
|
|
97
97
|
|
|
98
|
+
`document` is only populated by vector stores whose `query()` returns document content, such as Chroma, Elasticsearch, LanceDB, and MongoDB. For other stores, such as PgVector, it's an empty string. Read the chunk text from `sources[i].metadata.text` (or whichever metadata key you stored it under).
|
|
99
|
+
|
|
98
100
|
## Default tool description
|
|
99
101
|
|
|
100
102
|
The default description focuses on:
|
|
@@ -489,7 +491,7 @@ The tool is created with:
|
|
|
489
491
|
|
|
490
492
|
- **ID**: `VectorQuery {vectorStoreName} {indexName} Tool`
|
|
491
493
|
- **Input Schema**: Requires queryText and filter objects
|
|
492
|
-
- **Output Schema**: Returns relevantContext
|
|
494
|
+
- **Output Schema**: Returns `relevantContext` (array of chunk metadata) and `sources` (array of `QueryResult`)
|
|
493
495
|
|
|
494
496
|
## Related
|
|
495
497
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "1.2.24
|
|
3
|
+
"version": "1.2.24",
|
|
4
4
|
"description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"jsdom": "^26.1.0",
|
|
28
28
|
"local-pkg": "^1.1.2",
|
|
29
29
|
"zod": "^4.4.3",
|
|
30
|
-
"@mastra/
|
|
31
|
-
"@mastra/
|
|
30
|
+
"@mastra/core": "1.65.0",
|
|
31
|
+
"@mastra/mcp": "^1.17.3"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@hono/node-server": "^2.0.0",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"tsx": "^4.23.1",
|
|
45
45
|
"typescript": "^7.0.2",
|
|
46
46
|
"vitest": "4.1.10",
|
|
47
|
-
"@internal/
|
|
48
|
-
"@mastra/core": "1.65.0
|
|
49
|
-
"@internal/
|
|
47
|
+
"@internal/lint": "0.0.131",
|
|
48
|
+
"@mastra/core": "1.65.0",
|
|
49
|
+
"@internal/types-builder": "0.0.106"
|
|
50
50
|
},
|
|
51
51
|
"homepage": "https://mastra.ai",
|
|
52
52
|
"repository": {
|