@mastra/mcp 0.10.9 → 0.10.10-alpha.0
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/.turbo/turbo-build.log +1 -1
- package/CHANGELOG.md +13 -0
- package/dist/__fixtures__/weather.d.ts +1 -1
- package/dist/client/client.d.ts +3 -3
- package/dist/client/configuration.d.ts +1 -1
- package/dist/client/elicitationActions.d.ts +3 -3
- package/dist/client/index.d.ts +3 -3
- package/dist/client/promptActions.d.ts +3 -3
- package/dist/client/resourceActions.d.ts +3 -3
- package/dist/index.cjs +4 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/server/index.d.ts +2 -2
- package/dist/server/server.d.ts +3 -3
- package/integration-tests/package.json +1 -1
- package/package.json +8 -7
- package/tsup.config.ts +2 -7
- package/integration-tests/node_modules/.bin/mastra +0 -21
package/dist/server/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './server';
|
|
2
|
-
export * from './types';
|
|
1
|
+
export * from './server.js';
|
|
2
|
+
export * from './types.js';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/server/server.d.ts
CHANGED
|
@@ -9,9 +9,9 @@ import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js'
|
|
|
9
9
|
import type { StreamableHTTPServerTransportOptions } from '@modelcontextprotocol/sdk/server/streamableHttp.js';
|
|
10
10
|
import type { SSEStreamingApi } from 'hono/streaming';
|
|
11
11
|
import { SSETransport } from 'hono-mcp-server-sse-transport';
|
|
12
|
-
import { ServerPromptActions } from './promptActions';
|
|
13
|
-
import { ServerResourceActions } from './resourceActions';
|
|
14
|
-
import type { MCPServerPrompts, MCPServerResources, ElicitationActions } from './types';
|
|
12
|
+
import { ServerPromptActions } from './promptActions.js';
|
|
13
|
+
import { ServerResourceActions } from './resourceActions.js';
|
|
14
|
+
import type { MCPServerPrompts, MCPServerResources, ElicitationActions } from './types.js';
|
|
15
15
|
export declare class MCPServer extends MCPServerBase {
|
|
16
16
|
private server;
|
|
17
17
|
private stdioTransport?;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.10-alpha.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"default": "./dist/index.js"
|
|
13
13
|
},
|
|
14
14
|
"require": {
|
|
15
|
-
"types": "./dist/index.d.
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
16
|
"default": "./dist/index.cjs"
|
|
17
17
|
}
|
|
18
18
|
},
|
|
@@ -31,28 +31,29 @@
|
|
|
31
31
|
"zod-from-json-schema": "^0.0.5"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@mastra/core": ">=0.10.2-0 <0.
|
|
34
|
+
"@mastra/core": ">=0.10.2-0 <0.14.0-0",
|
|
35
35
|
"zod": "^3.0.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@ai-sdk/anthropic": "^1.2.12",
|
|
39
39
|
"@ai-sdk/openai": "^1.3.22",
|
|
40
40
|
"@hono/node-server": "^1.17.1",
|
|
41
|
-
"@mendable/firecrawl-js": "^1.29.
|
|
41
|
+
"@mendable/firecrawl-js": "^1.29.3",
|
|
42
42
|
"@microsoft/api-extractor": "^7.52.8",
|
|
43
43
|
"@types/node": "^20.19.0",
|
|
44
44
|
"ai": "4.3.16",
|
|
45
45
|
"eslint": "^9.30.1",
|
|
46
46
|
"hono-mcp-server-sse-transport": "0.0.7",
|
|
47
|
-
"hono": "^4.8.
|
|
47
|
+
"hono": "^4.8.11",
|
|
48
48
|
"tsup": "^8.5.0",
|
|
49
49
|
"tsx": "^4.19.4",
|
|
50
50
|
"typescript": "^5.8.3",
|
|
51
51
|
"vitest": "^3.2.4",
|
|
52
52
|
"zod": "^3.25.67",
|
|
53
53
|
"zod-to-json-schema": "^3.24.5",
|
|
54
|
-
"@
|
|
55
|
-
"@
|
|
54
|
+
"@mastra/core": "0.13.0-alpha.2",
|
|
55
|
+
"@internal/types-builder": "0.0.1",
|
|
56
|
+
"@internal/lint": "0.0.26"
|
|
56
57
|
},
|
|
57
58
|
"scripts": {
|
|
58
59
|
"build": "tsup --silent --config tsup.config.ts",
|
package/tsup.config.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { promisify } from 'util';
|
|
1
|
+
import { generateTypes } from '@internal/types-builder';
|
|
3
2
|
import { defineConfig } from 'tsup';
|
|
4
3
|
|
|
5
|
-
const exec = promisify(spawn);
|
|
6
|
-
|
|
7
4
|
export default defineConfig({
|
|
8
5
|
entry: ['src/index.ts'],
|
|
9
6
|
format: ['esm', 'cjs'],
|
|
@@ -15,8 +12,6 @@ export default defineConfig({
|
|
|
15
12
|
},
|
|
16
13
|
sourcemap: true,
|
|
17
14
|
onSuccess: async () => {
|
|
18
|
-
await
|
|
19
|
-
stdio: 'inherit',
|
|
20
|
-
});
|
|
15
|
+
await generateTypes(process.cwd());
|
|
21
16
|
},
|
|
22
17
|
});
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
#!/bin/sh
|
|
2
|
-
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
-
|
|
4
|
-
case `uname` in
|
|
5
|
-
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
-
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
-
basedir=`cygpath -w "$basedir"`
|
|
8
|
-
fi
|
|
9
|
-
;;
|
|
10
|
-
esac
|
|
11
|
-
|
|
12
|
-
if [ -z "$NODE_PATH" ]; then
|
|
13
|
-
export NODE_PATH="/home/runner/work/mastra/mastra/packages/cli/dist/node_modules:/home/runner/work/mastra/mastra/packages/cli/node_modules:/home/runner/work/mastra/mastra/packages/node_modules:/home/runner/work/mastra/mastra/node_modules:/home/runner/work/mastra/node_modules:/home/runner/work/node_modules:/home/runner/node_modules:/home/node_modules:/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/node_modules"
|
|
14
|
-
else
|
|
15
|
-
export NODE_PATH="/home/runner/work/mastra/mastra/packages/cli/dist/node_modules:/home/runner/work/mastra/mastra/packages/cli/node_modules:/home/runner/work/mastra/mastra/packages/node_modules:/home/runner/work/mastra/mastra/node_modules:/home/runner/work/mastra/node_modules:/home/runner/work/node_modules:/home/runner/node_modules:/home/node_modules:/node_modules:/home/runner/work/mastra/mastra/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
-
fi
|
|
17
|
-
if [ -x "$basedir/node" ]; then
|
|
18
|
-
exec "$basedir/node" "$basedir/../mastra/dist/index.js" "$@"
|
|
19
|
-
else
|
|
20
|
-
exec node "$basedir/../mastra/dist/index.js" "$@"
|
|
21
|
-
fi
|