@mastra/mcp-docs-server 1.2.3-alpha.11 → 1.2.3-alpha.12

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.
@@ -25,9 +25,11 @@ Observational memory lets the agent learn long-lived facts from past conversatio
25
25
 
26
26
  ## Observational memory model
27
27
 
28
- Observational memory runs an Observer and Reflector model on top of every conversation. The default model is `google/gemini-2.5-flash`, which requires a `GOOGLE_API_KEY` environment variable in any environment where the Builder agent will run. Mastra also falls back to `GOOGLE_GENERATIVE_AI_API_KEY`.
28
+ Observational memory runs an Observer and Reflector model on top of every conversation. For Agent Builder agents, the default model is `openai/gpt-5-mini`, which requires an `OPENAI_API_KEY` environment variable in any environment where the Builder agent will run.
29
29
 
30
- To use a different model, set `observationalMemory.model` to any model ID supported by the Mastra model router (and provide the matching provider credentials):
30
+ > **Note:** This default applies only to agents created through the Agent Builder. Core (non-builder) agents configured with `observationalMemory: true` keep the framework default `google/gemini-2.5-flash` (which uses `GOOGLE_API_KEY`, falling back to `GOOGLE_GENERATIVE_AI_API_KEY`).
31
+
32
+ To use a different model, set `observationalMemory.model` to any model ID supported by the Mastra model router (and provide the matching provider credentials). An explicit model always wins over the Builder default:
31
33
 
32
34
  ```typescript
33
35
  new MastraEditor({
@@ -18,7 +18,7 @@ The AgentController gives you the runtime pieces to ship interactive agent appli
18
18
  - **Let users pick the right model for each step.** Per-mode [model management](https://mastra.ai/reference/agent-controller/agent-controller-class) switches models at runtime and tracks usage, which powers copilot UIs where users trade speed for capability.
19
19
  - **Delegate focused work to child agents.** [Subagents](https://mastra.ai/docs/agent-controller/subagents) run subtasks with constrained tools and can fork the parent conversation, so a research mode can spin off web search or code review without polluting the main thread.
20
20
  - **Drive a live UI from agent activity.** The [event system](https://mastra.ai/docs/agent-controller/session) emits typed events and coalesced display snapshots, so your TUI or web app reflects message updates, mode changes, and pending approvals in real time.
21
- - **Run long-lived autonomous agents.** Structured task lists, heartbeat handlers, and observational memory keep background task runners on track and let them learn across threads.
21
+ - **Run long-lived autonomous agents.** Structured task lists, interval handlers, and observational memory keep background task runners on track and let them learn across threads.
22
22
 
23
23
  ## When to use the AgentController
24
24
 
@@ -1,6 +1,6 @@
1
1
  # OpenTelemetry exporter
2
2
 
3
- The OpenTelemetry (OTEL) exporter sends your traces and logs to any OTEL-compatible observability platform using standardized [OpenTelemetry Semantic Conventions for GenAI](https://opentelemetry.io/docs/specs/semconv/gen-ai/). This ensures broad compatibility with platforms like Datadog, New Relic, SigNoz, MLflow, Dash0, Traceloop, Laminar, and more.
3
+ The OpenTelemetry (OTEL) exporter sends your traces and logs to any OTEL-compatible observability platform using standardized [OpenTelemetry Semantic Conventions for GenAI](https://opentelemetry.io/docs/specs/semconv/gen-ai/). This ensures broad compatibility with platforms like Datadog, New Relic, SigNoz, MLflow, Latitude, Dash0, Traceloop, Laminar, and more.
4
4
 
5
5
  > **Looking for bidirectional OTEL integration?:** If you have existing OpenTelemetry instrumentation and want Mastra traces to inherit context from active OTEL spans, see the [OpenTelemetry Bridge](https://mastra.ai/docs/observability/integrations/bridges/otel) instead.
6
6
 
@@ -8,7 +8,7 @@ The OpenTelemetry (OTEL) exporter sends your traces and logs to any OTEL-compati
8
8
 
9
9
  Each provider requires specific protocol packages. Install the base exporter plus the protocol package for your provider:
10
10
 
11
- ### For HTTP/Protobuf Providers (SigNoz, New Relic, Laminar, MLflow)
11
+ ### For HTTP/Protobuf Providers (SigNoz, New Relic, Laminar, MLflow, Latitude)
12
12
 
13
13
  **npm**:
14
14
 
@@ -118,6 +118,27 @@ new OtelExporter({
118
118
  })
119
119
  ```
120
120
 
