@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.
Files changed (79) hide show
  1. package/.docs/docs/agents/overview.md +1 -1
  2. package/.docs/docs/agents/processors.md +21 -0
  3. package/.docs/docs/connections/connect-mcp-client.md +211 -0
  4. package/.docs/docs/deployment/mastra-server.md +8 -2
  5. package/.docs/docs/deployment/monorepo.md +12 -0
  6. package/.docs/docs/evals/datasets.md +5 -1
  7. package/.docs/docs/guides/context-engineering.md +1 -1
  8. package/.docs/docs/harness/background-tasks.md +30 -24
  9. package/.docs/docs/harness/signals.md +39 -0
  10. package/.docs/docs/index.md +1 -1
  11. package/.docs/docs/memory/message-history.md +6 -2
  12. package/.docs/docs/subagents.md +25 -0
  13. package/.docs/integrations/agentic-ui/ai-sdk-ui.md +7 -0
  14. package/.docs/integrations/file-storage/amazon-s3.md +7 -1
  15. package/.docs/integrations/file-storage/archil.md +3 -3
  16. package/.docs/integrations/frameworks/electron.md +1 -1
  17. package/.docs/integrations/observability/langfuse.md +11 -1
  18. package/.docs/integrations/sandboxes/cloudflare-sandbox.md +2 -0
  19. package/.docs/integrations/sandboxes/daytona.md +33 -0
  20. package/.docs/integrations/sandboxes/docker.md +13 -0
  21. package/.docs/integrations/voice/livekit.md +26 -2
  22. package/.docs/models/gateways/merge-gateway.md +7 -1
  23. package/.docs/models/gateways/netlify.md +5 -1
  24. package/.docs/models/gateways/openrouter.md +11 -2
  25. package/.docs/models/gateways/vercel.md +1 -1
  26. package/.docs/models/index.md +1 -1
  27. package/.docs/models/providers/above.md +2 -3
  28. package/.docs/models/providers/agentrouter.md +8 -6
  29. package/.docs/models/providers/alibaba-token-plan-cn.md +0 -1
  30. package/.docs/models/providers/alibaba-token-plan.md +0 -1
  31. package/.docs/models/providers/baseten.md +2 -1
  32. package/.docs/models/providers/bothub.md +10 -4
  33. package/.docs/models/providers/cline-pass.md +18 -17
  34. package/.docs/models/providers/cortecs.md +3 -3
  35. package/.docs/models/providers/deepinfra.md +7 -5
  36. package/.docs/models/providers/deepseek.md +7 -6
  37. package/.docs/models/providers/digitalocean.md +1 -1
  38. package/.docs/models/providers/edenai.md +27 -4
  39. package/.docs/models/providers/empiriolabs.md +3 -1
  40. package/.docs/models/providers/fireworks-ai.md +3 -1
  41. package/.docs/models/providers/greenpt.md +2 -1
  42. package/.docs/models/providers/huggingface.md +5 -1
  43. package/.docs/models/providers/hyper.md +6 -5
  44. package/.docs/models/providers/inception.md +2 -1
  45. package/.docs/models/providers/kilo.md +24 -16
  46. package/.docs/models/providers/llmgateway-providers.md +34 -2
  47. package/.docs/models/providers/llmgateway.md +9 -3
  48. package/.docs/models/providers/nan.md +1 -1
  49. package/.docs/models/providers/nano-gpt.md +20 -13
  50. package/.docs/models/providers/nvidia.md +3 -2
  51. package/.docs/models/providers/ofox.md +31 -3
  52. package/.docs/models/providers/ollama-cloud.md +3 -1
  53. package/.docs/models/providers/opencode-go.md +4 -4
  54. package/.docs/models/providers/pioneer.md +11 -2
  55. package/.docs/models/providers/requesty.md +4 -4
  56. package/.docs/models/providers/scnet-token-plan.md +4 -6
  57. package/.docs/models/providers/togetherai.md +2 -1
  58. package/.docs/models/providers/volcengine-coding-plan.md +3 -1
  59. package/.docs/reference/agents/agent.md +47 -1
  60. package/.docs/reference/agents/generate.md +2 -0
  61. package/.docs/reference/ai-sdk/to-ai-sdk-messages.md +16 -0
  62. package/.docs/reference/cli/mastra.md +28 -0
  63. package/.docs/reference/client-js/datasets.md +1 -1
  64. package/.docs/reference/configuration.md +2 -2
  65. package/.docs/reference/datasets/purgeItem.md +3 -3
  66. package/.docs/reference/index.md +3 -0
  67. package/.docs/reference/memory/cloneThread.md +2 -0
  68. package/.docs/reference/memory/copyThread.md +65 -0
  69. package/.docs/reference/memory/memory-class.md +2 -1
  70. package/.docs/reference/memory/recall.md +51 -0
  71. package/.docs/reference/memory/updateThreadResourceId.md +46 -0
  72. package/.docs/reference/processors/agents-md-injector.md +55 -0
  73. package/.docs/reference/processors/processor-interface.md +2 -0
  74. package/.docs/reference/pubsub/redis-streams.md +6 -0
  75. package/.docs/reference/pubsub/valkey-streams.md +6 -0
  76. package/.docs/reference/streaming/agents/stream.md +30 -0
  77. package/.docs/reference/tools/mcp-server.md +28 -0
  78. package/.docs/reference/workspace/filesystem.md +72 -0
  79. 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.25",
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.17.3",
31
- "@mastra/core": "1.66.0"
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
- "@mastra/core": "1.66.0"
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": {