@mastra/mcp-docs-server 1.1.7-alpha.0 → 1.1.8-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-approval.md +61 -31
- package/.docs/docs/agents/supervisor-agents.md +1 -1
- package/.docs/docs/getting-started/manual-install.md +1 -1
- package/.docs/docs/index.md +68 -24
- package/.docs/docs/mastra-cloud/setup.md +1 -1
- package/.docs/docs/memory/observational-memory.md +9 -0
- package/.docs/docs/memory/semantic-recall.md +17 -1
- package/.docs/docs/workspace/skills.md +7 -5
- package/.docs/guides/deployment/aws-lambda.md +76 -165
- package/.docs/guides/deployment/azure-app-services.md +38 -61
- package/.docs/guides/deployment/cloudflare.md +1 -1
- package/.docs/guides/deployment/netlify.md +1 -1
- package/.docs/guides/deployment/vercel.md +1 -1
- package/.docs/models/gateways/netlify.md +5 -1
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/anthropic.md +9 -9
- package/.docs/models/providers/deepseek.md +1 -1
- package/.docs/models/providers/google.md +11 -11
- package/.docs/models/providers/openai.md +19 -19
- package/.docs/models/providers/opencode.md +33 -33
- package/.docs/models/providers/xai.md +3 -3
- package/.docs/reference/agents/agent.md +20 -20
- package/.docs/reference/agents/generate.md +200 -66
- package/.docs/reference/agents/generateLegacy.md +77 -35
- package/.docs/reference/agents/getDefaultGenerateOptions.md +4 -6
- package/.docs/reference/agents/getDefaultOptions.md +4 -6
- package/.docs/reference/agents/getDefaultStreamOptions.md +4 -6
- package/.docs/reference/agents/getDescription.md +1 -1
- package/.docs/reference/agents/getInstructions.md +4 -6
- package/.docs/reference/agents/getLLM.md +6 -8
- package/.docs/reference/agents/getMemory.md +4 -6
- package/.docs/reference/agents/getModel.md +4 -6
- package/.docs/reference/agents/getTools.md +5 -7
- package/.docs/reference/agents/getVoice.md +4 -6
- package/.docs/reference/agents/listAgents.md +4 -6
- package/.docs/reference/agents/listScorers.md +4 -6
- package/.docs/reference/agents/listTools.md +4 -6
- package/.docs/reference/agents/listWorkflows.md +4 -6
- package/.docs/reference/agents/network.md +69 -23
- package/.docs/reference/ai-sdk/chat-route.md +7 -7
- package/.docs/reference/ai-sdk/handle-chat-stream.md +12 -12
- package/.docs/reference/ai-sdk/handle-network-stream.md +4 -4
- package/.docs/reference/ai-sdk/handle-workflow-stream.md +11 -11
- package/.docs/reference/ai-sdk/network-route.md +3 -3
- package/.docs/reference/ai-sdk/to-ai-sdk-stream.md +9 -9
- package/.docs/reference/ai-sdk/to-ai-sdk-v4-messages.md +9 -9
- package/.docs/reference/ai-sdk/to-ai-sdk-v5-messages.md +5 -5
- package/.docs/reference/ai-sdk/with-mastra.md +12 -12
- package/.docs/reference/ai-sdk/workflow-route.md +3 -3
- package/.docs/reference/auth/auth0.md +6 -6
- package/.docs/reference/auth/better-auth.md +5 -5
- package/.docs/reference/auth/clerk.md +5 -5
- package/.docs/reference/auth/firebase.md +7 -7
- package/.docs/reference/auth/jwt.md +1 -1
- package/.docs/reference/auth/supabase.md +4 -4
- package/.docs/reference/auth/workos.md +6 -6
- package/.docs/reference/cli/create-mastra.md +14 -14
- package/.docs/reference/client-js/mastra-client.md +23 -23
- package/.docs/reference/client-js/workflows.md +3 -3
- package/.docs/reference/core/addGateway.md +2 -2
- package/.docs/reference/core/getAgent.md +2 -2
- package/.docs/reference/core/getAgentById.md +2 -2
- package/.docs/reference/core/getDeployer.md +1 -1
- package/.docs/reference/core/getGateway.md +2 -2
- package/.docs/reference/core/getGatewayById.md +2 -2
- package/.docs/reference/core/getLogger.md +1 -1
- package/.docs/reference/core/getMCPServer.md +2 -2
- package/.docs/reference/core/getMCPServerById.md +3 -3
- package/.docs/reference/core/getMemory.md +2 -2
- package/.docs/reference/core/getScorer.md +2 -2
- package/.docs/reference/core/getScorerById.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 +18 -20
- package/.docs/reference/core/getTelemetry.md +1 -1
- package/.docs/reference/core/getVector.md +2 -2
- package/.docs/reference/core/getWorkflow.md +3 -3
- package/.docs/reference/core/listAgents.md +1 -1
- package/.docs/reference/core/listGateways.md +1 -1
- package/.docs/reference/core/listLogs.md +9 -11
- package/.docs/reference/core/listLogsByRunId.md +9 -9
- package/.docs/reference/core/listMCPServers.md +1 -1
- package/.docs/reference/core/listMemory.md +1 -1
- package/.docs/reference/core/listScorers.md +1 -1
- package/.docs/reference/core/listStoredAgents.md +9 -11
- package/.docs/reference/core/listVectors.md +1 -1
- package/.docs/reference/core/listWorkflows.md +2 -2
- package/.docs/reference/core/mastra-class.md +17 -17
- package/.docs/reference/core/mastra-model-gateway.md +15 -15
- package/.docs/reference/core/setLogger.md +2 -4
- package/.docs/reference/core/setStorage.md +1 -1
- package/.docs/reference/datasets/addItem.md +20 -4
- package/.docs/reference/datasets/addItems.md +8 -2
- package/.docs/reference/datasets/compareExperiments.md +15 -3
- package/.docs/reference/datasets/create.md +6 -6
- package/.docs/reference/datasets/dataset.md +1 -1
- package/.docs/reference/datasets/delete.md +2 -2
- package/.docs/reference/datasets/deleteExperiment.md +2 -2
- package/.docs/reference/datasets/deleteItem.md +2 -2
- package/.docs/reference/datasets/deleteItems.md +2 -2
- package/.docs/reference/datasets/get.md +2 -2
- package/.docs/reference/datasets/getDetails.md +9 -9
- package/.docs/reference/datasets/getExperiment.md +2 -2
- package/.docs/reference/datasets/getItem.md +3 -3
- package/.docs/reference/datasets/getItemHistory.md +22 -2
- package/.docs/reference/datasets/list.md +7 -3
- package/.docs/reference/datasets/listExperimentResults.md +34 -4
- package/.docs/reference/datasets/listExperiments.md +41 -3
- package/.docs/reference/datasets/listItems.md +18 -6
- package/.docs/reference/datasets/listVersions.md +23 -3
- package/.docs/reference/datasets/startExperiment.md +62 -12
- package/.docs/reference/datasets/startExperimentAsync.md +5 -1
- package/.docs/reference/datasets/update.md +6 -6
- package/.docs/reference/datasets/updateItem.md +5 -5
- package/.docs/reference/deployer.md +8 -8
- package/.docs/reference/evals/answer-relevancy.md +11 -11
- package/.docs/reference/evals/answer-similarity.md +17 -19
- package/.docs/reference/evals/bias.md +10 -10
- package/.docs/reference/evals/completeness.md +3 -3
- package/.docs/reference/evals/content-similarity.md +6 -6
- package/.docs/reference/evals/context-precision.md +4 -4
- package/.docs/reference/evals/context-relevance.md +4 -4
- package/.docs/reference/evals/create-scorer.md +47 -49
- package/.docs/reference/evals/faithfulness.md +11 -11
- package/.docs/reference/evals/hallucination.md +17 -21
- package/.docs/reference/evals/keyword-coverage.md +4 -4
- package/.docs/reference/evals/mastra-scorer.md +14 -14
- package/.docs/reference/evals/noise-sensitivity.md +4 -4
- package/.docs/reference/evals/prompt-alignment.md +4 -4
- package/.docs/reference/evals/run-evals.md +16 -16
- package/.docs/reference/evals/scorer-utils.md +3 -3
- package/.docs/reference/evals/textual-difference.md +3 -3
- package/.docs/reference/evals/tone-consistency.md +3 -3
- package/.docs/reference/evals/tool-call-accuracy.md +5 -5
- package/.docs/reference/evals/toxicity.md +8 -8
- package/.docs/reference/harness/harness-class.md +34 -42
- package/.docs/reference/logging/pino-logger.md +5 -5
- package/.docs/reference/memory/clone-utilities.md +5 -5
- package/.docs/reference/memory/cloneThread.md +17 -21
- package/.docs/reference/memory/createThread.md +10 -10
- package/.docs/reference/memory/deleteMessages.md +2 -2
- package/.docs/reference/memory/getThreadById.md +2 -2
- package/.docs/reference/memory/listThreads.md +5 -5
- package/.docs/reference/memory/memory-class.md +12 -14
- package/.docs/reference/memory/observational-memory.md +102 -94
- package/.docs/reference/memory/recall.md +14 -16
- package/.docs/reference/observability/tracing/configuration.md +27 -10
- package/.docs/reference/observability/tracing/exporters/console-exporter.md +4 -7
- package/.docs/reference/processors/batch-parts-processor.md +8 -10
- package/.docs/reference/processors/language-detector.md +14 -16
- package/.docs/reference/processors/message-history-processor.md +7 -9
- package/.docs/reference/processors/moderation-processor.md +13 -15
- package/.docs/reference/processors/pii-detector.md +14 -16
- package/.docs/reference/processors/processor-interface.md +62 -62
- package/.docs/reference/processors/prompt-injection-detector.md +11 -13
- package/.docs/reference/processors/semantic-recall-processor.md +14 -16
- package/.docs/reference/processors/system-prompt-scrubber.md +12 -14
- package/.docs/reference/processors/token-limiter-processor.md +11 -13
- package/.docs/reference/processors/tool-call-filter.md +5 -7
- package/.docs/reference/processors/tool-search-processor.md +9 -11
- package/.docs/reference/processors/unicode-normalizer.md +8 -10
- package/.docs/reference/processors/working-memory-processor.md +14 -18
- package/.docs/reference/rag/chunk.md +38 -38
- package/.docs/reference/rag/database-config.md +11 -7
- package/.docs/reference/rag/document.md +2 -2
- package/.docs/reference/rag/embeddings.md +12 -12
- package/.docs/reference/rag/extract-params.md +23 -23
- package/.docs/reference/rag/graph-rag.md +12 -12
- package/.docs/reference/rag/rerank.md +25 -17
- package/.docs/reference/rag/rerankWithScorer.md +25 -17
- package/.docs/reference/server/create-route.md +14 -14
- package/.docs/reference/server/express-adapter.md +10 -10
- package/.docs/reference/server/fastify-adapter.md +10 -10
- package/.docs/reference/server/hono-adapter.md +10 -10
- package/.docs/reference/server/koa-adapter.md +10 -10
- package/.docs/reference/server/mastra-server.md +10 -10
- package/.docs/reference/server/register-api-route.md +13 -13
- package/.docs/reference/storage/cloudflare-d1.md +5 -5
- package/.docs/reference/storage/cloudflare.md +6 -6
- package/.docs/reference/storage/composite.md +9 -9
- package/.docs/reference/storage/convex.md +3 -3
- package/.docs/reference/storage/dynamodb.md +9 -9
- package/.docs/reference/storage/lance.md +3 -3
- package/.docs/reference/storage/libsql.md +2 -2
- package/.docs/reference/storage/mongodb.md +5 -5
- package/.docs/reference/storage/mssql.md +2 -2
- package/.docs/reference/storage/postgresql.md +25 -25
- package/.docs/reference/storage/upstash.md +3 -3
- package/.docs/reference/streaming/ChunkType.md +251 -59
- package/.docs/reference/streaming/agents/MastraModelOutput.md +86 -16
- package/.docs/reference/streaming/agents/stream.md +155 -43
- package/.docs/reference/streaming/agents/streamLegacy.md +79 -39
- package/.docs/reference/streaming/workflows/resumeStream.md +18 -8
- package/.docs/reference/streaming/workflows/stream.md +21 -9
- package/.docs/reference/streaming/workflows/timeTravelStream.md +4 -4
- package/.docs/reference/tools/create-tool.md +25 -21
- package/.docs/reference/tools/document-chunker-tool.md +7 -7
- package/.docs/reference/tools/graph-rag-tool.md +16 -18
- package/.docs/reference/tools/mcp-client.md +38 -27
- package/.docs/reference/tools/mcp-server.md +45 -45
- package/.docs/reference/tools/vector-query-tool.md +34 -22
- package/.docs/reference/vectors/astra.md +22 -22
- package/.docs/reference/vectors/chroma.md +44 -44
- package/.docs/reference/vectors/convex.md +26 -26
- package/.docs/reference/vectors/couchbase.md +30 -30
- package/.docs/reference/vectors/duckdb.md +29 -29
- package/.docs/reference/vectors/elasticsearch.md +27 -27
- package/.docs/reference/vectors/lance.md +46 -38
- package/.docs/reference/vectors/libsql.md +31 -31
- package/.docs/reference/vectors/mongodb.md +32 -32
- package/.docs/reference/vectors/opensearch.md +27 -27
- package/.docs/reference/vectors/pg.md +60 -44
- package/.docs/reference/vectors/pinecone.md +38 -38
- package/.docs/reference/vectors/qdrant.md +36 -36
- package/.docs/reference/vectors/s3vectors.md +24 -24
- package/.docs/reference/vectors/turbopuffer.md +29 -29
- package/.docs/reference/vectors/upstash.md +25 -25
- package/.docs/reference/vectors/vectorize.md +27 -27
- package/.docs/reference/voice/azure.md +19 -15
- package/.docs/reference/voice/cloudflare.md +10 -12
- package/.docs/reference/voice/composite-voice.md +10 -10
- package/.docs/reference/voice/deepgram.md +20 -14
- package/.docs/reference/voice/elevenlabs.md +20 -22
- package/.docs/reference/voice/google-gemini-live.md +42 -44
- package/.docs/reference/voice/google.md +25 -21
- package/.docs/reference/voice/mastra-voice.md +20 -20
- package/.docs/reference/voice/murf.md +24 -28
- package/.docs/reference/voice/openai-realtime.md +26 -26
- package/.docs/reference/voice/openai.md +14 -12
- package/.docs/reference/voice/playai.md +13 -15
- package/.docs/reference/voice/sarvam.md +21 -25
- package/.docs/reference/voice/speechify.md +11 -13
- package/.docs/reference/voice/voice.addInstructions.md +1 -1
- package/.docs/reference/voice/voice.addTools.md +1 -1
- package/.docs/reference/voice/voice.answer.md +1 -1
- package/.docs/reference/voice/voice.connect.md +3 -3
- package/.docs/reference/voice/voice.events.md +11 -11
- package/.docs/reference/voice/voice.getSpeakers.md +30 -30
- package/.docs/reference/voice/voice.listen.md +9 -9
- package/.docs/reference/voice/voice.off.md +2 -2
- package/.docs/reference/voice/voice.on.md +2 -2
- package/.docs/reference/voice/voice.send.md +1 -1
- package/.docs/reference/voice/voice.speak.md +11 -11
- package/.docs/reference/voice/voice.updateConfig.md +3 -3
- package/.docs/reference/workflows/run-methods/cancel.md +2 -2
- package/.docs/reference/workflows/run-methods/restart.md +17 -5
- package/.docs/reference/workflows/run-methods/resume.md +23 -9
- package/.docs/reference/workflows/run-methods/start.md +22 -8
- package/.docs/reference/workflows/run-methods/startAsync.md +12 -6
- package/.docs/reference/workflows/run-methods/timeTravel.md +29 -13
- package/.docs/reference/workflows/run.md +12 -12
- package/.docs/reference/workflows/step.md +24 -26
- package/.docs/reference/workflows/workflow-methods/branch.md +2 -2
- package/.docs/reference/workflows/workflow-methods/commit.md +1 -1
- package/.docs/reference/workflows/workflow-methods/create-run.md +4 -4
- package/.docs/reference/workflows/workflow-methods/dountil.md +3 -3
- package/.docs/reference/workflows/workflow-methods/dowhile.md +3 -3
- package/.docs/reference/workflows/workflow-methods/foreach.md +9 -9
- package/.docs/reference/workflows/workflow-methods/map.md +2 -2
- package/.docs/reference/workflows/workflow-methods/parallel.md +2 -2
- package/.docs/reference/workflows/workflow-methods/sleep.md +2 -2
- package/.docs/reference/workflows/workflow-methods/sleepUntil.md +2 -2
- package/.docs/reference/workflows/workflow-methods/then.md +2 -2
- package/.docs/reference/workflows/workflow.md +40 -50
- package/.docs/reference/workspace/daytona-sandbox.md +33 -33
- package/.docs/reference/workspace/e2b-sandbox.md +20 -20
- package/.docs/reference/workspace/filesystem.md +22 -22
- package/.docs/reference/workspace/gcs-filesystem.md +15 -15
- package/.docs/reference/workspace/local-filesystem.md +35 -35
- package/.docs/reference/workspace/local-sandbox.md +26 -26
- package/.docs/reference/workspace/s3-filesystem.md +18 -18
- package/.docs/reference/workspace/sandbox.md +8 -8
- package/.docs/reference/workspace/workspace-class.md +30 -34
- package/CHANGELOG.md +16 -0
- package/package.json +6 -6
- package/.docs/docs/getting-started/start.md +0 -28
|
@@ -69,37 +69,37 @@ const filesystem = new GCSFilesystem({
|
|
|
69
69
|
|
|
70
70
|
## Constructor parameters
|
|
71
71
|
|
|
72
|
-
**bucket
|
|
72
|
+
**bucket** (`string`): GCS bucket name
|
|
73
73
|
|
|
74
|
-
**projectId
|
|
74
|
+
**projectId** (`string`): GCS project ID. Required when using service account credentials.
|
|
75
75
|
|
|
76
|
-
**credentials
|
|
76
|
+
**credentials** (`object | string`): Service account key JSON object or path to key file. If not provided, uses Application Default Credentials.
|
|
77
77
|
|
|
78
|
-
**prefix
|
|
78
|
+
**prefix** (`string`): Optional prefix for all keys (acts like a subdirectory)
|
|
79
79
|
|
|
80
|
-
**id
|
|
80
|
+
**id** (`string`): Unique identifier for this filesystem instance (Default: `Auto-generated`)
|
|
81
81
|
|
|
82
|
-
**displayName
|
|
82
|
+
**displayName** (`string`): Human-friendly display name for the UI
|
|
83
83
|
|
|
84
|
-
**icon
|
|
84
|
+
**icon** (`FilesystemIcon`): Icon identifier for the UI
|
|
85
85
|
|
|
86
|
-
**description
|
|
86
|
+
**description** (`string`): Short description of this filesystem for the UI
|
|
87
87
|
|
|
88
|
-
**readOnly
|
|
88
|
+
**readOnly** (`boolean`): When true, all write operations are blocked (Default: `false`)
|
|
89
89
|
|
|
90
|
-
**endpoint
|
|
90
|
+
**endpoint** (`string`): Custom API endpoint URL. Used for local development with emulators.
|
|
91
91
|
|
|
92
92
|
## Properties
|
|
93
93
|
|
|
94
|
-
**id
|
|
94
|
+
**id** (`string`): Filesystem instance identifier
|
|
95
95
|
|
|
96
|
-
**name
|
|
96
|
+
**name** (`string`): Provider name ('GCSFilesystem')
|
|
97
97
|
|
|
98
|
-
**provider
|
|
98
|
+
**provider** (`string`): Provider identifier ('gcs')
|
|
99
99
|
|
|
100
|
-
**bucket
|
|
100
|
+
**bucket** (`string`): The GCS bucket name
|
|
101
101
|
|
|
102
|
-
**readOnly
|
|
102
|
+
**readOnly** (`boolean | undefined`): Whether the filesystem is in read-only mode
|
|
103
103
|
|
|
104
104
|
## Methods
|
|
105
105
|
|
|
@@ -32,31 +32,31 @@ const response = await agent.generate('List all files in the workspace')
|
|
|
32
32
|
|
|
33
33
|
## Constructor parameters
|
|
34
34
|
|
|
35
|
-
**basePath
|
|
35
|
+
**basePath** (`string`): Base directory path on disk. All file paths are resolved relative to this directory.
|
|
36
36
|
|
|
37
|
-
**id
|
|
37
|
+
**id** (`string`): Unique identifier for this filesystem instance (Default: `Auto-generated`)
|
|
38
38
|
|
|
39
|
-
**contained
|
|
39
|
+
**contained** (`boolean`): When true, all file operations are restricted to stay within basePath. Prevents path traversal attacks and symlink escapes. See \[containment]\(/docs/workspace/filesystem#containment). (Default: `true`)
|
|
40
40
|
|
|
41
|
-
**allowedPaths
|
|
41
|
+
**allowedPaths** (`string[]`): Additional absolute paths that are allowed beyond basePath. Useful with \`contained: true\` to grant access to specific directories without disabling containment entirely. Paths are resolved to absolute paths. (Default: `[]`)
|
|
42
42
|
|
|
43
|
-
**instructions
|
|
43
|
+
**instructions** (`string | ((opts: { defaultInstructions: string; requestContext?: RequestContext }) => string)`): Custom instructions that override the default instructions returned by getInstructions(). Pass a string to fully replace them, or a function to extend them with access to the current requestContext for per-request customization.
|
|
44
44
|
|
|
45
|
-
**readOnly
|
|
45
|
+
**readOnly** (`boolean`): When true, all write operations are blocked. Read operations are still allowed. (Default: `false`)
|
|
46
46
|
|
|
47
47
|
## Properties
|
|
48
48
|
|
|
49
|
-
**id
|
|
49
|
+
**id** (`string`): Filesystem instance identifier
|
|
50
50
|
|
|
51
|
-
**name
|
|
51
|
+
**name** (`string`): Provider name ('LocalFilesystem')
|
|
52
52
|
|
|
53
|
-
**provider
|
|
53
|
+
**provider** (`string`): Provider identifier ('local')
|
|
54
54
|
|
|
55
|
-
**basePath
|
|
55
|
+
**basePath** (`string`): The absolute base path on disk
|
|
56
56
|
|
|
57
|
-
**readOnly
|
|
57
|
+
**readOnly** (`boolean | undefined`): Whether the filesystem is in read-only mode
|
|
58
58
|
|
|
59
|
-
**allowedPaths
|
|
59
|
+
**allowedPaths** (`readonly string[]`): Current set of additional allowed paths (absolute, resolved). These paths are permitted beyond basePath when containment is enabled.
|
|
60
60
|
|
|
61
61
|
## Methods
|
|
62
62
|
|
|
@@ -101,7 +101,7 @@ filesystem.setAllowedPaths([])
|
|
|
101
101
|
|
|
102
102
|
**Parameters:**
|
|
103
103
|
|
|
104
|
-
**pathsOrUpdater
|
|
104
|
+
**pathsOrUpdater** (`string[] | ((current: readonly string[]) => string[])`): New allowed paths array or updater function receiving current paths
|
|
105
105
|
|
|
106
106
|
### `readFile(path, options?)`
|
|
107
107
|
|
|
@@ -114,9 +114,9 @@ const buffer = await filesystem.readFile('/image.png', { encoding: 'binary' })
|
|
|
114
114
|
|
|
115
115
|
**Parameters:**
|
|
116
116
|
|
|
117
|
-
**path
|
|
117
|
+
**path** (`string`): File path relative to basePath
|
|
118
118
|
|
|
119
|
-
**options.encoding
|
|
119
|
+
**options.encoding** (`'utf-8' | 'binary'`): Text or binary encoding (Default: `'utf-8'`)
|
|
120
120
|
|
|
121
121
|
### `writeFile(path, content, options?)`
|
|
122
122
|
|
|
@@ -129,13 +129,13 @@ await filesystem.writeFile('/nested/path/file.md', content, { recursive: true })
|
|
|
129
129
|
|
|
130
130
|
**Parameters:**
|
|
131
131
|
|
|
132
|
-
**path
|
|
132
|
+
**path** (`string`): File path relative to basePath
|
|
133
133
|
|
|
134
|
-
**content
|
|
134
|
+
**content** (`string | Buffer`): File content
|
|
135
135
|
|
|
136
|
-
**options.recursive
|
|
136
|
+
**options.recursive** (`boolean`): Create parent directories if they don't exist (Default: `false`)
|
|
137
137
|
|
|
138
|
-
**options.overwrite
|
|
138
|
+
**options.overwrite** (`boolean`): Overwrite existing file (Default: `true`)
|
|
139
139
|
|
|
140
140
|
### `appendFile(path, content)`
|
|
141
141
|
|
|
@@ -147,9 +147,9 @@ await filesystem.appendFile('/logs/app.log', 'New log entry\n')
|
|
|
147
147
|
|
|
148
148
|
**Parameters:**
|
|
149
149
|
|
|
150
|
-
**path
|
|
150
|
+
**path** (`string`): File path relative to basePath
|
|
151
151
|
|
|
152
|
-
**content
|
|
152
|
+
**content** (`string | Buffer`): Content to append
|
|
153
153
|
|
|
154
154
|
### `deleteFile(path, options?)`
|
|
155
155
|
|
|
@@ -162,9 +162,9 @@ await filesystem.deleteFile('/docs/maybe.md', { force: true }) // Don't throw if
|
|
|
162
162
|
|
|
163
163
|
**Parameters:**
|
|
164
164
|
|
|
165
|
-
**path
|
|
165
|
+
**path** (`string`): File path
|
|
166
166
|
|
|
167
|
-
**options.force
|
|
167
|
+
**options.force** (`boolean`): Don't throw error if file doesn't exist (Default: `false`)
|
|
168
168
|
|
|
169
169
|
### `copyFile(src, dest, options?)`
|
|
170
170
|
|
|
@@ -177,11 +177,11 @@ await filesystem.copyFile('/src/config.json', '/backup/config.json', { overwrite
|
|
|
177
177
|
|
|
178
178
|
**Parameters:**
|
|
179
179
|
|
|
180
|
-
**src
|
|
180
|
+
**src** (`string`): Source file path
|
|
181
181
|
|
|
182
|
-
**dest
|
|
182
|
+
**dest** (`string`): Destination file path
|
|
183
183
|
|
|
184
|
-
**options.overwrite
|
|
184
|
+
**options.overwrite** (`boolean`): Overwrite destination if it exists (Default: `true`)
|
|
185
185
|
|
|
186
186
|
### `moveFile(src, dest, options?)`
|
|
187
187
|
|
|
@@ -194,11 +194,11 @@ await filesystem.moveFile('/temp/upload.txt', '/files/document.txt')
|
|
|
194
194
|
|
|
195
195
|
**Parameters:**
|
|
196
196
|
|
|
197
|
-
**src
|
|
197
|
+
**src** (`string`): Source file path
|
|
198
198
|
|
|
199
|
-
**dest
|
|
199
|
+
**dest** (`string`): Destination file path
|
|
200
200
|
|
|
201
|
-
**options.overwrite
|
|
201
|
+
**options.overwrite** (`boolean`): Overwrite destination if it exists (Default: `true`)
|
|
202
202
|
|
|
203
203
|
### `mkdir(path, options?)`
|
|
204
204
|
|
|
@@ -211,9 +211,9 @@ await filesystem.mkdir('/deeply/nested/path', { recursive: true })
|
|
|
211
211
|
|
|
212
212
|
**Parameters:**
|
|
213
213
|
|
|
214
|
-
**path
|
|
214
|
+
**path** (`string`): Directory path
|
|
215
215
|
|
|
216
|
-
**options.recursive
|
|
216
|
+
**options.recursive** (`boolean`): Create parent directories (Default: `false`)
|
|
217
217
|
|
|
218
218
|
### `rmdir(path, options?)`
|
|
219
219
|
|
|
@@ -226,11 +226,11 @@ await filesystem.rmdir('/docs/nested', { recursive: true })
|
|
|
226
226
|
|
|
227
227
|
**Parameters:**
|
|
228
228
|
|
|
229
|
-
**path
|
|
229
|
+
**path** (`string`): Directory path
|
|
230
230
|
|
|
231
|
-
**options.recursive
|
|
231
|
+
**options.recursive** (`boolean`): Remove contents recursively (Default: `false`)
|
|
232
232
|
|
|
233
|
-
**options.force
|
|
233
|
+
**options.force** (`boolean`): Don't throw if directory doesn't exist (Default: `false`)
|
|
234
234
|
|
|
235
235
|
### `readdir(path, options?)`
|
|
236
236
|
|
|
@@ -284,7 +284,7 @@ const instructions = filesystem.getInstructions({ requestContext })
|
|
|
284
284
|
|
|
285
285
|
**Parameters:**
|
|
286
286
|
|
|
287
|
-
**opts.requestContext
|
|
287
|
+
**opts.requestContext** (`RequestContext`): Forwarded to the \`instructions\` function if one was provided in the constructor.
|
|
288
288
|
|
|
289
289
|
**Returns:** `string`
|
|
290
290
|
|
|
@@ -40,47 +40,47 @@ const response = await agent.generate('Run npm install')
|
|
|
40
40
|
|
|
41
41
|
## Constructor parameters
|
|
42
42
|
|
|
43
|
-
**id
|
|
43
|
+
**id** (`string`): Unique identifier for this sandbox instance (Default: `Auto-generated`)
|
|
44
44
|
|
|
45
|
-
**workingDirectory
|
|
45
|
+
**workingDirectory** (`string`): Directory for command execution. Defaults to .sandbox/ in process.cwd() for isolation from seatbelt profiles. (Default: `process.cwd()/.sandbox/`)
|
|
46
46
|
|
|
47
|
-
**env
|
|
47
|
+
**env** (`NodeJS.ProcessEnv`): Environment variables to set. PATH is included by default unless overridden.
|
|
48
48
|
|
|
49
|
-
**timeout
|
|
49
|
+
**timeout** (`number`): Default timeout for operations in milliseconds (Default: `30000`)
|
|
50
50
|
|
|
51
|
-
**isolation
|
|
51
|
+
**isolation** (`'none' | 'seatbelt' | 'bwrap'`): Native OS sandboxing backend. 'seatbelt' for macOS, 'bwrap' for Linux. (Default: `'none'`)
|
|
52
52
|
|
|
53
|
-
**instructions
|
|
53
|
+
**instructions** (`string | ((opts: { defaultInstructions: string; requestContext?: RequestContext }) => string)`): Custom instructions that override the default instructions returned by getInstructions(). Pass a string to fully replace them, or a function to extend them with access to the current requestContext for per-request customization.
|
|
54
54
|
|
|
55
|
-
**nativeSandbox
|
|
55
|
+
**nativeSandbox** (`NativeSandboxConfig`): Configuration for native sandboxing (see NativeSandboxConfig below).
|
|
56
56
|
|
|
57
57
|
## NativeSandboxConfig
|
|
58
58
|
|
|
59
59
|
Configuration options for native OS sandboxing (used with `isolation: 'seatbelt'` or `'bwrap'`).
|
|
60
60
|
|
|
61
|
-
**allowNetwork
|
|
61
|
+
**allowNetwork** (`boolean`): Allow network access from sandboxed commands. (Default: `false`)
|
|
62
62
|
|
|
63
|
-
**readOnlyPaths
|
|
63
|
+
**readOnlyPaths** (`string[]`): Additional paths to allow read-only access (system paths are always readable).
|
|
64
64
|
|
|
65
|
-
**readWritePaths
|
|
65
|
+
**readWritePaths** (`string[]`): Additional paths to allow read-write access beyond the workspace directory.
|
|
66
66
|
|
|
67
|
-
**seatbeltProfilePath
|
|
67
|
+
**seatbeltProfilePath** (`string`): Path to a custom seatbelt profile file (macOS only). If the file exists, it's used; if not, a default profile is generated and written to this path.
|
|
68
68
|
|
|
69
|
-
**bwrapArgs
|
|
69
|
+
**bwrapArgs** (`string[]`): Additional arguments to pass to bwrap (Linux only).
|
|
70
70
|
|
|
71
|
-
**allowSystemBinaries
|
|
71
|
+
**allowSystemBinaries** (`boolean`): Allow read access to standard system binary paths (/bin, /usr/bin, etc.). (Default: `true`)
|
|
72
72
|
|
|
73
73
|
## Properties
|
|
74
74
|
|
|
75
|
-
**id
|
|
75
|
+
**id** (`string`): Sandbox instance identifier
|
|
76
76
|
|
|
77
|
-
**name
|
|
77
|
+
**name** (`string`): Provider name ('LocalSandbox')
|
|
78
78
|
|
|
79
|
-
**provider
|
|
79
|
+
**provider** (`string`): Provider identifier ('local')
|
|
80
80
|
|
|
81
|
-
**status
|
|
81
|
+
**status** (`ProviderStatus`): 'starting' | 'running' | 'stopped' | 'error'
|
|
82
82
|
|
|
83
|
-
**workingDirectory
|
|
83
|
+
**workingDirectory** (`string`): The configured working directory
|
|
84
84
|
|
|
85
85
|
## Methods
|
|
86
86
|
|
|
@@ -135,19 +135,19 @@ const installResult = await sandbox.executeCommand('npm', ['install', 'lodash'],
|
|
|
135
135
|
|
|
136
136
|
**Parameters:**
|
|
137
137
|
|
|
138
|
-
**command
|
|
138
|
+
**command** (`string`): Command to execute
|
|
139
139
|
|
|
140
|
-
**args
|
|
140
|
+
**args** (`string[]`): Command arguments
|
|
141
141
|
|
|
142
|
-
**options.timeout
|
|
142
|
+
**options.timeout** (`number`): Execution timeout in milliseconds
|
|
143
143
|
|
|
144
|
-
**options.cwd
|
|
144
|
+
**options.cwd** (`string`): Working directory for the command
|
|
145
145
|
|
|
146
|
-
**options.env
|
|
146
|
+
**options.env** (`Record<string, string>`): Additional environment variables
|
|
147
147
|
|
|
148
|
-
**options.onStdout
|
|
148
|
+
**options.onStdout** (`(data: string) => void`): Callback for stdout streaming
|
|
149
149
|
|
|
150
|
-
**options.onStderr
|
|
150
|
+
**options.onStderr** (`(data: string) => void`): Callback for stderr streaming
|
|
151
151
|
|
|
152
152
|
### `getInfo()`
|
|
153
153
|
|
|
@@ -175,7 +175,7 @@ const instructions = sandbox.getInstructions({ requestContext })
|
|
|
175
175
|
|
|
176
176
|
**Parameters:**
|
|
177
177
|
|
|
178
|
-
**opts.requestContext
|
|
178
|
+
**opts.requestContext** (`RequestContext`): Forwarded to the \`instructions\` function if one was provided in the constructor.
|
|
179
179
|
|
|
180
180
|
**Returns:** `string`
|
|
181
181
|
|
|
@@ -65,43 +65,43 @@ const filesystem = new S3Filesystem({
|
|
|
65
65
|
|
|
66
66
|
## Constructor parameters
|
|
67
67
|
|
|
68
|
-
**bucket
|
|
68
|
+
**bucket** (`string`): S3 bucket name
|
|
69
69
|
|
|
70
|
-
**region
|
|
70
|
+
**region** (`string`): AWS region (use 'auto' for R2)
|
|
71
71
|
|
|
72
|
-
**accessKeyId
|
|
72
|
+
**accessKeyId** (`string`): AWS access key ID. Optional for public buckets (read-only access).
|
|
73
73
|
|
|
74
|
-
**secretAccessKey
|
|
74
|
+
**secretAccessKey** (`string`): AWS secret access key. Optional for public buckets (read-only access).
|
|
75
75
|
|
|
76
|
-
**sessionToken
|
|
76
|
+
**sessionToken** (`string`): AWS session token for temporary credentials. Required when using SSO, AssumeRole, container credentials, or any other temporary credential provider.
|
|
77
77
|
|
|
78
|
-
**endpoint
|
|
78
|
+
**endpoint** (`string`): Custom endpoint URL for S3-compatible storage (R2, MinIO, etc.)
|
|
79
79
|
|
|
80
|
-
**forcePathStyle
|
|
80
|
+
**forcePathStyle** (`boolean`): Force path-style URLs instead of virtual-hosted-style. Required for some S3-compatible services like MinIO. Defaults to true when a custom endpoint is provided. (Default: `true (when endpoint is set)`)
|
|
81
81
|
|
|
82
|
-
**prefix
|
|
82
|
+
**prefix** (`string`): Optional prefix for all keys (acts like a subdirectory)
|
|
83
83
|
|
|
84
|
-
**id
|
|
84
|
+
**id** (`string`): Unique identifier for this filesystem instance (Default: `Auto-generated`)
|
|
85
85
|
|
|
86
|
-
**displayName
|
|
86
|
+
**displayName** (`string`): Human-friendly display name for the UI
|
|
87
87
|
|
|
88
|
-
**icon
|
|
88
|
+
**icon** (`FilesystemIcon`): Icon identifier for the UI
|
|
89
89
|
|
|
90
|
-
**description
|
|
90
|
+
**description** (`string`): Short description of this filesystem for the UI
|
|
91
91
|
|
|
92
|
-
**readOnly
|
|
92
|
+
**readOnly** (`boolean`): When true, all write operations are blocked (Default: `false`)
|
|
93
93
|
|
|
94
94
|
## Properties
|
|
95
95
|
|
|
96
|
-
**id
|
|
96
|
+
**id** (`string`): Filesystem instance identifier
|
|
97
97
|
|
|
98
|
-
**name
|
|
98
|
+
**name** (`string`): Provider name ('S3Filesystem')
|
|
99
99
|
|
|
100
|
-
**provider
|
|
100
|
+
**provider** (`string`): Provider identifier ('s3')
|
|
101
101
|
|
|
102
|
-
**bucket
|
|
102
|
+
**bucket** (`string`): The S3 bucket name
|
|
103
103
|
|
|
104
|
-
**readOnly
|
|
104
|
+
**readOnly** (`boolean | undefined`): Whether the filesystem is in read-only mode
|
|
105
105
|
|
|
106
106
|
## Methods
|
|
107
107
|
|
|
@@ -43,19 +43,19 @@ const result = await sandbox.executeCommand('npm', ['install', 'lodash'])
|
|
|
43
43
|
|
|
44
44
|
**Parameters:**
|
|
45
45
|
|
|
46
|
-
**command
|
|
46
|
+
**command** (`string`): Command to execute
|
|
47
47
|
|
|
48
|
-
**args
|
|
48
|
+
**args** (`string[]`): Command arguments
|
|
49
49
|
|
|
50
|
-
**options.timeout
|
|
50
|
+
**options.timeout** (`number`): Execution timeout in milliseconds
|
|
51
51
|
|
|
52
|
-
**options.cwd
|
|
52
|
+
**options.cwd** (`string`): Working directory for the command
|
|
53
53
|
|
|
54
|
-
**options.env
|
|
54
|
+
**options.env** (`Record<string, string>`): Additional environment variables
|
|
55
55
|
|
|
56
|
-
**options.onStdout
|
|
56
|
+
**options.onStdout** (`(data: string) => void`): Callback for stdout streaming
|
|
57
57
|
|
|
58
|
-
**options.onStderr
|
|
58
|
+
**options.onStderr** (`(data: string) => void`): Callback for stderr streaming
|
|
59
59
|
|
|
60
60
|
### `getInfo()`
|
|
61
61
|
|
|
@@ -77,7 +77,7 @@ const instructions = sandbox.getInstructions?.()
|
|
|
77
77
|
|
|
78
78
|
**Parameters:**
|
|
79
79
|
|
|
80
|
-
**opts.requestContext
|
|
80
|
+
**opts.requestContext** (`RequestContext`): Forwarded to the \`instructions\` function if one was provided in the constructor.
|
|
81
81
|
|
|
82
82
|
**Returns:** `string`
|
|
83
83
|
|
|
@@ -25,33 +25,39 @@ const workspace = new Workspace({
|
|
|
25
25
|
|
|
26
26
|
## Constructor parameters
|
|
27
27
|
|
|
28
|
-
**id
|
|
28
|
+
**id** (`string`): Unique identifier for the workspace (Default: `Auto-generated`)
|
|
29
29
|
|
|
30
|
-
**name
|
|
30
|
+
**name** (`string`): Human-readable name (Default: `workspace-{id}`)
|
|
31
31
|
|
|
32
|
-
**filesystem
|
|
32
|
+
**filesystem** (`WorkspaceFilesystem`): Filesystem provider instance (e.g., LocalFilesystem)
|
|
33
33
|
|
|
34
|
-
**sandbox
|
|
34
|
+
**sandbox** (`WorkspaceSandbox`): Sandbox provider instance (e.g., LocalSandbox)
|
|
35
35
|
|
|
36
|
-
**bm25
|
|
36
|
+
**bm25** (`boolean | BM25Config`): Enable BM25 keyword search. Pass true for defaults or a config object. (Default: `undefined`)
|
|
37
37
|
|
|
38
|
-
**vectorStore
|
|
38
|
+
**vectorStore** (`MastraVector`): Vector store for semantic search
|
|
39
39
|
|
|
40
|
-
**embedder
|
|
40
|
+
**embedder** (`(text: string) => Promise<number[]>`): Embedder function for generating vectors. Required when vectorStore is provided.
|
|
41
41
|
|
|
42
|
-
**autoIndexPaths
|
|
42
|
+
**autoIndexPaths** (`string[]`): Paths or glob patterns to auto-index on init(). Supports glob patterns like '\*\*/\*.md' for selective indexing.
|
|
43
43
|
|
|
44
|
-
**skills
|
|
44
|
+
**skills** (`string[] | ((context: SkillsContext) => string[] | Promise<string[]>)`): Paths where SKILL.md files are located. This can be a static array or an async function that resolves paths dynamically. Supports glob patterns like './\*\*/skills' for discovery.
|
|
45
45
|
|
|
46
|
-
**skillSource
|
|
46
|
+
**skillSource** (`SkillSource`): Custom skill source for skill discovery. When provided, this source is used instead of the workspace filesystem. Use VersionedSkillSource to serve published skill versions from a content-addressable blob store.
|
|
47
47
|
|
|
48
|
-
**onMount
|
|
48
|
+
**onMount** (`OnMountHook`): Pre-mount hook called for each filesystem before mounting into a sandbox. Return false to skip mounting, or return { success: true } if the hook handled the mount. Return undefined to use the default mount behavior.
|
|
49
49
|
|
|
50
|
-
**searchIndexName
|
|
50
|
+
**searchIndexName** (`string`): Custom index name for the vector store. Must be a valid SQL identifier (start with a letter or underscore, contain only letters, numbers, or underscores, max 63 characters). Defaults to a sanitized version of '{id}\_search'.
|
|
51
51
|
|
|
52
|
-
**tools
|
|
52
|
+
**tools** (`WorkspaceToolsConfig`): Per-tool configuration for enabling tools and setting safety options
|
|
53
53
|
|
|
54
|
-
**
|
|
54
|
+
**tools.enabled** (`boolean`): Whether the tool is available to agents
|
|
55
|
+
|
|
56
|
+
**tools.requireApproval** (`boolean`): Whether the tool requires user approval before execution
|
|
57
|
+
|
|
58
|
+
**tools.requireReadBeforeWrite** (`boolean`): For write tools: require reading the file first to prevent overwrites
|
|
59
|
+
|
|
60
|
+
**operationTimeout** (`number`): Timeout for operations in milliseconds
|
|
55
61
|
|
|
56
62
|
## Tool configuration
|
|
57
63
|
|
|
@@ -79,35 +85,25 @@ The config object has two parts:
|
|
|
79
85
|
|
|
80
86
|
See [workspace overview](https://mastra.ai/docs/workspace/overview) for more examples.
|
|
81
87
|
|
|
82
|
-
### Per-tool options
|
|
83
|
-
|
|
84
|
-
Each tool can be configured with these options:
|
|
85
|
-
|
|
86
|
-
**enabled?:** (`boolean`): Whether the tool is available to agents (Default: `true`)
|
|
87
|
-
|
|
88
|
-
**requireApproval?:** (`boolean`): Whether the tool requires user approval before execution (Default: `false`)
|
|
89
|
-
|
|
90
|
-
**requireReadBeforeWrite?:** (`boolean`): For write tools: require reading the file first to prevent overwrites (Default: `false`)
|
|
91
|
-
|
|
92
88
|
## Properties
|
|
93
89
|
|
|
94
|
-
**id
|
|
90
|
+
**id** (`string`): Workspace identifier
|
|
95
91
|
|
|
96
|
-
**name
|
|
92
|
+
**name** (`string`): Workspace name
|
|
97
93
|
|
|
98
|
-
**status
|
|
94
|
+
**status** (`WorkspaceStatus`): 'pending' | 'initializing' | 'ready' | 'paused' | 'error' | 'destroying' | 'destroyed'
|
|
99
95
|
|
|
100
|
-
**filesystem
|
|
96
|
+
**filesystem** (`WorkspaceFilesystem | undefined`): The filesystem provider
|
|
101
97
|
|
|
102
|
-
**sandbox
|
|
98
|
+
**sandbox** (`WorkspaceSandbox | undefined`): The sandbox provider
|
|
103
99
|
|
|
104
|
-
**skills
|
|
100
|
+
**skills** (`WorkspaceSkills | undefined`): Skills interface for accessing SKILL.md files
|
|
105
101
|
|
|
106
|
-
**canBM25
|
|
102
|
+
**canBM25** (`boolean`): Whether BM25 search is available
|
|
107
103
|
|
|
108
|
-
**canVector
|
|
104
|
+
**canVector** (`boolean`): Whether vector search is available
|
|
109
105
|
|
|
110
|
-
**canHybrid
|
|
106
|
+
**canHybrid** (`boolean`): Whether hybrid search is available
|
|
111
107
|
|
|
112
108
|
## Methods
|
|
113
109
|
|
|
@@ -189,7 +185,7 @@ const instructions = workspace.getInstructions({ requestContext })
|
|
|
189
185
|
|
|
190
186
|
**Parameters:**
|
|
191
187
|
|
|
192
|
-
**opts.requestContext
|
|
188
|
+
**opts.requestContext** (`RequestContext`): Forwarded to the \`instructions\` function on the filesystem or sandbox provider, if one is configured.
|
|
193
189
|
|
|
194
190
|
**Returns:** `string`
|
|
195
191
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @mastra/mcp-docs-server
|
|
2
2
|
|
|
3
|
+
## 1.1.8-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`41e48c1`](https://github.com/mastra-ai/mastra/commit/41e48c198eee846478e60c02ec432c19d322a517), [`82469d3`](https://github.com/mastra-ai/mastra/commit/82469d3135d5a49dd8dc8feec0ff398b4e0225a0), [`33e2fd5`](https://github.com/mastra-ai/mastra/commit/33e2fd5088f83666df17401e2da68c943dbc0448), [`7ef6e2c`](https://github.com/mastra-ai/mastra/commit/7ef6e2c61be5a42e26f55d15b5902866fc76634f), [`b12d2a5`](https://github.com/mastra-ai/mastra/commit/b12d2a59a48be0477cabae66eb6cf0fc94a7d40d), [`9e21667`](https://github.com/mastra-ai/mastra/commit/9e2166746df81da8f1f933a918741fc52f922c70), [`fa37d39`](https://github.com/mastra-ai/mastra/commit/fa37d39910421feaf8847716292e3d65dd4f30c2), [`b12d2a5`](https://github.com/mastra-ai/mastra/commit/b12d2a59a48be0477cabae66eb6cf0fc94a7d40d), [`71c38bf`](https://github.com/mastra-ai/mastra/commit/71c38bf905905148ecd0e75c07c1f9825d299b76), [`f993c38`](https://github.com/mastra-ai/mastra/commit/f993c3848c97479b813231be872443bedeced6ab), [`f51849a`](https://github.com/mastra-ai/mastra/commit/f51849a568935122b5100b7ee69704e6d680cf7b), [`9bf3a0d`](https://github.com/mastra-ai/mastra/commit/9bf3a0dac602787925f1762f1f0387d7b4a59620), [`cafa045`](https://github.com/mastra-ai/mastra/commit/cafa0453c9de141ad50c09a13894622dffdd9978), [`1fd9ddb`](https://github.com/mastra-ai/mastra/commit/1fd9ddbb3fe83b281b12bd2e27e426ae86288266), [`6135ef4`](https://github.com/mastra-ai/mastra/commit/6135ef4f5288652bf45f616ec590607e4c95f443), [`d9d228c`](https://github.com/mastra-ai/mastra/commit/d9d228c0c6ae82ae6ce3b540a3a56b2b1c2b8d98), [`5576507`](https://github.com/mastra-ai/mastra/commit/55765071e360fb97e443aa0a91ccf7e1cd8d92aa), [`79d69c9`](https://github.com/mastra-ai/mastra/commit/79d69c9d5f842ff1c31352fb6026f04c1f6190f3), [`94f44b8`](https://github.com/mastra-ai/mastra/commit/94f44b827ce57b179e50f4916a84c0fa6e7f3b8c), [`13187db`](https://github.com/mastra-ai/mastra/commit/13187dbac880174232dedc5a501ff6c5d0fe59bc), [`2ae5311`](https://github.com/mastra-ai/mastra/commit/2ae531185fff66a80fa165c0999e3d801900e89d), [`6135ef4`](https://github.com/mastra-ai/mastra/commit/6135ef4f5288652bf45f616ec590607e4c95f443)]:
|
|
8
|
+
- @mastra/core@1.10.0-alpha.0
|
|
9
|
+
- @mastra/mcp@1.1.0-alpha.0
|
|
10
|
+
|
|
11
|
+
## 1.1.7
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`504fc8b`](https://github.com/mastra-ai/mastra/commit/504fc8b9d0ddab717577ad3bf9c95ea4bd5377bd), [`f9c150b`](https://github.com/mastra-ai/mastra/commit/f9c150b7595ad05ad9cc9a11098e2944361e8c22), [`88de7e8`](https://github.com/mastra-ai/mastra/commit/88de7e8dfe4b7e1951a9e441bb33136e705ce24e), [`edee4b3`](https://github.com/mastra-ai/mastra/commit/edee4b37dff0af515fc7cc0e8d71ee39e6a762f0), [`3790c75`](https://github.com/mastra-ai/mastra/commit/3790c7578cc6a47d854eb12d89e6b1912867fe29), [`e7a235b`](https://github.com/mastra-ai/mastra/commit/e7a235be6472e0c870ed6c791ddb17c492dc188b), [`d51d298`](https://github.com/mastra-ai/mastra/commit/d51d298953967aab1f58ec965b644d109214f085), [`6dbeeb9`](https://github.com/mastra-ai/mastra/commit/6dbeeb94a8b1eebb727300d1a98961f882180794), [`d5f0d8d`](https://github.com/mastra-ai/mastra/commit/d5f0d8d6a03e515ddaa9b5da19b7e44b8357b07b), [`09c3b18`](https://github.com/mastra-ai/mastra/commit/09c3b1802ff14e243a8a8baea327440bc8cc2e32), [`b896379`](https://github.com/mastra-ai/mastra/commit/b8963791c6afa79484645fcec596a201f936b9a2), [`85c84eb`](https://github.com/mastra-ai/mastra/commit/85c84ebb78aebfcba9d209c8e152b16d7a00cb71), [`a89272a`](https://github.com/mastra-ai/mastra/commit/a89272a5d71939b9fcd284e6a6dc1dd091a6bdcf), [`ee9c8df`](https://github.com/mastra-ai/mastra/commit/ee9c8df644f19d055af5f496bf4942705f5a47b7), [`77b4a25`](https://github.com/mastra-ai/mastra/commit/77b4a254e51907f8ff3a3ba95596a18e93ae4b35), [`276246e`](https://github.com/mastra-ai/mastra/commit/276246e0b9066a1ea48bbc70df84dbe528daaf99), [`08ecfdb`](https://github.com/mastra-ai/mastra/commit/08ecfdbdad6fb8285deef86a034bdf4a6047cfca), [`d5f628c`](https://github.com/mastra-ai/mastra/commit/d5f628ca86c6f6f3ff1035d52f635df32dd81cab), [`24f7204`](https://github.com/mastra-ai/mastra/commit/24f72046eb35b47c75d36193af4fb817b588720d), [`524c0f3`](https://github.com/mastra-ai/mastra/commit/524c0f3c434c3d9d18f66338dcef383d6161b59c), [`c18a0e9`](https://github.com/mastra-ai/mastra/commit/c18a0e9cef1e4ca004b2963d35e4cfc031971eac), [`4bd21ea`](https://github.com/mastra-ai/mastra/commit/4bd21ea43d44d0a0427414fc047577f9f0aa3bec), [`115a7a4`](https://github.com/mastra-ai/mastra/commit/115a7a47db5e9896fec12ae6507501adb9ec89bf), [`22a48ae`](https://github.com/mastra-ai/mastra/commit/22a48ae2513eb54d8d79dad361fddbca97a155e8), [`3c6ef79`](https://github.com/mastra-ai/mastra/commit/3c6ef798481e00d6d22563be2de98818fd4dd5e0), [`9311c17`](https://github.com/mastra-ai/mastra/commit/9311c17d7a0640d9c4da2e71b814dc67c57c6369), [`7edf78f`](https://github.com/mastra-ai/mastra/commit/7edf78f80422c43e84585f08ba11df0d4d0b73c5), [`1c4221c`](https://github.com/mastra-ai/mastra/commit/1c4221cf6032ec98d0e094d4ee11da3e48490d96), [`d25b9ea`](https://github.com/mastra-ai/mastra/commit/d25b9eabd400167255a97b690ffbc4ee4097ded5), [`fe1ce5c`](https://github.com/mastra-ai/mastra/commit/fe1ce5c9211c03d561606fda95cbfe7df1d9a9b5), [`b03c0e0`](https://github.com/mastra-ai/mastra/commit/b03c0e0389a799523929a458b0509c9e4244d562), [`0a8366b`](https://github.com/mastra-ai/mastra/commit/0a8366b0a692fcdde56c4d526e4cf03c502ae4ac), [`85664e9`](https://github.com/mastra-ai/mastra/commit/85664e9fd857320fbc245e301f764f45f66f32a3), [`bc79650`](https://github.com/mastra-ai/mastra/commit/bc796500c6e0334faa158a96077e3fb332274869), [`9257d01`](https://github.com/mastra-ai/mastra/commit/9257d01d1366d81f84c582fe02b5e200cf9621f4), [`3a3a59e`](https://github.com/mastra-ai/mastra/commit/3a3a59e8ffaa6a985fe3d9a126a3f5ade11a6724), [`3108d4e`](https://github.com/mastra-ai/mastra/commit/3108d4e649c9fddbf03253a6feeb388a5fa9fa5a), [`0c33b2c`](https://github.com/mastra-ai/mastra/commit/0c33b2c9db537f815e1c59e2c898ffce2e395a79), [`191e5bd`](https://github.com/mastra-ai/mastra/commit/191e5bd29b82f5bda35243945790da7bc7b695c2), [`fde104d`](https://github.com/mastra-ai/mastra/commit/fde104da80935d6e0dd24327e86a51011fcb3173), [`f77cd94`](https://github.com/mastra-ai/mastra/commit/f77cd94c44eabed490384e7d19232a865e13214c), [`e8135c7`](https://github.com/mastra-ai/mastra/commit/e8135c7e300dac5040670eec7eab896ac6092e30), [`daca48f`](https://github.com/mastra-ai/mastra/commit/daca48f0fb17b7ae0b62a2ac40cf0e491b2fd0b7), [`257d14f`](https://github.com/mastra-ai/mastra/commit/257d14faca5931f2e4186fc165b6f0b1f915deee), [`352f25d`](https://github.com/mastra-ai/mastra/commit/352f25da316b24cdd5b410fd8dddf6a8b763da2a), [`93477d0`](https://github.com/mastra-ai/mastra/commit/93477d0769b8a13ea5ed73d508d967fb23eaeed9), [`31c78b3`](https://github.com/mastra-ai/mastra/commit/31c78b3eb28f58a8017f1dcc795c33214d87feac), [`0bc0720`](https://github.com/mastra-ai/mastra/commit/0bc07201095791858087cc56f353fcd65e87ab54), [`36516ac`](https://github.com/mastra-ai/mastra/commit/36516aca1021cbeb42e74751b46a2614101f37c8), [`e947652`](https://github.com/mastra-ai/mastra/commit/e9476527fdecb4449e54570e80dfaf8466901254), [`23b43dd`](https://github.com/mastra-ai/mastra/commit/23b43ddd0e3db05dee828c2733faa2496b7b0319), [`3c6ef79`](https://github.com/mastra-ai/mastra/commit/3c6ef798481e00d6d22563be2de98818fd4dd5e0), [`9257d01`](https://github.com/mastra-ai/mastra/commit/9257d01d1366d81f84c582fe02b5e200cf9621f4), [`ec248f6`](https://github.com/mastra-ai/mastra/commit/ec248f6b56e8a037c066c49b2178e2507471d988)]:
|
|
16
|
+
- @mastra/core@1.9.0
|
|
17
|
+
- @mastra/mcp@1.0.3
|
|
18
|
+
|
|
3
19
|
## 1.1.7-alpha.0
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
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.8-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",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"jsdom": "^26.1.0",
|
|
30
30
|
"local-pkg": "^1.1.2",
|
|
31
31
|
"zod": "^3.25.76",
|
|
32
|
-
"@mastra/core": "1.
|
|
33
|
-
"@mastra/mcp": "^1.0
|
|
32
|
+
"@mastra/core": "1.10.0-alpha.0",
|
|
33
|
+
"@mastra/mcp": "^1.1.0-alpha.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@hono/node-server": "^1.19.9",
|
|
@@ -46,9 +46,9 @@
|
|
|
46
46
|
"tsx": "^4.21.0",
|
|
47
47
|
"typescript": "^5.9.3",
|
|
48
48
|
"vitest": "4.0.18",
|
|
49
|
-
"@internal/
|
|
50
|
-
"@
|
|
51
|
-
"@
|
|
49
|
+
"@internal/lint": "0.0.65",
|
|
50
|
+
"@internal/types-builder": "0.0.40",
|
|
51
|
+
"@mastra/core": "1.10.0-alpha.0"
|
|
52
52
|
},
|
|
53
53
|
"homepage": "https://mastra.ai",
|
|
54
54
|
"repository": {
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# Start
|
|
2
|
-
|
|
3
|
-
Create a new Mastra project, or integrate Mastra with your preferred framework to start building.
|
|
4
|
-
|
|
5
|
-
## New project
|
|
6
|
-
|
|
7
|
-
The `create mastra` command is the fastest way to build your first agent. It walks you through setup and generates an example agent you can run and adapt in [Studio](https://mastra.ai/docs/getting-started/studio) right away. You can always integrate Mastra with your framework or UI when you’re ready.
|
|
8
|
-
|
|
9
|
-
- [Quickstart](https://mastra.ai/guides/getting-started/quickstart)
|
|
10
|
-
|
|
11
|
-
## Integrate with your framework
|
|
12
|
-
|
|
13
|
-
Add Mastra to an existing project, or scaffold a new Mastra-powered app if you’re starting from scratch.
|
|
14
|
-
|
|
15
|
-
- [Next.js](https://mastra.ai/guides/getting-started/next-js)
|
|
16
|
-
- [React](https://mastra.ai/guides/getting-started/vite-react)
|
|
17
|
-
- [SvelteKit](https://mastra.ai/guides/getting-started/sveltekit)
|
|
18
|
-
- [Astro](https://mastra.ai/guides/getting-started/astro)
|
|
19
|
-
- [Nuxt](https://mastra.ai/guides/getting-started/nuxt)
|
|
20
|
-
- [Express](https://mastra.ai/guides/getting-started/express)
|
|
21
|
-
- [Hono](https://mastra.ai/guides/getting-started/hono)
|
|
22
|
-
- [Electron](https://mastra.ai/guides/getting-started/electron)
|
|
23
|
-
|
|
24
|
-
Mastra works great with agentic UI frameworks like [AI SDK UI](https://mastra.ai/guides/build-your-ui/ai-sdk-ui), [CopilotKit](https://mastra.ai/guides/build-your-ui/copilotkit), and [Assistant UI](https://mastra.ai/guides/build-your-ui/assistant-ui). Use them with any of the frontend frameworks above to stream agent responses, render tools, and build chat interfaces.
|
|
25
|
-
|
|
26
|
-
## Start from a template
|
|
27
|
-
|
|
28
|
-
Have a use case in mind? Start with a pre-built [template](https://mastra.ai/templates) from Mastra or our community.
|