@mastra/mcp-docs-server 1.1.1-alpha.1 → 1.1.1
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/memory/observational-memory.md +9 -78
- package/.docs/guides/guide/code-review-bot.md +221 -0
- package/.docs/guides/guide/dev-assistant.md +304 -0
- package/.docs/guides/guide/docs-manager.md +238 -0
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/cortecs.md +6 -1
- package/.docs/models/providers/firmware.md +6 -2
- package/.docs/models/providers/openai.md +13 -13
- package/.docs/models/providers/opencode.md +9 -9
- package/.docs/reference/memory/observational-memory.md +7 -316
- package/CHANGELOG.md +15 -0
- package/package.json +6 -6
|
@@ -24,15 +24,17 @@ export const agent = new Agent({
|
|
|
24
24
|
|
|
25
25
|
## Configuration
|
|
26
26
|
|
|
27
|
-
The `observationalMemory` option accepts `true`,
|
|
27
|
+
The `observationalMemory` option accepts `true`, `false`, or a configuration object.
|
|
28
|
+
|
|
29
|
+
Setting `observationalMemory: true` enables it with all defaults. Setting `observationalMemory: false` or omitting it disables it.
|
|
28
30
|
|
|
29
31
|
**enabled?:** (`boolean`): Enable or disable Observational Memory. When omitted from a config object, defaults to \`true\`. Only \`enabled: false\` explicitly disables it. (Default: `true`)
|
|
30
32
|
|
|
31
|
-
**model?:** (`string | LanguageModel | DynamicModel | ModelWithRetries[]`): Model for both the Observer and Reflector agents. Sets the model for both at once. Cannot be used together with \`observation.model\` or \`reflection.model\` — an error will be thrown if both are set.
|
|
33
|
+
**model?:** (`string | LanguageModel | DynamicModel | ModelWithRetries[]`): Model for both the Observer and Reflector agents. Sets the model for both at once. Cannot be used together with \`observation.model\` or \`reflection.model\` — an error will be thrown if both are set. (Default: `'google/gemini-2.5-flash'`)
|
|
32
34
|
|
|
33
35
|
**scope?:** (`'resource' | 'thread'`): Memory scope for observations. \`'thread'\` keeps observations per-thread. \`'resource'\` shares observations across all threads for a resource, enabling cross-conversation memory. (Default: `'thread'`)
|
|
34
36
|
|
|
35
|
-
**shareTokenBudget?:** (`boolean`): Share the token budget between messages and observations. When enabled, the total budget is \`observation.messageTokens + reflection.observationTokens\`. Messages can use more space when observations are small, and vice versa. This maximizes context usage through flexible allocation.
|
|
37
|
+
**shareTokenBudget?:** (`boolean`): Share the token budget between messages and observations. When enabled, the total budget is \`observation.messageTokens + reflection.observationTokens\`. Messages can use more space when observations are small, and vice versa. This maximizes context usage through flexible allocation. (Default: `false`)
|
|
36
38
|
|
|
37
39
|
**observation?:** (`ObservationalMemoryObservationConfig`): Configuration for the observation step. Controls when the Observer agent runs and how it behaves.
|
|
38
40
|
|
|
@@ -40,7 +42,7 @@ The `observationalMemory` option accepts `true`, a configuration object, or `fal
|
|
|
40
42
|
|
|
41
43
|
### Observation config
|
|
42
44
|
|
|
43
|
-
**model?:** (`string | LanguageModel | DynamicModel | ModelWithRetries[]`): Model for the Observer agent. Cannot be set if a top-level \`model\` is also provided.
|
|
45
|
+
**model?:** (`string | LanguageModel | DynamicModel | ModelWithRetries[]`): Model for the Observer agent. Cannot be set if a top-level \`model\` is also provided. (Default: `'google/gemini-2.5-flash'`)
|
|
44
46
|
|
|
45
47
|
**messageTokens?:** (`number`): Token count of unobserved messages that triggers observation. When unobserved message tokens exceed this threshold, the Observer agent is called. (Default: `30000`)
|
|
46
48
|
|
|
@@ -48,24 +50,14 @@ The `observationalMemory` option accepts `true`, a configuration object, or `fal
|
|
|
48
50
|
|
|
49
51
|
**modelSettings?:** (`ObservationalMemoryModelSettings`): Model settings for the Observer agent. (Default: `{ temperature: 0.3, maxOutputTokens: 100_000 }`)
|
|
50
52
|
|
|
51
|
-
**bufferTokens?:** (`number | false`): Token interval for async background observation buffering. Can be an absolute token count (e.g. \`5000\`) or a fraction of \`messageTokens\` (e.g. \`0.25\` = buffer every 25% of threshold). When set, observations run in the background at this interval, storing results in a buffer. When the main \`messageTokens\` threshold is reached, buffered observations activate instantly without a blocking LLM call. Must resolve to less than \`messageTokens\`. Set to \`false\` to explicitly disable all async buffering (both observation and reflection). (Default: `0.2`)
|
|
52
|
-
|
|
53
|
-
**bufferActivation?:** (`number`): Ratio (0-1) controlling how much of the message window to retain after activation. For example, \`0.8\` means activate enough to keep only 20% of \`messageTokens\` remaining. Higher values remove more message history per activation. (Default: `0.8`)
|
|
54
|
-
|
|
55
|
-
**blockAfter?:** (`number`): Token threshold above which synchronous (blocking) observation is forced. Between \`messageTokens\` and \`blockAfter\`, only async buffering/activation is used. Above \`blockAfter\`, a synchronous observation runs as a last resort. Accepts a multiplier (1 < value < 2, multiplied by \`messageTokens\`) or an absolute token count (≥ 2, must be greater than \`messageTokens\`). Only relevant when \`bufferTokens\` is set. Defaults to \`1.2\` when async buffering is enabled. (Default: `1.2 (when bufferTokens is set)`)
|
|
56
|
-
|
|
57
53
|
### Reflection config
|
|
58
54
|
|
|
59
|
-
**model?:** (`string | LanguageModel | DynamicModel | ModelWithRetries[]`): Model for the Reflector agent. Cannot be set if a top-level \`model\` is also provided.
|
|
55
|
+
**model?:** (`string | LanguageModel | DynamicModel | ModelWithRetries[]`): Model for the Reflector agent. Cannot be set if a top-level \`model\` is also provided. (Default: `'google/gemini-2.5-flash'`)
|
|
60
56
|
|
|
61
57
|
**observationTokens?:** (`number`): Token count of observations that triggers reflection. When observation tokens exceed this threshold, the Reflector agent is called to condense them. (Default: `40000`)
|
|
62
58
|
|
|
63
59
|
**modelSettings?:** (`ObservationalMemoryModelSettings`): Model settings for the Reflector agent. (Default: `{ temperature: 0, maxOutputTokens: 100_000 }`)
|
|
64
60
|
|
|
65
|
-
**bufferActivation?:** (`number`): Ratio (0-1) controlling when async reflection buffering starts. When observation tokens reach \`observationTokens \* bufferActivation\`, reflection runs in the background. On activation at the full threshold, the buffered reflection replaces the observations it covers, preserving any new observations appended after that range. (Default: `0.5`)
|
|
66
|
-
|
|
67
|
-
**blockAfter?:** (`number`): Token threshold above which synchronous (blocking) reflection is forced. Between \`observationTokens\` and \`blockAfter\`, only async buffering/activation is used. Above \`blockAfter\`, a synchronous reflection runs as a last resort. Accepts a multiplier (1 < value < 2, multiplied by \`observationTokens\`) or an absolute token count (≥ 2, must be greater than \`observationTokens\`). Only relevant when \`bufferActivation\` is set. Defaults to \`1.2\` when async reflection is enabled. (Default: `1.2 (when bufferActivation is set)`)
|
|
68
|
-
|
|
69
61
|
### Model settings
|
|
70
62
|
|
|
71
63
|
**temperature?:** (`number`): Temperature for generation. Lower values produce more consistent output. (Default: `0.3`)
|
|
@@ -87,7 +79,6 @@ export const agent = new Agent({
|
|
|
87
79
|
memory: new Memory({
|
|
88
80
|
options: {
|
|
89
81
|
observationalMemory: {
|
|
90
|
-
model: "google/gemini-2.5-flash",
|
|
91
82
|
scope: "resource",
|
|
92
83
|
observation: {
|
|
93
84
|
messageTokens: 20_000,
|
|
@@ -117,7 +108,6 @@ export const agent = new Agent({
|
|
|
117
108
|
shareTokenBudget: true,
|
|
118
109
|
observation: {
|
|
119
110
|
messageTokens: 20_000,
|
|
120
|
-
bufferTokens: false, // required when using shareTokenBudget (temporary limitation)
|
|
121
111
|
},
|
|
122
112
|
reflection: {
|
|
123
113
|
observationTokens: 80_000,
|
|
@@ -175,305 +165,6 @@ export const agent = new Agent({
|
|
|
175
165
|
});
|
|
176
166
|
```
|
|
177
167
|
|
|
178
|
-
### Async buffering
|
|
179
|
-
|
|
180
|
-
Async buffering is **enabled by default**. It pre-computes observations in the background as the conversation grows — when the `messageTokens` threshold is reached, buffered observations activate instantly with no blocking LLM call.
|
|
181
|
-
|
|
182
|
-
The lifecycle is: **buffer → activate → remove messages → repeat**. Background Observer calls run at `bufferTokens` intervals, each producing a chunk of observations. At threshold, chunks activate: observations move into the log, raw messages are removed from context. The `blockAfter` threshold forces a synchronous fallback if buffering can't keep up.
|
|
183
|
-
|
|
184
|
-
Default settings:
|
|
185
|
-
|
|
186
|
-
- `observation.bufferTokens: 0.2` — buffer every 20% of `messageTokens` (e.g. every \~6k tokens with a 30k threshold)
|
|
187
|
-
- `observation.bufferActivation: 0.8` — on activation, remove enough messages to keep only 20% of the threshold remaining
|
|
188
|
-
- `reflection.bufferActivation: 0.5` — start background reflection at 50% of observation threshold
|
|
189
|
-
|
|
190
|
-
To customize:
|
|
191
|
-
|
|
192
|
-
```typescript
|
|
193
|
-
import { Memory } from "@mastra/memory";
|
|
194
|
-
import { Agent } from "@mastra/core/agent";
|
|
195
|
-
|
|
196
|
-
export const agent = new Agent({
|
|
197
|
-
name: "my-agent",
|
|
198
|
-
instructions: "You are a helpful assistant.",
|
|
199
|
-
model: "openai/gpt-5-mini",
|
|
200
|
-
memory: new Memory({
|
|
201
|
-
options: {
|
|
202
|
-
observationalMemory: {
|
|
203
|
-
model: "google/gemini-2.5-flash",
|
|
204
|
-
observation: {
|
|
205
|
-
messageTokens: 30_000,
|
|
206
|
-
// Buffer every 5k tokens (runs in background)
|
|
207
|
-
bufferTokens: 5_000,
|
|
208
|
-
// Activate to retain 30% of threshold
|
|
209
|
-
bufferActivation: 0.7,
|
|
210
|
-
// Force synchronous observation at 1.5x threshold
|
|
211
|
-
blockAfter: 1.5,
|
|
212
|
-
},
|
|
213
|
-
reflection: {
|
|
214
|
-
observationTokens: 60_000,
|
|
215
|
-
// Start background reflection at 50% of threshold
|
|
216
|
-
bufferActivation: 0.5,
|
|
217
|
-
// Force synchronous reflection at 1.2x threshold
|
|
218
|
-
blockAfter: 1.2,
|
|
219
|
-
},
|
|
220
|
-
},
|
|
221
|
-
},
|
|
222
|
-
}),
|
|
223
|
-
});
|
|
224
|
-
```
|
|
225
|
-
|
|
226
|
-
To disable async buffering entirely:
|
|
227
|
-
|
|
228
|
-
```typescript
|
|
229
|
-
observationalMemory: {
|
|
230
|
-
model: "google/gemini-2.5-flash",
|
|
231
|
-
observation: {
|
|
232
|
-
bufferTokens: false,
|
|
233
|
-
},
|
|
234
|
-
}
|
|
235
|
-
```
|
|
236
|
-
|
|
237
|
-
Setting `bufferTokens: false` disables both observation and reflection async buffering. Observations and reflections will run synchronously when their thresholds are reached.
|
|
238
|
-
|
|
239
|
-
> **Note:** Async buffering is not supported with `scope: 'resource'` and is automatically disabled in resource scope.
|
|
240
|
-
|
|
241
|
-
## Streaming data parts
|
|
242
|
-
|
|
243
|
-
Observational Memory emits typed data parts during agent execution that clients can use for real-time UI feedback. These are streamed alongside the agent's response.
|
|
244
|
-
|
|
245
|
-
### `data-om-status`
|
|
246
|
-
|
|
247
|
-
Emitted once per agent loop step, before model generation. Provides a snapshot of the current memory state, including token usage for both context windows and the state of any async buffered content.
|
|
248
|
-
|
|
249
|
-
```typescript
|
|
250
|
-
interface DataOmStatusPart {
|
|
251
|
-
type: 'data-om-status';
|
|
252
|
-
data: {
|
|
253
|
-
windows: {
|
|
254
|
-
active: {
|
|
255
|
-
/** Unobserved message tokens and the threshold that triggers observation */
|
|
256
|
-
messages: { tokens: number; threshold: number };
|
|
257
|
-
/** Observation tokens and the threshold that triggers reflection */
|
|
258
|
-
observations: { tokens: number; threshold: number };
|
|
259
|
-
};
|
|
260
|
-
buffered: {
|
|
261
|
-
observations: {
|
|
262
|
-
/** Number of buffered chunks staged for activation */
|
|
263
|
-
chunks: number;
|
|
264
|
-
/** Total message tokens across all buffered chunks */
|
|
265
|
-
messageTokens: number;
|
|
266
|
-
/** Projected message tokens that would be removed if activation happened now (based on bufferActivation ratio and chunk boundaries) */
|
|
267
|
-
projectedMessageRemoval: number;
|
|
268
|
-
/** Observation tokens that will be added on activation */
|
|
269
|
-
observationTokens: number;
|
|
270
|
-
/** idle: no buffering in progress. running: background observer is working. complete: chunks are ready for activation. */
|
|
271
|
-
status: 'idle' | 'running' | 'complete';
|
|
272
|
-
};
|
|
273
|
-
reflection: {
|
|
274
|
-
/** Observation tokens that were fed into the reflector (pre-compression size) */
|
|
275
|
-
inputObservationTokens: number;
|
|
276
|
-
/** Observation tokens the reflection will produce on activation (post-compression size) */
|
|
277
|
-
observationTokens: number;
|
|
278
|
-
/** idle: no reflection buffered. running: background reflector is working. complete: reflection is ready for activation. */
|
|
279
|
-
status: 'idle' | 'running' | 'complete';
|
|
280
|
-
};
|
|
281
|
-
};
|
|
282
|
-
};
|
|
283
|
-
recordId: string;
|
|
284
|
-
threadId: string;
|
|
285
|
-
stepNumber: number;
|
|
286
|
-
/** Increments each time the Reflector creates a new generation */
|
|
287
|
-
generationCount: number;
|
|
288
|
-
};
|
|
289
|
-
}
|
|
290
|
-
```
|
|
291
|
-
|
|
292
|
-
`buffered.reflection.inputObservationTokens` is the size of the observations that were sent to the Reflector. `buffered.reflection.observationTokens` is the compressed result — the size of what will replace those observations when the reflection activates. A client can use these two values to show a compression ratio.
|
|
293
|
-
|
|
294
|
-
Clients can derive percentages and post-activation estimates from the raw values:
|
|
295
|
-
|
|
296
|
-
```typescript
|
|
297
|
-
// Message window usage %
|
|
298
|
-
const msgPercent = status.windows.active.messages.tokens
|
|
299
|
-
/ status.windows.active.messages.threshold;
|
|
300
|
-
|
|
301
|
-
// Observation window usage %
|
|
302
|
-
const obsPercent = status.windows.active.observations.tokens
|
|
303
|
-
/ status.windows.active.observations.threshold;
|
|
304
|
-
|
|
305
|
-
// Projected message tokens after buffered observations activate
|
|
306
|
-
// Uses projectedMessageRemoval which accounts for bufferActivation ratio and chunk boundaries
|
|
307
|
-
const postActivation = status.windows.active.messages.tokens
|
|
308
|
-
- status.windows.buffered.observations.projectedMessageRemoval;
|
|
309
|
-
|
|
310
|
-
// Reflection compression ratio (when buffered reflection exists)
|
|
311
|
-
const { inputObservationTokens, observationTokens } = status.windows.buffered.reflection;
|
|
312
|
-
if (inputObservationTokens > 0) {
|
|
313
|
-
const compressionRatio = observationTokens / inputObservationTokens;
|
|
314
|
-
}
|
|
315
|
-
```
|
|
316
|
-
|
|
317
|
-
### `data-om-observation-start`
|
|
318
|
-
|
|
319
|
-
Emitted when the Observer or Reflector agent begins processing.
|
|
320
|
-
|
|
321
|
-
**cycleId:** (`string`): Unique ID for this cycle — shared between start/end/failed markers.
|
|
322
|
-
|
|
323
|
-
**operationType:** (`'observation' | 'reflection'`): Whether this is an observation or reflection operation.
|
|
324
|
-
|
|
325
|
-
**startedAt:** (`string`): ISO timestamp when processing started.
|
|
326
|
-
|
|
327
|
-
**tokensToObserve:** (`number`): Message tokens (input) being processed in this batch.
|
|
328
|
-
|
|
329
|
-
**recordId:** (`string`): The OM record ID.
|
|
330
|
-
|
|
331
|
-
**threadId:** (`string`): This thread's ID.
|
|
332
|
-
|
|
333
|
-
**threadIds:** (`string[]`): All thread IDs in this batch (for resource-scoped).
|
|
334
|
-
|
|
335
|
-
**config:** (`ObservationMarkerConfig`): Snapshot of \`messageTokens\`, \`observationTokens\`, and \`scope\` at observation time.
|
|
336
|
-
|
|
337
|
-
### `data-om-observation-end`
|
|
338
|
-
|
|
339
|
-
Emitted when observation or reflection completes successfully.
|
|
340
|
-
|
|
341
|
-
**cycleId:** (`string`): Matches the corresponding \`start\` marker.
|
|
342
|
-
|
|
343
|
-
**operationType:** (`'observation' | 'reflection'`): Type of operation that completed.
|
|
344
|
-
|
|
345
|
-
**completedAt:** (`string`): ISO timestamp when processing completed.
|
|
346
|
-
|
|
347
|
-
**durationMs:** (`number`): Duration in milliseconds.
|
|
348
|
-
|
|
349
|
-
**tokensObserved:** (`number`): Message tokens (input) that were processed.
|
|
350
|
-
|
|
351
|
-
**observationTokens:** (`number`): Resulting observation tokens (output) after the Observer compressed them.
|
|
352
|
-
|
|
353
|
-
**observations?:** (`string`): The generated observations text.
|
|
354
|
-
|
|
355
|
-
**currentTask?:** (`string`): Current task extracted by the Observer.
|
|
356
|
-
|
|
357
|
-
**suggestedResponse?:** (`string`): Suggested response extracted by the Observer.
|
|
358
|
-
|
|
359
|
-
**recordId:** (`string`): The OM record ID.
|
|
360
|
-
|
|
361
|
-
**threadId:** (`string`): This thread's ID.
|
|
362
|
-
|
|
363
|
-
### `data-om-observation-failed`
|
|
364
|
-
|
|
365
|
-
Emitted when observation or reflection fails. The system falls back to synchronous processing.
|
|
366
|
-
|
|
367
|
-
**cycleId:** (`string`): Matches the corresponding \`start\` marker.
|
|
368
|
-
|
|
369
|
-
**operationType:** (`'observation' | 'reflection'`): Type of operation that failed.
|
|
370
|
-
|
|
371
|
-
**failedAt:** (`string`): ISO timestamp when the failure occurred.
|
|
372
|
-
|
|
373
|
-
**durationMs:** (`number`): Duration until failure in milliseconds.
|
|
374
|
-
|
|
375
|
-
**tokensAttempted:** (`number`): Message tokens (input) that were attempted.
|
|
376
|
-
|
|
377
|
-
**error:** (`string`): Error message.
|
|
378
|
-
|
|
379
|
-
**observations?:** (`string`): Any partial content available for display.
|
|
380
|
-
|
|
381
|
-
**recordId:** (`string`): The OM record ID.
|
|
382
|
-
|
|
383
|
-
**threadId:** (`string`): This thread's ID.
|
|
384
|
-
|
|
385
|
-
### `data-om-buffering-start`
|
|
386
|
-
|
|
387
|
-
Emitted when async buffering begins in the background. Buffering pre-computes observations or reflections before the main threshold is reached.
|
|
388
|
-
|
|
389
|
-
**cycleId:** (`string`): Unique ID for this buffering cycle.
|
|
390
|
-
|
|
391
|
-
**operationType:** (`'observation' | 'reflection'`): Type of operation being buffered.
|
|
392
|
-
|
|
393
|
-
**startedAt:** (`string`): ISO timestamp when buffering started.
|
|
394
|
-
|
|
395
|
-
**tokensToBuffer:** (`number`): Message tokens (input) being buffered in this cycle.
|
|
396
|
-
|
|
397
|
-
**recordId:** (`string`): The OM record ID.
|
|
398
|
-
|
|
399
|
-
**threadId:** (`string`): This thread's ID.
|
|
400
|
-
|
|
401
|
-
**threadIds:** (`string[]`): All thread IDs being buffered (for resource-scoped).
|
|
402
|
-
|
|
403
|
-
**config:** (`ObservationMarkerConfig`): Snapshot of config at buffering time.
|
|
404
|
-
|
|
405
|
-
### `data-om-buffering-end`
|
|
406
|
-
|
|
407
|
-
Emitted when async buffering completes. The content is stored but not yet activated in the main context.
|
|
408
|
-
|
|
409
|
-
**cycleId:** (`string`): Matches the corresponding \`buffering-start\` marker.
|
|
410
|
-
|
|
411
|
-
**operationType:** (`'observation' | 'reflection'`): Type of operation that was buffered.
|
|
412
|
-
|
|
413
|
-
**completedAt:** (`string`): ISO timestamp when buffering completed.
|
|
414
|
-
|
|
415
|
-
**durationMs:** (`number`): Duration in milliseconds.
|
|
416
|
-
|
|
417
|
-
**tokensBuffered:** (`number`): Message tokens (input) that were buffered.
|
|
418
|
-
|
|
419
|
-
**bufferedTokens:** (`number`): Observation tokens (output) after the Observer compressed them.
|
|
420
|
-
|
|
421
|
-
**observations?:** (`string`): The buffered content.
|
|
422
|
-
|
|
423
|
-
**recordId:** (`string`): The OM record ID.
|
|
424
|
-
|
|
425
|
-
**threadId:** (`string`): This thread's ID.
|
|
426
|
-
|
|
427
|
-
### `data-om-buffering-failed`
|
|
428
|
-
|
|
429
|
-
Emitted when async buffering fails. The system falls back to synchronous processing when the threshold is reached.
|
|
430
|
-
|
|
431
|
-
**cycleId:** (`string`): Matches the corresponding \`buffering-start\` marker.
|
|
432
|
-
|
|
433
|
-
**operationType:** (`'observation' | 'reflection'`): Type of operation that failed.
|
|
434
|
-
|
|
435
|
-
**failedAt:** (`string`): ISO timestamp when the failure occurred.
|
|
436
|
-
|
|
437
|
-
**durationMs:** (`number`): Duration until failure in milliseconds.
|
|
438
|
-
|
|
439
|
-
**tokensAttempted:** (`number`): Message tokens (input) that were attempted to buffer.
|
|
440
|
-
|
|
441
|
-
**error:** (`string`): Error message.
|
|
442
|
-
|
|
443
|
-
**observations?:** (`string`): Any partial content.
|
|
444
|
-
|
|
445
|
-
**recordId:** (`string`): The OM record ID.
|
|
446
|
-
|
|
447
|
-
**threadId:** (`string`): This thread's ID.
|
|
448
|
-
|
|
449
|
-
### `data-om-activation`
|
|
450
|
-
|
|
451
|
-
Emitted when buffered observations or reflections are activated (moved into the active context window). This is an instant operation — no LLM call is involved.
|
|
452
|
-
|
|
453
|
-
**cycleId:** (`string`): Unique ID for this activation event.
|
|
454
|
-
|
|
455
|
-
**operationType:** (`'observation' | 'reflection'`): Type of content activated.
|
|
456
|
-
|
|
457
|
-
**activatedAt:** (`string`): ISO timestamp when activation occurred.
|
|
458
|
-
|
|
459
|
-
**chunksActivated:** (`number`): Number of buffered chunks activated.
|
|
460
|
-
|
|
461
|
-
**tokensActivated:** (`number`): Message tokens (input) from activated chunks. For observation activation, these are removed from the message window. For reflection activation, this is the observation tokens that were compressed.
|
|
462
|
-
|
|
463
|
-
**observationTokens:** (`number`): Resulting observation tokens after activation.
|
|
464
|
-
|
|
465
|
-
**messagesActivated:** (`number`): Number of messages that were observed via activation.
|
|
466
|
-
|
|
467
|
-
**generationCount:** (`number`): Current reflection generation count.
|
|
468
|
-
|
|
469
|
-
**observations?:** (`string`): The activated observations text.
|
|
470
|
-
|
|
471
|
-
**recordId:** (`string`): The OM record ID.
|
|
472
|
-
|
|
473
|
-
**threadId:** (`string`): This thread's ID.
|
|
474
|
-
|
|
475
|
-
**config:** (`ObservationMarkerConfig`): Snapshot of config at activation time.
|
|
476
|
-
|
|
477
168
|
## Standalone usage
|
|
478
169
|
|
|
479
170
|
Most users should use the `Memory` class above. Using `ObservationalMemory` directly is mainly useful for benchmarking, experimentation, or when you need to control processor ordering with other processors (like [guardrails](https://mastra.ai/docs/agents/guardrails)).
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @mastra/mcp-docs-server
|
|
2
2
|
|
|
3
|
+
## 1.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`717ffab`](https://github.com/mastra-ai/mastra/commit/717ffab42cfd58ff723b5c19ada4939997773004), [`b31c922`](https://github.com/mastra-ai/mastra/commit/b31c922215b513791d98feaea1b98784aa00803a), [`e4b6dab`](https://github.com/mastra-ai/mastra/commit/e4b6dab171c5960e340b3ea3ea6da8d64d2b8672), [`5719fa8`](https://github.com/mastra-ai/mastra/commit/5719fa8880e86e8affe698ec4b3807c7e0e0a06f), [`83cda45`](https://github.com/mastra-ai/mastra/commit/83cda4523e588558466892bff8f80f631a36945a), [`11804ad`](https://github.com/mastra-ai/mastra/commit/11804adf1d6be46ebe216be40a43b39bb8b397d7), [`aa95f95`](https://github.com/mastra-ai/mastra/commit/aa95f958b186ae5c9f4219c88e268f5565c277a2), [`90f7894`](https://github.com/mastra-ai/mastra/commit/90f7894568dc9481f40a4d29672234fae23090bb), [`f5501ae`](https://github.com/mastra-ai/mastra/commit/f5501aedb0a11106c7db7e480d6eaf3971b7bda8), [`44573af`](https://github.com/mastra-ai/mastra/commit/44573afad0a4bc86f627d6cbc0207961cdcb3bc3), [`00e3861`](https://github.com/mastra-ai/mastra/commit/00e3861863fbfee78faeb1ebbdc7c0223aae13ff), [`8109aee`](https://github.com/mastra-ai/mastra/commit/8109aeeab758e16cd4255a6c36f044b70eefc6a6), [`7bfbc52`](https://github.com/mastra-ai/mastra/commit/7bfbc52a8604feb0fff2c0a082c13c0c2a3df1a2), [`1445994`](https://github.com/mastra-ai/mastra/commit/1445994aee19c9334a6a101cf7bd80ca7ed4d186), [`61f44a2`](https://github.com/mastra-ai/mastra/commit/61f44a26861c89e364f367ff40825bdb7f19df55), [`37145d2`](https://github.com/mastra-ai/mastra/commit/37145d25f99dc31f1a9105576e5452609843ce32), [`fdad759`](https://github.com/mastra-ai/mastra/commit/fdad75939ff008b27625f5ec0ce9c6915d99d9ec), [`e4569c5`](https://github.com/mastra-ai/mastra/commit/e4569c589e00c4061a686c9eb85afe1b7050b0a8), [`7309a85`](https://github.com/mastra-ai/mastra/commit/7309a85427281a8be23f4fb80ca52e18eaffd596), [`99424f6`](https://github.com/mastra-ai/mastra/commit/99424f6862ffb679c4ec6765501486034754a4c2), [`44eb452`](https://github.com/mastra-ai/mastra/commit/44eb4529b10603c279688318bebf3048543a1d61), [`6c40593`](https://github.com/mastra-ai/mastra/commit/6c40593d6d2b1b68b0c45d1a3a4c6ac5ecac3937), [`8c1135d`](https://github.com/mastra-ai/mastra/commit/8c1135dfb91b057283eae7ee11f9ec28753cc64f), [`dd39e54`](https://github.com/mastra-ai/mastra/commit/dd39e54ea34532c995b33bee6e0e808bf41a7341), [`b6fad9a`](https://github.com/mastra-ai/mastra/commit/b6fad9a602182b1cc0df47cd8c55004fa829ad61), [`2d2decc`](https://github.com/mastra-ai/mastra/commit/2d2decc9c62743b23a064cd599871639a61867a0), [`4129c07`](https://github.com/mastra-ai/mastra/commit/4129c073349b5a66643fd8136ebfe9d7097cf793), [`5b930ab`](https://github.com/mastra-ai/mastra/commit/5b930aba1834d9898e8460a49d15106f31ac7c8d), [`4be93d0`](https://github.com/mastra-ai/mastra/commit/4be93d09d68e20aaf0ea3f210749422719618b5f), [`047635c`](https://github.com/mastra-ai/mastra/commit/047635ccd7861d726c62d135560c0022a5490aec), [`8c90ff4`](https://github.com/mastra-ai/mastra/commit/8c90ff4d3414e7f2a2d216ea91274644f7b29133), [`ed232d1`](https://github.com/mastra-ai/mastra/commit/ed232d1583f403925dc5ae45f7bee948cf2a182b), [`3891795`](https://github.com/mastra-ai/mastra/commit/38917953518eb4154a984ee36e6ededdcfe80f72), [`4f955b2`](https://github.com/mastra-ai/mastra/commit/4f955b20c7f66ed282ee1fd8709696fa64c4f19d), [`55a4c90`](https://github.com/mastra-ai/mastra/commit/55a4c9044ac7454349b9f6aeba0bbab5ee65d10f)]:
|
|
8
|
+
- @mastra/core@1.3.0
|
|
9
|
+
- @mastra/mcp@1.0.1
|
|
10
|
+
|
|
11
|
+
## 1.1.1-alpha.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies [[`b31c922`](https://github.com/mastra-ai/mastra/commit/b31c922215b513791d98feaea1b98784aa00803a)]:
|
|
16
|
+
- @mastra/core@1.3.0-alpha.2
|
|
17
|
+
|
|
3
18
|
## 1.1.1-alpha.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "1.1.1
|
|
3
|
+
"version": "1.1.1",
|
|
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/
|
|
33
|
-
"@mastra/
|
|
32
|
+
"@mastra/core": "1.3.0",
|
|
33
|
+
"@mastra/mcp": "^1.0.1"
|
|
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.16",
|
|
49
|
-
"@internal/lint": "0.0.
|
|
50
|
-
"@internal/types-builder": "0.0.
|
|
51
|
-
"@mastra/core": "1.3.0
|
|
49
|
+
"@internal/lint": "0.0.58",
|
|
50
|
+
"@internal/types-builder": "0.0.33",
|
|
51
|
+
"@mastra/core": "1.3.0"
|
|
52
52
|
},
|
|
53
53
|
"homepage": "https://mastra.ai",
|
|
54
54
|
"repository": {
|