@mastra/mcp-docs-server 1.0.0-beta.25 → 1.0.0-beta.26

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/organized/changelogs/%40internal%2Fplayground.md +10 -0
  2. package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +59 -59
  3. package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +10 -10
  4. package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +34 -34
  5. package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +34 -34
  6. package/.docs/organized/changelogs/%40mastra%2Fcodemod.md +6 -0
  7. package/.docs/organized/changelogs/%40mastra%2Fconvex.md +42 -42
  8. package/.docs/organized/changelogs/%40mastra%2Fcore.md +35 -35
  9. package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloud.md +9 -9
  10. package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +9 -9
  11. package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +34 -34
  12. package/.docs/organized/changelogs/%40mastra%2Flance.md +34 -34
  13. package/.docs/organized/changelogs/%40mastra%2Flibsql.md +59 -59
  14. package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +8 -8
  15. package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +59 -59
  16. package/.docs/organized/changelogs/%40mastra%2Fmssql.md +59 -59
  17. package/.docs/organized/changelogs/%40mastra%2Fpg.md +59 -59
  18. package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +13 -13
  19. package/.docs/organized/changelogs/%40mastra%2Freact.md +11 -11
  20. package/.docs/organized/changelogs/%40mastra%2Fserver.md +10 -10
  21. package/.docs/organized/changelogs/%40mastra%2Fupstash.md +34 -34
  22. package/.docs/organized/changelogs/create-mastra.md +3 -3
  23. package/.docs/organized/changelogs/mastra.md +25 -25
  24. package/.docs/raw/guides/migrations/upgrade-to-v1/cli.mdx +15 -1
  25. package/.docs/raw/guides/migrations/upgrade-to-v1/storage.mdx +88 -4
  26. package/.docs/raw/memory/storage.mdx +3 -3
  27. package/.docs/raw/reference/cli/mastra.mdx +20 -4
  28. package/.docs/raw/reference/configuration.mdx +1 -1
  29. package/.docs/raw/reference/core/getStorage.mdx +1 -1
  30. package/.docs/raw/reference/core/mastra-class.mdx +1 -1
  31. package/.docs/raw/reference/core/setStorage.mdx +2 -2
  32. package/.docs/raw/reference/memory/memory-class.mdx +1 -1
  33. package/.docs/raw/reference/storage/composite.mdx +16 -16
  34. package/CHANGELOG.md +7 -0
  35. package/package.json +3 -3
