@mastra/mcp-docs-server 1.1.8 → 1.1.9-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/docs/agents/agent-memory.md +2 -2
- package/.docs/docs/agents/guardrails.md +3 -3
- package/.docs/docs/agents/network-approval.md +4 -1
- package/.docs/docs/agents/networks.md +1 -1
- package/.docs/docs/agents/overview.md +1 -1
- package/.docs/docs/agents/processors.md +35 -17
- package/.docs/docs/agents/structured-output.md +1 -1
- package/.docs/docs/agents/using-tools.md +2 -2
- package/.docs/docs/build-with-ai/mcp-docs-server.md +4 -4
- package/.docs/docs/build-with-ai/skills.md +1 -1
- package/.docs/docs/community/discord.md +1 -1
- package/.docs/docs/community/licensing.md +1 -1
- package/.docs/docs/deployment/mastra-server.md +1 -1
- package/.docs/docs/deployment/studio.md +2 -2
- package/.docs/docs/deployment/web-framework.md +1 -1
- package/.docs/docs/evals/overview.md +1 -1
- package/.docs/docs/getting-started/build-with-ai.md +1 -1
- package/.docs/docs/getting-started/project-structure.md +1 -1
- package/.docs/docs/index.md +62 -16
- package/.docs/docs/mastra-cloud/deployment.md +1 -1
- package/.docs/docs/mastra-cloud/studio.md +1 -1
- package/.docs/docs/mcp/publishing-mcp-server.md +1 -1
- package/.docs/docs/memory/memory-processors.md +1 -1
- package/.docs/docs/memory/message-history.md +2 -2
- package/.docs/docs/memory/observational-memory.md +6 -2
- package/.docs/docs/memory/semantic-recall.md +2 -2
- package/.docs/docs/memory/storage.md +1 -1
- package/.docs/docs/memory/working-memory.md +6 -6
- package/.docs/docs/observability/tracing/bridges/otel.md +2 -2
- package/.docs/docs/observability/tracing/exporters/default.md +1 -1
- package/.docs/docs/observability/tracing/overview.md +4 -4
- package/.docs/docs/observability/tracing/processors/sensitive-data-filter.md +2 -2
- package/.docs/docs/rag/chunking-and-embedding.md +1 -1
- package/.docs/docs/rag/vector-databases.md +2 -2
- package/.docs/docs/server/auth/auth0.md +1 -1
- package/.docs/docs/server/auth/firebase.md +1 -1
- package/.docs/docs/server/auth/simple-auth.md +1 -1
- package/.docs/docs/server/auth.md +1 -1
- package/.docs/docs/server/mastra-client.md +1 -1
- package/.docs/docs/server/mastra-server.md +1 -1
- package/.docs/docs/server/server-adapters.md +2 -2
- package/.docs/docs/streaming/events.md +1 -1
- package/.docs/docs/streaming/overview.md +1 -1
- package/.docs/docs/streaming/tool-streaming.md +44 -30
- package/.docs/docs/streaming/workflow-streaming.md +1 -1
- package/.docs/docs/workflows/control-flow.md +44 -2
- package/.docs/docs/workflows/error-handling.md +1 -1
- package/.docs/docs/workflows/overview.md +3 -3
- package/.docs/docs/workflows/snapshots.md +1 -1
- package/.docs/docs/workflows/time-travel.md +2 -2
- package/.docs/docs/workspace/filesystem.md +2 -2
- package/.docs/docs/workspace/overview.md +52 -7
- package/.docs/docs/workspace/sandbox.md +72 -13
- package/.docs/docs/workspace/skills.md +2 -2
- package/.docs/guides/build-your-ui/copilotkit.md +1 -1
- package/.docs/guides/deployment/inngest.md +4 -4
- package/.docs/guides/guide/ai-recruiter.md +1 -1
- package/.docs/guides/guide/github-actions-pr-description.md +2 -2
- package/.docs/guides/guide/notes-mcp-server.md +1 -1
- package/.docs/guides/guide/stock-agent.md +2 -2
- package/.docs/guides/migrations/agentnetwork.md +1 -1
- package/.docs/guides/migrations/upgrade-to-v1/client.md +2 -2
- package/.docs/guides/migrations/upgrade-to-v1/deployment.md +1 -1
- package/.docs/guides/migrations/upgrade-to-v1/memory.md +2 -2
- package/.docs/guides/migrations/upgrade-to-v1/storage.md +1 -1
- package/.docs/guides/migrations/upgrade-to-v1/tools.md +2 -2
- package/.docs/guides/migrations/upgrade-to-v1/workflows.md +5 -5
- package/.docs/guides/migrations/vnext-to-standard-apis.md +2 -2
- package/.docs/models/gateways/netlify.md +1 -2
- package/.docs/models/gateways/openrouter.md +8 -1
- package/.docs/models/gateways/vercel.md +3 -1
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/abacus.md +21 -11
- package/.docs/models/providers/aihubmix.md +7 -2
- package/.docs/models/providers/alibaba-cn.md +80 -71
- package/.docs/models/providers/alibaba-coding-plan-cn.md +78 -0
- package/.docs/models/providers/alibaba-coding-plan.md +78 -0
- package/.docs/models/providers/chutes.md +1 -1
- package/.docs/models/providers/clarifai.md +81 -0
- package/.docs/models/providers/cloudferro-sherlock.md +5 -4
- package/.docs/models/providers/cloudflare-workers-ai.md +3 -2
- package/.docs/models/providers/cortecs.md +7 -5
- package/.docs/models/providers/deepinfra.md +7 -2
- package/.docs/models/providers/deepseek.md +1 -1
- package/.docs/models/providers/drun.md +73 -0
- package/.docs/models/providers/firmware.md +28 -20
- package/.docs/models/providers/google.md +3 -1
- package/.docs/models/providers/inception.md +4 -2
- package/.docs/models/providers/kilo.md +3 -1
- package/.docs/models/providers/nano-gpt.md +519 -40
- package/.docs/models/providers/nebius.md +34 -34
- package/.docs/models/providers/nvidia.md +4 -2
- package/.docs/models/providers/ollama-cloud.md +1 -2
- package/.docs/models/providers/openai.md +3 -1
- package/.docs/models/providers/opencode.md +36 -33
- package/.docs/models/providers/poe.md +8 -2
- package/.docs/models/providers/qiniu-ai.md +20 -5
- package/.docs/models/providers/requesty.md +17 -1
- package/.docs/models/providers/siliconflow-cn.md +7 -1
- package/.docs/models/providers/togetherai.md +1 -3
- package/.docs/models/providers/xai.md +28 -25
- package/.docs/models/providers/xiaomi.md +1 -1
- package/.docs/models/providers/zenmux.md +3 -1
- package/.docs/models/providers.md +4 -0
- package/.docs/reference/agents/getDefaultGenerateOptions.md +1 -1
- package/.docs/reference/agents/getDefaultOptions.md +1 -1
- package/.docs/reference/agents/getDefaultStreamOptions.md +1 -1
- package/.docs/reference/agents/getDescription.md +1 -1
- package/.docs/reference/agents/network.md +3 -1
- package/.docs/reference/ai-sdk/handle-chat-stream.md +2 -0
- package/.docs/reference/ai-sdk/handle-network-stream.md +2 -0
- package/.docs/reference/ai-sdk/network-route.md +2 -0
- package/.docs/reference/ai-sdk/to-ai-sdk-v4-messages.md +1 -1
- package/.docs/reference/ai-sdk/to-ai-sdk-v5-messages.md +1 -1
- package/.docs/reference/auth/auth0.md +3 -3
- package/.docs/reference/auth/firebase.md +1 -1
- package/.docs/reference/auth/workos.md +2 -2
- package/.docs/reference/cli/mastra.md +4 -4
- package/.docs/reference/client-js/mastra-client.md +1 -1
- package/.docs/reference/configuration.md +62 -6
- package/.docs/reference/core/getDeployer.md +1 -1
- package/.docs/reference/core/getLogger.md +1 -1
- package/.docs/reference/core/getScorer.md +2 -2
- package/.docs/reference/core/getServer.md +1 -1
- package/.docs/reference/core/getStorage.md +1 -1
- package/.docs/reference/core/getStoredAgentById.md +1 -1
- package/.docs/reference/core/getTelemetry.md +1 -1
- package/.docs/reference/core/getWorkflow.md +1 -1
- package/.docs/reference/core/listAgents.md +1 -1
- package/.docs/reference/core/listMCPServers.md +1 -1
- package/.docs/reference/core/listStoredAgents.md +1 -1
- package/.docs/reference/core/listVectors.md +1 -1
- package/.docs/reference/core/mastra-class.md +1 -1
- package/.docs/reference/core/setLogger.md +1 -1
- package/.docs/reference/core/setStorage.md +1 -1
- package/.docs/reference/datasets/dataset.md +1 -1
- package/.docs/reference/datasets/datasets-manager.md +1 -1
- package/.docs/reference/datasets/get.md +2 -2
- package/.docs/reference/datasets/getDetails.md +1 -1
- package/.docs/reference/datasets/listItems.md +1 -1
- package/.docs/reference/deployer/vercel.md +1 -1
- package/.docs/reference/evals/answer-relevancy.md +1 -1
- package/.docs/reference/evals/completeness.md +1 -1
- package/.docs/reference/evals/context-precision.md +3 -3
- package/.docs/reference/evals/context-relevance.md +1 -1
- package/.docs/reference/evals/hallucination.md +3 -9
- package/.docs/reference/evals/keyword-coverage.md +1 -1
- package/.docs/reference/evals/mastra-scorer.md +1 -1
- package/.docs/reference/evals/noise-sensitivity.md +2 -2
- package/.docs/reference/evals/textual-difference.md +1 -1
- package/.docs/reference/evals/tone-consistency.md +1 -1
- package/.docs/reference/evals/tool-call-accuracy.md +1 -1
- package/.docs/reference/harness/harness-class.md +4 -2
- package/.docs/reference/index.md +2 -0
- package/.docs/reference/memory/cloneThread.md +1 -1
- package/.docs/reference/memory/observational-memory.md +7 -5
- package/.docs/reference/observability/tracing/bridges/otel.md +1 -1
- package/.docs/reference/observability/tracing/processors/sensitive-data-filter.md +1 -1
- package/.docs/reference/observability/tracing/spans.md +2 -0
- package/.docs/reference/processors/message-history-processor.md +1 -1
- package/.docs/reference/processors/processor-interface.md +6 -2
- package/.docs/reference/processors/token-limiter-processor.md +2 -2
- package/.docs/reference/rag/metadata-filters.md +10 -10
- package/.docs/reference/server/create-route.md +2 -0
- package/.docs/reference/server/koa-adapter.md +1 -1
- package/.docs/reference/server/register-api-route.md +2 -2
- package/.docs/reference/storage/cloudflare-d1.md +3 -3
- package/.docs/reference/storage/cloudflare.md +1 -1
- package/.docs/reference/storage/convex.md +1 -1
- package/.docs/reference/storage/dynamodb.md +2 -2
- package/.docs/reference/storage/lance.md +2 -2
- package/.docs/reference/storage/mongodb.md +1 -1
- package/.docs/reference/storage/mssql.md +1 -1
- package/.docs/reference/storage/postgresql.md +2 -2
- package/.docs/reference/storage/upstash.md +1 -1
- package/.docs/reference/streaming/workflows/observeStream.md +1 -1
- package/.docs/reference/templates/overview.md +1 -1
- package/.docs/reference/tools/create-tool.md +1 -1
- package/.docs/reference/tools/mcp-server.md +4 -4
- package/.docs/reference/vectors/chroma.md +2 -2
- package/.docs/reference/vectors/couchbase.md +6 -6
- package/.docs/reference/vectors/pg.md +2 -0
- package/.docs/reference/vectors/s3vectors.md +5 -5
- package/.docs/reference/voice/azure.md +4 -2
- package/.docs/reference/voice/cloudflare.md +4 -2
- package/.docs/reference/voice/elevenlabs.md +1 -1
- package/.docs/reference/voice/google-gemini-live.md +2 -2
- package/.docs/reference/voice/google.md +3 -3
- package/.docs/reference/voice/mastra-voice.md +1 -1
- package/.docs/reference/voice/murf.md +2 -2
- package/.docs/reference/voice/openai-realtime.md +3 -1
- package/.docs/reference/voice/openai.md +7 -3
- package/.docs/reference/voice/playai.md +4 -2
- package/.docs/reference/voice/sarvam.md +3 -1
- package/.docs/reference/voice/speechify.md +6 -4
- package/.docs/reference/voice/voice.addInstructions.md +2 -2
- package/.docs/reference/voice/voice.addTools.md +1 -1
- package/.docs/reference/voice/voice.close.md +2 -2
- package/.docs/reference/voice/voice.connect.md +4 -2
- package/.docs/reference/voice/voice.events.md +2 -2
- package/.docs/reference/voice/voice.getSpeakers.md +1 -1
- package/.docs/reference/voice/voice.listen.md +11 -5
- package/.docs/reference/voice/voice.off.md +2 -2
- package/.docs/reference/voice/voice.on.md +2 -2
- package/.docs/reference/voice/voice.speak.md +14 -4
- package/.docs/reference/voice/voice.updateConfig.md +1 -1
- package/.docs/reference/workflows/run-methods/timeTravel.md +1 -1
- package/.docs/reference/workspace/blaxel-sandbox.md +164 -0
- package/.docs/reference/workspace/daytona-sandbox.md +48 -139
- package/.docs/reference/workspace/e2b-sandbox.md +39 -75
- package/.docs/reference/workspace/filesystem.md +24 -10
- package/.docs/reference/workspace/gcs-filesystem.md +20 -0
- package/.docs/reference/workspace/local-filesystem.md +23 -9
- package/.docs/reference/workspace/local-sandbox.md +23 -98
- package/.docs/reference/workspace/process-manager.md +296 -0
- package/.docs/reference/workspace/s3-filesystem.md +20 -0
- package/.docs/reference/workspace/sandbox.md +9 -1
- package/.docs/reference/workspace/workspace-class.md +93 -25
- package/CHANGELOG.md +8 -0
- package/dist/tools/course.d.ts +7 -27
- package/dist/tools/course.d.ts.map +1 -1
- package/dist/tools/docs.d.ts +6 -18
- package/dist/tools/docs.d.ts.map +1 -1
- package/dist/tools/embedded-docs.d.ts +12 -112
- package/dist/tools/embedded-docs.d.ts.map +1 -1
- package/dist/tools/migration.d.ts +6 -26
- package/dist/tools/migration.d.ts.map +1 -1
- package/package.json +7 -7
|
@@ -55,8 +55,12 @@ const workspace = new Workspace({
|
|
|
55
55
|
|
|
56
56
|
**tools.requireApproval** (`boolean`): Whether the tool requires user approval before execution
|
|
57
57
|
|
|
58
|
+
**tools.name** (`string`): Custom name to expose this tool as. Replaces the default \`mastra\_workspace\_\*\` name. The config key must still use the original \`WORKSPACE\_TOOLS\` constant.
|
|
59
|
+
|
|
58
60
|
**tools.requireReadBeforeWrite** (`boolean`): For write tools: require reading the file first to prevent overwrites
|
|
59
61
|
|
|
62
|
+
**tools.maxOutputTokens** (`number`): Maximum tokens for tool output. Output exceeding this limit is truncated using tiktoken.
|
|
63
|
+
|
|
60
64
|
**operationTimeout** (`number`): Timeout for operations in milliseconds
|
|
61
65
|
|
|
62
66
|
## Tool configuration
|
|
@@ -64,18 +68,23 @@ const workspace = new Workspace({
|
|
|
64
68
|
The `tools` option accepts a `WorkspaceToolsConfig` object that controls which workspace tools are enabled and their safety settings.
|
|
65
69
|
|
|
66
70
|
```typescript
|
|
67
|
-
import {
|
|
68
|
-
|
|
69
|
-
tools: {
|
|
70
|
-
// Global defaults (apply to all tools)
|
|
71
|
-
enabled: true,
|
|
72
|
-
requireApproval: false,
|
|
71
|
+
import { Workspace } from '@mastra/core/workspace'
|
|
72
|
+
import { WORKSPACE_TOOLS } from '@mastra/core/workspace'
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
const workspace = new Workspace({
|
|
75
|
+
id: 'my-workspace',
|
|
76
|
+
name: 'My Workspace',
|
|
77
|
+
tools: {
|
|
78
|
+
// Global defaults (apply to all tools)
|
|
79
|
+
enabled: true,
|
|
80
|
+
requireApproval: false,
|
|
81
|
+
|
|
82
|
+
// Per-tool overrides using WORKSPACE_TOOLS constants
|
|
83
|
+
[WORKSPACE_TOOLS.FILESYSTEM.WRITE_FILE]: {
|
|
84
|
+
requireApproval: true,
|
|
85
|
+
},
|
|
77
86
|
},
|
|
78
|
-
}
|
|
87
|
+
})
|
|
79
88
|
```
|
|
80
89
|
|
|
81
90
|
The config object has two parts:
|
|
@@ -85,6 +94,26 @@ The config object has two parts:
|
|
|
85
94
|
|
|
86
95
|
See [workspace overview](https://mastra.ai/docs/workspace/overview) for more examples.
|
|
87
96
|
|
|
97
|
+
### Tool name remapping
|
|
98
|
+
|
|
99
|
+
Rename workspace tools by setting the `name` property on individual tool configs. The config key remains the original constant — only the name exposed to the agent changes.
|
|
100
|
+
|
|
101
|
+
```typescript
|
|
102
|
+
import { Workspace } from '@mastra/core/workspace'
|
|
103
|
+
import { WORKSPACE_TOOLS } from '@mastra/core/workspace'
|
|
104
|
+
|
|
105
|
+
const workspace = new Workspace({
|
|
106
|
+
id: 'my-workspace',
|
|
107
|
+
name: 'My Workspace',
|
|
108
|
+
tools: {
|
|
109
|
+
[WORKSPACE_TOOLS.FILESYSTEM.READ_FILE]: { name: 'view' },
|
|
110
|
+
[WORKSPACE_TOOLS.FILESYSTEM.GREP]: { name: 'search_content' },
|
|
111
|
+
},
|
|
112
|
+
})
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Tool names must be unique across all workspace tools. Setting a custom name that conflicts with another tool's default or custom name throws an error.
|
|
116
|
+
|
|
88
117
|
## Properties
|
|
89
118
|
|
|
90
119
|
**id** (`string`): Workspace identifier
|
|
@@ -193,30 +222,53 @@ To override the default output, pass an `instructions` option to [LocalFilesyste
|
|
|
193
222
|
|
|
194
223
|
#### `getToolsConfig()`
|
|
195
224
|
|
|
196
|
-
Get the tools configuration.
|
|
225
|
+
Get the current tools configuration.
|
|
197
226
|
|
|
198
227
|
```typescript
|
|
199
228
|
const config = workspace.getToolsConfig()
|
|
200
229
|
```
|
|
201
230
|
|
|
231
|
+
**Returns:** `WorkspaceToolsConfig | undefined`
|
|
232
|
+
|
|
233
|
+
#### `setToolsConfig(config?)`
|
|
234
|
+
|
|
235
|
+
Replace the per-tool configuration at runtime. This performs a full replacement — it doesn't merge with the previous config. Pass `undefined` to reset to defaults. Changes take effect on the next agent interaction (the next `createWorkspaceTools()` call).
|
|
236
|
+
|
|
237
|
+
```typescript
|
|
238
|
+
import { WORKSPACE_TOOLS } from '@mastra/core/workspace'
|
|
239
|
+
|
|
240
|
+
// Disable write tools for read-only mode
|
|
241
|
+
workspace.setToolsConfig({
|
|
242
|
+
[WORKSPACE_TOOLS.FILESYSTEM.WRITE_FILE]: { enabled: false },
|
|
243
|
+
[WORKSPACE_TOOLS.FILESYSTEM.EDIT_FILE]: { enabled: false },
|
|
244
|
+
})
|
|
245
|
+
|
|
246
|
+
// Reset to defaults
|
|
247
|
+
workspace.setToolsConfig(undefined)
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
**Parameters:**
|
|
251
|
+
|
|
252
|
+
**config** (`WorkspaceToolsConfig | undefined`): New tool configuration to apply. Pass undefined to reset to defaults.
|
|
253
|
+
|
|
202
254
|
## Agent tools
|
|
203
255
|
|
|
204
|
-
A workspace provides tools to agents based on what
|
|
256
|
+
A workspace provides tools to agents based on what's configured.
|
|
205
257
|
|
|
206
258
|
### Filesystem tools
|
|
207
259
|
|
|
208
260
|
Added when a filesystem is configured:
|
|
209
261
|
|
|
210
|
-
| Tool | Description
|
|
211
|
-
| ----------------------------- |
|
|
212
|
-
| `mastra_workspace_read_file` | Read file contents. Supports optional line range for reading specific portions of large files.
|
|
213
|
-
| `mastra_workspace_write_file` | Create or overwrite a file with new content. Creates parent directories automatically.
|
|
214
|
-
| `mastra_workspace_edit_file` | Edit an existing file by finding and replacing text. Useful for targeted changes without rewriting the entire file.
|
|
215
|
-
| `mastra_workspace_list_files` | List directory contents as a tree structure. Supports recursive listing with depth limits.
|
|
216
|
-
| `mastra_workspace_delete` | Delete a file or directory. Supports recursive deletion for directories.
|
|
217
|
-
| `mastra_workspace_file_stat` | Get metadata about a file or directory including size, type, and modification time.
|
|
218
|
-
| `mastra_workspace_mkdir` | Create a directory. Creates parent directories automatically if they don't exist.
|
|
219
|
-
| `mastra_workspace_grep` | Search file contents using regex patterns. Supports glob filtering, context lines, and case-insensitive search.
|
|
262
|
+
| Tool | Description |
|
|
263
|
+
| ----------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
264
|
+
| `mastra_workspace_read_file` | Read file contents. Supports optional line range for reading specific portions of large files. |
|
|
265
|
+
| `mastra_workspace_write_file` | Create or overwrite a file with new content. Creates parent directories automatically. |
|
|
266
|
+
| `mastra_workspace_edit_file` | Edit an existing file by finding and replacing text. Useful for targeted changes without rewriting the entire file. |
|
|
267
|
+
| `mastra_workspace_list_files` | List directory contents as a tree structure. Supports recursive listing with depth limits, glob patterns, and `.gitignore` filtering (enabled by default). |
|
|
268
|
+
| `mastra_workspace_delete` | Delete a file or directory. Supports recursive deletion for directories. |
|
|
269
|
+
| `mastra_workspace_file_stat` | Get metadata about a file or directory including size, type, and modification time. |
|
|
270
|
+
| `mastra_workspace_mkdir` | Create a directory. Creates parent directories automatically if they don't exist. |
|
|
271
|
+
| `mastra_workspace_grep` | Search file contents using regex patterns. Supports glob filtering, context lines, and case-insensitive search. |
|
|
220
272
|
|
|
221
273
|
Write tools (`write_file`, `edit_file`, `delete`, `mkdir`) are excluded when the filesystem is in read-only mode.
|
|
222
274
|
|
|
@@ -224,9 +276,25 @@ Write tools (`write_file`, `edit_file`, `delete`, `mkdir`) are excluded when the
|
|
|
224
276
|
|
|
225
277
|
Added when a sandbox is configured:
|
|
226
278
|
|
|
227
|
-
| Tool
|
|
228
|
-
|
|
|
229
|
-
| `mastra_workspace_execute_command`
|
|
279
|
+
| Tool | Description |
|
|
280
|
+
| ------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
281
|
+
| `mastra_workspace_execute_command` | Execute a shell command. Returns stdout, stderr, and exit code. When the sandbox has a process manager, accepts `background: true` to spawn a long-running process and return a PID. |
|
|
282
|
+
| `mastra_workspace_get_process_output` | Get stdout, stderr, and status of a background process by PID. Accepts `tail` to limit output lines and `wait: true` to block until exit. Only available when the sandbox has a process manager. |
|
|
283
|
+
| `mastra_workspace_kill_process` | Kill a background process by PID. Returns the last 50 lines of output. Only available when the sandbox has a process manager. |
|
|
284
|
+
|
|
285
|
+
The `execute_command` tool accepts a `backgroundProcesses` option for lifecycle callbacks on background processes:
|
|
286
|
+
|
|
287
|
+
**backgroundProcesses** (`BackgroundProcessesConfig`): Configuration for handling background processes. Only applicable if the sandbox supports background execution.
|
|
288
|
+
|
|
289
|
+
**backgroundProcesses.onStdout** (`(data: string, meta: BackgroundProcessMeta) => void`): Callback for stdout chunks from background processes.
|
|
290
|
+
|
|
291
|
+
**backgroundProcesses.onStderr** (`(data: string, meta: BackgroundProcessMeta) => void`): Callback for stderr chunks from background processes.
|
|
292
|
+
|
|
293
|
+
**backgroundProcesses.onExit** (`(meta: BackgroundProcessExitMeta) => void`): Callback when a background process exits. Meta includes pid, exitCode, stdout, and stderr.
|
|
294
|
+
|
|
295
|
+
**backgroundProcesses.abortSignal** (`AbortSignal | null | false`): Abort signal for background processes. undefined (default) uses the agent's signal. null or false disables abort — processes persist after agent shutdown.
|
|
296
|
+
|
|
297
|
+
See [Background process callbacks](https://mastra.ai/docs/workspace/sandbox) for usage examples.
|
|
230
298
|
|
|
231
299
|
### Search tools
|
|
232
300
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @mastra/mcp-docs-server
|
|
2
2
|
|
|
3
|
+
## 1.1.9-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`4f71b43`](https://github.com/mastra-ai/mastra/commit/4f71b436a4a6b8839842d8da47b57b84509af56c), [`a070277`](https://github.com/mastra-ai/mastra/commit/a07027766ce195ba74d0783116d894cbab25d44c), [`b628b91`](https://github.com/mastra-ai/mastra/commit/b628b9128b372c0f54214d902b07279f03443900), [`332c014`](https://github.com/mastra-ai/mastra/commit/332c014e076b81edf7fe45b58205882726415e90), [`6b63153`](https://github.com/mastra-ai/mastra/commit/6b63153878ea841c0f4ce632ba66bb33e57e9c1b), [`4246e34`](https://github.com/mastra-ai/mastra/commit/4246e34cec9c26636d0965942268e6d07c346671), [`b8837ee`](https://github.com/mastra-ai/mastra/commit/b8837ee77e2e84197609762bfabd8b3da326d30c), [`5d950f7`](https://github.com/mastra-ai/mastra/commit/5d950f7bf426a215a1808f0abef7de5c8336ba1c), [`28c85b1`](https://github.com/mastra-ai/mastra/commit/28c85b184fc32b40f7f160483c982da6d388ecbd), [`e9a08fb`](https://github.com/mastra-ai/mastra/commit/e9a08fbef1ada7e50e961e2f54f55e8c10b4a45c), [`631ffd8`](https://github.com/mastra-ai/mastra/commit/631ffd82fed108648b448b28e6a90e38c5f53bf5), [`aae2295`](https://github.com/mastra-ai/mastra/commit/aae2295838a2d329ad6640829e87934790ffe5b8), [`aa61f29`](https://github.com/mastra-ai/mastra/commit/aa61f29ff8095ce46a4ae16e46c4d8c79b2b685b), [`7ff3714`](https://github.com/mastra-ai/mastra/commit/7ff37148515439bb3be009a60e02c3e363299760), [`41d79a1`](https://github.com/mastra-ai/mastra/commit/41d79a14bd8cb6de1e2565fd0a04786bae2f211b), [`e673376`](https://github.com/mastra-ai/mastra/commit/e6733763ad1321aa7e5ae15096b9c2104f93b1f3), [`b2204c9`](https://github.com/mastra-ai/mastra/commit/b2204c98a42848bbfb6f0440f005dc2b6354f1cd), [`a1bf1e3`](https://github.com/mastra-ai/mastra/commit/a1bf1e385ed4c0ef6f11b56c5887442970d127f2), [`b6f647a`](https://github.com/mastra-ai/mastra/commit/b6f647ae2388e091f366581595feb957e37d5b40), [`0c57b8b`](https://github.com/mastra-ai/mastra/commit/0c57b8b0a69a97b5a4ae3f79be6c610f29f3cf7b), [`b081f27`](https://github.com/mastra-ai/mastra/commit/b081f272cf411716e1d6bd72ceac4bcee2657b19), [`0c09eac`](https://github.com/mastra-ai/mastra/commit/0c09eacb1926f64cfdc9ae5c6d63385cf8c9f72c), [`6b9b93d`](https://github.com/mastra-ai/mastra/commit/6b9b93d6f459d1ba6e36f163abf62a085ddb3d64), [`31b6067`](https://github.com/mastra-ai/mastra/commit/31b6067d0cc3ab10e1b29c36147f3b5266bc714a), [`797ac42`](https://github.com/mastra-ai/mastra/commit/797ac4276de231ad2d694d9aeca75980f6cd0419), [`0bc289e`](https://github.com/mastra-ai/mastra/commit/0bc289e2d476bf46c5b91c21969e8d0c6864691c), [`9b75a06`](https://github.com/mastra-ai/mastra/commit/9b75a06e53ebb0b950ba7c1e83a0142047185f46), [`4c3a1b1`](https://github.com/mastra-ai/mastra/commit/4c3a1b122ea083e003d71092f30f3b31680b01c0), [`85cc3b3`](https://github.com/mastra-ai/mastra/commit/85cc3b3b6f32ae4b083c26498f50d5b250ba944b), [`97ea28c`](https://github.com/mastra-ai/mastra/commit/97ea28c746e9e4147d56047bbb1c4a92417a3fec), [`d567299`](https://github.com/mastra-ai/mastra/commit/d567299cf81e02bd9d5221d4bc05967d6c224161), [`716ffe6`](https://github.com/mastra-ai/mastra/commit/716ffe68bed81f7c2690bc8581b9e140f7bf1c3d), [`8296332`](https://github.com/mastra-ai/mastra/commit/8296332de21c16e3dfc3d0b2d615720a6dc88f2f), [`4df2116`](https://github.com/mastra-ai/mastra/commit/4df211619dd922c047d396ca41cd7027c8c4c8e7), [`2219c1a`](https://github.com/mastra-ai/mastra/commit/2219c1acbd21da116da877f0036ffb985a9dd5a3), [`17c4145`](https://github.com/mastra-ai/mastra/commit/17c4145166099354545582335b5252bdfdfd908b)]:
|
|
8
|
+
- @mastra/core@1.11.0-alpha.0
|
|
9
|
+
- @mastra/mcp@1.1.0
|
|
10
|
+
|
|
3
11
|
## 1.1.8
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/tools/course.d.ts
CHANGED
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
declare const _courseLessonSchema: z.ZodObject<{
|
|
3
3
|
lessonName: z.ZodString;
|
|
4
|
-
},
|
|
5
|
-
lessonName: string;
|
|
6
|
-
}, {
|
|
7
|
-
lessonName: string;
|
|
8
|
-
}>;
|
|
4
|
+
}, z.core.$strip>;
|
|
9
5
|
declare const _confirmationSchema: z.ZodObject<{
|
|
10
6
|
confirm: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
-
},
|
|
12
|
-
confirm?: boolean | undefined;
|
|
13
|
-
}, {
|
|
14
|
-
confirm?: boolean | undefined;
|
|
15
|
-
}>;
|
|
7
|
+
}, z.core.$strip>;
|
|
16
8
|
type CourseState = {
|
|
17
9
|
currentLesson: string;
|
|
18
10
|
lessons: Array<{
|
|
@@ -36,11 +28,7 @@ export declare const startMastraCourse: {
|
|
|
36
28
|
description: string;
|
|
37
29
|
parameters: z.ZodObject<{
|
|
38
30
|
email: z.ZodOptional<z.ZodString>;
|
|
39
|
-
},
|
|
40
|
-
email?: string | undefined;
|
|
41
|
-
}, {
|
|
42
|
-
email?: string | undefined;
|
|
43
|
-
}>;
|
|
31
|
+
}, z.core.$strip>;
|
|
44
32
|
execute: (args: {
|
|
45
33
|
email?: string;
|
|
46
34
|
}) => Promise<string>;
|
|
@@ -48,7 +36,7 @@ export declare const startMastraCourse: {
|
|
|
48
36
|
export declare const getMastraCourseStatus: {
|
|
49
37
|
name: string;
|
|
50
38
|
description: string;
|
|
51
|
-
parameters: z.ZodObject<{},
|
|
39
|
+
parameters: z.ZodObject<{}, z.core.$strip>;
|
|
52
40
|
execute: (_args: Record<string, never>) => Promise<string>;
|
|
53
41
|
};
|
|
54
42
|
export declare const startMastraCourseLesson: {
|
|
@@ -56,17 +44,13 @@ export declare const startMastraCourseLesson: {
|
|
|
56
44
|
description: string;
|
|
57
45
|
parameters: z.ZodObject<{
|
|
58
46
|
lessonName: z.ZodString;
|
|
59
|
-
},
|
|
60
|
-
lessonName: string;
|
|
61
|
-
}, {
|
|
62
|
-
lessonName: string;
|
|
63
|
-
}>;
|
|
47
|
+
}, z.core.$strip>;
|
|
64
48
|
execute: (args: z.infer<typeof _courseLessonSchema>) => Promise<string>;
|
|
65
49
|
};
|
|
66
50
|
export declare const nextMastraCourseStep: {
|
|
67
51
|
name: string;
|
|
68
52
|
description: string;
|
|
69
|
-
parameters: z.ZodObject<{},
|
|
53
|
+
parameters: z.ZodObject<{}, z.core.$strip>;
|
|
70
54
|
execute: (_args: Record<string, never>) => Promise<string>;
|
|
71
55
|
};
|
|
72
56
|
export declare const clearMastraCourseHistory: {
|
|
@@ -74,11 +58,7 @@ export declare const clearMastraCourseHistory: {
|
|
|
74
58
|
description: string;
|
|
75
59
|
parameters: z.ZodObject<{
|
|
76
60
|
confirm: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
-
},
|
|
78
|
-
confirm?: boolean | undefined;
|
|
79
|
-
}, {
|
|
80
|
-
confirm?: boolean | undefined;
|
|
81
|
-
}>;
|
|
61
|
+
}, z.core.$strip>;
|
|
82
62
|
execute: (args: z.infer<typeof _confirmationSchema>) => Promise<string>;
|
|
83
63
|
};
|
|
84
64
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"course.d.ts","sourceRoot":"","sources":["../../src/tools/course.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,QAAA,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"course.d.ts","sourceRoot":"","sources":["../../src/tools/course.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,QAAA,MAAM,mBAAmB;;iBAEvB,CAAC;AAEH,QAAA,MAAM,mBAAmB;;iBAEvB,CAAC;AAGH,KAAK,WAAW,GAAG;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,KAAK,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,KAAK,CAAC;YACX,IAAI,EAAE,MAAM,CAAC;YACb,MAAM,EAAE,MAAM,CAAC;SAChB,CAAC,CAAC;KACJ,CAAC,CAAC;CACJ,CAAC;AAoGF,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAmCzE;AA+CD,wBAAgB,gCAAgC,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAgDpG;AA6LD,eAAO,MAAM,iBAAiB;;;;;;oBAON;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE;CA0HzC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;qBAKT,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;CAqF7C,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;oBAKZ,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC;CAwD1D,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;qBAKR,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC;CAgG7C,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;oBAKb,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC;CA8B1D,CAAC"}
|
package/dist/tools/docs.d.ts
CHANGED
|
@@ -1,28 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const docsInputSchema: z.ZodObject<{
|
|
3
|
-
paths: z.ZodArray<z.ZodString
|
|
4
|
-
queryKeywords: z.ZodOptional<z.ZodArray<z.ZodString
|
|
5
|
-
},
|
|
6
|
-
paths: string[];
|
|
7
|
-
queryKeywords?: string[] | undefined;
|
|
8
|
-
}, {
|
|
9
|
-
paths: string[];
|
|
10
|
-
queryKeywords?: string[] | undefined;
|
|
11
|
-
}>;
|
|
3
|
+
paths: z.ZodArray<z.ZodString>;
|
|
4
|
+
queryKeywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5
|
+
}, z.core.$strip>;
|
|
12
6
|
export type DocsInput = z.infer<typeof docsInputSchema>;
|
|
13
7
|
export declare const docsTool: {
|
|
14
8
|
name: string;
|
|
15
9
|
description: string;
|
|
16
10
|
parameters: z.ZodObject<{
|
|
17
|
-
paths: z.ZodArray<z.ZodString
|
|
18
|
-
queryKeywords: z.ZodOptional<z.ZodArray<z.ZodString
|
|
19
|
-
},
|
|
20
|
-
paths: string[];
|
|
21
|
-
queryKeywords?: string[] | undefined;
|
|
22
|
-
}, {
|
|
23
|
-
paths: string[];
|
|
24
|
-
queryKeywords?: string[] | undefined;
|
|
25
|
-
}>;
|
|
11
|
+
paths: z.ZodArray<z.ZodString>;
|
|
12
|
+
queryKeywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
|
+
}, z.core.$strip>;
|
|
26
14
|
execute: (args: DocsInput) => Promise<string>;
|
|
27
15
|
};
|
|
28
16
|
//# sourceMappingURL=docs.d.ts.map
|
package/dist/tools/docs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../src/tools/docs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyLxB,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"docs.d.ts","sourceRoot":"","sources":["../../src/tools/docs.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAyLxB,eAAO,MAAM,eAAe;;;iBAW1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,QAAQ;;;;;;;oBAgBG,SAAS;CAwDhC,CAAC"}
|
|
@@ -4,11 +4,7 @@ export declare const getMastraHelpTool: {
|
|
|
4
4
|
description: string;
|
|
5
5
|
parameters: z.ZodObject<{
|
|
6
6
|
projectPath: z.ZodString;
|
|
7
|
-
},
|
|
8
|
-
projectPath: string;
|
|
9
|
-
}, {
|
|
10
|
-
projectPath: string;
|
|
11
|
-
}>;
|
|
7
|
+
}, z.core.$strip>;
|
|
12
8
|
execute: (args: {
|
|
13
9
|
projectPath: string;
|
|
14
10
|
}) => Promise<string>;
|
|
@@ -18,11 +14,7 @@ export declare const listInstalledPackagesTool: {
|
|
|
18
14
|
description: string;
|
|
19
15
|
parameters: z.ZodObject<{
|
|
20
16
|
projectPath: z.ZodString;
|
|
21
|
-
},
|
|
22
|
-
projectPath: string;
|
|
23
|
-
}, {
|
|
24
|
-
projectPath: string;
|
|
25
|
-
}>;
|
|
17
|
+
}, z.core.$strip>;
|
|
26
18
|
execute: (args: {
|
|
27
19
|
projectPath: string;
|
|
28
20
|
}) => Promise<string>;
|
|
@@ -34,15 +26,7 @@ export declare const readSourceMapTool: {
|
|
|
34
26
|
package: z.ZodString;
|
|
35
27
|
projectPath: z.ZodString;
|
|
36
28
|
filter: z.ZodOptional<z.ZodString>;
|
|
37
|
-
},
|
|
38
|
-
projectPath: string;
|
|
39
|
-
package: string;
|
|
40
|
-
filter?: string | undefined;
|
|
41
|
-
}, {
|
|
42
|
-
projectPath: string;
|
|
43
|
-
package: string;
|
|
44
|
-
filter?: string | undefined;
|
|
45
|
-
}>;
|
|
29
|
+
}, z.core.$strip>;
|
|
46
30
|
execute: (args: {
|
|
47
31
|
package: string;
|
|
48
32
|
projectPath: string;
|
|
@@ -59,21 +43,7 @@ export declare const findExportTool: {
|
|
|
59
43
|
includeImplementation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
60
44
|
implementationLines: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
61
45
|
projectPath: z.ZodString;
|
|
62
|
-
},
|
|
63
|
-
projectPath: string;
|
|
64
|
-
package: string;
|
|
65
|
-
exportName: string;
|
|
66
|
-
includeTypes: boolean;
|
|
67
|
-
includeImplementation: boolean;
|
|
68
|
-
implementationLines: number;
|
|
69
|
-
}, {
|
|
70
|
-
projectPath: string;
|
|
71
|
-
package: string;
|
|
72
|
-
exportName: string;
|
|
73
|
-
includeTypes?: boolean | undefined;
|
|
74
|
-
includeImplementation?: boolean | undefined;
|
|
75
|
-
implementationLines?: number | undefined;
|
|
76
|
-
}>;
|
|
46
|
+
}, z.core.$strip>;
|
|
77
47
|
execute: (args: {
|
|
78
48
|
package: string;
|
|
79
49
|
exportName: string;
|
|
@@ -91,17 +61,7 @@ export declare const readEmbeddedDocsTool: {
|
|
|
91
61
|
topic: z.ZodOptional<z.ZodString>;
|
|
92
62
|
file: z.ZodOptional<z.ZodString>;
|
|
93
63
|
projectPath: z.ZodString;
|
|
94
|
-
},
|
|
95
|
-
projectPath: string;
|
|
96
|
-
package: string;
|
|
97
|
-
topic?: string | undefined;
|
|
98
|
-
file?: string | undefined;
|
|
99
|
-
}, {
|
|
100
|
-
projectPath: string;
|
|
101
|
-
package: string;
|
|
102
|
-
topic?: string | undefined;
|
|
103
|
-
file?: string | undefined;
|
|
104
|
-
}>;
|
|
64
|
+
}, z.core.$strip>;
|
|
105
65
|
execute: (args: {
|
|
106
66
|
package: string;
|
|
107
67
|
projectPath: string;
|
|
@@ -117,17 +77,7 @@ export declare const searchEmbeddedDocsTool: {
|
|
|
117
77
|
package: z.ZodOptional<z.ZodString>;
|
|
118
78
|
maxResults: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
119
79
|
projectPath: z.ZodString;
|
|
120
|
-
},
|
|
121
|
-
projectPath: string;
|
|
122
|
-
query: string;
|
|
123
|
-
maxResults: number;
|
|
124
|
-
package?: string | undefined;
|
|
125
|
-
}, {
|
|
126
|
-
projectPath: string;
|
|
127
|
-
query: string;
|
|
128
|
-
package?: string | undefined;
|
|
129
|
-
maxResults?: number | undefined;
|
|
130
|
-
}>;
|
|
80
|
+
}, z.core.$strip>;
|
|
131
81
|
execute: (args: {
|
|
132
82
|
query: string;
|
|
133
83
|
projectPath: string;
|
|
@@ -141,11 +91,7 @@ export declare const embeddedDocsTools: {
|
|
|
141
91
|
description: string;
|
|
142
92
|
parameters: z.ZodObject<{
|
|
143
93
|
projectPath: z.ZodString;
|
|
144
|
-
},
|
|
145
|
-
projectPath: string;
|
|
146
|
-
}, {
|
|
147
|
-
projectPath: string;
|
|
148
|
-
}>;
|
|
94
|
+
}, z.core.$strip>;
|
|
149
95
|
execute: (args: {
|
|
150
96
|
projectPath: string;
|
|
151
97
|
}) => Promise<string>;
|
|
@@ -155,11 +101,7 @@ export declare const embeddedDocsTools: {
|
|
|
155
101
|
description: string;
|
|
156
102
|
parameters: z.ZodObject<{
|
|
157
103
|
projectPath: z.ZodString;
|
|
158
|
-
},
|
|
159
|
-
projectPath: string;
|
|
160
|
-
}, {
|
|
161
|
-
projectPath: string;
|
|
162
|
-
}>;
|
|
104
|
+
}, z.core.$strip>;
|
|
163
105
|
execute: (args: {
|
|
164
106
|
projectPath: string;
|
|
165
107
|
}) => Promise<string>;
|
|
@@ -171,15 +113,7 @@ export declare const embeddedDocsTools: {
|
|
|
171
113
|
package: z.ZodString;
|
|
172
114
|
projectPath: z.ZodString;
|
|
173
115
|
filter: z.ZodOptional<z.ZodString>;
|
|
174
|
-
},
|
|
175
|
-
projectPath: string;
|
|
176
|
-
package: string;
|
|
177
|
-
filter?: string | undefined;
|
|
178
|
-
}, {
|
|
179
|
-
projectPath: string;
|
|
180
|
-
package: string;
|
|
181
|
-
filter?: string | undefined;
|
|
182
|
-
}>;
|
|
116
|
+
}, z.core.$strip>;
|
|
183
117
|
execute: (args: {
|
|
184
118
|
package: string;
|
|
185
119
|
projectPath: string;
|
|
@@ -196,21 +130,7 @@ export declare const embeddedDocsTools: {
|
|
|
196
130
|
includeImplementation: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
197
131
|
implementationLines: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
198
132
|
projectPath: z.ZodString;
|
|
199
|
-
},
|
|
200
|
-
projectPath: string;
|
|
201
|
-
package: string;
|
|
202
|
-
exportName: string;
|
|
203
|
-
includeTypes: boolean;
|
|
204
|
-
includeImplementation: boolean;
|
|
205
|
-
implementationLines: number;
|
|
206
|
-
}, {
|
|
207
|
-
projectPath: string;
|
|
208
|
-
package: string;
|
|
209
|
-
exportName: string;
|
|
210
|
-
includeTypes?: boolean | undefined;
|
|
211
|
-
includeImplementation?: boolean | undefined;
|
|
212
|
-
implementationLines?: number | undefined;
|
|
213
|
-
}>;
|
|
133
|
+
}, z.core.$strip>;
|
|
214
134
|
execute: (args: {
|
|
215
135
|
package: string;
|
|
216
136
|
exportName: string;
|
|
@@ -228,17 +148,7 @@ export declare const embeddedDocsTools: {
|
|
|
228
148
|
topic: z.ZodOptional<z.ZodString>;
|
|
229
149
|
file: z.ZodOptional<z.ZodString>;
|
|
230
150
|
projectPath: z.ZodString;
|
|
231
|
-
},
|
|
232
|
-
projectPath: string;
|
|
233
|
-
package: string;
|
|
234
|
-
topic?: string | undefined;
|
|
235
|
-
file?: string | undefined;
|
|
236
|
-
}, {
|
|
237
|
-
projectPath: string;
|
|
238
|
-
package: string;
|
|
239
|
-
topic?: string | undefined;
|
|
240
|
-
file?: string | undefined;
|
|
241
|
-
}>;
|
|
151
|
+
}, z.core.$strip>;
|
|
242
152
|
execute: (args: {
|
|
243
153
|
package: string;
|
|
244
154
|
projectPath: string;
|
|
@@ -254,17 +164,7 @@ export declare const embeddedDocsTools: {
|
|
|
254
164
|
package: z.ZodOptional<z.ZodString>;
|
|
255
165
|
maxResults: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
256
166
|
projectPath: z.ZodString;
|
|
257
|
-
},
|
|
258
|
-
projectPath: string;
|
|
259
|
-
query: string;
|
|
260
|
-
maxResults: number;
|
|
261
|
-
package?: string | undefined;
|
|
262
|
-
}, {
|
|
263
|
-
projectPath: string;
|
|
264
|
-
query: string;
|
|
265
|
-
package?: string | undefined;
|
|
266
|
-
maxResults?: number | undefined;
|
|
267
|
-
}>;
|
|
167
|
+
}, z.core.$strip>;
|
|
268
168
|
execute: (args: {
|
|
269
169
|
query: string;
|
|
270
170
|
projectPath: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embedded-docs.d.ts","sourceRoot":"","sources":["../../src/tools/embedded-docs.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwJxB,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"embedded-docs.d.ts","sourceRoot":"","sources":["../../src/tools/embedded-docs.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAwJxB,eAAO,MAAM,iBAAiB;;;;;;oBAiDN;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE;CAwG9C,CAAC;AAMF,eAAO,MAAM,yBAAyB;;;;;;oBAgBd;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE;CAkC9C,CAAC;AAMF,eAAO,MAAM,iBAAiB;;;;;;;;oBAoBN;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE;CAqChF,CAAC;AAMF,eAAO,MAAM,cAAc;;;;;;;;;;;oBAiCH;QACpB,OAAO,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;QAChC,mBAAmB,CAAC,EAAE,MAAM,CAAC;KAC9B;CAmFF,CAAC;AAMF,eAAO,MAAM,oBAAoB;;;;;;;;;oBA2BT;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE;CAgG9F,CAAC;AAMF,eAAO,MAAM,sBAAsB;;;;;;;;;oBA4BX;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE;CAoFpG,CAAC;AAGF,eAAO,MAAM,iBAAiB;;;;;;;wBA1lBN;YAAE,WAAW,EAAE,MAAM,CAAA;SAAE;;;;;;;;wBA8HvB;YAAE,WAAW,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;wBA4DvB;YAAE,OAAO,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;wBA4EzD;YACpB,OAAO,EAAE,MAAM,CAAC;YAChB,UAAU,EAAE,MAAM,CAAC;YACnB,WAAW,EAAE,MAAM,CAAC;YACpB,YAAY,CAAC,EAAE,OAAO,CAAC;YACvB,qBAAqB,CAAC,EAAE,OAAO,CAAC;YAChC,mBAAmB,CAAC,EAAE,MAAM,CAAC;SAC9B;;;;;;;;;;;wBAoHqB;YAAE,OAAO,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;wBAkIvE;YAAE,KAAK,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAC;YAAC,OAAO,CAAC,EAAE,MAAM,CAAC;YAAC,UAAU,CAAC,EAAE,MAAM,CAAA;SAAE;;CA8FpG,CAAC"}
|
|
@@ -1,40 +1,20 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const migrationInputSchema: z.ZodObject<{
|
|
3
3
|
path: z.ZodOptional<z.ZodString>;
|
|
4
|
-
sections: z.ZodOptional<z.ZodArray<z.ZodString
|
|
4
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
5
5
|
listSections: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
-
queryKeywords: z.ZodOptional<z.ZodArray<z.ZodString
|
|
7
|
-
},
|
|
8
|
-
path?: string | undefined;
|
|
9
|
-
queryKeywords?: string[] | undefined;
|
|
10
|
-
sections?: string[] | undefined;
|
|
11
|
-
listSections?: boolean | undefined;
|
|
12
|
-
}, {
|
|
13
|
-
path?: string | undefined;
|
|
14
|
-
queryKeywords?: string[] | undefined;
|
|
15
|
-
sections?: string[] | undefined;
|
|
16
|
-
listSections?: boolean | undefined;
|
|
17
|
-
}>;
|
|
6
|
+
queryKeywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
+
}, z.core.$strip>;
|
|
18
8
|
export type MigrationInput = z.infer<typeof migrationInputSchema>;
|
|
19
9
|
export declare const migrationTool: {
|
|
20
10
|
name: string;
|
|
21
11
|
description: string;
|
|
22
12
|
parameters: z.ZodObject<{
|
|
23
13
|
path: z.ZodOptional<z.ZodString>;
|
|
24
|
-
sections: z.ZodOptional<z.ZodArray<z.ZodString
|
|
14
|
+
sections: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
15
|
listSections: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
-
queryKeywords: z.ZodOptional<z.ZodArray<z.ZodString
|
|
27
|
-
},
|
|
28
|
-
path?: string | undefined;
|
|
29
|
-
queryKeywords?: string[] | undefined;
|
|
30
|
-
sections?: string[] | undefined;
|
|
31
|
-
listSections?: boolean | undefined;
|
|
32
|
-
}, {
|
|
33
|
-
path?: string | undefined;
|
|
34
|
-
queryKeywords?: string[] | undefined;
|
|
35
|
-
sections?: string[] | undefined;
|
|
36
|
-
listSections?: boolean | undefined;
|
|
37
|
-
}>;
|
|
16
|
+
queryKeywords: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
38
18
|
execute: (args: MigrationInput) => Promise<string>;
|
|
39
19
|
};
|
|
40
20
|
//# sourceMappingURL=migration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migration.d.ts","sourceRoot":"","sources":["../../src/tools/migration.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA6PxB,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"migration.d.ts","sourceRoot":"","sources":["../../src/tools/migration.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA6PxB,eAAO,MAAM,oBAAoB;;;;;iBAsB/B,CAAC;AAEH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,aAAa;;;;;;;;;oBAkCF,cAAc;CAyDrC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9-alpha.0",
|
|
4
4
|
"description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,27 +28,27 @@
|
|
|
28
28
|
"@modelcontextprotocol/sdk": "^1.17.5",
|
|
29
29
|
"jsdom": "^26.1.0",
|
|
30
30
|
"local-pkg": "^1.1.2",
|
|
31
|
-
"zod": "^3.
|
|
32
|
-
"@mastra/core": "1.
|
|
31
|
+
"zod": "^4.3.6",
|
|
32
|
+
"@mastra/core": "1.11.0-alpha.0",
|
|
33
33
|
"@mastra/mcp": "^1.1.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@hono/node-server": "^1.19.9",
|
|
37
37
|
"@types/jsdom": "^21.1.7",
|
|
38
|
-
"@types/node": "22.19.
|
|
38
|
+
"@types/node": "22.19.13",
|
|
39
39
|
"@vitest/coverage-v8": "4.0.18",
|
|
40
40
|
"@vitest/ui": "4.0.18",
|
|
41
41
|
"@wong2/mcp-cli": "^1.13.0",
|
|
42
42
|
"cross-env": "^10.1.0",
|
|
43
|
-
"eslint": "^9.
|
|
43
|
+
"eslint": "^9.39.4",
|
|
44
44
|
"hono": "^4.11.9",
|
|
45
45
|
"tsup": "^8.5.1",
|
|
46
46
|
"tsx": "^4.21.0",
|
|
47
47
|
"typescript": "^5.9.3",
|
|
48
48
|
"vitest": "4.0.18",
|
|
49
49
|
"@internal/lint": "0.0.66",
|
|
50
|
-
"@
|
|
51
|
-
"@
|
|
50
|
+
"@internal/types-builder": "0.0.41",
|
|
51
|
+
"@mastra/core": "1.11.0-alpha.0"
|
|
52
52
|
},
|
|
53
53
|
"homepage": "https://mastra.ai",
|
|
54
54
|
"repository": {
|