@mastra/mcp-docs-server 0.13.2 → 0.13.3-alpha.0
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/organized/changelogs/%40internal%2Fstorage-test-utils.md +33 -0
- package/.docs/organized/changelogs/%40mastra%2Fagui.md +48 -0
- package/.docs/organized/changelogs/%40mastra%2Fastra.md +30 -30
- package/.docs/organized/changelogs/%40mastra%2Fchroma.md +30 -30
- package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +33 -33
- package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +85 -85
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare-d1.md +34 -34
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +35 -35
- package/.docs/organized/changelogs/%40mastra%2Fcore.md +70 -70
- package/.docs/organized/changelogs/%40mastra%2Fcouchbase.md +29 -29
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +92 -92
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +94 -94
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +92 -92
- package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +104 -104
- package/.docs/organized/changelogs/%40mastra%2Fdynamodb.md +35 -35
- package/.docs/organized/changelogs/%40mastra%2Fevals.md +26 -26
- package/.docs/organized/changelogs/%40mastra%2Ffirecrawl.md +29 -29
- package/.docs/organized/changelogs/%40mastra%2Fgithub.md +26 -26
- package/.docs/organized/changelogs/%40mastra%2Flance.md +32 -0
- package/.docs/organized/changelogs/%40mastra%2Flibsql.md +35 -35
- package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +59 -59
- package/.docs/organized/changelogs/%40mastra%2Fmcp-registry-registry.md +29 -29
- package/.docs/organized/changelogs/%40mastra%2Fmcp.md +31 -31
- package/.docs/organized/changelogs/%40mastra%2Fmem0.md +26 -26
- package/.docs/organized/changelogs/%40mastra%2Fmemory.md +56 -56
- package/.docs/organized/changelogs/%40mastra%2Fmongodb.md +37 -37
- package/.docs/organized/changelogs/%40mastra%2Fopensearch.md +30 -17
- package/.docs/organized/changelogs/%40mastra%2Fpg.md +57 -57
- package/.docs/organized/changelogs/%40mastra%2Fpinecone.md +29 -29
- package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +108 -108
- package/.docs/organized/changelogs/%40mastra%2Fqdrant.md +29 -29
- package/.docs/organized/changelogs/%40mastra%2Frag.md +27 -27
- package/.docs/organized/changelogs/%40mastra%2Fragie.md +26 -26
- package/.docs/organized/changelogs/%40mastra%2Fschema-compat.md +7 -0
- package/.docs/organized/changelogs/%40mastra%2Fserver.md +82 -82
- package/.docs/organized/changelogs/%40mastra%2Fturbopuffer.md +29 -29
- package/.docs/organized/changelogs/%40mastra%2Fupstash.md +33 -33
- package/.docs/organized/changelogs/%40mastra%2Fvectorize.md +31 -31
- package/.docs/organized/changelogs/%40mastra%2Fvoice-cloudflare.md +28 -28
- package/.docs/organized/changelogs/%40mastra%2Fvoice-deepgram.md +26 -26
- package/.docs/organized/changelogs/%40mastra%2Fvoice-elevenlabs.md +26 -26
- package/.docs/organized/changelogs/%40mastra%2Fvoice-gladia.md +25 -0
- package/.docs/organized/changelogs/%40mastra%2Fvoice-google.md +26 -26
- package/.docs/organized/changelogs/%40mastra%2Fvoice-murf.md +26 -26
- package/.docs/organized/changelogs/%40mastra%2Fvoice-openai-realtime.md +23 -23
- package/.docs/organized/changelogs/%40mastra%2Fvoice-openai.md +26 -26
- package/.docs/organized/changelogs/%40mastra%2Fvoice-playai.md +26 -26
- package/.docs/organized/changelogs/%40mastra%2Fvoice-sarvam.md +26 -26
- package/.docs/organized/changelogs/%40mastra%2Fvoice-speechify.md +26 -26
- package/.docs/organized/changelogs/create-mastra.md +37 -37
- package/.docs/organized/changelogs/mastra.md +115 -115
- package/.docs/organized/code-examples/a2a.md +1 -30
- package/.docs/organized/code-examples/agent-network.md +26 -115
- package/.docs/organized/code-examples/agent.md +1 -29
- package/.docs/organized/code-examples/agui.md +0 -22
- package/.docs/organized/code-examples/ai-sdk-useChat.md +1 -16
- package/.docs/organized/code-examples/assistant-ui.md +1 -16
- package/.docs/organized/code-examples/bird-checker-with-express.md +1 -19
- package/.docs/organized/code-examples/bird-checker-with-nextjs-and-eval.md +1 -20
- package/.docs/organized/code-examples/bird-checker-with-nextjs.md +1 -18
- package/.docs/organized/code-examples/client-side-tools.md +1 -18
- package/.docs/organized/code-examples/crypto-chatbot.md +4 -25
- package/.docs/organized/code-examples/experimental-auth-weather-agent.md +1 -26
- package/.docs/organized/code-examples/fireworks-r1.md +1 -21
- package/.docs/organized/code-examples/mcp-configuration.md +1 -24
- package/.docs/organized/code-examples/mcp-registry-registry.md +1 -22
- package/.docs/organized/code-examples/memory-per-resource-example.md +0 -14
- package/.docs/organized/code-examples/memory-todo-agent.md +1 -20
- package/.docs/organized/code-examples/memory-with-context.md +1 -20
- package/.docs/organized/code-examples/memory-with-libsql.md +1 -21
- package/.docs/organized/code-examples/memory-with-mem0.md +1 -21
- package/.docs/organized/code-examples/memory-with-pg.md +1 -22
- package/.docs/organized/code-examples/memory-with-processors.md +1 -17
- package/.docs/organized/code-examples/memory-with-upstash.md +1 -24
- package/.docs/organized/code-examples/openapi-spec-writer.md +1 -21
- package/.docs/organized/code-examples/quick-start.md +1 -21
- package/.docs/organized/code-examples/stock-price-tool.md +1 -21
- package/.docs/organized/code-examples/weather-agent.md +1 -20
- package/.docs/organized/code-examples/workflow-ai-recruiter.md +1 -22
- package/.docs/organized/code-examples/workflow-with-inline-steps.md +1 -20
- package/.docs/organized/code-examples/workflow-with-memory.md +1 -21
- package/.docs/organized/code-examples/workflow-with-separate-steps.md +1 -22
- package/.docs/raw/course/01-first-agent/11-creating-transactions-tool.md +1 -1
- package/.docs/raw/course/03-agent-memory/24-working-memory-in-practice.md +0 -3
- package/.docs/raw/course/03-agent-memory/29-memory-best-practices.md +0 -6
- package/.docs/raw/deployment/cloud-providers/amazon-ec2.mdx +81 -0
- package/.docs/raw/deployment/cloud-providers/azure-app-services.mdx +136 -0
- package/.docs/raw/deployment/cloud-providers/index.mdx +2 -0
- package/.docs/raw/deployment/serverless-platforms/cloudflare-deployer.mdx +111 -0
- package/.docs/raw/deployment/{deployment.mdx → serverless-platforms/index.mdx} +5 -10
- package/.docs/raw/deployment/serverless-platforms/netlify-deployer.mdx +94 -0
- package/.docs/raw/deployment/serverless-platforms/vercel-deployer.mdx +91 -0
- package/.docs/raw/frameworks/ai-sdk-v5.mdx +91 -0
- package/.docs/raw/frameworks/web-frameworks/next-js.mdx +56 -18
- package/.docs/raw/frameworks/web-frameworks/sveltekit.mdx +456 -0
- package/.docs/raw/frameworks/web-frameworks/vite-react.mdx +28 -9
- package/.docs/raw/getting-started/model-providers.mdx +118 -127
- package/.docs/raw/memory/overview.mdx +30 -0
- package/.docs/raw/reference/agents/generate.mdx +3 -3
- package/.docs/raw/reference/agents/getModel.mdx +1 -1
- package/.docs/raw/reference/agents/stream.mdx +3 -3
- package/.docs/raw/reference/deployer/cloudflare.mdx +4 -119
- package/.docs/raw/reference/deployer/netlify.mdx +4 -83
- package/.docs/raw/reference/deployer/vercel.mdx +4 -51
- package/.docs/raw/reference/memory/Memory.mdx +71 -2
- package/.docs/raw/reference/observability/logger.mdx +70 -0
- package/.docs/raw/reference/rag/pg.mdx +15 -0
- package/.docs/raw/reference/storage/postgresql.mdx +17 -0
- package/.docs/raw/reference/workflows/step.mdx +8 -1
- package/.docs/raw/workflows/overview.mdx +1 -1
- package/dist/{chunk-P5AHYMUI.js → chunk-7QXT2IEP.js} +48 -11
- package/dist/prepare-docs/prepare.js +1 -1
- package/dist/stdio.js +1 -1
- package/package.json +5 -5
|
@@ -2,25 +2,6 @@
|
|
|
2
2
|
```json
|
|
3
3
|
{
|
|
4
4
|
"name": "examples-a2a",
|
|
5
|
-
"version": "1.0.0",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"private": true,
|
|
8
|
-
"description": "Example of using Mastra's A2A protocol with the client SDK",
|
|
9
|
-
"main": "dist/index.js",
|
|
10
|
-
"scripts": {
|
|
11
|
-
"start": "tsx src/index.ts",
|
|
12
|
-
"mastra:dev": "mastra dev",
|
|
13
|
-
"build": "tsc",
|
|
14
|
-
"dev": "tsx watch src/index.ts"
|
|
15
|
-
},
|
|
16
|
-
"keywords": [
|
|
17
|
-
"mastra",
|
|
18
|
-
"a2a",
|
|
19
|
-
"agent-to-agent",
|
|
20
|
-
"example"
|
|
21
|
-
],
|
|
22
|
-
"author": "Mastra Team",
|
|
23
|
-
"license": "MIT",
|
|
24
5
|
"dependencies": {
|
|
25
6
|
"@ai-sdk/openai": "^1.3.22",
|
|
26
7
|
"@mastra/client-js": "latest",
|
|
@@ -33,18 +14,8 @@
|
|
|
33
14
|
"mastra": "latest",
|
|
34
15
|
"tsx": "^4.7.0",
|
|
35
16
|
"typescript": "^5.3.3"
|
|
36
|
-
}
|
|
37
|
-
"pnpm": {
|
|
38
|
-
"overrides": {
|
|
39
|
-
"@mastra/core": "link:../../packages/core",
|
|
40
|
-
"mastra": "link:../../packages/cli",
|
|
41
|
-
"@mastra/client-js": "link:../../client-sdks/client-js",
|
|
42
|
-
"@mastra/loggers": "link:../../packages/loggers"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"packageManager": "pnpm@10.9.0+sha512.0486e394640d3c1fb3c9d43d49cf92879ff74f8516959c235308f5a8f62e2e19528a65cdc2a3058f587cde71eba3d5b56327c8c33a97e4c4051ca48a10ca2d5f"
|
|
17
|
+
}
|
|
46
18
|
}
|
|
47
|
-
|
|
48
19
|
```
|
|
49
20
|
|
|
50
21
|
### index.ts
|
|
@@ -2,18 +2,8 @@
|
|
|
2
2
|
```json
|
|
3
3
|
{
|
|
4
4
|
"name": "examples-agent-network",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"private": true,
|
|
7
|
-
"description": "",
|
|
8
|
-
"main": "index.js",
|
|
9
|
-
"version": "0.0.1",
|
|
10
|
-
"scripts": {
|
|
11
|
-
"start": "npx bun src/index.ts"
|
|
12
|
-
},
|
|
13
|
-
"keywords": [],
|
|
14
|
-
"author": "",
|
|
15
|
-
"license": "MIT",
|
|
16
5
|
"dependencies": {
|
|
6
|
+
"@ai-sdk/anthropic": "^1.2.12",
|
|
17
7
|
"@ai-sdk/openai": "^1.3.22",
|
|
18
8
|
"@mastra/client-js": "latest",
|
|
19
9
|
"@mastra/core": "latest",
|
|
@@ -21,19 +11,8 @@
|
|
|
21
11
|
"@mastra/loggers": "latest",
|
|
22
12
|
"@mastra/memory": "latest",
|
|
23
13
|
"zod": "^3.25.67"
|
|
24
|
-
}
|
|
25
|
-
"pnpm": {
|
|
26
|
-
"overrides": {
|
|
27
|
-
"@mastra/client-js": "link:../../client-sdks/client-js",
|
|
28
|
-
"@mastra/core": "link:../../packages/core",
|
|
29
|
-
"@mastra/libsql": "link:../../stores/libsql",
|
|
30
|
-
"@mastra/loggers": "link:../../packages/loggers",
|
|
31
|
-
"@mastra/memory": "link:../../packages/memory"
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39"
|
|
14
|
+
}
|
|
35
15
|
}
|
|
36
|
-
|
|
37
16
|
```
|
|
38
17
|
|
|
39
18
|
### agent-workflow.ts
|
|
@@ -111,107 +90,29 @@ main().catch(error => {
|
|
|
111
90
|
|
|
112
91
|
```
|
|
113
92
|
|
|
114
|
-
### mastra/agents/index.ts
|
|
115
|
-
```typescript
|
|
116
|
-
import { openai } from '@ai-sdk/openai';
|
|
117
|
-
import { Agent } from '@mastra/core/agent';
|
|
118
|
-
|
|
119
|
-
export const primaryResearchAgent = new Agent({
|
|
120
|
-
name: 'Primary Research Agent',
|
|
121
|
-
instructions: `
|
|
122
|
-
You are the primary research coordinator. Your job is to:
|
|
123
|
-
1. Analyze user queries to determine what type of research is needed
|
|
124
|
-
2. Break down complex research questions into manageable sub-questions
|
|
125
|
-
3. Synthesize information from specialized research agents into a coherent response
|
|
126
|
-
4. Ensure all claims are properly supported by evidence
|
|
127
|
-
5. Identify any gaps in the research that need further investigation
|
|
128
|
-
|
|
129
|
-
You should maintain a neutral, objective tone and prioritize accuracy over speed.
|
|
130
|
-
`,
|
|
131
|
-
model: openai('gpt-4o'),
|
|
132
|
-
});
|
|
133
|
-
|
|
134
|
-
export const webSearchAgent = new Agent({
|
|
135
|
-
name: 'Web Search Agent',
|
|
136
|
-
instructions: `
|
|
137
|
-
You are a web search specialist. Your job is to:
|
|
138
|
-
1. Find the most relevant and up-to-date information online for a given query
|
|
139
|
-
2. Evaluate the credibility of sources and prioritize reliable information
|
|
140
|
-
3. Extract key facts and data points from web content
|
|
141
|
-
4. Provide direct quotes and citations when appropriate
|
|
142
|
-
5. Summarize findings in a clear, concise manner
|
|
143
|
-
|
|
144
|
-
Always include source URLs when reporting information.
|
|
145
|
-
|
|
146
|
-
Use the "web_search_preview" tool to search the web for information.
|
|
147
|
-
`,
|
|
148
|
-
model: openai.responses('gpt-4o-mini'),
|
|
149
|
-
tools: {
|
|
150
|
-
web_search_preview: openai.tools.webSearchPreview(),
|
|
151
|
-
},
|
|
152
|
-
});
|
|
153
|
-
|
|
154
|
-
export const academicResearchAgent = new Agent({
|
|
155
|
-
name: 'Academic Research Agent',
|
|
156
|
-
instructions: `
|
|
157
|
-
You are an academic research specialist. Your job is to:
|
|
158
|
-
1. Analyze topics from an academic perspective
|
|
159
|
-
2. Identify key theories, frameworks, and scholarly debates relevant to a query
|
|
160
|
-
3. Provide historical context and development of ideas
|
|
161
|
-
4. Cite academic sources properly
|
|
162
|
-
5. Explain complex academic concepts in accessible language
|
|
163
|
-
|
|
164
|
-
Prioritize peer-reviewed research and established academic sources.
|
|
165
|
-
`,
|
|
166
|
-
model: openai('gpt-4o'),
|
|
167
|
-
});
|
|
168
|
-
|
|
169
|
-
export const factCheckingAgent = new Agent({
|
|
170
|
-
name: 'Fact Checking Agent',
|
|
171
|
-
instructions: `
|
|
172
|
-
You are a fact-checking specialist. Your job is to:
|
|
173
|
-
1. Verify claims made by other agents or in user queries
|
|
174
|
-
2. Identify potential misinformation or unsubstantiated claims
|
|
175
|
-
3. Cross-reference information across multiple reliable sources
|
|
176
|
-
4. Provide corrections with supporting evidence
|
|
177
|
-
5. Rate the confidence level of verified information
|
|
178
|
-
|
|
179
|
-
Be thorough and skeptical, but fair in your assessments.
|
|
180
|
-
`,
|
|
181
|
-
model: openai('gpt-4o-mini'),
|
|
182
|
-
});
|
|
183
|
-
|
|
184
|
-
export const dataAnalysisAgent = new Agent({
|
|
185
|
-
name: 'Data Analysis Agent',
|
|
186
|
-
instructions: `
|
|
187
|
-
You are a data analysis specialist. Your job is to:
|
|
188
|
-
1. Interpret numerical data and statistics related to research queries
|
|
189
|
-
2. Identify trends, patterns, and correlations in data
|
|
190
|
-
3. Evaluate the methodology behind data collection and analysis
|
|
191
|
-
4. Explain statistical concepts in accessible language
|
|
192
|
-
5. Create clear summaries of data-driven findings
|
|
193
|
-
|
|
194
|
-
Always consider sample sizes, statistical significance, and potential biases in data.
|
|
195
|
-
`,
|
|
196
|
-
model: openai('gpt-4o'),
|
|
197
|
-
});
|
|
198
|
-
|
|
199
|
-
```
|
|
200
|
-
|
|
201
93
|
### mastra/index.ts
|
|
202
94
|
```typescript
|
|
203
95
|
import { Mastra } from '@mastra/core';
|
|
204
96
|
import { PinoLogger } from '@mastra/loggers';
|
|
205
97
|
// import { researchNetwork } from './network';
|
|
206
|
-
import { webSearchAgent } from './agents';
|
|
98
|
+
import { webSearchAgent, synthesizeAgent } from './agents';
|
|
99
|
+
import { planningAgent } from './agents/planning';
|
|
100
|
+
import { travelAgent, summaryAgent } from './agents/travelAgent';
|
|
207
101
|
// import { agentWorkflow } from './workflows';
|
|
208
102
|
import { v_nextNetwork } from './network/v-next';
|
|
209
103
|
import { LibSQLStore } from '@mastra/libsql';
|
|
210
104
|
import { workflow1 } from './network/v-next';
|
|
105
|
+
import { travelAgentWorkflow } from './workflows/step4';
|
|
106
|
+
import { incrementWorkflow } from './workflows/step5';
|
|
107
|
+
import { weatherWorkflow } from './workflows/step3';
|
|
211
108
|
|
|
212
109
|
export const mastra = new Mastra({
|
|
213
110
|
agents: {
|
|
214
111
|
webSearchAgent,
|
|
112
|
+
planningAgent,
|
|
113
|
+
travelAgent,
|
|
114
|
+
summaryTravelAgent: summaryAgent,
|
|
115
|
+
synthesizeAgent,
|
|
215
116
|
},
|
|
216
117
|
// networks: {
|
|
217
118
|
// researchNetwork,
|
|
@@ -224,6 +125,9 @@ export const mastra = new Mastra({
|
|
|
224
125
|
}),
|
|
225
126
|
workflows: {
|
|
226
127
|
workflow1,
|
|
128
|
+
travelAgentWorkflow,
|
|
129
|
+
incrementWorkflow,
|
|
130
|
+
weatherWorkflow,
|
|
227
131
|
},
|
|
228
132
|
logger: new PinoLogger({ name: 'Chef', level: 'info' }),
|
|
229
133
|
serverMiddleware: [
|
|
@@ -279,12 +183,15 @@ export const researchNetwork = new AgentNetwork({
|
|
|
279
183
|
### mastra/network/v-next.ts
|
|
280
184
|
```typescript
|
|
281
185
|
import { openai } from '@ai-sdk/openai';
|
|
186
|
+
import { anthropic } from '@ai-sdk/anthropic';
|
|
282
187
|
import { NewAgentNetwork } from '@mastra/core/network/vNext';
|
|
283
188
|
import { Agent } from '@mastra/core/agent';
|
|
284
189
|
import { createStep, createWorkflow } from '@mastra/core/workflows';
|
|
285
190
|
import { LibSQLStore } from '@mastra/libsql';
|
|
286
191
|
import { Memory } from '@mastra/memory';
|
|
287
192
|
import { z } from 'zod';
|
|
193
|
+
import { weatherAgent } from '../agents';
|
|
194
|
+
import { weatherTool } from '../tools';
|
|
288
195
|
|
|
289
196
|
const memory = new Memory({
|
|
290
197
|
storage: new LibSQLStore({
|
|
@@ -298,7 +205,7 @@ const agent1 = new Agent({
|
|
|
298
205
|
'This agent is used to do research, but not create full responses. Answer in bullet points only and be concise.',
|
|
299
206
|
description:
|
|
300
207
|
'This agent is used to do research, but not create full responses. Answer in bullet points only and be concise.',
|
|
301
|
-
model:
|
|
208
|
+
model: anthropic('claude-3-5-sonnet-20240620'),
|
|
302
209
|
});
|
|
303
210
|
|
|
304
211
|
const agent2 = new Agent({
|
|
@@ -306,7 +213,7 @@ const agent2 = new Agent({
|
|
|
306
213
|
description: 'This agent is used to do text synthesis on researched material. It writes articles in full paragraphs.',
|
|
307
214
|
instructions:
|
|
308
215
|
'This agent is used to do text synthesis on researched material. Write a full report based on the researched material. Do not use bullet points. Write full paragraphs. There should not be a single bullet point in the final report. You write articles.',
|
|
309
|
-
model:
|
|
216
|
+
model: anthropic('claude-3-5-sonnet-20240620'),
|
|
310
217
|
});
|
|
311
218
|
|
|
312
219
|
const agentStep1 = createStep({
|
|
@@ -367,11 +274,15 @@ export const v_nextNetwork = new NewAgentNetwork({
|
|
|
367
274
|
id: 'test-network',
|
|
368
275
|
name: 'Test Network',
|
|
369
276
|
instructions:
|
|
370
|
-
'You can research cities. You can also synthesize research material. You can also write a full report based on the researched material.',
|
|
371
|
-
model:
|
|
277
|
+
'You can research cities. You can also synthesize research material. You can also write a full report based on the researched material. You can also get weather information. workflow1 is the best primitive for researching an *individual* city and it should always be used when running multiple primitives to accomplish a task.',
|
|
278
|
+
model: anthropic('claude-3-5-sonnet-20240620'),
|
|
372
279
|
agents: {
|
|
373
280
|
agent1,
|
|
374
281
|
agent2,
|
|
282
|
+
// weatherAgent,
|
|
283
|
+
},
|
|
284
|
+
tools: {
|
|
285
|
+
weatherTool,
|
|
375
286
|
},
|
|
376
287
|
workflows: {
|
|
377
288
|
workflow1,
|
|
@@ -2,11 +2,6 @@
|
|
|
2
2
|
```json
|
|
3
3
|
{
|
|
4
4
|
"name": "examples-agent",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"private": true,
|
|
7
|
-
"description": "",
|
|
8
|
-
"main": "index.js",
|
|
9
|
-
"version": "0.0.1",
|
|
10
5
|
"dependencies": {
|
|
11
6
|
"@ai-sdk/openai": "latest",
|
|
12
7
|
"@mastra/client-js": "latest",
|
|
@@ -20,31 +15,8 @@
|
|
|
20
15
|
"fetch-to-node": "^2.1.0",
|
|
21
16
|
"mastra": "latest",
|
|
22
17
|
"zod": "^3.25.67"
|
|
23
|
-
}
|
|
24
|
-
"pnpm": {
|
|
25
|
-
"overrides": {
|
|
26
|
-
"@mastra/core": "link:../../packages/core",
|
|
27
|
-
"@mastra/loggers": "link:../../packages/loggers",
|
|
28
|
-
"@mastra/voice-openai": "link:../../voice/openai",
|
|
29
|
-
"@mastra/memory": "link:../../packages/memory",
|
|
30
|
-
"@mastra/client-js": "link:../../client-sdks/client-js",
|
|
31
|
-
"@mastra/mcp": "link:../../packages/mcp",
|
|
32
|
-
"@mastra/libsql": "link:../../stores/libsql",
|
|
33
|
-
"mastra": "link:../../packages/cli"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
"scripts": {
|
|
37
|
-
"start-deployed": "npx bun src/with-deployed.ts",
|
|
38
|
-
"start": "npx bun src/index.ts",
|
|
39
|
-
"mastra:build": "mastra build",
|
|
40
|
-
"mastra:dev": "mastra dev"
|
|
41
|
-
},
|
|
42
|
-
"keywords": [],
|
|
43
|
-
"author": "",
|
|
44
|
-
"license": "MIT",
|
|
45
|
-
"packageManager": "pnpm@10.9.0+sha512.0486e394640d3c1fb3c9d43d49cf92879ff74f8516959c235308f5a8f62e2e19528a65cdc2a3058f587cde71eba3d5b56327c8c33a97e4c4051ca48a10ca2d5f"
|
|
18
|
+
}
|
|
46
19
|
}
|
|
47
|
-
|
|
48
20
|
```
|
|
49
21
|
|
|
50
22
|
### client.ts
|
|
@@ -2,17 +2,6 @@
|
|
|
2
2
|
```json
|
|
3
3
|
{
|
|
4
4
|
"name": "examples-agui",
|
|
5
|
-
"private": true,
|
|
6
|
-
"version": "0.0.0",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"mastra:dev": "mastra dev",
|
|
10
|
-
"dev": "vite",
|
|
11
|
-
"build": "tsc && vite build",
|
|
12
|
-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
13
|
-
"preview": "vite preview",
|
|
14
|
-
"type-check": "tsc --noEmit"
|
|
15
|
-
},
|
|
16
5
|
"dependencies": {
|
|
17
6
|
"@ai-sdk/openai": "^1.3.22",
|
|
18
7
|
"@copilotkit/react-core": "^1.8.10",
|
|
@@ -28,16 +17,6 @@
|
|
|
28
17
|
"react-dom": "^19.1.0",
|
|
29
18
|
"zod": "^3.25.67"
|
|
30
19
|
},
|
|
31
|
-
"pnpm": {
|
|
32
|
-
"overrides": {
|
|
33
|
-
"@mastra/core": "link:../../packages/core",
|
|
34
|
-
"@mastra/agui": "link:../../packages/agui",
|
|
35
|
-
"@mastra/libsql": "link:../../stores/libsql",
|
|
36
|
-
"@mastra/loggers": "link:../../packages/loggers",
|
|
37
|
-
"@mastra/memory": "link:../../packages/memory",
|
|
38
|
-
"mastra": "link:../../packages/cli"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
20
|
"devDependencies": {
|
|
42
21
|
"@eslint/js": "^9.25.0",
|
|
43
22
|
"@types/react": "^19.1.8",
|
|
@@ -53,7 +32,6 @@
|
|
|
53
32
|
"vite": "^6.3.5"
|
|
54
33
|
}
|
|
55
34
|
}
|
|
56
|
-
|
|
57
35
|
```
|
|
58
36
|
|
|
59
37
|
### mastra/agents/index.ts
|
|
@@ -2,14 +2,6 @@
|
|
|
2
2
|
```json
|
|
3
3
|
{
|
|
4
4
|
"name": "mastra-ai-sdk-use-chat-example",
|
|
5
|
-
"version": "0.1.1",
|
|
6
|
-
"private": true,
|
|
7
|
-
"scripts": {
|
|
8
|
-
"dev": "next dev --turbopack",
|
|
9
|
-
"build": "next build",
|
|
10
|
-
"start": "next start",
|
|
11
|
-
"lint": "next lint"
|
|
12
|
-
},
|
|
13
5
|
"dependencies": {
|
|
14
6
|
"@ai-sdk/anthropic": "^1.2.12",
|
|
15
7
|
"@ai-sdk/react": "^1.2.12",
|
|
@@ -19,11 +11,6 @@
|
|
|
19
11
|
"react-dom": "^19.1.0",
|
|
20
12
|
"zod": "^3.25.67"
|
|
21
13
|
},
|
|
22
|
-
"pnpm": {
|
|
23
|
-
"overrides": {
|
|
24
|
-
"@mastra/core": "link:../../packages/core"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
14
|
"devDependencies": {
|
|
28
15
|
"@eslint/eslintrc": "^3.3.0",
|
|
29
16
|
"@types/node": "^20.17.57",
|
|
@@ -34,10 +21,8 @@
|
|
|
34
21
|
"postcss": "^8.5.3",
|
|
35
22
|
"tailwindcss": "^3.4.17",
|
|
36
23
|
"typescript": "^5.8.2"
|
|
37
|
-
}
|
|
38
|
-
"packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39"
|
|
24
|
+
}
|
|
39
25
|
}
|
|
40
|
-
|
|
41
26
|
```
|
|
42
27
|
|
|
43
28
|
### mastra/agents/index.ts
|
|
@@ -2,13 +2,6 @@
|
|
|
2
2
|
```json
|
|
3
3
|
{
|
|
4
4
|
"name": "examples-assistant-ui",
|
|
5
|
-
"private": true,
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "next dev --turbo",
|
|
8
|
-
"build": "next build",
|
|
9
|
-
"start": "next start",
|
|
10
|
-
"lint": "next lint"
|
|
11
|
-
},
|
|
12
5
|
"dependencies": {
|
|
13
6
|
"@ai-sdk/openai": "latest",
|
|
14
7
|
"@assistant-ui/react": "0.7.85",
|
|
@@ -21,11 +14,6 @@
|
|
|
21
14
|
"tailwindcss-animate": "^1.0.7",
|
|
22
15
|
"zod": "^3.25.67"
|
|
23
16
|
},
|
|
24
|
-
"pnpm": {
|
|
25
|
-
"overrides": {
|
|
26
|
-
"@mastra/client-js": "link:../../client-sdks/client-js"
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
17
|
"devDependencies": {
|
|
30
18
|
"@types/node": "^20.17.57",
|
|
31
19
|
"@types/react": "^19.1.8",
|
|
@@ -35,9 +23,6 @@
|
|
|
35
23
|
"postcss": "^8.5.3",
|
|
36
24
|
"tailwindcss": "^3.4.17",
|
|
37
25
|
"typescript": "^5.8.2"
|
|
38
|
-
}
|
|
39
|
-
"version": "0.0.0",
|
|
40
|
-
"packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39"
|
|
26
|
+
}
|
|
41
27
|
}
|
|
42
|
-
|
|
43
28
|
```
|
|
@@ -2,17 +2,6 @@
|
|
|
2
2
|
```json
|
|
3
3
|
{
|
|
4
4
|
"name": "examples-bird-checker-with-express",
|
|
5
|
-
"description": "",
|
|
6
|
-
"type": "module",
|
|
7
|
-
"main": "index.js",
|
|
8
|
-
"version": "0.0.1",
|
|
9
|
-
"scripts": {
|
|
10
|
-
"start": "tsx src/index.ts"
|
|
11
|
-
},
|
|
12
|
-
"private": true,
|
|
13
|
-
"keywords": [],
|
|
14
|
-
"author": "",
|
|
15
|
-
"license": "MIT",
|
|
16
5
|
"devDependencies": {
|
|
17
6
|
"@types/express": "^4.0.0",
|
|
18
7
|
"@types/node": "^20.17.57",
|
|
@@ -29,15 +18,8 @@
|
|
|
29
18
|
"@mastra/core": "latest",
|
|
30
19
|
"ai": "latest",
|
|
31
20
|
"zod": "^3.25.67"
|
|
32
|
-
}
|
|
33
|
-
"pnpm": {
|
|
34
|
-
"overrides": {
|
|
35
|
-
"@mastra/core": "link:../../packages/core"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
"packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39"
|
|
21
|
+
}
|
|
39
22
|
}
|
|
40
|
-
|
|
41
23
|
```
|
|
42
24
|
|
|
43
25
|
### index.ts
|
|
@@ -2,17 +2,6 @@
|
|
|
2
2
|
```json
|
|
3
3
|
{
|
|
4
4
|
"name": "examples-bird-checker-with-nextjs-and-eval",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"private": true,
|
|
7
|
-
"scripts": {
|
|
8
|
-
"dev": "next dev --turbopack",
|
|
9
|
-
"build": "next build",
|
|
10
|
-
"start": "next start",
|
|
11
|
-
"lint": "next lint",
|
|
12
|
-
"mastra:init": "pnpm dlx mastra init",
|
|
13
|
-
"mastra:dev": "pnpm dlx mastra dev",
|
|
14
|
-
"braintrust:eval": "npx braintrust eval src/lib/evals"
|
|
15
|
-
},
|
|
16
5
|
"dependencies": {
|
|
17
6
|
"@ai-sdk/anthropic": "latest",
|
|
18
7
|
"@mastra/core": "latest",
|
|
@@ -30,11 +19,6 @@
|
|
|
30
19
|
"tailwindcss-animate": "^1.0.7",
|
|
31
20
|
"zod": "^3.25.67"
|
|
32
21
|
},
|
|
33
|
-
"pnpm": {
|
|
34
|
-
"overrides": {
|
|
35
|
-
"@mastra/core": "link:../../packages/core"
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
22
|
"devDependencies": {
|
|
39
23
|
"@types/node": "^20.17.57",
|
|
40
24
|
"@types/react": "^18.3.23",
|
|
@@ -44,11 +28,8 @@
|
|
|
44
28
|
"postcss": "^8.5.3",
|
|
45
29
|
"tailwindcss": "^3.4.17",
|
|
46
30
|
"typescript": "^5.8.2"
|
|
47
|
-
}
|
|
48
|
-
"version": "0.0.1",
|
|
49
|
-
"packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39"
|
|
31
|
+
}
|
|
50
32
|
}
|
|
51
|
-
|
|
52
33
|
```
|
|
53
34
|
|
|
54
35
|
### lib/evals/data.ts
|
|
@@ -2,15 +2,6 @@
|
|
|
2
2
|
```json
|
|
3
3
|
{
|
|
4
4
|
"name": "examples-bird-checker-with-nextjs",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"private": true,
|
|
7
|
-
"version": "0.0.1",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"dev": "next dev --turbopack",
|
|
10
|
-
"build": "next build",
|
|
11
|
-
"start": "next start",
|
|
12
|
-
"lint": "next lint"
|
|
13
|
-
},
|
|
14
5
|
"dependencies": {
|
|
15
6
|
"@ai-sdk/anthropic": "latest",
|
|
16
7
|
"@mastra/core": "link:../../packages/core",
|
|
@@ -27,12 +18,6 @@
|
|
|
27
18
|
"tailwindcss-animate": "^1.0.7",
|
|
28
19
|
"zod": "^3.25.67"
|
|
29
20
|
},
|
|
30
|
-
"pnpm": {
|
|
31
|
-
"overrides": {
|
|
32
|
-
"@mastra/core": "link:../../packages/core",
|
|
33
|
-
"@mastra/client-js": "link:../../client-sdks/client-js"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
21
|
"devDependencies": {
|
|
37
22
|
"@libsql/client": "^0.15.4",
|
|
38
23
|
"@types/node": "^20.17.57",
|
|
@@ -43,10 +28,8 @@
|
|
|
43
28
|
"postcss": "^8.5.3",
|
|
44
29
|
"tailwindcss": "^3.4.17",
|
|
45
30
|
"typescript": "^5.8.2"
|
|
46
|
-
}
|
|
47
|
-
"packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39"
|
|
31
|
+
}
|
|
48
32
|
}
|
|
49
|
-
|
|
50
33
|
```
|
|
51
34
|
|
|
52
35
|
### lib/mastra/actions.ts
|
|
@@ -2,15 +2,6 @@
|
|
|
2
2
|
```json
|
|
3
3
|
{
|
|
4
4
|
"name": "examples-client-side-tools",
|
|
5
|
-
"private": true,
|
|
6
|
-
"version": "0.0.0",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"dev": "vite",
|
|
10
|
-
"build": "tsc -b && vite build",
|
|
11
|
-
"lint": "eslint .",
|
|
12
|
-
"preview": "vite preview"
|
|
13
|
-
},
|
|
14
5
|
"dependencies": {
|
|
15
6
|
"@ai-sdk/openai": "^1.3.22",
|
|
16
7
|
"@mastra/client-js": "latest",
|
|
@@ -19,12 +10,6 @@
|
|
|
19
10
|
"react-dom": "^19.1.0",
|
|
20
11
|
"zod": "^3.25.67"
|
|
21
12
|
},
|
|
22
|
-
"pnpm": {
|
|
23
|
-
"overrides": {
|
|
24
|
-
"@mastra/client-js": "link:../../client-sdks/client-js",
|
|
25
|
-
"@mastra/core": "link:../../packages/core"
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
13
|
"devDependencies": {
|
|
29
14
|
"@eslint/js": "^9.21.0",
|
|
30
15
|
"@types/react": "^19.1.8",
|
|
@@ -37,10 +22,8 @@
|
|
|
37
22
|
"typescript": "~5.7.2",
|
|
38
23
|
"typescript-eslint": "^8.24.1",
|
|
39
24
|
"vite": "^6.2.0"
|
|
40
|
-
}
|
|
41
|
-
"packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39"
|
|
25
|
+
}
|
|
42
26
|
}
|
|
43
|
-
|
|
44
27
|
```
|
|
45
28
|
|
|
46
29
|
### mastra/agents/index.ts
|
|
@@ -2,23 +2,13 @@
|
|
|
2
2
|
```json
|
|
3
3
|
{
|
|
4
4
|
"name": "examples-crypto-chatbot",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"private": true,
|
|
7
|
-
"scripts": {
|
|
8
|
-
"dev": "next dev --turbo",
|
|
9
|
-
"build": "tsx db/migrate && next build",
|
|
10
|
-
"start": "next start",
|
|
11
|
-
"lint": "next lint",
|
|
12
|
-
"db:generate": "drizzle-kit generate",
|
|
13
|
-
"db:migrate": "npx tsx ./db/migrate.ts"
|
|
14
|
-
},
|
|
15
5
|
"dependencies": {
|
|
16
6
|
"@ai-sdk/openai": "latest",
|
|
17
7
|
"@ai-sdk/react": "^1.2.12",
|
|
18
8
|
"@mastra/core": "latest",
|
|
9
|
+
"@mastra/loggers": "latest",
|
|
19
10
|
"@mastra/memory": "latest",
|
|
20
11
|
"@mastra/pg": "latest",
|
|
21
|
-
"@mastra/loggers": "latest",
|
|
22
12
|
"@next/env": "^15.2.2",
|
|
23
13
|
"@radix-ui/react-alert-dialog": "^1.1.6",
|
|
24
14
|
"@radix-ui/react-dialog": "^1.1.6",
|
|
@@ -33,7 +23,7 @@
|
|
|
33
23
|
"@typescript-eslint/parser": "^8.31.0",
|
|
34
24
|
"@vercel/analytics": "^1.5.0",
|
|
35
25
|
"@vercel/blob": "^1.0.0",
|
|
36
|
-
"@vercel/postgres": "^0.
|
|
26
|
+
"@vercel/postgres": "^0.10.0",
|
|
37
27
|
"ai": "latest",
|
|
38
28
|
"bcrypt-ts": "^6.0.0",
|
|
39
29
|
"class-variance-authority": "^0.7.1",
|
|
@@ -42,7 +32,7 @@
|
|
|
42
32
|
"date-fns": "^4.1.0",
|
|
43
33
|
"diff-match-patch": "^1.0.5",
|
|
44
34
|
"dotenv": "^16.4.7",
|
|
45
|
-
"drizzle-orm": "^0.
|
|
35
|
+
"drizzle-orm": "^0.44.2",
|
|
46
36
|
"framer-motion": "^12.7.4",
|
|
47
37
|
"geist": "^1.3.1",
|
|
48
38
|
"lucide-react": "^0.503.0",
|
|
@@ -72,14 +62,6 @@
|
|
|
72
62
|
"usehooks-ts": "^3.1.1",
|
|
73
63
|
"zod": "^3.25.67"
|
|
74
64
|
},
|
|
75
|
-
"pnpm": {
|
|
76
|
-
"overrides": {
|
|
77
|
-
"@mastra/core": "link:../../packages/core",
|
|
78
|
-
"@mastra/memory": "link:../../packages/memory",
|
|
79
|
-
"@mastra/pg": "link:../../stores/pg",
|
|
80
|
-
"@mastra/loggers": "link:../../packages/loggers"
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
65
|
"devDependencies": {
|
|
84
66
|
"@libsql/client": "^0.15.4",
|
|
85
67
|
"@tailwindcss/typography": "^0.5.16",
|
|
@@ -100,9 +82,6 @@
|
|
|
100
82
|
"tailwindcss": "^3.4.17",
|
|
101
83
|
"tsx": "^4.19.3",
|
|
102
84
|
"typescript": "^5.8.3"
|
|
103
|
-
}
|
|
104
|
-
"version": "0.0.1",
|
|
105
|
-
"packageManager": "pnpm@10.10.0+sha512.d615db246fe70f25dcfea6d8d73dee782ce23e2245e3c4f6f888249fb568149318637dca73c2c5c8ef2a4ca0d5657fb9567188bfab47f566d1ee6ce987815c39"
|
|
85
|
+
}
|
|
106
86
|
}
|
|
107
|
-
|
|
108
87
|
```
|