@mastra/mcp-docs-server 1.2.21 → 1.2.22
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.
|
@@ -145,7 +145,7 @@ The model receives the signal as context like this:
|
|
|
145
145
|
<notification source="github" pr="123">PR #123 has a new review comment from User X about the API surface.</notification>
|
|
146
146
|
```
|
|
147
147
|
|
|
148
|
-
Use XML-safe `tagName` and attribute names. They can contain letters, numbers,
|
|
148
|
+
Use XML-safe `tagName` and attribute names. They can contain letters, numbers, periods, hyphens, and the underscore character (`_`). They must start with a letter or underscore.
|
|
149
149
|
|
|
150
150
|
#### Storage support
|
|
151
151
|
|
|
@@ -6,8 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
[Temporal](https://temporal.io/) is a durable execution platform for orchestrating long-running, fault-tolerant workflows. The `@mastra/temporal` package lets you author workflows with the standard Mastra API and run them on a Temporal cluster.
|
|
8
8
|
|
|
9
|
-
> **Warning:** `@mastra/temporal` is experimental and not ready for production use. The API may change between releases. See the [package README](https://github.com/mastra-ai/mastra/tree/main/workflows/temporal) for the current state.
|
|
10
|
-
|
|
11
9
|
## How Temporal works with Mastra
|
|
12
10
|
|
|
13
11
|
Mastra workflows authored with `createWorkflow()` and `createStep()` map onto Temporal's workflow and activity model. The `MastraPlugin` for the Temporal worker compiles your Mastra entry file at bundle time:
|
|
@@ -46,7 +44,7 @@ yarn add @mastra/temporal@latest @temporalio/client @temporalio/worker @temporal
|
|
|
46
44
|
bun add @mastra/temporal@latest @temporalio/client @temporalio/worker @temporalio/envconfig
|
|
47
45
|
```
|
|
48
46
|
|
|
49
|
-
You also need access to a Temporal cluster. For local development,
|
|
47
|
+
You also need access to a Temporal cluster. For local development, use the [Temporal CLI development server](https://docs.temporal.io/develop/run-a-development-server).
|
|
50
48
|
|
|
51
49
|
## Building a Temporal-backed workflow
|
|
52
50
|
|
|
@@ -133,7 +131,7 @@ export const mastra = new Mastra({
|
|
|
133
131
|
|
|
134
132
|
## Running the worker
|
|
135
133
|
|
|
136
|
-
The worker is a long-lived Node.js process that polls a Temporal task queue. Install `MastraPlugin` and
|
|
134
|
+
The worker is a long-lived Node.js process that polls a Temporal task queue. Install `MastraPlugin` and pass it the path to the Mastra entry file that registers your workflows.
|
|
137
135
|
|
|
138
136
|
```ts
|
|
139
137
|
import { MastraPlugin } from '@mastra/temporal/worker'
|
|
@@ -143,11 +141,7 @@ const connection = await NativeConnection.connect({
|
|
|
143
141
|
address: 'localhost:7233',
|
|
144
142
|
})
|
|
145
143
|
|
|
146
|
-
const mastraPlugin = new MastraPlugin()
|
|
147
|
-
|
|
148
|
-
await mastraPlugin.prebuild({
|
|
149
|
-
entryFile: import.meta.resolve('./index.ts'),
|
|
150
|
-
})
|
|
144
|
+
const mastraPlugin = new MastraPlugin(import.meta.resolve('./index.ts'))
|
|
151
145
|
|
|
152
146
|
const worker = await Worker.create({
|
|
153
147
|
connection,
|
|
@@ -165,13 +159,13 @@ await worker.run()
|
|
|
165
159
|
|
|
166
160
|
### Running locally
|
|
167
161
|
|
|
168
|
-
1.
|
|
162
|
+
1. [Install the Temporal CLI](https://docs.temporal.io/cli/setup-cli), then start the local server:
|
|
169
163
|
|
|
170
164
|
```bash
|
|
171
|
-
|
|
165
|
+
temporal server start-dev --db-filename temporal.db
|
|
172
166
|
```
|
|
173
167
|
|
|
174
|
-
2. Open the Temporal UI at <http://localhost:
|
|
168
|
+
2. Open the Temporal UI at <http://localhost:8233> to inspect namespaces, workflows, and activities.
|
|
175
169
|
|
|
176
170
|
3. In a new terminal, start the worker by running:
|
|
177
171
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @mastra/mcp-docs-server
|
|
2
2
|
|
|
3
|
+
## 1.2.22
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`0a9d29c`](https://github.com/mastra-ai/mastra/commit/0a9d29c0c4dbbaa6afc1c8146cdd41759cbd4002)]:
|
|
8
|
+
- @mastra/core@1.63.2
|
|
9
|
+
|
|
10
|
+
## 1.2.22-alpha.0
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [[`0a9d29c`](https://github.com/mastra-ai/mastra/commit/0a9d29c0c4dbbaa6afc1c8146cdd41759cbd4002)]:
|
|
15
|
+
- @mastra/core@1.63.2-alpha.0
|
|
16
|
+
|
|
3
17
|
## 1.2.21
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.22",
|
|
4
4
|
"description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"local-pkg": "^1.1.2",
|
|
30
30
|
"zod": "^4.4.3",
|
|
31
31
|
"@mastra/mcp": "^1.17.2",
|
|
32
|
-
"@mastra/core": "1.63.
|
|
32
|
+
"@mastra/core": "1.63.2"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@hono/node-server": "^2.0.0",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"tsx": "^4.23.1",
|
|
46
46
|
"typescript": "^6.0.3",
|
|
47
47
|
"vitest": "4.1.10",
|
|
48
|
-
"@internal/
|
|
49
|
-
"@mastra/core": "1.63.
|
|
50
|
-
"@internal/
|
|
48
|
+
"@internal/lint": "0.0.129",
|
|
49
|
+
"@mastra/core": "1.63.2",
|
|
50
|
+
"@internal/types-builder": "0.0.104"
|
|
51
51
|
},
|
|
52
52
|
"homepage": "https://mastra.ai",
|
|
53
53
|
"repository": {
|