@mastra/mcp-docs-server 1.3.14-alpha.1 → 1.3.14-alpha.2

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.
@@ -403,7 +403,7 @@ A lease only coordinates the processes that share it. `EventEmitterPubSub`, the
403
403
 
404
404
  ### Stop work after ownership loss
405
405
 
406
- Durable and evented agents request cancellation of in-flight tool and model calls when their step detects that it no longer owns the run. Evented workers in another process check ownership at the claim renewal interval without renewing the original execution's claim. By default that's every 5 seconds, a third of `MASTRA_AGENT_THREAD_LEASE_TTL_MS`. Detection depends on backend response time. If ownership checks keep failing or stop responding, the step stops trusting its claim after one lease TTL, 15 seconds by default.
406
+ Durable and evented agents request cancellation of in-flight tool and model calls when their step detects that it no longer owns the run. Evented workers in another process check ownership at the claim renewal interval without renewing the original execution's claim. By default that's every 5 seconds, a third of `MASTRA_AGENT_THREAD_LEASE_TTL_MS`. Detection depends on backend response time. A step in the process that holds the claim stops when an ownership check fails, or when the claim can't be renewed before it expires. A step that only observes another process's claim also stops when no check succeeds within one lease TTL (15 seconds by default).
407
407
 
408
408
  Cancellation is cooperative. Use the tool execution context's `abortSignal` for cancellable operations, and check it before starting another side effect. A tool that ignores the signal can keep running. Work already completed outside Mastra isn't rolled back.
409
409
 
