@mastra/mcp-docs-server 1.2.1 → 1.2.2-alpha.10
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/background-tasks.md +5 -5
- package/.docs/docs/agents/code-mode.md +1 -1
- package/.docs/docs/agents/goals.md +1 -1
- package/.docs/docs/agents/processors.md +1 -1
- package/.docs/docs/agents/signal-providers.md +1 -1
- package/.docs/docs/agents/signals.md +1 -1
- package/.docs/docs/agents/supervisor-agents.md +15 -0
- package/.docs/docs/evals/built-in-scorers.md +17 -1
- package/.docs/docs/evals/gates-and-verdicts.md +140 -0
- package/.docs/docs/evals/overview.md +2 -0
- package/.docs/docs/evals/quick-checks.md +136 -0
- package/.docs/docs/harness/modes.md +21 -0
- package/.docs/docs/harness/overview.md +1 -1
- package/.docs/docs/harness/session.md +7 -3
- package/.docs/docs/harness/threads-and-state.md +2 -0
- package/.docs/docs/memory/observational-memory.md +1 -3
- package/.docs/guides/guide/signal-provider.md +1 -1
- package/.docs/models/gateways/netlify.md +1 -3
- package/.docs/models/gateways/openrouter.md +2 -1
- package/.docs/models/gateways/vercel.md +3 -1
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/baseten.md +2 -2
- package/.docs/models/providers/berget.md +4 -3
- package/.docs/models/providers/evroc.md +19 -17
- package/.docs/models/providers/huggingface.md +4 -1
- package/.docs/models/providers/llmgateway.md +184 -199
- package/.docs/models/providers/minimax-cn-coding-plan.md +1 -1
- package/.docs/models/providers/minimax-cn.md +1 -1
- package/.docs/models/providers/minimax-coding-plan.md +1 -1
- package/.docs/models/providers/minimax.md +1 -1
- package/.docs/models/providers/neuralwatt.md +2 -1
- package/.docs/models/providers/opencode-go.md +1 -1
- package/.docs/models/providers/ovhcloud.md +1 -2
- package/.docs/models/providers/stepfun.md +3 -2
- package/.docs/models/providers/togetherai.md +3 -2
- package/.docs/reference/agents/channels.md +4 -0
- package/.docs/reference/agents/durable-agent.md +30 -3
- package/.docs/reference/agents/generate.md +1 -1
- package/.docs/reference/ai-sdk/workflow-snapshot-to-stream.md +51 -0
- package/.docs/reference/cli/mastra.md +8 -0
- package/.docs/reference/evals/checks.md +210 -0
- package/.docs/reference/evals/run-evals.md +71 -1
- package/.docs/reference/harness/harness-class.md +90 -50
- package/.docs/reference/harness/session.md +35 -4
- package/.docs/reference/index.md +2 -0
- package/.docs/reference/memory/observational-memory.md +1 -1
- package/.docs/reference/memory/serialized-memory-config.md +1 -1
- package/.docs/reference/processors/processor-interface.md +2 -0
- package/.docs/reference/streaming/agents/stream.md +1 -1
- package/CHANGELOG.md +49 -0
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Harness class
|
|
2
2
|
|
|
3
|
-
> **
|
|
3
|
+
> **Beta:** The `Harness` feature is in beta stage and subject to breaking changes in minor versions until it graduates from its beta status.
|
|
4
4
|
|
|
5
5
|
The `Harness` class orchestrates multiple agent modes, shared state, memory, and storage. It provides a control layer that a TUI or other UI can drive to manage threads, switch models and modes, send messages, handle tool approvals, and track events.
|
|
6
6
|
|
|
@@ -82,6 +82,8 @@ await harness.sendMessage({ content: 'Hello!' })
|
|
|
82
82
|
|
|
83
83
|
**modes.additionalTools** (`ToolsInput`): Tools layered on top of the backing agent's tools. Mutually exclusive with \`tools\`.
|
|
84
84
|
|
|
85
|
+
**modes.availableTools** (`string[]`): Per-mode tool visibility allowlist. When set, only tools whose final exposed names appear in this list are visible to the model and executable during this mode's runs. \`undefined\` = all tools visible; \`\[]\` = no tools. Per-tool and per-category \`deny\` rules take precedence over this list. Workspace tools use the same list — reference them by exposed names (\`view\`, \`write\_file\`, etc.).
|
|
86
|
+
|
|
85
87
|
**modes.agent** (`Agent`): The agent for this mode. Deprecated in favor of the top-level \`agent\` config with mode-level overrides.
|
|
86
88
|
|
|
87
89
|
**agent** (`Agent`): Shared backing agent that each mode forks and decorates. When provided, modes layer instructions and tool overrides on top of this agent instead of providing their own.
|
|
@@ -92,9 +94,9 @@ await harness.sendMessage({ content: 'Hello!' })
|
|
|
92
94
|
|
|
93
95
|
**tools** (`ToolsInput | ((ctx) => ToolsInput)`): Tools available to all agents across all modes. It can be a static tools object or a dynamic function that receives the request context.
|
|
94
96
|
|
|
95
|
-
**workspace** (`Workspace |
|
|
97
|
+
**workspace** (`Workspace | ((ctx) => Workspace)`): Workspace instance or a dynamic factory function. When omitted, each session created via createSession must provide its own workspace. The factory receives the request context and Mastra instance.
|
|
96
98
|
|
|
97
|
-
**browser** (`MastraBrowser | ((ctx) => MastraBrowser)`): Browser automation
|
|
99
|
+
**browser** (`MastraBrowser | ((ctx) => MastraBrowser)`): Browser automation instance or a dynamic factory function. When omitted, each session created via createSession can provide its own browser.
|
|
98
100
|
|
|
99
101
|
**subagents** (`HarnessSubagent[]`): Subagent definitions. When provided, the harness creates a built-in \`subagent\` tool that parent agents can call to spawn focused subagents.
|
|
100
102
|
|
|
@@ -160,12 +162,54 @@ await harness.sendMessage({ content: 'Hello!' })
|
|
|
160
162
|
|
|
161
163
|
#### `init()`
|
|
162
164
|
|
|
163
|
-
Initialize the harness. Loads storage, initializes
|
|
165
|
+
Initialize the harness. Loads storage, initializes a static workspace (dynamic factory workspaces are resolved per-session during `createSession`), propagates memory and workspace to mode agents, and starts heartbeat handlers. Call this before using the harness.
|
|
164
166
|
|
|
165
167
|
```typescript
|
|
166
168
|
await harness.init()
|
|
167
169
|
```
|
|
168
170
|
|
|
171
|
+
#### `createSession({ id, ownerId, resourceId?, tags?, workspace?, browser?, requestContext? })`
|
|
172
|
+
|
|
173
|
+
Create a new, fully-wired `Session` and bring it online. The session starts in the default mode with the seeded model, connects to the Harness's shared machinery (agent, storage/lock, config catalog), and has a current thread (the most recent thread for the resource, or a freshly created one). Call `init()` once before creating sessions so shared storage is ready.
|
|
174
|
+
|
|
175
|
+
The Harness owns no session of its own — every consumer creates its own session and drives all work through it. In a server or multiplayer setting, each request, thread, or user gets its own session, isolated from every other: independent event bus, mode, model, state, and current thread.
|
|
176
|
+
|
|
177
|
+
`id` and `ownerId` are required — they mirror `SessionRecord.id` and `SessionRecord.ownerId` and are stable for the life of the session. `resourceId` is optional and defaults to `config.resourceId` then `config.id`.
|
|
178
|
+
|
|
179
|
+
Each session owns its own `Workspace` and `Browser` instance. When `workspace` is omitted, the Harness resolves its configured workspace (a static instance or a dynamic factory) and passes it to the session. Pass a `workspace` override to give a specific session a different workspace than the Harness default. The workspace is initialized during session creation; `workspace_ready` and `workspace_status_changed` events are emitted on the session bus after `init()` completes, and late subscribers receive a replay of the last workspace status.
|
|
180
|
+
|
|
181
|
+
```typescript
|
|
182
|
+
const session = await harness.createSession({
|
|
183
|
+
id: 'session-xyz',
|
|
184
|
+
ownerId: 'user-123',
|
|
185
|
+
})
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
You can also override the resource:
|
|
189
|
+
|
|
190
|
+
```typescript
|
|
191
|
+
const session = await harness.createSession({
|
|
192
|
+
id: 'session-xyz',
|
|
193
|
+
ownerId: 'user-123',
|
|
194
|
+
resourceId: 'project-abc',
|
|
195
|
+
})
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
Override the workspace and browser for a specific session:
|
|
199
|
+
|
|
200
|
+
```typescript
|
|
201
|
+
const session = await harness.createSession({
|
|
202
|
+
id: 'session-xyz',
|
|
203
|
+
ownerId: 'user-123',
|
|
204
|
+
workspace: myWorkspace,
|
|
205
|
+
browser: myBrowser,
|
|
206
|
+
})
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
`tags` scopes initial thread selection: a thread is a resume candidate only when its metadata matches every provided tag. This lets worktrees sharing a resourceId each resume their own thread (via a `projectPath` tag).
|
|
210
|
+
|
|
211
|
+
Switching the resource ID via `harness.setResourceId()` changes only the resource ID, not `id` or `ownerId`. Read them through `session.identity.getId()` and `session.identity.getOwnerId()`.
|
|
212
|
+
|
|
169
213
|
#### `selectOrCreateThread()`
|
|
170
214
|
|
|
171
215
|
Select the most recent thread for the current resource, or create one if none exist. Loads thread metadata and acquires a thread lock.
|
|
@@ -222,6 +266,48 @@ Return the internal `Mastra` instance, or `undefined` before `init()`. Useful fo
|
|
|
222
266
|
const mastra = harness.getMastra()
|
|
223
267
|
```
|
|
224
268
|
|
|
269
|
+
#### `getWorkspace()`
|
|
270
|
+
|
|
271
|
+
Return the Harness-level workspace if it is a static `Workspace` instance. Dynamic factory workspaces are not resolved here — use [`resolveWorkspace()`](#resolveworkspace-session-requestcontext-) to resolve a factory against a session's request context.
|
|
272
|
+
|
|
273
|
+
```typescript
|
|
274
|
+
const workspace = harness.getWorkspace()
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
#### `resolveWorkspace({ session, requestContext? })`
|
|
278
|
+
|
|
279
|
+
Eagerly resolve and cache the workspace. For dynamic workspaces (factory function), this triggers the factory against the given session's request context and caches the result so `getWorkspace()` returns it. Returns the resolved workspace or `undefined` if none is configured.
|
|
280
|
+
|
|
281
|
+
```typescript
|
|
282
|
+
const workspace = await harness.resolveWorkspace({ session })
|
|
283
|
+
```
|
|
284
|
+
|
|
285
|
+
```typescript
|
|
286
|
+
// With an explicit request context
|
|
287
|
+
const requestContext = new RequestContext()
|
|
288
|
+
const workspace = await harness.resolveWorkspace({ session, requestContext })
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
#### `hasWorkspace()`
|
|
292
|
+
|
|
293
|
+
Whether a workspace is configured on this Harness (static instance or dynamic factory). Sessions without an explicit workspace override fall back to this.
|
|
294
|
+
|
|
295
|
+
```typescript
|
|
296
|
+
if (harness.hasWorkspace()) {
|
|
297
|
+
// ...
|
|
298
|
+
}
|
|
299
|
+
```
|
|
300
|
+
|
|
301
|
+
#### `isWorkspaceReady()`
|
|
302
|
+
|
|
303
|
+
Whether the Harness-level static workspace has been initialized. Dynamic factory workspaces are resolved and initialized per-session during `createSession`, so this returns `false` for factory configs until a session is created.
|
|
304
|
+
|
|
305
|
+
```typescript
|
|
306
|
+
if (harness.isWorkspaceReady()) {
|
|
307
|
+
// ...
|
|
308
|
+
}
|
|
309
|
+
```
|
|
310
|
+
|
|
225
311
|
### Modes
|
|
226
312
|
|
|
227
313
|
#### `listModes()`
|
|
@@ -442,52 +528,6 @@ const category = harness.getToolCategory({ toolName: 'mastra_workspace_write_fil
|
|
|
442
528
|
// 'edit'
|
|
443
529
|
```
|
|
444
530
|
|
|
445
|
-
### Workspace
|
|
446
|
-
|
|
447
|
-
#### `getWorkspace()`
|
|
448
|
-
|
|
449
|
-
Return the current workspace instance, or `undefined` if no workspace is configured or it hasn't been resolved yet.
|
|
450
|
-
|
|
451
|
-
```typescript
|
|
452
|
-
const workspace = harness.getWorkspace()
|
|
453
|
-
```
|
|
454
|
-
|
|
455
|
-
#### `resolveWorkspace({ requestContext? })`
|
|
456
|
-
|
|
457
|
-
Eagerly resolve and cache the workspace. For dynamic workspaces (factory function), this triggers the factory and caches the result so `getWorkspace()` returns it. Returns the resolved workspace or `undefined` if none is configured.
|
|
458
|
-
|
|
459
|
-
```typescript
|
|
460
|
-
const workspace = await harness.resolveWorkspace()
|
|
461
|
-
```
|
|
462
|
-
|
|
463
|
-
#### `hasWorkspace()`
|
|
464
|
-
|
|
465
|
-
Return whether a workspace is configured (static, config-based, or dynamic).
|
|
466
|
-
|
|
467
|
-
```typescript
|
|
468
|
-
if (harness.hasWorkspace()) {
|
|
469
|
-
const workspace = await harness.resolveWorkspace()
|
|
470
|
-
}
|
|
471
|
-
```
|
|
472
|
-
|
|
473
|
-
#### `isWorkspaceReady()`
|
|
474
|
-
|
|
475
|
-
Return whether the workspace is ready to use. For dynamic workspaces (factory function), always returns `true`. For static workspaces, returns `true` after `init()` succeeds.
|
|
476
|
-
|
|
477
|
-
```typescript
|
|
478
|
-
if (harness.isWorkspaceReady()) {
|
|
479
|
-
const workspace = harness.getWorkspace()
|
|
480
|
-
}
|
|
481
|
-
```
|
|
482
|
-
|
|
483
|
-
#### `destroyWorkspace()`
|
|
484
|
-
|
|
485
|
-
Destroy the workspace and release resources. Only applies to static workspaces — dynamic workspaces aren't destroyed.
|
|
486
|
-
|
|
487
|
-
```typescript
|
|
488
|
-
await harness.destroyWorkspace()
|
|
489
|
-
```
|
|
490
|
-
|
|
491
531
|
### Observational Memory
|
|
492
532
|
|
|
493
533
|
#### `loadOMProgress()`
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Session class
|
|
2
2
|
|
|
3
|
-
> **
|
|
3
|
+
> **Beta:** The `Harness` feature is in beta stage and subject to breaking changes in minor versions until it graduates from its beta status.
|
|
4
4
|
|
|
5
5
|
A `Session` owns all the state tied to a single conversation. The [`Harness`](https://mastra.ai/reference/harness/harness-class) is the shared host — agents, storage, config, the thread lock, and the event bus — while the `Session` holds everything that is per-conversation: identity, the active thread binding and reads, mode and model selection, run and abort state, the live agent stream, tool suspensions, follow-ups, approvals, permission grants, token usage, and the display-state snapshot.
|
|
6
6
|
|
|
@@ -29,7 +29,7 @@ harness.subscribe(event => {
|
|
|
29
29
|
|
|
30
30
|
The session is organized into sub-objects, each owning one domain of per-conversation state.
|
|
31
31
|
|
|
32
|
-
**identity** (`SessionIdentity`):
|
|
32
|
+
**identity** (`SessionIdentity`): Stable session, owner, and resource identity for the conversation. See identity methods below.
|
|
33
33
|
|
|
34
34
|
**thread** (`SessionThread`): Active thread binding and thread/message reads. See thread methods below.
|
|
35
35
|
|
|
@@ -51,6 +51,8 @@ The session is organized into sub-objects, each owning one domain of per-convers
|
|
|
51
51
|
|
|
52
52
|
**state** (`SessionState<TState>`): The schema-validated, session-owned Harness state. See state methods below.
|
|
53
53
|
|
|
54
|
+
**browser** (`MastraBrowser | undefined`): The browser automation instance for this session. Set at creation via createSession, or from the Harness config default. Undefined when no browser is configured.
|
|
55
|
+
|
|
54
56
|
## Methods
|
|
55
57
|
|
|
56
58
|
### Permissions
|
|
@@ -125,7 +127,23 @@ const usage = harness.session.getTokenUsage()
|
|
|
125
127
|
|
|
126
128
|
## Identity
|
|
127
129
|
|
|
128
|
-
`session.identity` owns the resource ID for the
|
|
130
|
+
`session.identity` owns the stable identifiers for the conversation: the resource ID, a session `id`, and an `ownerId`. The `id` and `ownerId` are stable for the life of the session and do not change when the resource ID is switched. They mirror the `id` and `ownerId` fields on `SessionRecord` in storage.
|
|
131
|
+
|
|
132
|
+
### `session.identity.getId()`
|
|
133
|
+
|
|
134
|
+
Return the stable session identifier.
|
|
135
|
+
|
|
136
|
+
```typescript
|
|
137
|
+
const sessionId = harness.session.identity.getId()
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### `session.identity.getOwnerId()`
|
|
141
|
+
|
|
142
|
+
Return the stable owner identifier for the session.
|
|
143
|
+
|
|
144
|
+
```typescript
|
|
145
|
+
const ownerId = harness.session.identity.getOwnerId()
|
|
146
|
+
```
|
|
129
147
|
|
|
130
148
|
### `session.identity.getResourceId()`
|
|
131
149
|
|
|
@@ -143,7 +161,7 @@ Return the resource ID the session was created with.
|
|
|
143
161
|
const defaultResourceId = harness.session.identity.getDefaultResourceId()
|
|
144
162
|
```
|
|
145
163
|
|
|
146
|
-
To change the resource ID, use [`harness.setResourceId()`](https://mastra.ai/reference/harness/harness-class), which also tears down the active thread.
|
|
164
|
+
To change the resource ID, use [`harness.setResourceId()`](https://mastra.ai/reference/harness/harness-class), which also tears down the active thread. The session `id` and `ownerId` are not affected by resource switches.
|
|
147
165
|
|
|
148
166
|
## Thread
|
|
149
167
|
|
|
@@ -547,6 +565,19 @@ const added = await harness.session.state.update(current => ({
|
|
|
547
565
|
}))
|
|
548
566
|
```
|
|
549
567
|
|
|
568
|
+
## Scoping tags
|
|
569
|
+
|
|
570
|
+
Sessions carry scoping tags (e.g. `{ projectPath }`) seeded at creation and stamped onto every thread the session creates. Thread listings can be filtered back to the session's scope using these tags.
|
|
571
|
+
|
|
572
|
+
### `getTags()`
|
|
573
|
+
|
|
574
|
+
Return a copy of the session's scoping tags. Empty object when the session is unscoped.
|
|
575
|
+
|
|
576
|
+
```typescript
|
|
577
|
+
const tags = harness.session.getTags()
|
|
578
|
+
// { projectPath: '/my/project' }
|
|
579
|
+
```
|
|
580
|
+
|
|
550
581
|
## Related
|
|
551
582
|
|
|
552
583
|
- [Harness class](https://mastra.ai/reference/harness/harness-class)
|
package/.docs/reference/index.md
CHANGED
|
@@ -40,6 +40,7 @@ The Reference section provides documentation of Mastra's API, including paramete
|
|
|
40
40
|
- [toAISdkV5Messages()](https://mastra.ai/reference/ai-sdk/to-ai-sdk-v5-messages)
|
|
41
41
|
- [withMastra()](https://mastra.ai/reference/ai-sdk/with-mastra)
|
|
42
42
|
- [workflowRoute()](https://mastra.ai/reference/ai-sdk/workflow-route)
|
|
43
|
+
- [workflowSnapshotToStream()](https://mastra.ai/reference/ai-sdk/workflow-snapshot-to-stream)
|
|
43
44
|
- [Auth0](https://mastra.ai/reference/auth/auth0)
|
|
44
45
|
- [Better Auth](https://mastra.ai/reference/auth/better-auth)
|
|
45
46
|
- [Clerk](https://mastra.ai/reference/auth/clerk)
|
|
@@ -118,6 +119,7 @@ The Reference section provides documentation of Mastra's API, including paramete
|
|
|
118
119
|
- [createScorer()](https://mastra.ai/reference/evals/create-scorer)
|
|
119
120
|
- [filterRun()](https://mastra.ai/reference/evals/filter-run)
|
|
120
121
|
- [MastraScorer](https://mastra.ai/reference/evals/mastra-scorer)
|
|
122
|
+
- [Quick Checks](https://mastra.ai/reference/evals/checks)
|
|
121
123
|
- [runEvals()](https://mastra.ai/reference/evals/run-evals)
|
|
122
124
|
- [Scorer Utils](https://mastra.ai/reference/evals/scorer-utils)
|
|
123
125
|
- [Answer Relevancy Scorer](https://mastra.ai/reference/evals/answer-relevancy)
|
|
@@ -44,7 +44,7 @@ OM performs thresholding with fast local token estimation. Text uses `tokenx`, a
|
|
|
44
44
|
|
|
45
45
|
**temporalMarkers** (`boolean`): Insert temporal-gap reminder markers before new user messages when the previous message in the thread is at least 10 minutes older. The marker is persisted in memory, emitted as an inline reminder event so clients can render it specially, and shown to the observer so it can anchor observations to when events occurred. (Default: `false`)
|
|
46
46
|
|
|
47
|
-
**retrieval** (`boolean | { vector?: boolean; scope?: 'thread' | 'resource' }`):
|
|
47
|
+
**retrieval** (`boolean | { vector?: boolean; scope?: 'thread' | 'resource' }`): Enable retrieval-mode observation groups as durable pointers to raw message history. \`true\` enables cross-thread browsing by default. \`{ vector: true }\` also enables semantic search using Memory's vector store and embedder. \`{ scope: 'thread' }\` restricts the recall tool to the current thread only. Default scope is \`'resource'\`. (Default: `false`)
|
|
48
48
|
|
|
49
49
|
**observation** (`ObservationalMemoryObservationConfig`): Configuration for the observation step. Controls when the Observer agent runs and how it behaves.
|
|
50
50
|
|
|
@@ -58,7 +58,7 @@ new MastraEditor({
|
|
|
58
58
|
|
|
59
59
|
**temporalMarkers** (`boolean`): Persist inline temporal gap markers for long pauses between messages.
|
|
60
60
|
|
|
61
|
-
**retrieval** (`boolean | { vector?: boolean; scope?: 'thread' | 'resource' }`):
|
|
61
|
+
**retrieval** (`boolean | { vector?: boolean; scope?: 'thread' | 'resource' }`): Enable retrieval-mode observation groups as durable pointers to raw message history.
|
|
62
62
|
|
|
63
63
|
**observation** (`SerializedObservationalMemoryObservationConfig`): Observer-step configuration (model, token thresholds, buffering).
|
|
64
64
|
|
|
@@ -638,6 +638,8 @@ processOutputStep?(args: ProcessOutputStepArgs): ProcessorMessageResult;
|
|
|
638
638
|
|
|
639
639
|
**finishReason** (`string`): The finish reason from the LLM (stop, tool-use, length, etc.).
|
|
640
640
|
|
|
641
|
+
**providerMetadata** (`ProviderMetadata`): Provider-specific metadata for the finishing step (e.g. AWS Bedrock guardrail trace). Present when the model step produced provider metadata, including on content-filter blocks where \`steps\` is empty.
|
|
642
|
+
|
|
641
643
|
**toolCalls** (`ToolCallInfo[]`): Tool calls made in this step (if any).
|
|
642
644
|
|
|
643
645
|
**text** (`string`): Generated text from this step.
|
|
@@ -78,7 +78,7 @@ const stream = await agent.stream('message for agent')
|
|
|
78
78
|
|
|
79
79
|
**options.onAbort** (`(event: any) => Promise<void> | void`): Callback function called when the stream is aborted.
|
|
80
80
|
|
|
81
|
-
**options.abortSignal** (`AbortSignal`): Signal object that allows you to abort the agent's execution. When the signal is aborted, all ongoing operations will be terminated.
|
|
81
|
+
**options.abortSignal** (`AbortSignal`): Signal object that allows you to abort the agent's execution. When the signal is aborted, all ongoing operations will be terminated, including any in-flight subagent runs the agent delegated to.
|
|
82
82
|
|
|
83
83
|
**options.activeTools** (`Array<keyof ToolSet> | undefined`): Array of active tool names that can be used during execution.
|
|
84
84
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,54 @@
|
|
|
1
1
|
# @mastra/mcp-docs-server
|
|
2
2
|
|
|
3
|
+
## 1.2.2-alpha.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`0200e75`](https://github.com/mastra-ai/mastra/commit/0200e7552d02d4221cd6040bf4eddf189a97a156), [`06e0d63`](https://github.com/mastra-ai/mastra/commit/06e0d63d42bc2a202e18bc091f3781f409f5e6fb), [`438a971`](https://github.com/mastra-ai/mastra/commit/438a9715c8b4398e5eaf8914a1f19dc8a85dc1de), [`77518cc`](https://github.com/mastra-ai/mastra/commit/77518ccb5bb8cc684875081e64213dc85cffdbee), [`bb2a13b`](https://github.com/mastra-ai/mastra/commit/bb2a13bb4b32e6bb807200fe7b18ae8fa4322118), [`a73cd1a`](https://github.com/mastra-ai/mastra/commit/a73cd1a62a5e4ca023dcc39ba150029f4f1f74c1), [`0b5cc47`](https://github.com/mastra-ai/mastra/commit/0b5cc4726dc18d9a685a27520db39ff1b36bb89a), [`87f38a3`](https://github.com/mastra-ai/mastra/commit/87f38a3de03e24731f2dd6f8ed6a60b6722b85a1), [`d5fa3cd`](https://github.com/mastra-ai/mastra/commit/d5fa3cda1788c3cb93a361a3c6ec47de6ba21e98), [`fe98ef2`](https://github.com/mastra-ai/mastra/commit/fe98ef2e66dbfcbd7d645c88c9ee1e67b458a136), [`793ea0f`](https://github.com/mastra-ai/mastra/commit/793ea0f52f831178837f21c83af6af93bf4ce638), [`507a5c4`](https://github.com/mastra-ai/mastra/commit/507a5c461bdc3136ad80744c0efbb55ce1f18f97), [`79b3626`](https://github.com/mastra-ai/mastra/commit/79b3626f8d647307eb07c8da14c9073c2699719d)]:
|
|
8
|
+
- @mastra/core@1.47.0-alpha.6
|
|
9
|
+
|
|
10
|
+
## 1.2.2-alpha.8
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`023766f`](https://github.com/mastra-ai/mastra/commit/023766f44d59b30a50f3a381e33eddde8ab56c00), [`a0509c7`](https://github.com/mastra-ai/mastra/commit/a0509c731a08aa3ed626557c5338126362856f57), [`01caf93`](https://github.com/mastra-ai/mastra/commit/01caf93d71ae2c1e65f49735cafb531975187426), [`c2c1d7b`](https://github.com/mastra-ai/mastra/commit/c2c1d7bb61d2602955f14ed3952f807c2d6eb576), [`3eb852e`](https://github.com/mastra-ai/mastra/commit/3eb852e5435bc908b800193498103dc724f455b0)]:
|
|
15
|
+
- @mastra/core@1.47.0-alpha.5
|
|
16
|
+
|
|
17
|
+
## 1.2.2-alpha.6
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [[`462a769`](https://github.com/mastra-ai/mastra/commit/462a769da61850862ca1be3d74134d33078ee6a7), [`f328049`](https://github.com/mastra-ai/mastra/commit/f3280498c324afd2a8d36cd828f5b9f94a2dddc1), [`e545228`](https://github.com/mastra-ai/mastra/commit/e54522856934a5dc030b7b6385771e3548020d59)]:
|
|
22
|
+
- @mastra/core@1.47.0-alpha.4
|
|
23
|
+
|
|
24
|
+
## 1.2.2-alpha.5
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies [[`bf3fe49`](https://github.com/mastra-ai/mastra/commit/bf3fe49f9467dbbdb8f9eaf74e0f7971ffb19559), [`24ceaea`](https://github.com/mastra-ai/mastra/commit/24ceaea0bdd8609cabbab764380608ca6621a194), [`6ccf67b`](https://github.com/mastra-ai/mastra/commit/6ccf67bf075753754927a57bc2e1734ba2c820c5), [`825d8de`](https://github.com/mastra-ai/mastra/commit/825d8def9fa64c2bcc3d8dd6b49e09342c3ac5c7), [`ffa09e7`](https://github.com/mastra-ai/mastra/commit/ffa09e772a5c92270eabe2090fc42d45bd8ec4b7), [`461a7c5`](https://github.com/mastra-ai/mastra/commit/461a7c501449295287f4f0ee4b0b42344f39fcf8), [`4211472`](https://github.com/mastra-ai/mastra/commit/4211472a5a2bd319c60cd2e42d9109c3eef7ac1c), [`9e45902`](https://github.com/mastra-ai/mastra/commit/9e4590208e745055cecca202e2db0e5c65e17d3c), [`5c0df77`](https://github.com/mastra-ai/mastra/commit/5c0df776c40efa420f8c07a2f3ee66010296618e)]:
|
|
29
|
+
- @mastra/core@1.47.0-alpha.3
|
|
30
|
+
|
|
31
|
+
## 1.2.2-alpha.3
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- Updated dependencies [[`86623c1`](https://github.com/mastra-ai/mastra/commit/86623c1adf7d22de32cc916dda17f4155184db36), [`7c9dd77`](https://github.com/mastra-ai/mastra/commit/7c9dd77bd18cb8dc72797e25f1a0fbdc71a11347), [`9990965`](https://github.com/mastra-ai/mastra/commit/999096571635a83b42ef40841fd7028cfa630779), [`c0ffa3c`](https://github.com/mastra-ai/mastra/commit/c0ffa3c897ccd326de880df734740a7f0681a18f), [`0504bf5`](https://github.com/mastra-ai/mastra/commit/0504bf5e8cffc571a4b343326178de371e6f859b), [`5afe423`](https://github.com/mastra-ai/mastra/commit/5afe423e4badf040f1b0d4525183a856fcb8146e), [`86623c1`](https://github.com/mastra-ai/mastra/commit/86623c1adf7d22de32cc916dda17f4155184db36), [`8c9f1c0`](https://github.com/mastra-ai/mastra/commit/8c9f1c0361d89066f9bcd14a2f69e761b01766c8)]:
|
|
36
|
+
- @mastra/core@1.47.0-alpha.2
|
|
37
|
+
|
|
38
|
+
## 1.2.2-alpha.2
|
|
39
|
+
|
|
40
|
+
### Patch Changes
|
|
41
|
+
|
|
42
|
+
- Updated dependencies [[`7f9ae70`](https://github.com/mastra-ai/mastra/commit/7f9ae70826b047e5a66218f9e92f20e54a2d791f), [`1505c07`](https://github.com/mastra-ai/mastra/commit/1505c07603f6346bae12aa82f140e8b88ffea9ab), [`e940f09`](https://github.com/mastra-ai/mastra/commit/e940f099ef5d18b403e6f2b4937e086a4da857b1)]:
|
|
43
|
+
- @mastra/core@1.46.1-alpha.1
|
|
44
|
+
|
|
45
|
+
## 1.2.2-alpha.0
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- Updated dependencies [[`fbeda0c`](https://github.com/mastra-ai/mastra/commit/fbeda0c0f35def07e6837936dd3a003b2b7c5172), [`307573b`](https://github.com/mastra-ai/mastra/commit/307573b9ff3149b70c79540dbc86f1319b180f29)]:
|
|
50
|
+
- @mastra/core@1.46.1-alpha.0
|
|
51
|
+
|
|
3
52
|
## 1.2.1
|
|
4
53
|
|
|
5
54
|
### Patch Changes
|
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.2-alpha.10",
|
|
4
4
|
"description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"jsdom": "^26.1.0",
|
|
29
29
|
"local-pkg": "^1.1.2",
|
|
30
30
|
"zod": "^4.4.3",
|
|
31
|
-
"@mastra/core": "1.
|
|
31
|
+
"@mastra/core": "1.47.0-alpha.6",
|
|
32
32
|
"@mastra/mcp": "^1.12.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"vitest": "4.1.8",
|
|
48
48
|
"@internal/lint": "0.0.108",
|
|
49
49
|
"@internal/types-builder": "0.0.83",
|
|
50
|
-
"@mastra/core": "1.
|
|
50
|
+
"@mastra/core": "1.47.0-alpha.6"
|
|
51
51
|
},
|
|
52
52
|
"homepage": "https://mastra.ai",
|
|
53
53
|
"repository": {
|