121
+ ### Latitude
122
+
123
+ [Latitude](https://latitude.so) is an open-source LLM observability and evaluation platform that ingests OTLP traces. Use the `custom` provider with HTTP/Protobuf, pointing at Latitude's ingestion endpoint and authenticating with your API key and project slug:
124
+
125
+ ```typescript
126
+ new OtelExporter({
127
+ provider: {
128
+ custom: {
129
+ endpoint: 'https://ingest.latitude.so/v1/traces',
130
+ protocol: 'http/protobuf',
131
+ headers: {
132
+ Authorization: `Bearer ${process.env.LATITUDE_API_KEY}`,
133
+ 'X-Latitude-Project': process.env.LATITUDE_PROJECT,
134
+ },
135
+ },
136
+ },
137
+ })
138
+ ```
139
+
140
+ Sign up at [console.latitude.so](https://console.latitude.so/login), or self-host and point the endpoint at your own ingestion host.
141
+
121
142
  ### Dash0
122
143
 
123
144
  [Dash0](https://www.dash0.com/) provides real-time observability with automatic insights.
@@ -128,7 +128,7 @@ await agentController.sendMessage({ content: 'Hello!' })
128
128
 
129
129
  **disableBuiltinTools** (`BuiltinToolId[]`): Built-in tool IDs to remove from the \`controllerBuiltIn\` toolset. Valid values are \`ask\_user\`, \`submit\_plan\`, \`task\_write\`, \`task\_update\`, \`task\_complete\`, \`task\_check\`, and \`subagent\`.
130
130
 
131
- **heartbeatHandlers** (`HeartbeatHandler[]`): Periodic background tasks started during \`init()\`. Use for gateway sync, cache refresh, and similar tasks.
131
+ **intervalHandlers** (`IntervalHandler[]`): Periodic background tasks started during \`init()\`. Use for gateway sync, cache refresh, and similar tasks.
132
132
 
133
133
  **idGenerator** (`() => string`): Custom ID generator for AgentController-managed IDs such as threads and mode-run identifiers. (Default: `timestamp + random string`)
134
134
 
@@ -162,7 +162,7 @@ await agentController.sendMessage({ content: 'Hello!' })
162
162
 
163
163
  #### `init()`
164
164
 
165
- Initialize the agentController. 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 agentController.
165
+ Initialize the agentController. Loads storage, initializes a static workspace (dynamic factory workspaces are resolved per-session during `createSession`), propagates memory and workspace to mode agents, and starts interval handlers. Call this before using the agentController.
166
166
 
167
167
  ```typescript
168
168
  await agentController.init()
@@ -220,26 +220,26 @@ const thread = await agentController.selectOrCreateThread()
220
220
 
221
221
  #### `destroy()`
222
222
 
223
- Stop all heartbeat handlers and clean up resources.
223
+ Stop all interval handlers and clean up resources.
224
224
 
225
225
  ```typescript
226
226
  await agentController.destroy()
227
227
  ```
228
228
 
229
- #### `removeHeartbeat({ id })`
229
+ #### `removeInterval({ id })`
230
230
 
231
- Remove a specific heartbeat handler by ID. Calls the handler's `shutdown()` callback if defined.
231
+ Remove a specific interval handler by ID. Calls the handler's `shutdown()` callback if defined.
232
232
 
233
233
  ```typescript
234
- await agentController.removeHeartbeat({ id: 'gateway-sync' })
234
+ await agentController.removeInterval({ id: 'gateway-sync' })
235
235
  ```
236
236
 
237
- #### `stopHeartbeats()`
237
+ #### `stopIntervals()`
238
238
 
239
- Stop and remove all heartbeat handlers.
239
+ Stop and remove all interval handlers.
240
240
 
241
241
  ```typescript
242
- await agentController.stopHeartbeats()
242
+ await agentController.stopIntervals()
243
243
  ```
244
244
 
245
245
  #### `getCurrentAgent()`
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @mastra/mcp-docs-server
2
2
 
3
+ ## 1.2.3-alpha.12
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`b33c77d`](https://github.com/mastra-ai/mastra/commit/b33c77d5293f14a794f3ec38dc947a6676de2764), [`1009f77`](https://github.com/mastra-ai/mastra/commit/1009f772aa40016b49267c8566d0c29f6a16aa3c), [`23c31de`](https://github.com/mastra-ai/mastra/commit/23c31de96ed8153402dcf092ac84b27a0c3638c1), [`0368766`](https://github.com/mastra-ai/mastra/commit/0368766744c7ea3df4d6059e2cc15f7bdf55f5a6), [`65a66db`](https://github.com/mastra-ai/mastra/commit/65a66dbe249a0d92d828c605b955e73a983cf3b0), [`2866f04`](https://github.com/mastra-ai/mastra/commit/2866f04953edb78c1637fa45cc53abe24122edcb)]:
8
+ - @mastra/core@1.48.0-alpha.6
9
+ - @mastra/mcp@1.12.1-alpha.0
10
+
3
11
  ## 1.2.3-alpha.10
4
12
 
5
13
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/mcp-docs-server",
3
- "version": "1.2.3-alpha.11",
3
+ "version": "1.2.3-alpha.12",
4
4
  "description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -28,8 +28,8 @@
28
28
  "jsdom": "^26.1.0",
29
29
  "local-pkg": "^1.1.2",
30
30
  "zod": "^4.4.3",
31
- "@mastra/mcp": "^1.12.0",
32
- "@mastra/core": "1.48.0-alpha.5"
31
+ "@mastra/mcp": "^1.12.1-alpha.0",
32
+ "@mastra/core": "1.48.0-alpha.6"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@hono/node-server": "^1.19.11",
@@ -45,9 +45,9 @@
45
45
  "tsx": "^4.22.4",
46
46
  "typescript": "^6.0.3",
47
47
  "vitest": "4.1.8",
48
- "@internal/types-builder": "0.0.84",
49
48
  "@internal/lint": "0.0.109",
50
- "@mastra/core": "1.48.0-alpha.5"
49
+ "@internal/types-builder": "0.0.84",
50
+ "@mastra/core": "1.48.0-alpha.6"
51
51
  },
52
52
  "homepage": "https://mastra.ai",
53
53
  "repository": {