@mastra/mcp-docs-server 1.1.39-alpha.8 → 1.1.39

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 (35) hide show
  1. package/.docs/docs/agents/acp.md +238 -0
  2. package/.docs/docs/agents/agent-approval.md +2 -0
  3. package/.docs/docs/agents/background-tasks.md +9 -6
  4. package/.docs/docs/agents/response-caching.md +2 -0
  5. package/.docs/docs/agents/signals.md +29 -3
  6. package/.docs/docs/evals/evals-with-memory.md +146 -0
  7. package/.docs/docs/evals/running-in-ci.md +1 -0
  8. package/.docs/docs/memory/multi-user-threads.md +206 -0
  9. package/.docs/docs/memory/observational-memory.md +53 -17
  10. package/.docs/docs/memory/overview.md +1 -0
  11. package/.docs/docs/memory/working-memory.md +1 -1
  12. package/.docs/models/gateways/netlify.md +2 -1
  13. package/.docs/models/gateways/openrouter.md +2 -1
  14. package/.docs/models/index.md +1 -1
  15. package/.docs/models/providers/deepinfra.md +2 -2
  16. package/.docs/models/providers/fireworks-ai.md +23 -22
  17. package/.docs/models/providers/google.md +29 -46
  18. package/.docs/models/providers/llmgateway.md +186 -191
  19. package/.docs/models/providers/opencode.md +1 -1
  20. package/.docs/models/providers/orcarouter.md +2 -2
  21. package/.docs/models/providers/poe.md +2 -1
  22. package/.docs/models/providers/routing-run.md +27 -40
  23. package/.docs/models/providers/the-grid-ai.md +15 -9
  24. package/.docs/models/providers/xai.md +2 -1
  25. package/.docs/reference/agents/agent.md +13 -5
  26. package/.docs/reference/agents/channels.md +4 -2
  27. package/.docs/reference/client-js/agents.md +1 -1
  28. package/.docs/reference/configuration.md +1 -1
  29. package/.docs/reference/memory/observational-memory.md +5 -3
  30. package/.docs/reference/server/register-api-route.md +1 -1
  31. package/.docs/reference/storage/convex.md +74 -12
  32. package/.docs/reference/tools/mcp-client.md +27 -2
  33. package/.docs/reference/vectors/convex.md +129 -7
  34. package/CHANGELOG.md +66 -0
  35. package/package.json +6 -6
@@ -1,6 +1,10 @@
1
1
  # Convex vector store
2
2
 