@@ -281,6 +281,8 @@ const workspace = new Workspace({
281
281
 
282
282
  These callbacks fire for all background processes started by the agent through `execute_command`.
283
283
 
284
+ Each callback receives the process `pid` and, when available, the `toolCallId`, `agentId`, `threadId`, `resourceId`, and `runId` of the call that started it, so you can route an exit notice back to the right conversation. `onExit` also gets `killedByAbort`, which is `true` when the abort signal fired (the run's signal by default) and stopped the process, and `false` when it exited on its own or was stopped with `kill_process`.
285
+
284
286
  By default, background processes inherit the agent's abort signal and stop when the agent disconnects. Set `abortSignal` to a custom signal, or use `null` or `false` when the process should continue after the request ends.
285
287
 
286
288
  For the full `SandboxProcessManager` API, including programmatic process spawning, output, and standard input, see the [`SandboxProcessManager` reference](https://mastra.ai/reference/workspace/process-manager).
@@ -8,13 +8,13 @@ Mastra supports OpenTelemetry (OTEL) through an exporter for sending traces and
8
8
 
9
9
  ## Exporter
10
10
 
11
- The OpenTelemetry exporter sends your traces and logs 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, Sentry, SigNoz, MLflow, Latitude, Dash0, Traceloop, Laminar, telemetry.dev, Sazabi, and more.
11
+ The OpenTelemetry exporter sends your traces and logs 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, Sentry, SigNoz, MLflow, Latitude, Dash0, Traceloop, Laminar, telemetry.dev, Sazabi, Agnost AI, and more.
12
12
 
13
13
  ### Installation
14
14
 
15
15
  Each provider requires specific protocol packages. Install the base exporter plus the protocol package for your provider:
16
16
 
17
- #### For HTTP/Protobuf providers (SigNoz, New Relic, Sentry, Laminar, MLflow, Latitude, telemetry.dev)
17
+ #### For HTTP/Protobuf providers (SigNoz, New Relic, Sentry, Laminar, MLflow, Latitude, telemetry.dev, Agnost AI)
18
18
 
19
19
  **npm**:
20
20
 
@@ -222,6 +222,31 @@ new OtelExporter({
222
222
 
223
223
  See [Sazabi's Mastra guide](https://docs.sazabi.com/catalogs/log-sources/send-to-an-endpoint/mastra) for the full setup.
224
224
 
225
+ #### Agnost AI
226
+
227
+ [Agnost AI](https://agnost.ai) ingests OTLP/HTTP protobuf traces and groups them into conversations and users for production agent monitoring. Use the `custom` provider with your organization ID:
228
+
229
+ ```bash
230
+ AGNOST_ORG_ID=your-org-id
231
+ ```
232
+
233
+ ```typescript
234
+ new OtelExporter({
235
+ provider: {
236
+ custom: {
237
+ endpoint: 'https://otel.agnost.ai/v1/traces',
238
+ protocol: 'http/protobuf',
239
+ headers: {
240
+ 'X-Agnost-Org-ID': process.env.AGNOST_ORG_ID!,
241
+ },
242
+ },
243
+ },
244
+ signals: { logs: false },
245
+ })
246
+ ```
247
+
248
+ Agnost AI reads `userId` and `conversationId` (or `threadId`) from `tracingOptions.metadata` to group traces by user and conversation. It stores traces only, so `signals: { logs: false }` skips the log export. See [Agnost AI's Mastra guide](https://docs.agnost.ai/mastra) for the full setup.
249
+
225
250
  #### Dash0
226
251
 
227
252
  [Dash0](https://www.dash0.com/) provides real-time observability with automatic insights.
@@ -521,11 +521,11 @@ The `execute_command` tool accepts these options:
521
521
 
522
522
  **backgroundProcesses** (`BackgroundProcessesConfig`): Configuration for handling background processes. Only applicable if the sandbox supports background execution.
523
523
 
524
- **backgroundProcesses.onStdout** (`(data: string, meta: BackgroundProcessMeta) => void`): Callback for stdout chunks from background processes.
524
+ **backgroundProcesses.onStdout** (`(data: string, meta: BackgroundProcessMeta) => void`): Callback for stdout chunks from background processes. Meta includes pid, toolCallId, agentId, threadId, resourceId, and runId of the call that started the process.
525
525
 
526
- **backgroundProcesses.onStderr** (`(data: string, meta: BackgroundProcessMeta) => void`): Callback for stderr chunks from background processes.
526
+ **backgroundProcesses.onStderr** (`(data: string, meta: BackgroundProcessMeta) => void`): Callback for stderr chunks from background processes. Meta matches onStdout.
527
527
 
528
- **backgroundProcesses.onExit** (`(meta: BackgroundProcessExitMeta) => void`): Callback when a background process exits. Meta includes pid, exitCode, stdout, and stderr.
528
+ **backgroundProcesses.onExit** (`(meta: BackgroundProcessExitMeta) => void`): Callback when a background process exits. Meta includes the onStdout fields plus exitCode, stdout, stderr, and killedByAbort (true when the abort signal killed the process, false for a normal exit or kill_process).
529
529
 
530
530
  **backgroundProcesses.abortSignal** (`AbortSignal | null | false`): Abort signal for background processes. undefined (default) uses the agent's signal. null or false disables abort — processes persist after agent shutdown.
531
531
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/mcp-docs-server",
3
- "version": "1.3.14-alpha.1",
3
+ "version": "1.3.14-alpha.2",
4
4
  "description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "@mastra/mcp-legacy": "npm:@mastra/mcp@^1.18.0",
27
27
  "local-pkg": "^1.2.1",
28
28
  "zod": "^4.6.7",
29
- "@mastra/core": "1.84.0-alpha.1",
29
+ "@mastra/core": "1.84.0-alpha.2",
30
30
  "@mastra/mcp": "^2.9.0"
31
31
  },
32
32
  "devDependencies": {
@@ -42,8 +42,8 @@
42
42
  "tsx": "^4.23.15",
43
43
  "typescript": "^7.0.2",
44
44
  "vitest": "5.1.0",
45
- "@internal/types-builder": "0.0.124",
46
- "@internal/lint": "0.0.149"
45
+ "@internal/lint": "0.0.149",
46
+ "@internal/types-builder": "0.0.124"
47
47
  },
48
48
  "homepage": "https://mastra.ai",
49
49
  "repository": {