@mastra/mcp-docs-server 1.3.5-alpha.1 → 1.3.5-alpha.5

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.
Files changed (40) hide show
  1. package/.docs/docs/channels.md +5 -1
  2. package/.docs/docs/harness/signals.md +15 -1
  3. package/.docs/docs/memory/semantic-recall.md +35 -1
  4. package/.docs/docs/storage.md +1 -0
  5. package/.docs/docs/workflows/scheduled-workflows.md +2 -2
  6. package/.docs/integrations/databases/clickhouse-managed-postgres.md +82 -0
  7. package/.docs/integrations.md +1 -0
  8. package/.docs/models/environment-variables.md +1 -0
  9. package/.docs/models/gateways/merge-gateway.md +3 -1
  10. package/.docs/models/gateways/netlify.md +3 -1
  11. package/.docs/models/gateways/openrouter.md +2 -1
  12. package/.docs/models/index.md +2 -1
  13. package/.docs/models/providers/aiand.md +17 -15
  14. package/.docs/models/providers/crossmodel.md +2 -1
  15. package/.docs/models/providers/deepinfra.md +57 -60
  16. package/.docs/models/providers/deepseek.md +1 -1
  17. package/.docs/models/providers/edenai.md +2 -4
  18. package/.docs/models/providers/engy.md +84 -0
  19. package/.docs/models/providers/kilo.md +12 -11
  20. package/.docs/models/providers/llmgateway-providers.md +10 -2
  21. package/.docs/models/providers/llmgateway.md +2 -2
  22. package/.docs/models/providers/nano-gpt.md +2 -2
  23. package/.docs/models/providers/opencode.md +2 -1
  24. package/.docs/models/providers/privatemode-ai.md +5 -5
  25. package/.docs/models/providers/requesty.md +2 -1
  26. package/.docs/models/providers/synthetic.md +2 -1
  27. package/.docs/models/providers/togetherai.md +21 -28
  28. package/.docs/models/providers/xai.md +3 -2
  29. package/.docs/models/providers.md +1 -0
  30. package/.docs/reference/agent-controller/agent-controller-class.md +2 -0
  31. package/.docs/reference/agent-controller/session.md +8 -0
  32. package/.docs/reference/agents/channels.md +2 -1
  33. package/.docs/reference/agents/durable-agent.md +4 -4
  34. package/.docs/reference/configuration.md +1 -1
  35. package/.docs/reference/editor/mastra-editor.md +28 -0
  36. package/.docs/reference/file-based-agents/schedules.md +2 -2
  37. package/.docs/reference/schedules/overview.md +3 -3
  38. package/.docs/reference/server/elysia-adapter.md +18 -0
  39. package/.docs/reference/tools/mcp-client.md +17 -0
  40. package/package.json +4 -4