3
- The ConvexVector class provides vector storage and similarity search using [Convex](https://convex.dev). It stores embeddings inside Convex and performs cosine similarity search.
3
+ The `ConvexVector` class provides vector storage and similarity search using [Convex](https://convex.dev). It stores embeddings inside Convex and performs cosine similarity search in the Mastra adapter.
4
+
5
+ > **Development-scale search:** `ConvexVector` reads matching vectors through the Mastra storage handler, filters in JavaScript, computes cosine similarity, sorts results, and returns the top matches. Use it for local development, tests, and small datasets.
6
+ >
7
+ > For production vector search on Convex, use `ConvexNativeVector`. It uses the Convex native `vectorSearch` API, which requires a deployed Convex vector index and a Convex action.
4
8
 
5
9
  ## Installation
6
10
 
@@ -42,7 +46,7 @@ Before using `ConvexVector`, you need to set up the Convex schema and storage ha
42
46
 
43
47
  ## Constructor examples
44
48
 
45
- ### Basic Configuration
49
+ ### Basic configuration
46
50
 
47
51
  ```ts
48
52
  import { ConvexVector } from '@mastra/convex'
@@ -54,7 +58,115 @@ const vectorStore = new ConvexVector({
54
58
  })
55
59
  ```
56
60
 
57
- ### Custom Storage Function
61
+ ### Native Convex vector search
62
+
63
+ Use `ConvexNativeVector` for production vector workloads. It stores vectors in a dedicated Convex table and queries a schema-defined Convex vector index.
64
+
65
+ In `convex/schema.ts`, define a dedicated table for each Mastra vector index:
66
+
67
+ ```typescript
68
+ import { defineSchema } from 'convex/server'
69
+ import { defineMastraNativeVectorTable } from '@mastra/convex/schema'
70
+
71
+ export default defineSchema({
72
+ docs_vectors: defineMastraNativeVectorTable({
73
+ dimensions: 1536,
74
+ }),
75
+ })
76
+ ```
77
+
78
+ In `convex/mastra/nativeVector.ts`, export the native vector handlers:
79
+
80
+ ```typescript
81
+ import {
82
+ mastraNativeVectorAction,
83
+ mastraNativeVectorMutation,
84
+ mastraNativeVectorQuery,
85
+ } from '@mastra/convex/server'
86
+
87
+ export const query = mastraNativeVectorAction
88
+ export const read = mastraNativeVectorQuery
89
+ export const write = mastraNativeVectorMutation
90
+ ```
91
+
92
+ In your Mastra app, configure `ConvexNativeVector` with the deployed table and vector index:
93
+
94
+ ```typescript
95
+ import { ConvexNativeVector } from '@mastra/convex'
96
+
97
+ const vectorStore = new ConvexNativeVector({
98
+ id: 'convex-native-vectors',
99
+ deploymentUrl: process.env.CONVEX_URL!,
100
+ adminAuthToken: process.env.CONVEX_ADMIN_KEY!,
101
+ indexes: {
102
+ docs: {
103
+ tableName: 'docs_vectors',
104
+ vectorIndexName: 'by_embedding',
105
+ dimension: 1536,
106
+ },
107
+ },
108
+ })
109
+
110
+ const results = await vectorStore.query({
111
+ indexName: 'docs',
112
+ queryVector: embedding,
113
+ topK: 10,
114
+ })
115
+ ```
116
+
117
+ For native filter support, declare filter fields in your Convex schema. The native vector handlers copy matching metadata fields to top-level document fields when vectors are written.
118
+
119
+ ```typescript
120
+ import { defineSchema, defineTable } from 'convex/server'
121
+ import { v } from 'convex/values'
122
+
123
+ export default defineSchema({
124
+ docs_vectors: defineTable({
125
+ id: v.string(),
126
+ embedding: v.array(v.float64()),
127
+ metadata: v.optional(v.any()),
128
+ tenantId: v.string(),
129
+ })
130
+ .index('by_record_id', ['id'])
131
+ .vectorIndex('by_embedding', {
132
+ vectorField: 'embedding',
133
+ dimensions: 1536,
134
+ filterFields: ['tenantId'],
135
+ }),
136
+ })
137
+ ```
138
+
139
+ ```typescript
140
+ const vectorStore = new ConvexNativeVector({
141
+ id: 'convex-native-vectors',
142
+ deploymentUrl: process.env.CONVEX_URL!,
143
+ adminAuthToken: process.env.CONVEX_ADMIN_KEY!,
144
+ indexes: {
145
+ docs: {
146
+ tableName: 'docs_vectors',
147
+ dimension: 1536,
148
+ filterFields: ['tenantId'],
149
+ },
150
+ },
151
+ })
152
+
153
+ await vectorStore.upsert({
154
+ indexName: 'docs',
155
+ ids: ['chunk-1'],
156
+ vectors: [embedding],
157
+ metadata: [{ tenantId: 'acme', text: 'Account setup guide' }],
158
+ })
159
+
160
+ const results = await vectorStore.query({
161
+ indexName: 'docs',
162
+ queryVector: embedding,
163
+ filter: { tenantId: 'acme' },
164
+ })
165
+ ```
166
+
167
+ `ConvexNativeVector` supports Convex native vector filter shapes: one equality field, or `$or` of equality fields. It doesn't support metadata-only queries, filter-based updates, or filter-based deletes. Use vector IDs for updates and deletes.
168
+
169
+ ### Custom storage function
58
170
 
59
171
  ```ts
60
172
  const vectorStore = new ConvexVector({
@@ -237,7 +349,7 @@ interface QueryResult {
237
349
 
238
350
  ## Metadata filtering
239
351
 
240
- ConvexVector supports metadata filtering with various operators:
352
+ `ConvexVector` supports metadata filtering with various operators. These filters are applied by the adapter after vectors are loaded from Convex.
241
353
 
242
354
  ```typescript
243
355
  // Simple equality
@@ -267,7 +379,7 @@ const results = await vectorStore.query({
267
379
  })
268
380
  ```
269
381
 
270
- ### Supported Filter Operators
382
+ ### Supported filter operators
271
383
 
272
384
  | Operator | Description |
273
385
  | -------- | --------------------- |
@@ -284,14 +396,24 @@ const results = await vectorStore.query({
284
396
 
285
397
  ## Architecture
286
398
 
287
- ConvexVector stores vectors in the `mastra_vectors` table with the following structure:
399
+ `ConvexVector` stores vectors in the `mastra_vectors` table with the following structure:
288
400
 
289
401
  - `id`: Unique vector identifier
290
402
  - `indexName`: Name of the index
291
403
  - `embedding`: The vector data (array of floats)
292
404
  - `metadata`: Optional JSON metadata
293
405
 
294
- Vector similarity search is performed using cosine similarity, computed in the Convex function.
406
+ Vector similarity search is performed with cosine similarity in the Mastra adapter. This keeps setup flexible, but it's not designed for large production vector collections.
407
+
408
+ `ConvexNativeVector` stores each Mastra vector index in a dedicated Convex table. Its queries call a Convex action that uses `ctx.vectorSearch`, then load the matched documents through a Convex query. This follows the Convex native vector search model:
409
+
410
+ - Vector indexes are declared in `convex/schema.ts`.
411
+ - Vector search runs from a Convex action.
412
+ - `topK` must be between `1` and `256`.
413
+ - Filters must target fields listed in the Convex vector index `filterFields`.
414
+ - Use one dedicated table per Mastra vector index to avoid cross-index results.
415
+
416
+ Use an external vector database when you need dynamic index creation at runtime, metadata-only queries, complex filter operators, filter-based bulk updates or deletes, or result limits above Convex's native vector search cap.
295
417
 
296
418
  ## Related
297
419
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,71 @@
1
1
  # @mastra/mcp-docs-server
2
2
 
3
+ ## 1.1.39
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`452036a`](https://github.com/mastra-ai/mastra/commit/452036a0d965b4f4c1efd93606e4f03b50b807a5), [`c272d50`](https://github.com/mastra-ai/mastra/commit/c272d50610a54496b6b6d92ccd4d37b333a2613a), [`27fd1b7`](https://github.com/mastra-ai/mastra/commit/27fd1b79ac62eb7694f92587eb7d1be05b59be01), [`5ba7253`](https://github.com/mastra-ai/mastra/commit/5ba7253745c85e8df8012a76d954c640ffa336f7), [`5556cc1`](https://github.com/mastra-ai/mastra/commit/5556cc1befec71518d84f826b3bfe3a079a9daf7), [`f73980d`](https://github.com/mastra-ai/mastra/commit/f73980d651eb5f7f1ab20582de4615a1b6f10fce), [`5499303`](https://github.com/mastra-ai/mastra/commit/54993032c1ebc09642625b78d2014e0cf84a3cae), [`a702009`](https://github.com/mastra-ai/mastra/commit/a702009d3cfaa745120f501e21c783ed4d6a3072), [`46cbb7e`](https://github.com/mastra-ai/mastra/commit/46cbb7e84a0fadcf8c26ddfad38278732c22143e), [`9430352`](https://github.com/mastra-ai/mastra/commit/94303523460cb09dcd0d8139c11926029631d6ba), [`9aee493`](https://github.com/mastra-ai/mastra/commit/9aee493ed6089b5133472623dcce49934bf2d509), [`d8692af`](https://github.com/mastra-ai/mastra/commit/d8692afa253028e39cdce2aafa0ac414071a762e), [`1a9cc60`](https://github.com/mastra-ai/mastra/commit/1a9cc6069f9910fc3d59e4953ac8cd95d89ad6f5), [`8cdb86c`](https://github.com/mastra-ai/mastra/commit/8cdb86ceed1137bc2768e147dce85a0692b9fb26), [`8534d79`](https://github.com/mastra-ai/mastra/commit/8534d791fa1cb70fe1c19e2604c4b63cc10dd051), [`eda90c5`](https://github.com/mastra-ai/mastra/commit/eda90c5bfd7de11805ecc9f4552716c895fbaf78), [`a935b0a`](https://github.com/mastra-ai/mastra/commit/a935b0a0977ae3f196b33ec7621f528069c82db0), [`9c88701`](https://github.com/mastra-ai/mastra/commit/9c8870195b41a38dc40b6ba2aa55eda04df8fa69), [`c78f8cd`](https://github.com/mastra-ai/mastra/commit/c78f8cd6222a86e6c60ae5210b6929ad5221b6fb), [`e146aad`](https://github.com/mastra-ai/mastra/commit/e146aadbba66c410ba0e74bac4c50135495cb8dd), [`4bd4e8e`](https://github.com/mastra-ai/mastra/commit/4bd4e8e042f6687559f49a560a7914cee9b85447), [`ac79462`](https://github.com/mastra-ai/mastra/commit/ac79462b98f1062394c45093aa515b0766f27ee2), [`1a0ec78`](https://github.com/mastra-ai/mastra/commit/1a0ec789a26cae443744e9abbd62ed6ee676af39), [`e47bca7`](https://github.com/mastra-ai/mastra/commit/e47bca7b72866d3abd173b9f530ac4318113a8ff), [`afc004f`](https://github.com/mastra-ai/mastra/commit/afc004f5cc7e30697809e7021820b9f5881e6719), [`0031d0f`](https://github.com/mastra-ai/mastra/commit/0031d0f13831d7843ac5d498734a7d92862e2ce3), [`841a222`](https://github.com/mastra-ai/mastra/commit/841a222560d8c19238f8213713f30535cdd82284), [`64c1e0b`](https://github.com/mastra-ai/mastra/commit/64c1e0b35165c96b659818bd0177aa18794ef11f), [`40d83a9`](https://github.com/mastra-ai/mastra/commit/40d83a90d9be31a1b83e04649edb703eb7753e33), [`4e88dc6`](https://github.com/mastra-ai/mastra/commit/4e88dc6b89f154c0eae37221c8126be0c23c569f), [`19018f0`](https://github.com/mastra-ai/mastra/commit/19018f05722af74a5978781a7731a654b26f7f2a), [`19281c7`](https://github.com/mastra-ai/mastra/commit/19281c70424f757219782de16c2699743c5e04d0), [`3498b49`](https://github.com/mastra-ai/mastra/commit/3498b4946be94f4313cd817733589680dcda5278), [`d52b6fe`](https://github.com/mastra-ai/mastra/commit/d52b6fe1c56853eb38864baae0bbfa75cc739ccb), [`408be73`](https://github.com/mastra-ai/mastra/commit/408be73449dfab92b51eab8c6623b6c443debc25), [`359439b`](https://github.com/mastra-ai/mastra/commit/359439bb8c635e048176306828195f8297f50021), [`71a820b`](https://github.com/mastra-ai/mastra/commit/71a820b2353fa1406772c50760a3732058a8b337), [`1698f5e`](https://github.com/mastra-ai/mastra/commit/1698f5ec141d34f22a873efdb145ce3cdf848a5e)]:
8
+ - @mastra/core@1.36.0
9
+ - @mastra/mcp@1.8.0
10
+
11
+ ## 1.1.39-alpha.19
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [[`27fd1b7`](https://github.com/mastra-ai/mastra/commit/27fd1b79ac62eb7694f92587eb7d1be05b59be01), [`a702009`](https://github.com/mastra-ai/mastra/commit/a702009d3cfaa745120f501e21c783ed4d6a3072), [`46cbb7e`](https://github.com/mastra-ai/mastra/commit/46cbb7e84a0fadcf8c26ddfad38278732c22143e), [`8534d79`](https://github.com/mastra-ai/mastra/commit/8534d791fa1cb70fe1c19e2604c4b63cc10dd051), [`c78f8cd`](https://github.com/mastra-ai/mastra/commit/c78f8cd6222a86e6c60ae5210b6929ad5221b6fb), [`e146aad`](https://github.com/mastra-ai/mastra/commit/e146aadbba66c410ba0e74bac4c50135495cb8dd), [`1a0ec78`](https://github.com/mastra-ai/mastra/commit/1a0ec789a26cae443744e9abbd62ed6ee676af39), [`d52b6fe`](https://github.com/mastra-ai/mastra/commit/d52b6fe1c56853eb38864baae0bbfa75cc739ccb)]:
16
+ - @mastra/core@1.36.0-alpha.10
17
+ - @mastra/mcp@1.8.0-alpha.2
18
+
19
+ ## 1.1.39-alpha.17
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [[`1698f5e`](https://github.com/mastra-ai/mastra/commit/1698f5ec141d34f22a873efdb145ce3cdf848a5e)]:
24
+ - @mastra/core@1.36.0-alpha.9
25
+
26
+ ## 1.1.39-alpha.16
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies [[`9aee493`](https://github.com/mastra-ai/mastra/commit/9aee493ed6089b5133472623dcce49934bf2d509)]:
31
+ - @mastra/core@1.36.0-alpha.8
32
+
33
+ ## 1.1.39-alpha.14
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies [[`a935b0a`](https://github.com/mastra-ai/mastra/commit/a935b0a0977ae3f196b33ec7621f528069c82db0)]:
38
+ - @mastra/core@1.36.0-alpha.7
39
+
40
+ ## 1.1.39-alpha.13
41
+
42
+ ### Patch Changes
43
+
44
+ - Updated dependencies [[`71a820b`](https://github.com/mastra-ai/mastra/commit/71a820b2353fa1406772c50760a3732058a8b337)]:
45
+ - @mastra/core@1.36.0-alpha.6
46
+
47
+ ## 1.1.39-alpha.12
48
+
49
+ ### Patch Changes
50
+
51
+ - Updated dependencies [[`ac79462`](https://github.com/mastra-ai/mastra/commit/ac79462b98f1062394c45093aa515b0766f27ee2), [`19281c7`](https://github.com/mastra-ai/mastra/commit/19281c70424f757219782de16c2699743c5e04d0)]:
52
+ - @mastra/core@1.36.0-alpha.5
53
+
54
+ ## 1.1.39-alpha.11
55
+
56
+ ### Patch Changes
57
+
58
+ - Updated dependencies [[`c272d50`](https://github.com/mastra-ai/mastra/commit/c272d50610a54496b6b6d92ccd4d37b333a2613a), [`d8692af`](https://github.com/mastra-ai/mastra/commit/d8692afa253028e39cdce2aafa0ac414071a762e), [`4bd4e8e`](https://github.com/mastra-ai/mastra/commit/4bd4e8e042f6687559f49a560a7914cee9b85447), [`841a222`](https://github.com/mastra-ai/mastra/commit/841a222560d8c19238f8213713f30535cdd82284)]:
59
+ - @mastra/core@1.36.0-alpha.4
60
+ - @mastra/mcp@1.8.0-alpha.1
61
+
62
+ ## 1.1.39-alpha.9
63
+
64
+ ### Patch Changes
65
+
66
+ - Updated dependencies [[`5556cc1`](https://github.com/mastra-ai/mastra/commit/5556cc1befec71518d84f826b3bfe3a079a9daf7), [`5499303`](https://github.com/mastra-ai/mastra/commit/54993032c1ebc09642625b78d2014e0cf84a3cae), [`e47bca7`](https://github.com/mastra-ai/mastra/commit/e47bca7b72866d3abd173b9f530ac4318113a8ff), [`0031d0f`](https://github.com/mastra-ai/mastra/commit/0031d0f13831d7843ac5d498734a7d92862e2ce3), [`3498b49`](https://github.com/mastra-ai/mastra/commit/3498b4946be94f4313cd817733589680dcda5278), [`359439b`](https://github.com/mastra-ai/mastra/commit/359439bb8c635e048176306828195f8297f50021)]:
67
+ - @mastra/core@1.36.0-alpha.3
68
+
3
69
  ## 1.1.39-alpha.7
4
70
 
5
71
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/mcp-docs-server",
3
- "version": "1.1.39-alpha.8",
3
+ "version": "1.1.39",
4
4
  "description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -29,8 +29,8 @@
29
29
  "jsdom": "^26.1.0",
30
30
  "local-pkg": "^1.1.2",
31
31
  "zod": "^4.3.6",
32
- "@mastra/core": "1.36.0-alpha.2",
33
- "@mastra/mcp": "^1.7.1-alpha.0"
32
+ "@mastra/core": "1.36.0",
33
+ "@mastra/mcp": "^1.8.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@hono/node-server": "^1.19.11",
@@ -46,9 +46,9 @@
46
46
  "tsx": "^4.21.0",
47
47
  "typescript": "^6.0.3",
48
48
  "vitest": "4.1.5",
49
- "@internal/types-builder": "0.0.71",
50
- "@internal/lint": "0.0.96",
51
- "@mastra/core": "1.36.0-alpha.2"
49
+ "@internal/lint": "0.0.97",
50
+ "@internal/types-builder": "0.0.72",
51
+ "@mastra/core": "1.36.0"
52
52
  },
53
53
  "homepage": "https://mastra.ai",
54
54
  "repository": {