@mastra/mcp-docs-server 1.2.25 → 1.2.26-alpha.11
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/overview.md +1 -1
- package/.docs/docs/agents/processors.md +21 -0
- package/.docs/docs/connections/connect-mcp-client.md +211 -0
- package/.docs/docs/deployment/mastra-server.md +8 -2
- package/.docs/docs/deployment/monorepo.md +12 -0
- package/.docs/docs/evals/datasets.md +5 -1
- package/.docs/docs/guides/context-engineering.md +1 -1
- package/.docs/docs/harness/background-tasks.md +30 -24
- package/.docs/docs/harness/signals.md +39 -0
- package/.docs/docs/index.md +1 -1
- package/.docs/docs/memory/message-history.md +6 -2
- package/.docs/docs/subagents.md +25 -0
- package/.docs/integrations/agentic-ui/ai-sdk-ui.md +7 -0
- package/.docs/integrations/file-storage/amazon-s3.md +7 -1
- package/.docs/integrations/file-storage/archil.md +3 -3
- package/.docs/integrations/frameworks/electron.md +1 -1
- package/.docs/integrations/observability/langfuse.md +11 -1
- package/.docs/integrations/sandboxes/cloudflare-sandbox.md +2 -0
- package/.docs/integrations/sandboxes/daytona.md +33 -0
- package/.docs/integrations/sandboxes/docker.md +13 -0
- package/.docs/integrations/voice/livekit.md +26 -2
- package/.docs/models/gateways/merge-gateway.md +7 -1
- package/.docs/models/gateways/netlify.md +5 -1
- package/.docs/models/gateways/openrouter.md +11 -2
- package/.docs/models/gateways/vercel.md +1 -1
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/above.md +2 -3
- package/.docs/models/providers/agentrouter.md +8 -6
- package/.docs/models/providers/alibaba-token-plan-cn.md +0 -1
- package/.docs/models/providers/alibaba-token-plan.md +0 -1
- package/.docs/models/providers/baseten.md +2 -1
- package/.docs/models/providers/bothub.md +10 -4
- package/.docs/models/providers/cline-pass.md +18 -17
- package/.docs/models/providers/cortecs.md +3 -3
- package/.docs/models/providers/deepinfra.md +7 -5
- package/.docs/models/providers/deepseek.md +7 -6
- package/.docs/models/providers/digitalocean.md +1 -1
- package/.docs/models/providers/edenai.md +27 -4
- package/.docs/models/providers/empiriolabs.md +3 -1
- package/.docs/models/providers/fireworks-ai.md +3 -1
- package/.docs/models/providers/greenpt.md +2 -1
- package/.docs/models/providers/huggingface.md +5 -1
- package/.docs/models/providers/hyper.md +6 -5
- package/.docs/models/providers/inception.md +2 -1
- package/.docs/models/providers/kilo.md +24 -16
- package/.docs/models/providers/llmgateway-providers.md +34 -2
- package/.docs/models/providers/llmgateway.md +9 -3
- package/.docs/models/providers/nan.md +1 -1
- package/.docs/models/providers/nano-gpt.md +20 -13
- package/.docs/models/providers/nvidia.md +3 -2
- package/.docs/models/providers/ofox.md +31 -3
- package/.docs/models/providers/ollama-cloud.md +3 -1
- package/.docs/models/providers/opencode-go.md +4 -4
- package/.docs/models/providers/pioneer.md +11 -2
- package/.docs/models/providers/requesty.md +4 -4
- package/.docs/models/providers/scnet-token-plan.md +4 -6
- package/.docs/models/providers/togetherai.md +2 -1
- package/.docs/models/providers/volcengine-coding-plan.md +3 -1
- package/.docs/reference/agents/agent.md +47 -1
- package/.docs/reference/agents/generate.md +2 -0
- package/.docs/reference/ai-sdk/to-ai-sdk-messages.md +16 -0
- package/.docs/reference/cli/mastra.md +28 -0
- package/.docs/reference/client-js/datasets.md +1 -1
- package/.docs/reference/configuration.md +2 -2
- package/.docs/reference/datasets/purgeItem.md +3 -3
- package/.docs/reference/index.md +3 -0
- package/.docs/reference/memory/cloneThread.md +2 -0
- package/.docs/reference/memory/copyThread.md +65 -0
- package/.docs/reference/memory/memory-class.md +2 -1
- package/.docs/reference/memory/recall.md +51 -0
- package/.docs/reference/memory/updateThreadResourceId.md +46 -0
- package/.docs/reference/processors/agents-md-injector.md +55 -0
- package/.docs/reference/processors/processor-interface.md +2 -0
- package/.docs/reference/pubsub/redis-streams.md +6 -0
- package/.docs/reference/pubsub/valkey-streams.md +6 -0
- package/.docs/reference/streaming/agents/stream.md +30 -0
- package/.docs/reference/tools/mcp-server.md +28 -0
- package/.docs/reference/workspace/filesystem.md +72 -0
- package/package.json +5 -5
|
@@ -269,6 +269,78 @@ const instructions = filesystem.getInstructions?.()
|
|
|
269
269
|
|
|
270
270
|
**Returns:** `string`
|
|
271
271
|
|
|
272
|
+
### `walk(path, options?)`
|
|
273
|
+
|
|
274
|
+
Native recursive tree walk executed by the provider in as few calls as possible. When implemented, the workspace `list_files` tool uses it instead of issuing one `readdir` round trip per directory, which matters for remote providers (sandboxes, object stores). If `walk` throws, tools fall back to the `readdir`-based walk automatically and log a warning through the workspace logger, since the fallback issues one round trip per directory.
|
|
275
|
+
|
|
276
|
+
```typescript
|
|
277
|
+
const entries = await filesystem.walk?.('.', { maxDepth: 3 })
|
|
278
|
+
// [{ name: 'index.ts', type: 'file', path: 'src/index.ts' }, ...]
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
**Parameters:**
|
|
282
|
+
|
|
283
|
+
**path** (`string`): Directory to walk.
|
|
284
|
+
|
|
285
|
+
**options.maxDepth** (`number`): Maximum directory depth to descend (root entries are depth 1).
|
|
286
|
+
|
|
287
|
+
**options.includeHidden** (`boolean`): Include entries whose names start with ".". Defaults to false.
|
|
288
|
+
|
|
289
|
+
**Returns:** `Promise<WalkEntry[]>`
|
|
290
|
+
|
|
291
|
+
```typescript
|
|
292
|
+
interface WalkEntry extends FileEntry {
|
|
293
|
+
path: string // Relative to the walk root, POSIX separators, no leading "./"
|
|
294
|
+
}
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
### `grep(options)`
|
|
298
|
+
|
|
299
|
+
Native content search executed by the provider (for example with `rg` or `grep` inside a sandbox). When implemented, the workspace `grep` tool delegates to it instead of downloading every file to search host-side. Throw `UnsupportedGrepPatternError` when a pattern can't run natively so that callers catch it and fall back to the host-side implementation. That fallback is logged at `info` level; any other error from `grep` also triggers the fallback but is logged as a warning, since the host-side search reads every candidate file.
|
|
300
|
+
|
|
301
|
+
```typescript
|
|
302
|
+
const results = await filesystem.grep?.({
|
|
303
|
+
pattern: 'TODO',
|
|
304
|
+
path: '.',
|
|
305
|
+
caseSensitive: true,
|
|
306
|
+
includeHidden: false,
|
|
307
|
+
})
|
|
308
|
+
// [{ path: 'src/index.ts', matches: [{ line: 3, column: 6, text: '// TODO: fix' }] }]
|
|
309
|
+
```
|
|
310
|
+
|
|
311
|
+
**Parameters:**
|
|
312
|
+
|
|
313
|
+
**options.pattern** (`string`): JavaScript regex source to search for.
|
|
314
|
+
|
|
315
|
+
**options.path** (`string`): File or directory root to search within.
|
|
316
|
+
|
|
317
|
+
**options.caseSensitive** (`boolean`): Whether matching is case-sensitive.
|
|
318
|
+
|
|
319
|
+
**options.includeHidden** (`boolean`): Include hidden files and directories in the search.
|
|
320
|
+
|
|
321
|
+
**options.maxCountPerFile** (`number`): Maximum matches per file (like grep -m).
|
|
322
|
+
|
|
323
|
+
**options.maxTotalMatches** (`number`): Global cap on total matches across all files.
|
|
324
|
+
|
|
325
|
+
**options.contextLines** (`number`): Lines of context to include before and after each match.
|
|
326
|
+
|
|
327
|
+
**Returns:** `Promise<FilesystemGrepResult[]>`
|
|
328
|
+
|
|
329
|
+
```typescript
|
|
330
|
+
interface FilesystemGrepResult {
|
|
331
|
+
path: string // Relative to the search root, POSIX separators
|
|
332
|
+
matches: FilesystemGrepMatch[]
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
interface FilesystemGrepMatch {
|
|
336
|
+
line: number // 1-based line number
|
|
337
|
+
column: number // 0-based UTF-16 (JS string) index, not a byte offset
|
|
338
|
+
text: string // Full matched line, without trailing newline
|
|
339
|
+
before?: string[] // Context lines before the match
|
|
340
|
+
after?: string[] // Context lines after the match
|
|
341
|
+
}
|
|
342
|
+
```
|
|
343
|
+
|
|
272
344
|
## Related
|
|
273
345
|
|
|
274
346
|
- [Workspace Class](https://mastra.ai/reference/workspace/workspace-class)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.26-alpha.11",
|
|
4
4
|
"description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"jsdom": "^26.1.0",
|
|
28
28
|
"local-pkg": "^1.1.2",
|
|
29
29
|
"zod": "^4.4.3",
|
|
30
|
-
"@mastra/mcp": "^1.
|
|
31
|
-
"@mastra/core": "1.
|
|
30
|
+
"@mastra/mcp": "^1.18.0-alpha.1",
|
|
31
|
+
"@mastra/core": "1.67.0-alpha.4"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@hono/node-server": "^2.0.0",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"tsx": "^4.23.1",
|
|
45
45
|
"typescript": "^7.0.2",
|
|
46
46
|
"vitest": "4.1.10",
|
|
47
|
-
"@internal/types-builder": "0.0.107",
|
|
48
47
|
"@internal/lint": "0.0.132",
|
|
49
|
-
"@
|
|
48
|
+
"@internal/types-builder": "0.0.107",
|
|
49
|
+
"@mastra/core": "1.67.0-alpha.4"
|
|
50
50
|
},
|
|
51
51
|
"homepage": "https://mastra.ai",
|
|
52
52
|
"repository": {
|