@@ -40,7 +40,7 @@ export const agent = new Agent({
40
40
  content={[
41
41
  {
42
42
  name: "storage",
43
- type: "MastraStorage",
43
+ type: "MastraCompositeStore",
44
44
  description:
45
45
  'Storage implementation for persisting memory data. Defaults to `new DefaultStorage({ config: { url: "file:memory.db" } })` if not provided.',
46
46
  isOptional: true,
@@ -10,11 +10,11 @@ packages:
10
10
 
11
11
  # Composite Storage
12
12
 
13
- `MastraStorage` can compose storage domains from different providers. Use it when you need different databases for different purposes. For example, use LibSQL for memory and PostgreSQL for workflows.
13
+ `MastraCompositeStore` can compose storage domains from different providers. Use it when you need different databases for different purposes. For example, use LibSQL for memory and PostgreSQL for workflows.
14
14
 
15
15
  ## Installation
16
16
 
17
- `MastraStorage` is included in `@mastra/core`:
17
+ `MastraCompositeStore` is included in `@mastra/core`:
18
18
 
19
19
  ```bash
20
20
  npm install @mastra/core@beta
@@ -45,13 +45,13 @@ Mastra organizes storage into five specialized domains, each handling a specific
45
45
  Import domain classes directly from each store package and compose them:
46
46
 
47
47
  ```typescript title="src/mastra/index.ts"
48
- import { MastraStorage } from "@mastra/core/storage";
48
+ import { MastraCompositeStore } from "@mastra/core/storage";
49
49
  import { WorkflowsPG, ScoresPG } from "@mastra/pg";
50
50
  import { MemoryLibSQL } from "@mastra/libsql";
51
51
  import { Mastra } from "@mastra/core";
52
52
 
53
53
  export const mastra = new Mastra({
54
- storage: new MastraStorage({
54
+ storage: new MastraCompositeStore({
55
55
  id: "composite",
56
56
  domains: {
57
57
  memory: new MemoryLibSQL({ url: "file:./local.db" }),
@@ -67,7 +67,7 @@ export const mastra = new Mastra({
67
67
  Use `default` to specify a fallback storage, then override specific domains:
68
68
 
69
69
  ```typescript title="src/mastra/index.ts"
70
- import { MastraStorage } from "@mastra/core/storage";
70
+ import { MastraCompositeStore } from "@mastra/core/storage";
71
71
  import { PostgresStore } from "@mastra/pg";
72
72
  import { MemoryLibSQL } from "@mastra/libsql";
73
73
  import { Mastra } from "@mastra/core";
@@ -78,7 +78,7 @@ const pgStore = new PostgresStore({
78
78
  });
79
79
 
80
80
  export const mastra = new Mastra({
81
- storage: new MastraStorage({
81
+ storage: new MastraCompositeStore({
82
82
  id: "composite",
83
83
  default: pgStore,
84
84
  domains: {
@@ -100,7 +100,7 @@ export const mastra = new Mastra({
100
100
  },
101
101
  {
102
102
  name: "default",
103
- type: "MastraStorage",
103
+ type: "MastraCompositeStore",
104
104
  description:
105
105
  "Default storage adapter. Domains not explicitly specified in `domains` will use this storage's domains as fallbacks.",
106
106
  isOptional: true,
@@ -154,14 +154,14 @@ export const mastra = new Mastra({
154
154
 
155
155
  ## Initialization
156
156
 
157
- `MastraStorage` initializes each configured domain independently. When passed to the Mastra class, `init()` is called automatically:
157
+ `MastraCompositeStore` initializes each configured domain independently. When passed to the Mastra class, `init()` is called automatically:
158
158
 
159
159
  ```typescript title="src/mastra/index.ts"
160
- import { MastraStorage } from "@mastra/core/storage";
160
+ import { MastraCompositeStore } from "@mastra/core/storage";
161
161
  import { MemoryPG, WorkflowsPG, ScoresPG } from "@mastra/pg";
162
162
  import { Mastra } from "@mastra/core";
163
163
 
164
- const storage = new MastraStorage({
164
+ const storage = new MastraCompositeStore({
165
165
  id: "composite",
166
166
  domains: {
167
167
  memory: new MemoryPG({ connectionString: process.env.DATABASE_URL }),
@@ -178,10 +178,10 @@ export const mastra = new Mastra({
178
178
  If using storage directly, call `init()` explicitly:
179
179
 
180
180
  ```typescript
181
- import { MastraStorage } from "@mastra/core/storage";
181
+ import { MastraCompositeStore } from "@mastra/core/storage";
182
182
  import { MemoryPG } from "@mastra/pg";
183
183
 
184
- const storage = new MastraStorage({
184
+ const storage = new MastraCompositeStore({
185
185
  id: "composite",
186
186
  domains: {
187
187
  memory: new MemoryPG({ connectionString: process.env.DATABASE_URL }),
@@ -202,11 +202,11 @@ const thread = await memoryStore?.getThreadById({ threadId: "..." });
202
202
  Use a local database for development while keeping production data in a managed service:
203
203
 
204
204
  ```typescript
205
- import { MastraStorage } from "@mastra/core/storage";
205
+ import { MastraCompositeStore } from "@mastra/core/storage";
206
206
  import { MemoryPG, WorkflowsPG, ScoresPG } from "@mastra/pg";
207
207
  import { MemoryLibSQL } from "@mastra/libsql";
208
208
 
209
- const storage = new MastraStorage({
209
+ const storage = new MastraCompositeStore({
210
210
  id: "composite",
211
211
  domains: {
212
212
  // Use local SQLite for development, PostgreSQL for production
@@ -225,11 +225,11 @@ const storage = new MastraStorage({
225
225
  Use a time-series database for traces while keeping other data in PostgreSQL:
226
226
 
227
227
  ```typescript
228
- import { MastraStorage } from "@mastra/core/storage";
228
+ import { MastraCompositeStore } from "@mastra/core/storage";
229
229
  import { MemoryPG, WorkflowsPG, ScoresPG } from "@mastra/pg";
230
230
  import { ObservabilityStorageClickhouse } from "@mastra/clickhouse";
231
231
 
232
- const storage = new MastraStorage({
232
+ const storage = new MastraCompositeStore({
233
233
  id: "composite",
234
234
  domains: {
235
235
  memory: new MemoryPG({ connectionString: process.env.DATABASE_URL }),
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @mastra/mcp-docs-server
2
2
 
3
+ ## 1.0.0-beta.26
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`026b848`](https://github.com/mastra-ai/mastra/commit/026b8483fbf5b6d977be8f7e6aac8d15c75558ac), [`ffa553a`](https://github.com/mastra-ai/mastra/commit/ffa553a3edc1bd17d73669fba66d6b6f4ac10897)]:
8
+ - @mastra/core@1.0.0-beta.26
9
+
3
10
  ## 1.0.0-beta.25
4
11
 
5
12
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/mcp-docs-server",
3
- "version": "1.0.0-beta.25",
3
+ "version": "1.0.0-beta.26",
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": "^3.25.76",
32
- "@mastra/core": "1.0.0-beta.25",
32
+ "@mastra/core": "1.0.0-beta.26",
33
33
  "@mastra/mcp": "^1.0.0-beta.10"
34
34
  },
35
35
  "devDependencies": {
@@ -47,7 +47,7 @@
47
47
  "typescript": "^5.9.3",
48
48
  "vitest": "4.0.16",
49
49
  "@internal/lint": "0.0.53",
50
- "@mastra/core": "1.0.0-beta.25"
50
+ "@mastra/core": "1.0.0-beta.26"
51
51
  },
52
52
  "homepage": "https://mastra.ai",
53
53
  "repository": {