@mastra/mcp 1.17.3-alpha.1 → 1.17.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/README.md +22 -8
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/package.json +10 -9
package/README.md
CHANGED
|
@@ -6,17 +6,31 @@ Mastra can also be used to author MCP servers, exposing agents, tools, and other
|
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
|
-
To use MCP, install the required dependency:
|
|
10
|
-
|
|
11
9
|
```bash
|
|
12
|
-
npm install @mastra/mcp
|
|
10
|
+
npm install @mastra/mcp
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
Provide an MCP server URL or stdio command.
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import { MCPClient } from '@mastra/mcp';
|
|
19
|
+
|
|
20
|
+
const client = new MCPClient({
|
|
21
|
+
servers: { docs: { url: new URL('https://example.com/mcp') } },
|
|
22
|
+
});
|
|
23
|
+
const tools = await client.listTools();
|
|
13
24
|
```
|
|
14
25
|
|
|
15
|
-
##
|
|
26
|
+
## Documentation
|
|
27
|
+
|
|
28
|
+
- [@mastra/mcp documentation](https://mastra.ai/reference/tools/mcp-client)
|
|
29
|
+
|
|
30
|
+
## Changelog
|
|
16
31
|
|
|
17
|
-
|
|
32
|
+
See the [package changelog](https://github.com/mastra-ai/mastra/blob/main/packages/mcp/CHANGELOG.md) for version history and release notes.
|
|
18
33
|
|
|
19
|
-
|
|
20
|
-
- `MCPServer`: Exposes Mastra tools, agents, workflows, prompts, and resources to MCP-compatible clients.
|
|
34
|
+
## Support
|
|
21
35
|
|
|
22
|
-
|
|
36
|
+
We have an [open community Discord](https://discord.gg/mastra-ai). Come and say hello and let us know if you have any questions or need any help getting things running.
|
package/dist/docs/SKILL.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp",
|
|
3
|
-
"version": "1.17.3
|
|
3
|
+
"version": "1.17.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@hono/node-server": "^2.0.0",
|
|
43
43
|
"@mendable/firecrawl-js": "^1.29.3",
|
|
44
|
+
"@modelcontextprotocol/server-filesystem": "2026.8.31",
|
|
44
45
|
"@types/node": "22.20.1",
|
|
45
46
|
"@types/semver": "^7.7.1",
|
|
46
47
|
"@vitest/coverage-v8": "4.1.10",
|
|
@@ -57,14 +58,14 @@
|
|
|
57
58
|
"vitest": "4.1.10",
|
|
58
59
|
"zod": "^4.4.3",
|
|
59
60
|
"zod-to-json-schema": "^3.25.1",
|
|
60
|
-
"@internal/ai-sdk-v5": "0.0.
|
|
61
|
-
"@internal/
|
|
62
|
-
"@internal/
|
|
63
|
-
"@internal/
|
|
64
|
-
"@internal/
|
|
65
|
-
"@mastra/
|
|
66
|
-
"@mastra/
|
|
67
|
-
"@mastra/
|
|
61
|
+
"@internal/ai-sdk-v5": "0.0.77",
|
|
62
|
+
"@internal/test-utils": "0.0.66",
|
|
63
|
+
"@internal/llm-recorder": "0.0.66",
|
|
64
|
+
"@internal/types-builder": "0.0.105",
|
|
65
|
+
"@internal/lint": "0.0.130",
|
|
66
|
+
"@mastra/observability": "1.17.5",
|
|
67
|
+
"@mastra/core": "1.64.0",
|
|
68
|
+
"@mastra/schema-compat": "1.3.8"
|
|
68
69
|
},
|
|
69
70
|
"homepage": "https://mastra.ai",
|
|
70
71
|
"repository": {
|