@mastra/mcp-docs-server 0.0.7 → 0.0.8
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/%40mastra%2Fastra.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fchroma.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fclickhouse.md +15 -0
- package/.docs/organized/changelogs/%40mastra%2Fclient-js.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fcloudflare.md +21 -0
- package/.docs/organized/changelogs/%40mastra%2Fcore.md +14 -14
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-cloudflare.md +26 -26
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-netlify.md +26 -26
- package/.docs/organized/changelogs/%40mastra%2Fdeployer-vercel.md +26 -26
- package/.docs/organized/changelogs/%40mastra%2Fdeployer.md +26 -26
- package/.docs/organized/changelogs/%40mastra%2Fevals.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Ffirecrawl.md +18 -18
- package/.docs/organized/changelogs/%40mastra%2Fgithub.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Floggers.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +17 -2
- package/.docs/organized/changelogs/%40mastra%2Fmcp.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fmem0.md +15 -0
- package/.docs/organized/changelogs/%40mastra%2Fmemory.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fpg.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fpinecone.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fplayground-ui.md +21 -21
- package/.docs/organized/changelogs/%40mastra%2Fqdrant.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Frag.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fragie.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fserver.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fspeech-azure.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fspeech-deepgram.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fspeech-elevenlabs.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fspeech-google.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fspeech-ibm.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fspeech-murf.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fspeech-openai.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fspeech-playai.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fspeech-replicate.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fspeech-speechify.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fturbopuffer.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fupstash.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fvectorize.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fvoice-azure.md +15 -0
- package/.docs/organized/changelogs/%40mastra%2Fvoice-cloudflare.md +15 -0
- package/.docs/organized/changelogs/%40mastra%2Fvoice-deepgram.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fvoice-elevenlabs.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fvoice-google.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fvoice-murf.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fvoice-openai-realtime.md +16 -10
- package/.docs/organized/changelogs/%40mastra%2Fvoice-openai.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fvoice-playai.md +16 -16
- package/.docs/organized/changelogs/%40mastra%2Fvoice-sarvam.md +15 -0
- package/.docs/organized/changelogs/%40mastra%2Fvoice-speechify.md +16 -16
- package/.docs/organized/changelogs/create-mastra.md +21 -21
- package/.docs/organized/changelogs/mastra.md +31 -31
- package/.docs/organized/code-examples/ai-sdk-useChat.md +1 -2
- package/.docs/organized/code-examples/memory-with-mem0.md +0 -1
- package/.docs/raw/agents/agent-memory.mdx +1 -5
- package/.docs/raw/getting-started/installation.mdx +40 -51
- package/.docs/raw/memory/overview.mdx +1 -2
- package/.docs/raw/memory/semantic-recall.mdx +3 -4
- package/.docs/raw/memory/working-memory.mdx +1 -2
- package/dist/_tsup-dts-rollup.d.ts +84 -18
- package/dist/{chunk-J7WZZETH.js → chunk-QWYMT5LP.js} +3 -0
- package/dist/prepare-docs/prepare.js +1 -1
- package/dist/stdio.js +252 -90
- package/package.json +5 -6
- package/.docs/organized/code-examples/mcp-configuration.md +0 -341
- package/.docs/raw/guides/ai-recruiter.mdx +0 -187
- package/.docs/raw/guides/chef-michel.mdx +0 -242
- package/.docs/raw/guides/research-assistant.mdx +0 -297
- package/.docs/raw/guides/stock-agent.mdx +0 -182
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# mastra
|
|
2
2
|
|
|
3
|
+
## 0.4.8-alpha.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- df5989d: Correct playground model setting maxSteps reset value
|
|
8
|
+
- Updated dependencies [94cd5c1]
|
|
9
|
+
- @mastra/deployer@0.2.8-alpha.1
|
|
10
|
+
|
|
11
|
+
## 0.4.8-alpha.0
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- d3c372c: Show status UI of steps on playground workflow when workflow has no triggerSchema
|
|
16
|
+
Show number of steps on workflows table
|
|
17
|
+
- Updated dependencies [a06aadc]
|
|
18
|
+
- Updated dependencies [ae6c5ce]
|
|
19
|
+
- @mastra/core@0.8.2-alpha.0
|
|
20
|
+
- @mastra/deployer@0.2.8-alpha.0
|
|
21
|
+
|
|
22
|
+
## 0.4.7
|
|
23
|
+
|
|
24
|
+
### Patch Changes
|
|
25
|
+
|
|
26
|
+
- 99e2998: Set default max steps to 5
|
|
27
|
+
- 8fdb414: Custom mastra server cors config
|
|
28
|
+
- Updated dependencies [99e2998]
|
|
29
|
+
- Updated dependencies [8fdb414]
|
|
30
|
+
- @mastra/core@0.8.1
|
|
31
|
+
- @mastra/deployer@0.2.7
|
|
32
|
+
|
|
3
33
|
## 0.4.7-alpha.0
|
|
4
34
|
|
|
5
35
|
### Patch Changes
|
|
@@ -269,34 +299,4 @@
|
|
|
269
299
|
|
|
270
300
|
### Patch Changes
|
|
271
301
|
|
|
272
|
-
|
|
273
|
-
- Updated dependencies [b3b34f5]
|
|
274
|
-
- Updated dependencies [a4686e8]
|
|
275
|
-
- @mastra/core@0.7.0-alpha.3
|
|
276
|
-
- @mastra/deployer@0.2.5-alpha.3
|
|
277
|
-
|
|
278
|
-
## 0.4.4-alpha.2
|
|
279
|
-
|
|
280
|
-
### Patch Changes
|
|
281
|
-
|
|
282
|
-
- Updated dependencies [a838fde]
|
|
283
|
-
- Updated dependencies [a8bd4cf]
|
|
284
|
-
- Updated dependencies [7a3eeb0]
|
|
285
|
-
- Updated dependencies [6530ad1]
|
|
286
|
-
- @mastra/core@0.7.0-alpha.2
|
|
287
|
-
- @mastra/deployer@0.2.5-alpha.2
|
|
288
|
-
|
|
289
|
-
## 0.4.4-alpha.1
|
|
290
|
-
|
|
291
|
-
### Patch Changes
|
|
292
|
-
|
|
293
|
-
- 2447900: Show No input for steps without input on traces UI
|
|
294
|
-
- c30787b: Stop automatically scrolling to bottom in agent chat if user has scrolled up
|
|
295
|
-
- 214e7ce: Only mark required fields as required on the playground
|
|
296
|
-
- 0b496ff: Load env vars on mastra deploy
|
|
297
|
-
- Updated dependencies [cdc0498]
|
|
298
|
-
- Updated dependencies [0b54522]
|
|
299
|
-
- Updated dependencies [1af25d5]
|
|
300
|
-
- Updated dependencies [0b496ff]
|
|
301
|
-
|
|
302
|
-
... 2428 more lines hidden. See full changelog in package directory.
|
|
302
|
+
... 2458 more lines hidden. See full changelog in package directory.
|
|
@@ -29,8 +29,7 @@
|
|
|
29
29
|
"postcss": "^8.5.3",
|
|
30
30
|
"tailwindcss": "^3.4.17",
|
|
31
31
|
"typescript": "^5.8.2"
|
|
32
|
-
}
|
|
33
|
-
"packageManager": "pnpm@9.15.4+sha512.b2dc20e2fc72b3e18848459b37359a32064663e5627a51e4c74b2c29dd8e8e0491483c3abb40789cfd578bf362fb6ba8261b05f0387d76792ed6e23ea3b1b6a0"
|
|
32
|
+
}
|
|
34
33
|
}
|
|
35
34
|
|
|
36
35
|
```
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"license": "ISC",
|
|
15
15
|
"description": "",
|
|
16
16
|
"type": "module",
|
|
17
|
-
"packageManager": "pnpm@10.5.2+sha512.da9dc28cd3ff40d0592188235ab25d3202add8a207afbedc682220e4a0029ffbff4562102b9e6e46b4e3f9e8bd53e6d05de48544b0c57d4b0179e22c76d1199b",
|
|
18
17
|
"dependencies": {
|
|
19
18
|
"@ai-sdk/openai": "latest",
|
|
20
19
|
"@mastra/core": "workspace:*",
|
|
@@ -59,8 +59,4 @@ These IDs ensure that conversation history and context are correctly stored and
|
|
|
59
59
|
|
|
60
60
|
## Next Steps
|
|
61
61
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
- **[Getting Started](/docs/memory/getting-started)**: Learn how to add basic memory to your agents.
|
|
65
|
-
- **[Memory Features](/docs/memory/overview)**: Understand core features like Threads, Conversation History, Semantic Recall, Working Memory, Tools & Memory interaction, and Frontend Integration.
|
|
66
|
-
|
|
62
|
+
Keep exploring Mastra's [memory capabilities](/docs/memory/overview) like threads, conversation history, semantic recall, and working memory.
|
|
@@ -28,27 +28,25 @@ a project, run:
|
|
|
28
28
|
|
|
29
29
|
<Tabs items={["npx", "npm", "yarn", "pnpm"]}>
|
|
30
30
|
<Tabs.Tab>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
```
|
|
35
|
-
|
|
31
|
+
```bash copy
|
|
32
|
+
npx create-mastra@latest
|
|
33
|
+
```
|
|
36
34
|
</Tabs.Tab>
|
|
37
35
|
<Tabs.Tab>
|
|
38
|
-
```bash copy
|
|
39
|
-
npm create mastra@latest
|
|
40
|
-
```
|
|
41
|
-
|
|
36
|
+
```bash copy
|
|
37
|
+
npm create mastra@latest
|
|
38
|
+
```
|
|
39
|
+
</Tabs.Tab>
|
|
42
40
|
<Tabs.Tab>
|
|
43
|
-
```bash copy
|
|
44
|
-
yarn create mastra@latest
|
|
45
|
-
|
|
46
|
-
|
|
41
|
+
```bash copy
|
|
42
|
+
yarn create mastra@latest
|
|
43
|
+
```<
|
|
44
|
+
/Tabs.Tab>
|
|
47
45
|
<Tabs.Tab>
|
|
48
|
-
```bash copy
|
|
49
|
-
pnpm create mastra@latest
|
|
50
|
-
```
|
|
51
|
-
</Tabs.Tab>
|
|
46
|
+
```bash copy
|
|
47
|
+
pnpm create mastra@latest
|
|
48
|
+
```
|
|
49
|
+
</Tabs.Tab>
|
|
52
50
|
</Tabs>
|
|
53
51
|
|
|
54
52
|
On installation, you'll be guided through the following prompts:
|
|
@@ -88,18 +86,22 @@ OPENAI_API_KEY=<your-openai-key>
|
|
|
88
86
|
```
|
|
89
87
|
|
|
90
88
|
</Steps>
|
|
91
|
-
|
|
89
|
+
|
|
90
|
+
**Non-Interactive mode**:
|
|
92
91
|
If you prefer to run the command with flags (non-interactive mode) and include the example code, you can use:
|
|
92
|
+
|
|
93
93
|
```bash copy
|
|
94
94
|
npx create-mastra@latest --components agents,tools --llm openai --example
|
|
95
95
|
```
|
|
96
|
+
|
|
96
97
|
**Configure Installation Timeout**:
|
|
97
98
|
To configure and specify a timeout if installation takes too long use the timeout flag:
|
|
99
|
+
|
|
98
100
|
```bash copy
|
|
99
101
|
npx create-mastra@latest --timeout
|
|
100
102
|
```
|
|
101
103
|
|
|
102
|
-
**Note for LLMs**:
|
|
104
|
+
**Note for LLMs**:
|
|
103
105
|
For a quick one liner that includes examples you can run `npx -y mastra@latest --project-name <ask-the-user> --example --components "tools,agents,workflows" --llm <ask-the-user>`. The available options for the llm flag are `openai|anthropic|groq|google|cerebras`
|
|
104
106
|
|
|
105
107
|
## Manual Installation
|
|
@@ -122,36 +124,29 @@ Then, initialize a TypeScript project including the `@mastra/core` package:
|
|
|
122
124
|
|
|
123
125
|
<Tabs items={["npm", "pnpm", "yarn", "bun"]}>
|
|
124
126
|
<Tabs.Tab>
|
|
125
|
-
```bash copy
|
|
126
|
-
npm init -y
|
|
127
|
-
npm install typescript tsx @types/node mastra --save-dev
|
|
128
|
-
npm install @mastra/core zod @ai-sdk/openai
|
|
129
|
-
|
|
130
|
-
```
|
|
127
|
+
```bash copy
|
|
128
|
+
npm init -y
|
|
129
|
+
npm install typescript tsx @types/node mastra --save-dev
|
|
130
|
+
npm install @mastra/core zod @ai-sdk/openai npx tsc --init
|
|
131
|
+
```
|
|
131
132
|
</Tabs.Tab>
|
|
132
133
|
<Tabs.Tab>
|
|
133
|
-
```bash copy
|
|
134
|
-
pnpm init
|
|
135
|
-
pnpm add
|
|
136
|
-
|
|
137
|
-
pnpm dlx tsc --init
|
|
138
|
-
```
|
|
134
|
+
```bash copy
|
|
135
|
+
pnpm init pnpm add typescript tsx @types/node mastra --save-dev
|
|
136
|
+
pnpm add @mastra/core zod pnpm dlx tsc --init
|
|
137
|
+
```
|
|
139
138
|
</Tabs.Tab>
|
|
140
139
|
<Tabs.Tab>
|
|
141
|
-
```bash copy
|
|
142
|
-
yarn init -y
|
|
143
|
-
yarn add
|
|
144
|
-
|
|
145
|
-
yarn dlx tsc --init
|
|
146
|
-
```
|
|
140
|
+
```bash copy
|
|
141
|
+
yarn init -y yarn add typescript tsx @types/node mastra --dev
|
|
142
|
+
yarn add @mastra/core zod yarn dlx tsc --init
|
|
143
|
+
```
|
|
147
144
|
</Tabs.Tab>
|
|
148
145
|
<Tabs.Tab>
|
|
149
|
-
```bash copy
|
|
150
|
-
bun init -y
|
|
151
|
-
bun add
|
|
152
|
-
|
|
153
|
-
bunx tsc --init
|
|
154
|
-
```
|
|
146
|
+
```bash copy
|
|
147
|
+
bun init -y bun add typescript tsx @types/node mastra --dev
|
|
148
|
+
bun add @mastra/core zod bunx tsc --init
|
|
149
|
+
```
|
|
155
150
|
</Tabs.Tab>
|
|
156
151
|
</Tabs>
|
|
157
152
|
|
|
@@ -171,14 +166,8 @@ Create a `tsconfig.json` file in your project root with the following configurat
|
|
|
171
166
|
"skipLibCheck": true,
|
|
172
167
|
"outDir": "dist"
|
|
173
168
|
},
|
|
174
|
-
"include": [
|
|
175
|
-
|
|
176
|
-
],
|
|
177
|
-
"exclude": [
|
|
178
|
-
"node_modules",
|
|
179
|
-
"dist",
|
|
180
|
-
".mastra"
|
|
181
|
-
]
|
|
169
|
+
"include": ["src/**/*"],
|
|
170
|
+
"exclude": ["node_modules", "dist", ".mastra"]
|
|
182
171
|
}
|
|
183
172
|
```
|
|
184
173
|
|
|
@@ -116,5 +116,4 @@ const agent = new Agent({
|
|
|
116
116
|
|
|
117
117
|
Now that you understand the core concepts, continue to [semantic recall](./semantic-recall.mdx) to learn how to add RAG memory to your Mastra agents.
|
|
118
118
|
|
|
119
|
-
Alternatively you can visit the [configuration reference](
|
|
120
|
-
|
|
119
|
+
Alternatively you can visit the [configuration reference](../../reference/memory/Memory.mdx) for available options, or browse [usage examples](../../examples/memory/use-chat.mdx).
|
|
@@ -10,7 +10,7 @@ It uses vector embeddings of messages for similarity search, integrates with var
|
|
|
10
10
|
|
|
11
11
|
<br />
|
|
12
12
|
<img
|
|
13
|
-
src="/semantic-recall.png"
|
|
13
|
+
src="/docs/semantic-recall.png"
|
|
14
14
|
alt="Diagram showing Mastra Memory semantic recall"
|
|
15
15
|
width={800}
|
|
16
16
|
/>
|
|
@@ -54,7 +54,7 @@ const agent = new Agent({
|
|
|
54
54
|
|
|
55
55
|
### Storage configuration
|
|
56
56
|
|
|
57
|
-
Semantic recall relies on a [storage and vector db](/
|
|
57
|
+
Semantic recall relies on a [storage and vector db](/reference/memory/Memory#parameters) to store messages and their embeddings.
|
|
58
58
|
|
|
59
59
|
```ts {8-17}
|
|
60
60
|
import { Memory } from "@mastra/memory";
|
|
@@ -86,7 +86,7 @@ const agent = new Agent({
|
|
|
86
86
|
|
|
87
87
|
### Embedder configuration
|
|
88
88
|
|
|
89
|
-
Semantic recall relies an [embedding model](/
|
|
89
|
+
Semantic recall relies an [embedding model](/reference/memory/Memory#embedder) to convert messages into embeddings. By default Mastra uses FastEmbed but you can specify another [embedding model](https://sdk.vercel.ai/docs/ai-sdk-core/embeddings).
|
|
90
90
|
|
|
91
91
|
```ts {7}
|
|
92
92
|
import { Memory } from "@mastra/memory";
|
|
@@ -120,4 +120,3 @@ You might want to disable semantic recall in scenarios like:
|
|
|
120
120
|
|
|
121
121
|
- When [conversation history](./getting-started.mdx#conversation-history-last-messages) provide sufficient context for the current conversation.
|
|
122
122
|
- In performance-sensitive applications, like realtime two-way audio, where the added latency of creating embeddings and running vector queries is noticeable.
|
|
123
|
-
|
|
@@ -2,7 +2,7 @@ import YouTube from "../../../components/youtube";
|
|
|
2
2
|
|
|
3
3
|
# Continuously Relevant Information
|
|
4
4
|
|
|
5
|
-
While [conversation history](
|
|
5
|
+
While [conversation history](/docs/memory/overview#conversation-history) and [semantic recall](./semantic-recall.mdx) help agents remember conversations, working memory allows them to maintain persistent information about users across interactions within a thread.
|
|
6
6
|
|
|
7
7
|
Think of it as the agent's active thoughts or scratchpad – the key information they keep available about the user or task. It's similar to how a person would naturally remember someone's name, preferences, or important details during a conversation.
|
|
8
8
|
|
|
@@ -85,4 +85,3 @@ If your agent is not properly updating working memory when you expect it to, you
|
|
|
85
85
|
|
|
86
86
|
- [Streaming working memory](/examples/memory/streaming-working-memory)
|
|
87
87
|
- [Using a working memory template](/examples/memory/streaming-working-memory-advanced)
|
|
88
|
-
|
|
@@ -1,27 +1,35 @@
|
|
|
1
|
-
import { FastMCP } from 'tylerbarnes-fastmcp-fix';
|
|
2
1
|
import { MCPConfiguration } from '@mastra/mcp';
|
|
2
|
+
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
3
3
|
import { ServerType } from '@hono/node-server/.';
|
|
4
|
-
import type { Tool } from 'tylerbarnes-fastmcp-fix';
|
|
5
4
|
import { z } from 'zod';
|
|
6
5
|
|
|
6
|
+
export declare type BlogInput = z.infer<typeof blogInputSchema>;
|
|
7
|
+
|
|
8
|
+
export declare const blogInputSchema: z.ZodObject<{
|
|
9
|
+
url: z.ZodString;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
url: string;
|
|
12
|
+
}, {
|
|
13
|
+
url: string;
|
|
14
|
+
}>;
|
|
15
|
+
|
|
7
16
|
export declare const blogTool: {
|
|
8
17
|
name: string;
|
|
9
18
|
description: string;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
19
|
+
execute: (args: BlogInput) => Promise<{
|
|
20
|
+
content: {
|
|
21
|
+
type: string;
|
|
22
|
+
text: string;
|
|
23
|
+
}[];
|
|
24
|
+
isError: boolean;
|
|
16
25
|
}>;
|
|
17
|
-
execute: (args: {
|
|
18
|
-
url: string;
|
|
19
|
-
}) => Promise<string>;
|
|
20
26
|
};
|
|
21
27
|
|
|
22
28
|
export declare function callTool(tool: any, args: any): Promise<string>;
|
|
23
29
|
|
|
24
|
-
declare
|
|
30
|
+
export declare type ChangesInput = z.infer<typeof changesInputSchema>;
|
|
31
|
+
|
|
32
|
+
export declare const changesInputSchema: z.ZodObject<{
|
|
25
33
|
package: z.ZodOptional<z.ZodString>;
|
|
26
34
|
}, "strip", z.ZodTypeAny, {
|
|
27
35
|
package?: string | undefined;
|
|
@@ -29,11 +37,23 @@ declare const changesSchema: z.ZodObject<{
|
|
|
29
37
|
package?: string | undefined;
|
|
30
38
|
}>;
|
|
31
39
|
|
|
32
|
-
export declare const changesTool:
|
|
40
|
+
export declare const changesTool: {
|
|
41
|
+
name: string;
|
|
42
|
+
description: string;
|
|
43
|
+
execute: (args: ChangesInput) => Promise<{
|
|
44
|
+
content: {
|
|
45
|
+
type: string;
|
|
46
|
+
text: string;
|
|
47
|
+
}[];
|
|
48
|
+
isError: boolean;
|
|
49
|
+
}>;
|
|
50
|
+
};
|
|
33
51
|
|
|
34
52
|
export declare function copyRaw(): Promise<void>;
|
|
35
53
|
|
|
36
|
-
declare
|
|
54
|
+
export declare type DocsInput = z.infer<typeof docsInputSchema>;
|
|
55
|
+
|
|
56
|
+
export declare const docsInputSchema: z.ZodObject<{
|
|
37
57
|
paths: z.ZodArray<z.ZodString, "many">;
|
|
38
58
|
}, "strip", z.ZodTypeAny, {
|
|
39
59
|
paths: string[];
|
|
@@ -41,9 +61,21 @@ declare const docsSchema: z.ZodObject<{
|
|
|
41
61
|
paths: string[];
|
|
42
62
|
}>;
|
|
43
63
|
|
|
44
|
-
export declare const docsTool:
|
|
64
|
+
export declare const docsTool: {
|
|
65
|
+
name: string;
|
|
66
|
+
description: string;
|
|
67
|
+
execute: (args: DocsInput) => Promise<{
|
|
68
|
+
content: {
|
|
69
|
+
type: string;
|
|
70
|
+
text: string;
|
|
71
|
+
}[];
|
|
72
|
+
isError: boolean;
|
|
73
|
+
}>;
|
|
74
|
+
};
|
|
45
75
|
|
|
46
|
-
declare
|
|
76
|
+
export declare type ExamplesInput = z.infer<typeof examplesInputSchema>;
|
|
77
|
+
|
|
78
|
+
export declare const examplesInputSchema: z.ZodObject<{
|
|
47
79
|
example: z.ZodOptional<z.ZodString>;
|
|
48
80
|
}, "strip", z.ZodTypeAny, {
|
|
49
81
|
example?: string | undefined;
|
|
@@ -51,7 +83,17 @@ declare const examplesSchema: z.ZodObject<{
|
|
|
51
83
|
example?: string | undefined;
|
|
52
84
|
}>;
|
|
53
85
|
|
|
54
|
-
export declare const examplesTool:
|
|
86
|
+
export declare const examplesTool: {
|
|
87
|
+
name: string;
|
|
88
|
+
description: string;
|
|
89
|
+
execute: (args: ExamplesInput) => Promise<{
|
|
90
|
+
content: {
|
|
91
|
+
type: string;
|
|
92
|
+
text: string;
|
|
93
|
+
}[];
|
|
94
|
+
isError: boolean;
|
|
95
|
+
}>;
|
|
96
|
+
};
|
|
55
97
|
|
|
56
98
|
export declare function fromPackageRoot(relative: string): string;
|
|
57
99
|
|
|
@@ -76,7 +118,31 @@ export declare function prepareCodeExamples(): Promise<void>;
|
|
|
76
118
|
*/
|
|
77
119
|
export declare function preparePackageChanges(): Promise<void>;
|
|
78
120
|
|
|
79
|
-
export declare
|
|
121
|
+
export declare function runServer(): Promise<void>;
|
|
122
|
+
|
|
123
|
+
export declare const server: Server<{
|
|
124
|
+
method: string;
|
|
125
|
+
params?: {
|
|
126
|
+
[x: string]: unknown;
|
|
127
|
+
_meta?: {
|
|
128
|
+
[x: string]: unknown;
|
|
129
|
+
progressToken?: string | number | undefined;
|
|
130
|
+
} | undefined;
|
|
131
|
+
} | undefined;
|
|
132
|
+
}, {
|
|
133
|
+
method: string;
|
|
134
|
+
params?: {
|
|
135
|
+
[x: string]: unknown;
|
|
136
|
+
_meta?: {
|
|
137
|
+
[x: string]: unknown;
|
|
138
|
+
} | undefined;
|
|
139
|
+
} | undefined;
|
|
140
|
+
}, {
|
|
141
|
+
[x: string]: unknown;
|
|
142
|
+
_meta?: {
|
|
143
|
+
[x: string]: unknown;
|
|
144
|
+
} | undefined;
|
|
145
|
+
}>;
|
|
80
146
|
|
|
81
147
|
export declare const server_alias_1: ServerType;
|
|
82
148
|
|
|
@@ -75,7 +75,9 @@ function getFileType(filePath) {
|
|
|
75
75
|
return "";
|
|
76
76
|
}
|
|
77
77
|
var DOCS_SOURCE = fromRepoRoot("docs/src/content/docs");
|
|
78
|
+
var REFERENCE_SOURCE = fromRepoRoot("docs/src/content/reference");
|
|
78
79
|
var DOCS_DEST = fromPackageRoot(".docs/raw");
|
|
80
|
+
var REFERENCE_DEST = path4.join(DOCS_DEST, "reference");
|
|
79
81
|
async function copyDir(src, dest) {
|
|
80
82
|
await fs.mkdir(dest, { recursive: true });
|
|
81
83
|
const entries = await fs.readdir(src, { withFileTypes: true });
|
|
@@ -96,6 +98,7 @@ async function copyRaw() {
|
|
|
96
98
|
} catch {
|
|
97
99
|
}
|
|
98
100
|
await copyDir(DOCS_SOURCE, DOCS_DEST);
|
|
101
|
+
await copyDir(REFERENCE_SOURCE, REFERENCE_DEST);
|
|
99
102
|
log("\u2705 Documentation files copied successfully");
|
|
100
103
|
} catch (error) {
|
|
101
104
|
console.error("\u274C Failed to copy documentation files:", error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { prepare } from '../chunk-
|
|
1
|
+
export { prepare } from '../chunk-QWYMT5LP.js';
|