@mastra/mcp 0.14.2 → 1.0.0-beta.1
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/CHANGELOG.md +74 -13
- package/README.md +8 -8
- package/dist/__fixtures__/tools.d.ts +1 -7
- package/dist/__fixtures__/tools.d.ts.map +1 -1
- package/dist/client/client.d.ts +4 -9
- package/dist/client/client.d.ts.map +1 -1
- package/dist/client/configuration.d.ts +10 -64
- package/dist/client/configuration.d.ts.map +1 -1
- package/dist/client/index.d.ts +0 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/index.cjs +175 -96
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +175 -94
- package/dist/index.js.map +1 -1
- package/dist/server/server.d.ts +44 -6
- package/dist/server/server.d.ts.map +1 -1
- package/dist/server/types.d.ts +0 -54
- package/dist/server/types.d.ts.map +1 -1
- package/package.json +8 -12
package/dist/server/server.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type * as http from 'node:http';
|
|
2
2
|
import type { ToolsInput, Agent } from '@mastra/core/agent';
|
|
3
3
|
import { MCPServerBase } from '@mastra/core/mcp';
|
|
4
|
-
import type { MCPServerConfig, ServerInfo, ServerDetailInfo,
|
|
4
|
+
import type { MCPServerConfig, ServerInfo, ServerDetailInfo, MCPServerHonoSSEOptions, MCPServerSSEOptions } from '@mastra/core/mcp';
|
|
5
|
+
import type { InternalCoreTool, MCPToolType } from '@mastra/core/tools';
|
|
5
6
|
import type { Workflow } from '@mastra/core/workflows';
|
|
6
7
|
import { Server } from '@modelcontextprotocol/sdk/server/index.js';
|
|
7
8
|
import { SSEServerTransport } from '@modelcontextprotocol/sdk/server/sse.js';
|
|
@@ -28,7 +29,7 @@ import type { MCPServerPrompts, MCPServerResources, ElicitationActions } from '.
|
|
|
28
29
|
* id: 'getWeather',
|
|
29
30
|
* description: 'Gets the current weather for a location.',
|
|
30
31
|
* inputSchema: z.object({ location: z.string() }),
|
|
31
|
-
* execute: async (
|
|
32
|
+
* execute: async (inputData) => `Weather in ${inputData.location} is sunny.`,
|
|
32
33
|
* });
|
|
33
34
|
*
|
|
34
35
|
* const server = new MCPServer({
|
|
@@ -154,7 +155,8 @@ export declare class MCPServer extends MCPServerBase {
|
|
|
154
155
|
* import { z } from 'zod';
|
|
155
156
|
*
|
|
156
157
|
* const myAgent = new Agent({
|
|
157
|
-
*
|
|
158
|
+
* id: 'helper',
|
|
159
|
+
* name: 'Helper Agent',
|
|
158
160
|
* description: 'A helpful assistant',
|
|
159
161
|
* instructions: 'You are helpful.',
|
|
160
162
|
* model: 'openai/gpt-4o-mini',
|
|
@@ -168,7 +170,7 @@ export declare class MCPServer extends MCPServerBase {
|
|
|
168
170
|
* id: 'getWeather',
|
|
169
171
|
* description: 'Gets weather',
|
|
170
172
|
* inputSchema: z.object({ location: z.string() }),
|
|
171
|
-
* execute: async (
|
|
173
|
+
* execute: async (inputData) => `Sunny in ${inputData.location}`,
|
|
172
174
|
* })
|
|
173
175
|
* },
|
|
174
176
|
* agents: { myAgent },
|
|
@@ -216,7 +218,7 @@ export declare class MCPServer extends MCPServerBase {
|
|
|
216
218
|
* @param workflowsConfig Workflow definitions to be converted to tools, expected from MCPServerConfig
|
|
217
219
|
* @returns Converted tools registry
|
|
218
220
|
*/
|
|
219
|
-
convertTools(tools: ToolsInput, agentsConfig?: Record<string, Agent>, workflowsConfig?: Record<string, Workflow>): Record<string,
|
|
221
|
+
convertTools(tools: ToolsInput, agentsConfig?: Record<string, Agent>, workflowsConfig?: Record<string, Workflow>): Record<string, InternalCoreTool>;
|
|
220
222
|
/**
|
|
221
223
|
* Starts the MCP server using standard input/output (stdio) transport.
|
|
222
224
|
*
|
|
@@ -322,6 +324,7 @@ export declare class MCPServer extends MCPServerBase {
|
|
|
322
324
|
* @param options.options.onsessioninitialized - Callback when a new session is initialized
|
|
323
325
|
* @param options.options.enableJsonResponse - If true, return JSON instead of SSE streaming
|
|
324
326
|
* @param options.options.eventStore - Event store for message resumability
|
|
327
|
+
* @param options.options.serverless - If true, run in stateless mode without session management (ideal for serverless environments)
|
|
325
328
|
*
|
|
326
329
|
* @throws {MastraError} If HTTP connection setup fails
|
|
327
330
|
*
|
|
@@ -347,14 +350,49 @@ export declare class MCPServer extends MCPServerBase {
|
|
|
347
350
|
*
|
|
348
351
|
* httpServer.listen(1234);
|
|
349
352
|
* ```
|
|
353
|
+
*
|
|
354
|
+
* @example Serverless mode (Cloudflare Workers, Vercel Edge, etc.)
|
|
355
|
+
* ```typescript
|
|
356
|
+
* export default {
|
|
357
|
+
* async fetch(request: Request) {
|
|
358
|
+
* const url = new URL(request.url);
|
|
359
|
+
* if (url.pathname === '/mcp') {
|
|
360
|
+
* await server.startHTTP({
|
|
361
|
+
* url,
|
|
362
|
+
* httpPath: '/mcp',
|
|
363
|
+
* req: request,
|
|
364
|
+
* res: response,
|
|
365
|
+
* options: { serverless: true },
|
|
366
|
+
* });
|
|
367
|
+
* }
|
|
368
|
+
* return new Response('Not found', { status: 404 });
|
|
369
|
+
* },
|
|
370
|
+
* };
|
|
371
|
+
* ```
|
|
350
372
|
*/
|
|
351
373
|
startHTTP({ url, httpPath, req, res, options, }: {
|
|
352
374
|
url: URL;
|
|
353
375
|
httpPath: string;
|
|
354
376
|
req: http.IncomingMessage;
|
|
355
377
|
res: http.ServerResponse<http.IncomingMessage>;
|
|
356
|
-
options?: StreamableHTTPServerTransportOptions
|
|
378
|
+
options?: StreamableHTTPServerTransportOptions & {
|
|
379
|
+
serverless?: boolean;
|
|
380
|
+
};
|
|
357
381
|
}): Promise<void>;
|
|
382
|
+
/**
|
|
383
|
+
* Handles a stateless, serverless HTTP request without session management.
|
|
384
|
+
*
|
|
385
|
+
* This method bypasses all session/transport state and handles each request independently.
|
|
386
|
+
* For serverless environments (Cloudflare Workers, Vercel Edge, etc.) where
|
|
387
|
+
* persistent connections and session state cannot be maintained across requests.
|
|
388
|
+
*
|
|
389
|
+
* Each request gets a fresh transport and server instance that are discarded after the response.
|
|
390
|
+
*
|
|
391
|
+
* @param req - Incoming HTTP request
|
|
392
|
+
* @param res - HTTP response object
|
|
393
|
+
* @private
|
|
394
|
+
*/
|
|
395
|
+
private handleServerlessRequest;
|
|
358
396
|
/**
|
|
359
397
|
* Establishes the SSE connection for the MCP server.
|
|
360
398
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/server/server.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,IAAI,MAAM,WAAW,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE5D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EACV,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/server/server.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,IAAI,MAAM,WAAW,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE5D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,KAAK,EACV,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,uBAAuB,EACvB,mBAAmB,EACpB,MAAM,kBAAkB,CAAC;AAG1B,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAA+B,MAAM,oBAAoB,CAAC;AAErG,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,2CAA2C,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AAEjF,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,oDAAoD,CAAC;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AAC;QAAC,WAAW,CAAC,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,GAAG,CAAC;QAAC,YAAY,CAAC,EAAE,GAAG,CAAC;QAAC,QAAQ,CAAC,EAAE,WAAW,CAAA;KAAE,GAAG,SAAS;IAgBnH;;;;;;;;;;;;;;;;;;;;;OAqBG;IACU,WAAW,CACtB,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,GAAG,EACT,gBAAgB,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,GAC3D,OAAO,CAAC,GAAG,CAAC;CAiFhB"}
|
package/dist/server/types.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import type { InternalCoreTool } from '@mastra/core/tools';
|
|
2
1
|
import type { RequestHandlerExtra } from '@modelcontextprotocol/sdk/shared/protocol.js';
|
|
3
2
|
import type { ElicitRequest, ElicitResult, Prompt, PromptMessage, Resource, ResourceTemplate } from '@modelcontextprotocol/sdk/types.js';
|
|
4
|
-
import type { z } from 'zod';
|
|
5
3
|
/**
|
|
6
4
|
* Callback function to retrieve content for a specific resource.
|
|
7
5
|
*
|
|
@@ -79,58 +77,6 @@ export type ElicitationActions = {
|
|
|
79
77
|
* Extra context passed to MCP request handlers.
|
|
80
78
|
*/
|
|
81
79
|
export type MCPRequestHandlerExtra = RequestHandlerExtra<any, any>;
|
|
82
|
-
/**
|
|
83
|
-
* Tool definition for MCP servers with support for elicitation.
|
|
84
|
-
*
|
|
85
|
-
* Extends standard Mastra tools with MCP-specific capabilities including interactive
|
|
86
|
-
* user input collection via elicitation and request context access.
|
|
87
|
-
*
|
|
88
|
-
* @template TSchemaIn - Input schema type (Zod schema or undefined)
|
|
89
|
-
* @template TSchemaOut - Output schema type (Zod schema or undefined)
|
|
90
|
-
*
|
|
91
|
-
* @example
|
|
92
|
-
* ```typescript
|
|
93
|
-
* const myTool: MCPTool<z.ZodObject<{ name: z.ZodString }>> = {
|
|
94
|
-
* id: 'greet',
|
|
95
|
-
* description: 'Greets a person',
|
|
96
|
-
* parameters: z.object({ name: z.string() }),
|
|
97
|
-
* execute: async ({ context }, { elicitation, extra }) => {
|
|
98
|
-
* // Can request additional user input during execution
|
|
99
|
-
* const userInfo = await elicitation.sendRequest({
|
|
100
|
-
* message: 'Please provide your email',
|
|
101
|
-
* requestedSchema: { type: 'object', properties: { email: { type: 'string' } } }
|
|
102
|
-
* });
|
|
103
|
-
* return `Hello ${context.name}!`;
|
|
104
|
-
* }
|
|
105
|
-
* };
|
|
106
|
-
* ```
|
|
107
|
-
*/
|
|
108
|
-
export type MCPTool<TSchemaIn extends z.ZodSchema | undefined = undefined, TSchemaOut extends z.ZodSchema | undefined = undefined> = {
|
|
109
|
-
/** Optional unique identifier for the tool */
|
|
110
|
-
id?: InternalCoreTool['id'];
|
|
111
|
-
/** Optional description of what the tool does */
|
|
112
|
-
description?: InternalCoreTool['description'];
|
|
113
|
-
/** Input parameters schema (inferred from TSchemaIn if provided) */
|
|
114
|
-
parameters: TSchemaIn extends z.ZodSchema ? z.infer<TSchemaIn> : any;
|
|
115
|
-
/** Optional output schema for structured responses (inferred from TSchemaOut if provided) */
|
|
116
|
-
outputSchema?: TSchemaOut extends z.ZodSchema ? z.infer<TSchemaOut> : any;
|
|
117
|
-
/**
|
|
118
|
-
* Function that executes the tool's logic.
|
|
119
|
-
*
|
|
120
|
-
* @param params - Tool input parameters
|
|
121
|
-
* @param params.context - Validated input matching the parameters schema
|
|
122
|
-
* @param options - Execution options
|
|
123
|
-
* @param options.elicitation - Actions for requesting user input during execution
|
|
124
|
-
* @param options.extra - MCP request handler context with session information
|
|
125
|
-
* @returns Promise resolving to the tool's result
|
|
126
|
-
*/
|
|
127
|
-
execute: (params: {
|
|
128
|
-
context: TSchemaIn extends z.ZodSchema ? z.infer<TSchemaIn> : any;
|
|
129
|
-
}, options: Parameters<NonNullable<InternalCoreTool['execute']>>[1] & {
|
|
130
|
-
elicitation: ElicitationActions;
|
|
131
|
-
extra: MCPRequestHandlerExtra;
|
|
132
|
-
}) => Promise<any>;
|
|
133
|
-
};
|
|
134
80
|
/**
|
|
135
81
|
* Re-exported MCP SDK types for resource handling.
|
|
136
82
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/server/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/server/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACxF,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,MAAM,EACN,aAAa,EACb,QAAQ,EACR,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAE5C;;;;;;;GAOG;AACH,MAAM,MAAM,gCAAgC,GAAG,CAAC,EAC9C,GAAG,EACH,KAAK,GACN,EAAE;IACD,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,sBAAsB,CAAC;CAC/B,KAAK,OAAO,CAAC,wBAAwB,GAAG,wBAAwB,EAAE,CAAC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAE7E;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,+CAA+C;IAC/C,aAAa,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE;QAAE,KAAK,EAAE,sBAAsB,CAAA;KAAE,KAAK,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;IACrF,sDAAsD;IACtD,kBAAkB,EAAE,gCAAgC,CAAC;IACrD,mDAAmD;IACnD,iBAAiB,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE;QAAE,KAAK,EAAE,sBAAsB,CAAA;KAAE,KAAK,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC;CACnG,CAAC;AAEF;;;;;;;;;GASG;AACH,MAAM,MAAM,+BAA+B,GAAG,CAAC,EAC7C,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,KAAK,GACN,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,KAAK,EAAE,sBAAsB,CAAC;CAC/B,KAAK,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;AAE/B;;;;GAIG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,6CAA6C;IAC7C,WAAW,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE;QAAE,KAAK,EAAE,sBAAsB,CAAA;KAAE,KAAK,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACjF,8DAA8D;IAC9D,iBAAiB,CAAC,EAAE,+BAA+B,CAAC;CACrD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,4DAA4D;IAC5D,WAAW,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC,QAAQ,CAAC,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC;CAC1E,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,mBAAmB,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AAEnE;;;;;GAKG;AACH,YAAY,EAAE,QAAQ,EAAE,gBAAgB,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"zod-from-json-schema-v3": "npm:zod-from-json-schema@^0.0.5"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@mastra/core": ">=0.
|
|
39
|
+
"@mastra/core": ">=1.0.0-0 <2.0.0-0",
|
|
40
40
|
"zod": "^3.25.0 || ^4.0.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@hono/node-server": "^1.19.
|
|
43
|
+
"@hono/node-server": "^1.19.6",
|
|
44
44
|
"@mendable/firecrawl-js": "^1.29.3",
|
|
45
45
|
"@microsoft/api-extractor": "^7.52.8",
|
|
46
46
|
"@types/node": "^20.19.0",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"vitest": "^3.2.4",
|
|
55
55
|
"zod": "^3.25.76",
|
|
56
56
|
"zod-to-json-schema": "^3.24.6",
|
|
57
|
-
"@internal/
|
|
58
|
-
"@
|
|
59
|
-
"@
|
|
57
|
+
"@internal/types-builder": "0.0.28",
|
|
58
|
+
"@internal/lint": "0.0.53",
|
|
59
|
+
"@mastra/core": "1.0.0-beta.2"
|
|
60
60
|
},
|
|
61
61
|
"homepage": "https://mastra.ai",
|
|
62
62
|
"repository": {
|
|
@@ -67,12 +67,8 @@
|
|
|
67
67
|
"bugs": {
|
|
68
68
|
"url": "https://github.com/mastra-ai/mastra/issues"
|
|
69
69
|
},
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"publish-branch": [
|
|
73
|
-
"main",
|
|
74
|
-
"0.x"
|
|
75
|
-
]
|
|
70
|
+
"engines": {
|
|
71
|
+
"node": ">=22.13.0"
|
|
76
72
|
},
|
|
77
73
|
"scripts": {
|
|
78
74
|
"build": "tsup --silent --config tsup.config.ts",
|