@mastra/mcp-docs-server 1.2.7-alpha.19 → 1.2.7-alpha.20
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.
|
@@ -63,6 +63,8 @@ export const mastra = new Mastra({
|
|
|
63
63
|
|
|
64
64
|
**maxStreamLength** (`number`): Approximate maximum number of entries kept per stream. Set to 0 to disable trimming. (Default: `10000`)
|
|
65
65
|
|
|
66
|
+
**streamIdleTtlMs** (`number`): Idle expiry in milliseconds: a sliding TTL refreshed on every write (publish, nack retry, group re-creation). Each write resets it, so an actively-written stream never expires mid-flight; a stream left idle for the full duration is deleted by Redis automatically. Note that only writes refresh the TTL — a consumer slowly draining a backlog does not — so set it well above the longest expected gap between writes on a live topic. This is a backstop, not the primary cleanup — clearTopic handles normal end-of-lifecycle deletion; this only bounds memory for streams that never reach a clearTopic call (e.g. a crashed run). Must be a non-negative integer. Defaults to 0 (disabled). (Default: `0`)
|
|
67
|
+
|
|
66
68
|
**reclaimIntervalMs** (`number`): How often, in milliseconds, a subscription reclaims events that an earlier consumer read but never acknowledged. Set to 0 to disable. (Default: `30000`)
|
|
67
69
|
|
|
68
70
|
**reclaimIdleMs** (`number`): Minimum idle time, in milliseconds, before a pending event is eligible for reclaim. Keep this well above typical processing time to avoid double delivery. (Default: `60000`)
|
|
@@ -97,6 +99,16 @@ Waits for in-flight publishes to complete.
|
|
|
97
99
|
await pubsub.flush()
|
|
98
100
|
```
|
|
99
101
|
|
|
102
|
+
### `clearTopic(topic)`
|
|
103
|
+
|
|
104
|
+
Deletes a topic's stream and every consumer group on it, freeing the memory a finished topic would otherwise hold. The durable-agent runtime calls this automatically when a run's cleanup fires; call it yourself only once nothing will read the topic again. It's best-effort and never throws — failures are logged at warn level. A subscriber still attached when the stream is deleted recovers on its own but misses the deleted entries.
|
|
105
|
+
|
|
106
|
+
Automatic cleanup requires `@mastra/core` and `@mastra/redis-streams` versions that both support `clearTopic`: the runtime routes the call through its caching layer, so upgrade the two packages together to get end-of-run stream deletion.
|
|
107
|
+
|
|
108
|
+
```typescript
|
|
109
|
+
await pubsub.clearTopic('workflow.events.run-123')
|
|
110
|
+
```
|
|
111
|
+
|
|
100
112
|
### `close()`
|
|
101
113
|
|
|
102
114
|
Closes the Redis connections and stops all subscriptions. Call this during graceful shutdown.
|
|
@@ -15,15 +15,15 @@ const voice = new SpeechifyVoice()
|
|
|
15
15
|
// Initialize with custom configuration
|
|
16
16
|
const voice = new SpeechifyVoice({
|
|
17
17
|
speechModel: {
|
|
18
|
-
name: 'simba-
|
|
18
|
+
name: 'simba-3.2',
|
|
19
19
|
apiKey: 'your-api-key',
|
|
20
20
|
},
|
|
21
|
-
speaker: '
|
|
21
|
+
speaker: 'harper_32', // Default voice (simba-3.2 serves the curated Simba 3 voices only)
|
|
22
22
|
})
|
|
23
23
|
|
|
24
24
|
// Convert text to speech
|
|
25
25
|
const audioStream = await voice.speak('Hello, world!', {
|
|
26
|
-
speaker: '
|
|
26
|
+
speaker: 'imogen_32', // Override default voice
|
|
27
27
|
})
|
|
28
28
|
```
|
|
29
29
|
|
|
@@ -31,11 +31,11 @@ const audioStream = await voice.speak('Hello, world!', {
|
|
|
31
31
|
|
|
32
32
|
**speechModel** (`SpeechifyConfig`): Configuration for text-to-speech functionality (Default: `{ name: 'simba-english' }`)
|
|
33
33
|
|
|
34
|
-
**speechModel.name** (`
|
|
34
|
+
**speechModel.name** (`SpeechifyModel`): The Speechify model to use ('simba-3.2', 'simba-3.0', 'simba-english', or 'simba-multilingual')
|
|
35
35
|
|
|
36
36
|
**speechModel.apiKey** (`string`): Speechify API key. Falls back to SPEECHIFY\_API\_KEY environment variable
|
|
37
37
|
|
|
38
|
-
**speaker** (`SpeechifyVoiceId`): Default voice ID to use for speech synthesis (Default: `'george'`)
|
|
38
|
+
**speaker** (`SpeechifyVoiceId`): Default voice ID to use for speech synthesis. The Simba 3 models serve a curated voice set only (harper\_32, imogen\_32, ...); the classic catalog voices (george, henry, ...) work with simba-english and simba-multilingual (Default: `'harper_32' for Simba 3 models, otherwise 'george'`)
|
|
39
39
|
|
|
40
40
|
## Methods
|
|
41
41
|
|
|
@@ -49,7 +49,7 @@ Converts text to speech using the configured speech model and voice.
|
|
|
49
49
|
|
|
50
50
|
**options.speaker** (`string`): Override the default speaker for this request
|
|
51
51
|
|
|
52
|
-
**options.model** (`
|
|
52
|
+
**options.model** (`SpeechifyModel`): Override the default model for this request
|
|
53
53
|
|
|
54
54
|
Returns: `Promise<NodeJS.ReadableStream>`
|
|
55
55
|
|
|
@@ -73,5 +73,9 @@ This method isn't supported by Speechify and will throw an error. Speechify does
|
|
|
73
73
|
|
|
74
74
|
- Speechify requires an API key for authentication
|
|
75
75
|
- The default model is 'simba-english'
|
|
76
|
+
- 'simba-3.2' is Speechify's latest streaming model with the lowest latency and richest expressivity, and the recommended model for English
|
|
77
|
+
- 'simba-3.2' and 'simba-3.0' are currently English only; use 'simba-multilingual' for non-English or mixed-language input
|
|
78
|
+
- 'simba-3.2' and 'simba-3.0' serve a curated voice set only: 'beatrice\_32', 'dominic\_32', 'edmund\_32', 'geffen\_32', 'harper\_32', 'hugh\_32', 'imogen\_32', 'wyatt\_32'. Classic catalog voices such as 'george' return an error on these models
|
|
79
|
+
- The default speaker follows the configured model: 'harper\_32' for the Simba 3 models, otherwise 'george'
|
|
76
80
|
- Speech-to-text functionality isn't supported
|
|
77
81
|
- Additional audio stream options can be passed through the speak() method's options parameter
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/mcp-docs-server
|
|
2
2
|
|
|
3
|
+
## 1.2.7-alpha.20
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`4adc391`](https://github.com/mastra-ai/mastra/commit/4adc3911075249c352bb4832d2471922826344de), [`b486abf`](https://github.com/mastra-ai/mastra/commit/b486abfa2a7528c6f527e4015c819ea9fa54aaad)]:
|
|
8
|
+
- @mastra/core@1.51.0-alpha.10
|
|
9
|
+
|
|
3
10
|
## 1.2.7-alpha.19
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "1.2.7-alpha.
|
|
3
|
+
"version": "1.2.7-alpha.20",
|
|
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/
|
|
32
|
-
"@mastra/
|
|
31
|
+
"@mastra/mcp": "^1.14.0-alpha.0",
|
|
32
|
+
"@mastra/core": "1.51.0-alpha.10"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@hono/node-server": "^1.19.11",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"vitest": "4.1.10",
|
|
48
48
|
"@internal/lint": "0.0.113",
|
|
49
49
|
"@internal/types-builder": "0.0.88",
|
|
50
|
-
"@mastra/core": "1.51.0-alpha.
|
|
50
|
+
"@mastra/core": "1.51.0-alpha.10"
|
|
51
51
|
},
|
|
52
52
|
"homepage": "https://mastra.ai",
|
|
53
53
|
"repository": {
|