@@ -139,13 +139,13 @@ const schedules = await mastra.schedules.list({
139
139
 
140
140
  **filter.name** (`string`): Return only agent schedules with this label.
141
141
 
142
- **filter.status** (`'active' | 'paused'`): Return only schedules with this status.
142
+ **filter.status** (`'active' | 'paused' | 'completed'`): Return only schedules with this status. The default listing omits completed schedules.
143
143
 
144
144
  ### Update schedules
145
145
 
146
146
  #### `update(id, patch)`
147
147
 
148
- Updates a schedule. Changing `cron` or `timezone` recomputes the next fire time. Updating `status` from `paused` to `active` also recomputes the next fire time.
148
+ Updates a schedule. Changing `cron` or `timezone` recomputes the next fire time. Updating `status` from `paused` to `active` also recomputes the next fire time. A schedule becomes `completed` once its cron has no future occurrence. A cadence edit that leaves no future occurrence completes the row even when it was `paused`. Editing the cadence of a completed schedule reactivates it when the new cadence can still fire, and leaves it completed when it can't.
149
149
 
150
150
  ```typescript
151
151
  const updated = await mastra.schedules.update('pinger', {
@@ -170,7 +170,7 @@ const paused = await mastra.schedules.pause('pinger')
170
170
 
171
171
  #### `resume(id)`
172
172
 
173
- Resumes a paused schedule and recomputes the next fire time from the current time.
173
+ Resumes a paused schedule and recomputes the next fire time from the current time. A paused schedule whose cron has no future occurrence is completed instead of resumed.
174
174
 
175
175
  ```typescript
176
176
  const active = await mastra.schedules.resume('pinger')
@@ -130,6 +130,24 @@ app.get('/custom/public', async ctx => {
130
130
  })
131
131
  ```
132
132
 
133
+ When the auth provider refreshes an expired session, `createAuthMiddleware()` forwards the refreshed session headers (such as `Set-Cookie`) to the response, including error responses. `MastraServer` registers the `applyAuthRefreshHeaders` hook during `init()`, so routes added after `init()` get these headers alongside any cookies your route sets.
134
+
135
+ If you use `createAuthMiddleware()` without `MastraServer`, register the hook yourself before defining routes:
136
+
137
+ ```typescript
138
+ import { Elysia } from 'elysia'
139
+ import { applyAuthRefreshHeaders, createAuthMiddleware } from '@mastra/elysia'
140
+ import { mastra } from './mastra'
141
+
142
+ const app = new Elysia()
143
+ .onAfterHandle({ as: 'global' }, applyAuthRefreshHeaders)
144
+ .onError({ as: 'global' }, applyAuthRefreshHeaders)
145
+
146
+ app.get('/custom/protected', () => ({ ok: true }), {
147
+ beforeHandle: createAuthMiddleware({ mastra }),
148
+ })
149
+ ```
150
+
133
151
  ## Accessing context
134
152
 
135
153
  In Elysia handlers registered after `init()`, access Mastra context from the handler context:
@@ -367,6 +367,23 @@ const instructionsByServer = mcp.getServerInstructions()
367
367
  console.log(instructionsByServer.db)
368
368
  ```
369
369
 
370
+ ### `getServerInfo()`
371
+
372
+ Returns the identity each configured MCP server announced when it connected (its `serverInfo`, from the `server/discover` result or, for servers on an older revision, the `initialize` handshake): `name` and `version`, plus `title`, `description`, `websiteUrl`, and `icons` when the server provides them. A server's entry is `undefined` if it hasn't connected yet, or if it connected over the `2026-07-28` revision without announcing an identity, which that revision allows. Don't use it to check whether a server is connected. The values come from the remote server and aren't validated, so treat icon and website URLs as untrusted.
373
+
374
+ ```typescript
375
+ getServerInfo(): Record<string, MCPServerImplementation | undefined>
376
+ ```
377
+
378
+ Example:
379
+
380
+ ```typescript
381
+ await mcp.listTools()
382
+
383
+ const info = mcp.getServerInfo()
384
+ console.log(info.myServer?.title, info.myServer?.version)
385
+ ```
386
+
370
387
  ### `authenticate()`
371
388
 
372
389
  Runs the interactive OAuth authorization-code flow for a server whose `MCPOAuthClientProvider` uses a loopback redirect URL. A local callback server passes the authorization URL to the provider's `onRedirectToAuthorization` callback and waits for the browser to return the code. It then exchanges the code for tokens and reconnects. See [Interactive browser authentication](#interactive-browser-authentication).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mastra/mcp-docs-server",
3
- "version": "1.3.5-alpha.1",
3
+ "version": "1.3.5-alpha.5",
4
4
  "description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -26,8 +26,8 @@
26
26
  "@mastra/mcp-legacy": "npm:@mastra/mcp@^1.18.0",
27
27
  "local-pkg": "^1.1.2",
28
28
  "zod": "^4.6.4",
29
- "@mastra/core": "1.75.0-alpha.0",
30
- "@mastra/mcp": "^2.1.2"
29
+ "@mastra/mcp": "^2.2.0-alpha.0",
30
+ "@mastra/core": "1.75.0-alpha.2"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@hono/node-server": "^2.0.0",
@@ -44,7 +44,7 @@
44
44
  "typescript": "^7.0.2",
45
45
  "vitest": "4.1.11",
46
46
  "@internal/lint": "0.0.140",
47
- "@mastra/core": "1.75.0-alpha.0",
47
+ "@mastra/core": "1.75.0-alpha.2",
48
48
  "@internal/types-builder": "0.0.115"
49
49
  },
50
50
  "homepage": "https://mastra.ai",