@mastra/mcp-docs-server 1.1.28-alpha.1 → 1.1.28-alpha.3
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.
- package/.docs/docs/browser/browser-viewer.md +1 -28
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/cortecs.md +2 -1
- package/.docs/models/providers/openai.md +2 -1
- package/.docs/models/providers/poe.md +2 -1
- package/.docs/reference/browser/browser-viewer.md +1 -5
- package/.docs/reference/browser/mastra-browser.md +1 -1
- package/.docs/reference/browser/stagehand-browser.md +1 -1
- package/CHANGELOG.md +7 -0
- package/package.json +3 -3
|
@@ -133,34 +133,7 @@ const viewer = new BrowserViewer({
|
|
|
133
133
|
})
|
|
134
134
|
```
|
|
135
135
|
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
| Option | Type | Default | Description |
|
|
139
|
-
| ---------------- | -------------------------------------------------- | ---------- | ------------------------------------------------------- |
|
|
140
|
-
| `cli` | `'agent-browser' \| 'browser-use' \| 'browse-cli'` | Required | Which CLI the agent uses |
|
|
141
|
-
| `headless` | `boolean` | `false` | Run browser in headless mode |
|
|
142
|
-
| `cdpUrl` | `string` | — | Connect to an existing browser instead of launching one |
|
|
143
|
-
| `cdpPort` | `number` | `0` (auto) | Port for Chrome remote debugging |
|
|
144
|
-
| `viewport` | `{ width, height }` | `1280×720` | Browser viewport size |
|
|
145
|
-
| `userDataDir` | `string` | — | Chrome profile directory for persistent state |
|
|
146
|
-
| `executablePath` | `string` | — | Path to a Chrome executable |
|
|
147
|
-
|
|
148
|
-
## Connecting to an existing browser
|
|
149
|
-
|
|
150
|
-
To connect to a browser that is already running, pass a `cdpUrl`:
|
|
151
|
-
|
|
152
|
-
```typescript
|
|
153
|
-
const viewer = new BrowserViewer({
|
|
154
|
-
cli: 'browser-use',
|
|
155
|
-
cdpUrl: 'ws://127.0.0.1:9222/devtools/browser/abc123',
|
|
156
|
-
})
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
BrowserViewer connects via the CDP endpoint and enables screencast without launching its own browser.
|
|
160
|
-
|
|
161
|
-
## External CDP connections
|
|
162
|
-
|
|
163
|
-
When the agent provides its own CDP URL in a command (for example, `browser-use --cdp-url wss://cloud.example.com/session`), BrowserViewer detects this and skips injection. It connects to the external browser for screencast only, without managing the browser lifecycle.
|
|
136
|
+
> **Note:** See [BrowserViewer reference](https://mastra.ai/reference/browser/browser-viewer) for all configuration options, advanced connection modes, and method details.
|
|
164
137
|
|
|
165
138
|
## Related
|
|
166
139
|
|
package/.docs/models/index.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Model Providers
|
|
2
2
|
|
|
3
|
-
Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to
|
|
3
|
+
Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to 3723 models from 104 providers through a single API.
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Cortecs
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 34 Cortecs models through Mastra's model router. Authentication is handled automatically using the `CORTECS_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [Cortecs documentation](https://cortecs.ai).
|
|
6
6
|
|
|
@@ -57,6 +57,7 @@ for await (const chunk of stream) {
|
|
|
57
57
|
| `cortecs/kimi-k2-instruct` | 131K | | | | | | $0.55 | $3 |
|
|
58
58
|
| `cortecs/kimi-k2-thinking` | 262K | | | | | | $0.66 | $3 |
|
|
59
59
|
| `cortecs/kimi-k2.5` | 256K | | | | | | $0.55 | $3 |
|
|
60
|
+
| `cortecs/kimi-k2.6` | 256K | | | | | | $0.81 | $4 |
|
|
60
61
|
| `cortecs/llama-3.1-405b-instruct` | 128K | | | | | | — | — |
|
|
61
62
|
| `cortecs/minimax-m2` | 400K | | | | | | $0.39 | $2 |
|
|
62
63
|
| `cortecs/minimax-m2.1` | 196K | | | | | | $0.34 | $1 |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# OpenAI
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 51 OpenAI models through Mastra's model router. Authentication is handled automatically using the `OPENAI_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [OpenAI documentation](https://platform.openai.com/docs/models).
|
|
6
6
|
|
|
@@ -66,6 +66,7 @@ for await (const chunk of stream) {
|
|
|
66
66
|
| `openai/gpt-5.4-mini` | 400K | | | | | | $0.75 | $5 |
|
|
67
67
|
| `openai/gpt-5.4-nano` | 400K | | | | | | $0.20 | $1 |
|
|
68
68
|
| `openai/gpt-5.4-pro` | 1.1M | | | | | | $30 | $180 |
|
|
69
|
+
| `openai/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
69
70
|
| `openai/gpt-image-1` | — | | | | | | — | — |
|
|
70
71
|
| `openai/gpt-image-1-mini` | — | | | | | | — | — |
|
|
71
72
|
| `openai/gpt-image-1.5` | — | | | | | | — | — |
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Poe
|
|
2
2
|
|
|
3
|
-
Access
|
|
3
|
+
Access 119 Poe models through Mastra's model router. Authentication is handled automatically using the `POE_API_KEY` environment variable.
|
|
4
4
|
|
|
5
5
|
Learn more in the [Poe documentation](https://creator.poe.com/docs/external-applications/openai-compatible-api).
|
|
6
6
|
|
|
@@ -126,6 +126,7 @@ for await (const chunk of stream) {
|
|
|
126
126
|
| `poe/openai/gpt-image-1` | 128K | | | | | | — | — |
|
|
127
127
|
| `poe/openai/gpt-image-1-mini` | — | | | | | | — | — |
|
|
128
128
|
| `poe/openai/gpt-image-1.5` | 128K | | | | | | — | — |
|
|
129
|
+
| `poe/openai/gpt-image-2` | — | | | | | | $5 | $32 |
|
|
129
130
|
| `poe/openai/o1` | 200K | | | | | | $14 | $54 |
|
|
130
131
|
| `poe/openai/o1-pro` | 200K | | | | | | $140 | $540 |
|
|
131
132
|
| `poe/openai/o3` | 200K | | | | | | $2 | $7 |
|
|
@@ -44,7 +44,7 @@ When `cdpUrl` is provided, `BrowserViewer` connects to the existing browser inst
|
|
|
44
44
|
|
|
45
45
|
**cli** (`'agent-browser' | 'browser-use' | 'browse-cli'`): Which CLI the agent uses for browser automation. The CLI connects to Chrome via the CDP URL.
|
|
46
46
|
|
|
47
|
-
**headless** (`boolean`): Whether to run Chrome in headless mode. (Default: `
|
|
47
|
+
**headless** (`boolean`): Whether to run Chrome in headless mode. (Default: `true`)
|
|
48
48
|
|
|
49
49
|
**cdpUrl** (`string | (() => string | Promise<string>)`): CDP WebSocket URL for connecting to an existing browser instead of launching one.
|
|
50
50
|
|
|
@@ -54,12 +54,8 @@ When `cdpUrl` is provided, `BrowserViewer` connects to the existing browser inst
|
|
|
54
54
|
|
|
55
55
|
**viewport** (`{ width: number; height: number }`): Browser viewport dimensions. (Default: `{ width: 1280, height: 720 }`)
|
|
56
56
|
|
|
57
|
-
**userDataDir** (`string`): Path to Chrome user data directory. Persists cookies, localStorage, and extensions across sessions.
|
|
58
|
-
|
|
59
57
|
**executablePath** (`string`): Path to a Chrome executable. Uses Playwright's bundled Chromium by default.
|
|
60
58
|
|
|
61
|
-
**timeout** (`number`): Default timeout in milliseconds for browser operations. (Default: `10000`)
|
|
62
|
-
|
|
63
59
|
**onLaunch** (`(args: { browser: MastraBrowser }) => void | Promise<void>`): Callback invoked after the browser is ready.
|
|
64
60
|
|
|
65
61
|
**onClose** (`(args: { browser: MastraBrowser }) => void | Promise<void>`): Callback invoked before the browser closes.
|
|
@@ -34,7 +34,7 @@ export const browserAgent = new Agent({
|
|
|
34
34
|
|
|
35
35
|
**viewport** (`{ width: number; height: number }`): Browser viewport dimensions. Controls the size of the browser window. (Default: `{ width: 1280, height: 720 }`)
|
|
36
36
|
|
|
37
|
-
**timeout** (`number`): Default timeout in milliseconds
|
|
37
|
+
**timeout** (`number`): Default timeout in milliseconds. Each provider defines its own semantics and default. See the provider reference for details.
|
|
38
38
|
|
|
39
39
|
**cdpUrl** (`string | (() => string | Promise<string>)`): CDP WebSocket URL, HTTP endpoint, or sync/async provider function. When provided, connects to an existing browser instead of launching a new one. HTTP endpoints are resolved to WebSocket internally. Can't be used with scope: 'thread' (automatically uses shared scope).
|
|
40
40
|
|
|
@@ -52,7 +52,7 @@ Use stagehand_extract to get data from pages.`,
|
|
|
52
52
|
|
|
53
53
|
**scope** (`'shared' | 'thread'`): Browser instance scope across threads. (Default: `'thread' (or 'shared' when cdpUrl is provided)`)
|
|
54
54
|
|
|
55
|
-
**timeout** (`number`): Default timeout in milliseconds for
|
|
55
|
+
**timeout** (`number`): Default timeout in milliseconds for Stagehand operations. (Default: `30000`)
|
|
56
56
|
|
|
57
57
|
**onLaunch** (`(args: { browser: MastraBrowser }) => void | Promise<void>`): Callback invoked after the browser is ready.
|
|
58
58
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @mastra/mcp-docs-server
|
|
2
2
|
|
|
3
|
+
## 1.1.28-alpha.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`750b4d3`](https://github.com/mastra-ai/mastra/commit/750b4d3d8231f92e769b2c485921ac5a8ca639b9)]:
|
|
8
|
+
- @mastra/core@1.28.0-alpha.1
|
|
9
|
+
|
|
3
10
|
## 1.1.28-alpha.1
|
|
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.1.28-alpha.
|
|
3
|
+
"version": "1.1.28-alpha.3",
|
|
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
|
"jsdom": "^26.1.0",
|
|
30
30
|
"local-pkg": "^1.1.2",
|
|
31
31
|
"zod": "^4.3.6",
|
|
32
|
-
"@mastra/core": "1.28.0-alpha.
|
|
32
|
+
"@mastra/core": "1.28.0-alpha.1",
|
|
33
33
|
"@mastra/mcp": "^1.5.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"vitest": "4.1.5",
|
|
49
49
|
"@internal/lint": "0.0.85",
|
|
50
50
|
"@internal/types-builder": "0.0.60",
|
|
51
|
-
"@mastra/core": "1.28.0-alpha.
|
|
51
|
+
"@mastra/core": "1.28.0-alpha.1"
|
|
52
52
|
},
|
|
53
53
|
"homepage": "https://mastra.ai",
|
|
54
54
|
"repository": {
|