@mastra/mcp 1.0.0-beta.0 → 1.0.0-beta.10
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 +303 -0
- package/README.md +250 -24
- package/dist/__fixtures__/tools.d.ts +8 -5
- package/dist/__fixtures__/tools.d.ts.map +1 -1
- package/dist/client/{elicitationActions.d.ts → actions/elicitation.d.ts} +2 -2
- package/dist/client/actions/elicitation.d.ts.map +1 -0
- package/dist/client/actions/progress.d.ts +23 -0
- package/dist/client/actions/progress.d.ts.map +1 -0
- package/dist/client/{promptActions.d.ts → actions/prompt.d.ts} +2 -2
- package/dist/client/actions/prompt.d.ts.map +1 -0
- package/dist/client/{resourceActions.d.ts → actions/resource.d.ts} +2 -2
- package/dist/client/actions/resource.d.ts.map +1 -0
- package/dist/client/client.d.ts +79 -132
- package/dist/client/client.d.ts.map +1 -1
- package/dist/client/configuration.d.ts +23 -1
- package/dist/client/configuration.d.ts.map +1 -1
- package/dist/client/index.d.ts +3 -1
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/oauth-provider.d.ts +230 -0
- package/dist/client/oauth-provider.d.ts.map +1 -0
- package/dist/client/types.d.ts +237 -0
- package/dist/client/types.d.ts.map +1 -0
- package/dist/docs/README.md +33 -0
- package/dist/docs/SKILL.md +46 -0
- package/dist/docs/SOURCE_MAP.json +59 -0
- package/dist/docs/mcp/01-overview.md +372 -0
- package/dist/docs/mcp/02-publishing-mcp-server.md +111 -0
- package/dist/docs/tools/01-reference.md +2306 -0
- package/dist/docs/tools-mcp/01-mcp-overview.md +384 -0
- package/dist/index.cjs +851 -107
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +774 -92
- package/dist/index.js.map +1 -1
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/oauth-middleware.d.ts +142 -0
- package/dist/server/oauth-middleware.d.ts.map +1 -0
- package/dist/server/server.d.ts +20 -4
- package/dist/server/server.d.ts.map +1 -1
- package/dist/server/types.d.ts +11 -4
- package/dist/server/types.d.ts.map +1 -1
- package/dist/shared/index.d.ts +2 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/oauth-types.d.ts +137 -0
- package/dist/shared/oauth-types.d.ts.map +1 -0
- package/package.json +17 -14
- package/dist/client/elicitationActions.d.ts.map +0 -1
- package/dist/client/promptActions.d.ts.map +0 -1
- package/dist/client/resourceActions.d.ts.map +0 -1
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const weatherTool: import("@mastra/core/tools").Tool<z.ZodObject<{
|
|
3
|
-
location: z.ZodString;
|
|
4
|
-
}, "strip", z.ZodTypeAny, {
|
|
1
|
+
export declare const weatherTool: import("@mastra/core/tools").Tool<{
|
|
5
2
|
location: string;
|
|
6
3
|
}, {
|
|
4
|
+
temperature: number;
|
|
5
|
+
feelsLike: number;
|
|
6
|
+
humidity: number;
|
|
7
|
+
windSpeed: number;
|
|
8
|
+
windGust: number;
|
|
9
|
+
conditions: string;
|
|
7
10
|
location: string;
|
|
8
|
-
}
|
|
11
|
+
}, unknown, unknown, import("@mastra/core/tools").ToolExecutionContext<unknown, unknown>, "get-weather">;
|
|
9
12
|
//# sourceMappingURL=tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/__fixtures__/tools.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["../../src/__fixtures__/tools.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,WAAW;;;;;;;;;;wGAUtB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IMastraLogger } from '@mastra/core/logger';
|
|
2
2
|
import type { ElicitRequest, ElicitResult } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
-
import type { InternalMastraMCPClient } from '
|
|
3
|
+
import type { InternalMastraMCPClient } from '../client.js';
|
|
4
4
|
interface ElicitationClientActionsConfig {
|
|
5
5
|
client: InternalMastraMCPClient;
|
|
6
6
|
logger: IMastraLogger;
|
|
@@ -60,4 +60,4 @@ export declare class ElicitationClientActions {
|
|
|
60
60
|
onRequest(handler: (request: ElicitRequest['params']) => Promise<ElicitResult>): void;
|
|
61
61
|
}
|
|
62
62
|
export {};
|
|
63
|
-
//# sourceMappingURL=
|
|
63
|
+
//# sourceMappingURL=elicitation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"elicitation.d.ts","sourceRoot":"","sources":["../../../src/client/actions/elicitation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AACtF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAEzD,UAAU,8BAA8B;IACtC,MAAM,EAAE,uBAAuB,CAAC;IAChC,MAAM,EAAE,aAAa,CAAC;CACvB;AAED;;;;;;GAMG;AACH,qBAAa,wBAAwB;IACnC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IACjD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IAEvC;;OAEG;gBACS,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,8BAA8B;IAK9D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAqCG;IACI,SAAS,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC,QAAQ,CAAC,KAAK,OAAO,CAAC,YAAY,CAAC,GAAG,IAAI;CAG7F"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { IMastraLogger } from '@mastra/core/logger';
|
|
2
|
+
import type { ProgressNotificationSchema } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import type { z } from 'zod';
|
|
4
|
+
import type { InternalMastraMCPClient } from '../client.js';
|
|
5
|
+
interface ProgressClientActionsConfig {
|
|
6
|
+
client: InternalMastraMCPClient;
|
|
7
|
+
logger: IMastraLogger;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Client-side progress actions for handling progress notifications from MCP servers.
|
|
11
|
+
*/
|
|
12
|
+
export declare class ProgressClientActions {
|
|
13
|
+
private readonly client;
|
|
14
|
+
private readonly logger;
|
|
15
|
+
constructor({ client, logger }: ProgressClientActionsConfig);
|
|
16
|
+
/**
|
|
17
|
+
* Set a notification handler for progress updates.
|
|
18
|
+
* @param handler The callback function to handle progress notifications.
|
|
19
|
+
*/
|
|
20
|
+
onUpdate(handler: (params: z.infer<typeof ProgressNotificationSchema>['params']) => void): void;
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=progress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/client/actions/progress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AACrF,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAEzD,UAAU,2BAA2B;IACjC,MAAM,EAAE,uBAAuB,CAAC;IAChC,MAAM,EAAE,aAAa,CAAC;CACzB;AAED;;GAEG;AACH,qBAAa,qBAAqB;IAC9B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IACjD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;gBAE3B,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,2BAA2B;IAK3D;;;OAGG;IACI,QAAQ,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC,QAAQ,CAAC,KAAK,IAAI,GAAG,IAAI;CAGzG"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IMastraLogger } from '@mastra/core/logger';
|
|
2
2
|
import type { GetPromptResult, Prompt } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
-
import type { InternalMastraMCPClient } from '
|
|
3
|
+
import type { InternalMastraMCPClient } from '../client.js';
|
|
4
4
|
interface PromptClientActionsConfig {
|
|
5
5
|
client: InternalMastraMCPClient;
|
|
6
6
|
logger: IMastraLogger;
|
|
@@ -87,4 +87,4 @@ export declare class PromptClientActions {
|
|
|
87
87
|
onListChanged(handler: () => void): Promise<void>;
|
|
88
88
|
}
|
|
89
89
|
export {};
|
|
90
|
-
//# sourceMappingURL=
|
|
90
|
+
//# sourceMappingURL=prompt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../../src/client/actions/prompt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAEzD,UAAU,yBAAyB;IAC/B,MAAM,EAAE,uBAAuB,CAAC;IAChC,MAAM,EAAE,aAAa,CAAC;CACzB;AAED;;;;;GAKG;AACH,qBAAa,mBAAmB;IAC5B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IACjD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IAEvC;;OAEG;gBACS,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,yBAAyB;IAKzD;;;;;;;;;;;;;;;OAeG;IACU,IAAI,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAyBtC;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACU,GAAG,CAAC,EACb,IAAI,EACJ,IAAI,EACJ,OAAO,GACV,EAAE;QACC,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;KACpB,GAAG,OAAO,CAAC,eAAe,CAAC;IAI5B;;;;;;;;;;;;;;;OAeG;IACU,aAAa,CAAC,OAAO,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;CAGjE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { IMastraLogger } from '@mastra/core/logger';
|
|
2
2
|
import type { Resource, ResourceTemplate } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
-
import type { InternalMastraMCPClient } from '
|
|
3
|
+
import type { InternalMastraMCPClient } from '../client.js';
|
|
4
4
|
interface ResourceClientActionsConfig {
|
|
5
5
|
client: InternalMastraMCPClient;
|
|
6
6
|
logger: IMastraLogger;
|
|
@@ -179,4 +179,4 @@ export declare class ResourceClientActions {
|
|
|
179
179
|
onListChanged(handler: () => void): Promise<void>;
|
|
180
180
|
}
|
|
181
181
|
export {};
|
|
182
|
-
//# sourceMappingURL=
|
|
182
|
+
//# sourceMappingURL=resource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../../../src/client/actions/resource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACrF,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAC;AAEzD,UAAU,2BAA2B;IACnC,MAAM,EAAE,uBAAuB,CAAC;IAChC,MAAM,EAAE,aAAa,CAAC;CACvB;AAED;;;;;;GAMG;AACH,qBAAa,qBAAqB;IAChC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IACjD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IAEvC;;OAEG;gBACS,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,2BAA2B;IAK3D;;;;;;;;;;;;;;;OAeG;IACU,IAAI,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC;IAyBxC;;;;;;;;;;;;;;;;OAgBG;IACU,SAAS,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;IA0BrD;;;;;;;;;;;;OAYG;IACU,IAAI,CAAC,GAAG,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAI7B;;;;;;;;;;;;;;OAcG;IACU,SAAS,CAAC,GAAG,EAAE,MAAM;IAIlC;;;;;;;;;;;;;OAaG;IACU,WAAW,CAAC,GAAG,EAAE,MAAM;IAIpC;;;;;;;;;;;;;;;;;OAiBG;IACU,SAAS,CAAC,OAAO,EAAE,CAAC,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAIjF;;;;;;;;;;;;;;;OAeG;IACU,aAAa,CAAC,OAAO,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;CAG/D"}
|
package/dist/client/client.d.ts
CHANGED
|
@@ -1,139 +1,14 @@
|
|
|
1
1
|
import { MastraBase } from '@mastra/core/base';
|
|
2
|
-
import type { RequestContext } from '@mastra/core/di';
|
|
3
2
|
import type { Tool } from '@mastra/core/tools';
|
|
4
|
-
import type {
|
|
5
|
-
import type { StreamableHTTPClientTransportOptions } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
6
|
-
import type { ClientCapabilities, ElicitRequest, ElicitResult, GetPromptResult, ListPromptsResult, LoggingLevel } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import type { GetPromptResult, ListPromptsResult } from '@modelcontextprotocol/sdk/types.js';
|
|
7
4
|
import { ResourceUpdatedNotificationSchema } from '@modelcontextprotocol/sdk/types.js';
|
|
8
5
|
import { z } from 'zod';
|
|
9
|
-
import { ElicitationClientActions } from './
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
*/
|
|
16
|
-
export interface LogMessage {
|
|
17
|
-
/** Logging level (debug, info, warning, error, etc.) */
|
|
18
|
-
level: LoggingLevel;
|
|
19
|
-
/** Log message content */
|
|
20
|
-
message: string;
|
|
21
|
-
/** Timestamp when the log was created */
|
|
22
|
-
timestamp: Date;
|
|
23
|
-
/** Name of the MCP server that generated the log */
|
|
24
|
-
serverName: string;
|
|
25
|
-
/** Optional additional details */
|
|
26
|
-
details?: Record<string, any>;
|
|
27
|
-
requestContext?: RequestContext | null;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Handler function for processing log messages from MCP servers.
|
|
31
|
-
*/
|
|
32
|
-
export type LogHandler = (logMessage: LogMessage) => void;
|
|
33
|
-
/**
|
|
34
|
-
* Handler function for processing elicitation requests from MCP servers.
|
|
35
|
-
*
|
|
36
|
-
* @param request - The elicitation request parameters including message and schema
|
|
37
|
-
* @returns Promise resolving to the user's response (accept/decline/cancel with optional content)
|
|
38
|
-
*/
|
|
39
|
-
export type ElicitationHandler = (request: ElicitRequest['params']) => Promise<ElicitResult>;
|
|
40
|
-
/**
|
|
41
|
-
* Base options common to all MCP server definitions.
|
|
42
|
-
*/
|
|
43
|
-
type BaseServerOptions = {
|
|
44
|
-
/** Optional handler for server log messages */
|
|
45
|
-
logger?: LogHandler;
|
|
46
|
-
/** Optional timeout in milliseconds for server operations */
|
|
47
|
-
timeout?: number;
|
|
48
|
-
/** Optional client capabilities to advertise to the server */
|
|
49
|
-
capabilities?: ClientCapabilities;
|
|
50
|
-
/** Whether to enable server log forwarding (default: true) */
|
|
51
|
-
enableServerLogs?: boolean;
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* Configuration for MCP servers using stdio (subprocess) transport.
|
|
55
|
-
*
|
|
56
|
-
* Used when the MCP server is spawned as a subprocess that communicates via stdin/stdout.
|
|
57
|
-
*/
|
|
58
|
-
type StdioServerDefinition = BaseServerOptions & {
|
|
59
|
-
/** Command to execute (e.g., 'node', 'python', 'npx') */
|
|
60
|
-
command: string;
|
|
61
|
-
/** Optional arguments to pass to the command */
|
|
62
|
-
args?: string[];
|
|
63
|
-
/** Optional environment variables for the subprocess */
|
|
64
|
-
env?: Record<string, string>;
|
|
65
|
-
url?: never;
|
|
66
|
-
requestInit?: never;
|
|
67
|
-
eventSourceInit?: never;
|
|
68
|
-
authProvider?: never;
|
|
69
|
-
reconnectionOptions?: never;
|
|
70
|
-
sessionId?: never;
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* Configuration for MCP servers using HTTP-based transport (Streamable HTTP or SSE fallback).
|
|
74
|
-
*
|
|
75
|
-
* Used when connecting to remote MCP servers over HTTP. The client will attempt Streamable HTTP
|
|
76
|
-
* transport first and fall back to SSE if that fails.
|
|
77
|
-
*/
|
|
78
|
-
type HttpServerDefinition = BaseServerOptions & {
|
|
79
|
-
/** URL of the MCP server endpoint */
|
|
80
|
-
url: URL;
|
|
81
|
-
command?: never;
|
|
82
|
-
args?: never;
|
|
83
|
-
env?: never;
|
|
84
|
-
/** Optional request configuration for HTTP requests */
|
|
85
|
-
requestInit?: StreamableHTTPClientTransportOptions['requestInit'];
|
|
86
|
-
/** Optional configuration for SSE fallback (required when using custom headers with SSE) */
|
|
87
|
-
eventSourceInit?: SSEClientTransportOptions['eventSourceInit'];
|
|
88
|
-
/** Optional authentication provider for HTTP requests */
|
|
89
|
-
authProvider?: StreamableHTTPClientTransportOptions['authProvider'];
|
|
90
|
-
/** Optional reconnection configuration for Streamable HTTP */
|
|
91
|
-
reconnectionOptions?: StreamableHTTPClientTransportOptions['reconnectionOptions'];
|
|
92
|
-
/** Optional session ID for Streamable HTTP */
|
|
93
|
-
sessionId?: StreamableHTTPClientTransportOptions['sessionId'];
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* Configuration for connecting to an MCP server.
|
|
97
|
-
*
|
|
98
|
-
* Either stdio-based (subprocess) or HTTP-based (remote server). The transport type is
|
|
99
|
-
* automatically detected based on whether `command` or `url` is provided.
|
|
100
|
-
*
|
|
101
|
-
* @example
|
|
102
|
-
* ```typescript
|
|
103
|
-
* // Stdio server
|
|
104
|
-
* const stdioServer: MastraMCPServerDefinition = {
|
|
105
|
-
* command: 'npx',
|
|
106
|
-
* args: ['tsx', 'server.ts'],
|
|
107
|
-
* env: { API_KEY: 'secret' }
|
|
108
|
-
* };
|
|
109
|
-
*
|
|
110
|
-
* // HTTP server
|
|
111
|
-
* const httpServer: MastraMCPServerDefinition = {
|
|
112
|
-
* url: new URL('http://localhost:8080/mcp'),
|
|
113
|
-
* requestInit: {
|
|
114
|
-
* headers: { Authorization: 'Bearer token' }
|
|
115
|
-
* }
|
|
116
|
-
* };
|
|
117
|
-
* ```
|
|
118
|
-
*/
|
|
119
|
-
export type MastraMCPServerDefinition = StdioServerDefinition | HttpServerDefinition;
|
|
120
|
-
/**
|
|
121
|
-
* Options for creating an internal MCP client instance.
|
|
122
|
-
*
|
|
123
|
-
* @internal
|
|
124
|
-
*/
|
|
125
|
-
export type InternalMastraMCPClientOptions = {
|
|
126
|
-
/** Name identifier for this client */
|
|
127
|
-
name: string;
|
|
128
|
-
/** Server connection configuration */
|
|
129
|
-
server: MastraMCPServerDefinition;
|
|
130
|
-
/** Optional client capabilities */
|
|
131
|
-
capabilities?: ClientCapabilities;
|
|
132
|
-
/** Optional client version */
|
|
133
|
-
version?: string;
|
|
134
|
-
/** Optional timeout in milliseconds */
|
|
135
|
-
timeout?: number;
|
|
136
|
-
};
|
|
6
|
+
import { ElicitationClientActions } from './actions/elicitation.js';
|
|
7
|
+
import { ProgressClientActions } from './actions/progress.js';
|
|
8
|
+
import { PromptClientActions } from './actions/prompt.js';
|
|
9
|
+
import { ResourceClientActions } from './actions/resource.js';
|
|
10
|
+
import type { ElicitationHandler, ProgressHandler, InternalMastraMCPClientOptions, Root } from './types.js';
|
|
11
|
+
export type { LoggingLevel, LogMessage, LogHandler, ElicitationHandler, ProgressHandler, MastraMCPServerDefinition, InternalMastraMCPClientOptions, Root, } from './types.js';
|
|
137
12
|
/**
|
|
138
13
|
* Internal MCP client implementation for connecting to a single MCP server.
|
|
139
14
|
*
|
|
@@ -148,15 +23,21 @@ export declare class InternalMastraMCPClient extends MastraBase {
|
|
|
148
23
|
private readonly timeout;
|
|
149
24
|
private logHandler?;
|
|
150
25
|
private enableServerLogs?;
|
|
26
|
+
private enableProgressTracking?;
|
|
151
27
|
private serverConfig;
|
|
152
28
|
private transport?;
|
|
153
29
|
private currentOperationContext;
|
|
30
|
+
private exitHookUnsubscribe?;
|
|
31
|
+
private sigTermHandler?;
|
|
32
|
+
private _roots;
|
|
154
33
|
/** Provides access to resource operations (list, read, subscribe, etc.) */
|
|
155
34
|
readonly resources: ResourceClientActions;
|
|
156
35
|
/** Provides access to prompt operations (list, get, notifications) */
|
|
157
36
|
readonly prompts: PromptClientActions;
|
|
158
37
|
/** Provides access to elicitation operations (request handling) */
|
|
159
38
|
readonly elicitation: ElicitationClientActions;
|
|
39
|
+
/** Provides access to progress operations (notifications) */
|
|
40
|
+
readonly progress: ProgressClientActions;
|
|
160
41
|
/**
|
|
161
42
|
* @internal
|
|
162
43
|
*/
|
|
@@ -169,6 +50,44 @@ export declare class InternalMastraMCPClient extends MastraBase {
|
|
|
169
50
|
*/
|
|
170
51
|
private log;
|
|
171
52
|
private setupLogging;
|
|
53
|
+
/**
|
|
54
|
+
* Set up handler for roots/list requests from the server.
|
|
55
|
+
*
|
|
56
|
+
* Per MCP spec (https://modelcontextprotocol.io/specification/2025-11-25/client/roots):
|
|
57
|
+
* When a server sends a roots/list request, the client responds with the configured roots.
|
|
58
|
+
*/
|
|
59
|
+
private setupRootsHandler;
|
|
60
|
+
/**
|
|
61
|
+
* Get the currently configured roots.
|
|
62
|
+
*
|
|
63
|
+
* @returns Array of configured filesystem roots
|
|
64
|
+
*/
|
|
65
|
+
get roots(): Root[];
|
|
66
|
+
/**
|
|
67
|
+
* Update the list of filesystem roots and notify the server.
|
|
68
|
+
*
|
|
69
|
+
* Per MCP spec, when roots change, the client sends a `notifications/roots/list_changed`
|
|
70
|
+
* notification to inform the server that it should re-fetch the roots list.
|
|
71
|
+
*
|
|
72
|
+
* @param roots - New list of filesystem roots
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* ```typescript
|
|
76
|
+
* await client.setRoots([
|
|
77
|
+
* { uri: 'file:///home/user/projects', name: 'Projects' },
|
|
78
|
+
* { uri: 'file:///tmp', name: 'Temp' }
|
|
79
|
+
* ]);
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
setRoots(roots: Root[]): Promise<void>;
|
|
83
|
+
/**
|
|
84
|
+
* Send a roots/list_changed notification to the server.
|
|
85
|
+
*
|
|
86
|
+
* Per MCP spec, clients that support `listChanged` MUST send this notification
|
|
87
|
+
* when the list of roots changes. The server will then call roots/list to get
|
|
88
|
+
* the updated list.
|
|
89
|
+
*/
|
|
90
|
+
sendRootsListChanged(): Promise<void>;
|
|
172
91
|
private connectStdio;
|
|
173
92
|
private connectHttp;
|
|
174
93
|
private isConnected;
|
|
@@ -195,6 +114,33 @@ export declare class InternalMastraMCPClient extends MastraBase {
|
|
|
195
114
|
*/
|
|
196
115
|
get sessionId(): string | undefined;
|
|
197
116
|
disconnect(): Promise<void>;
|
|
117
|
+
/**
|
|
118
|
+
* Checks if an error indicates a session invalidation that requires reconnection.
|
|
119
|
+
*
|
|
120
|
+
* Common session-related errors include:
|
|
121
|
+
* - "No valid session ID provided" (HTTP 400)
|
|
122
|
+
* - "Server not initialized" (HTTP 400)
|
|
123
|
+
* - "Not connected" (protocol state error)
|
|
124
|
+
* - Connection refused errors
|
|
125
|
+
*
|
|
126
|
+
* @param error - The error to check
|
|
127
|
+
* @returns true if the error indicates a session problem requiring reconnection
|
|
128
|
+
*
|
|
129
|
+
* @internal
|
|
130
|
+
*/
|
|
131
|
+
private isSessionError;
|
|
132
|
+
/**
|
|
133
|
+
* Forces a reconnection to the MCP server by disconnecting and reconnecting.
|
|
134
|
+
*
|
|
135
|
+
* This is useful when the session becomes invalid (e.g., after server restart)
|
|
136
|
+
* and the client needs to establish a fresh connection.
|
|
137
|
+
*
|
|
138
|
+
* @returns Promise resolving when reconnection is complete
|
|
139
|
+
* @throws {Error} If reconnection fails
|
|
140
|
+
*
|
|
141
|
+
* @internal
|
|
142
|
+
*/
|
|
143
|
+
forceReconnect(): Promise<void>;
|
|
198
144
|
listResources(): Promise<z.objectOutputType<{
|
|
199
145
|
_meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
|
|
200
146
|
} & {
|
|
@@ -407,6 +353,7 @@ export declare class InternalMastraMCPClient extends MastraBase {
|
|
|
407
353
|
setResourceUpdatedNotificationHandler(handler: (params: z.infer<typeof ResourceUpdatedNotificationSchema>['params']) => void): void;
|
|
408
354
|
setResourceListChangedNotificationHandler(handler: () => void): void;
|
|
409
355
|
setElicitationRequestHandler(handler: ElicitationHandler): void;
|
|
356
|
+
setProgressNotificationHandler(handler: ProgressHandler): void;
|
|
410
357
|
private convertInputSchema;
|
|
411
358
|
private convertOutputSchema;
|
|
412
359
|
tools(): Promise<Record<string, Tool<any, any, any, any>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client/client.ts"],"names":[],"mappings":"AACA,O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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAO3B;;OAEG;IACG,WAAW,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAO/C;;;;;OAKG;IACG,SAAS,CAAC,EACd,IAAI,EACJ,IAAI,EACJ,OAAO,GACR,EAAE;QACD,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,GAAG,OAAO,CAAC,eAAe,CAAC;IAS5B;;;OAGG;IACH,uCAAuC,CAAC,OAAO,EAAE,MAAM,IAAI,GAAG,IAAI;IAOlE,qCAAqC,CACnC,OAAO,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC,QAAQ,CAAC,KAAK,IAAI,GACrF,IAAI;IAOP,yCAAyC,CAAC,OAAO,EAAE,MAAM,IAAI,GAAG,IAAI;IAOpE,4BAA4B,CAAC,OAAO,EAAE,kBAAkB,GAAG,IAAI;IAQ/D,8BAA8B,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI;YAOhD,kBAAkB;YA0ClB,mBAAmB;IA2C3B,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;CA+FjE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MastraBase } from '@mastra/core/base';
|
|
2
2
|
import type { Tool } from '@mastra/core/tools';
|
|
3
|
-
import type { ElicitRequest, ElicitResult, Prompt, Resource, ResourceTemplate } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import type { ElicitRequest, ElicitResult, ProgressNotification, Prompt, Resource, ResourceTemplate } from '@modelcontextprotocol/sdk/types.js';
|
|
4
4
|
import type { MastraMCPServerDefinition } from './client.js';
|
|
5
5
|
/**
|
|
6
6
|
* Configuration options for creating an MCPClient instance.
|
|
@@ -82,6 +82,28 @@ export declare class MCPClient extends MastraBase {
|
|
|
82
82
|
* ```
|
|
83
83
|
*/
|
|
84
84
|
constructor(args: MCPClientOptions);
|
|
85
|
+
/**
|
|
86
|
+
* Provides access to progress-related operations for tracking long-running operations.
|
|
87
|
+
*
|
|
88
|
+
* Progress tracking allows MCP servers to send updates about the status of ongoing operations,
|
|
89
|
+
* providing real-time feedback to users about task completion and current state.
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* ```typescript
|
|
93
|
+
* // Set up handler for progress updates from a server
|
|
94
|
+
* await mcp.progress.onUpdate('serverName', (params) => {
|
|
95
|
+
* console.log(`Progress: ${params.progress}%`);
|
|
96
|
+
* console.log(`Status: ${params.message}`);
|
|
97
|
+
*
|
|
98
|
+
* if (params.total) {
|
|
99
|
+
* console.log(`Completed ${params.progress} of ${params.total} items`);
|
|
100
|
+
* }
|
|
101
|
+
* });
|
|
102
|
+
* ```
|
|
103
|
+
*/
|
|
104
|
+
get progress(): {
|
|
105
|
+
onUpdate: (serverName: string, handler: (params: ProgressNotification["params"]) => void) => Promise<void>;
|
|
106
|
+
};
|
|
85
107
|
/**
|
|
86
108
|
* Provides access to elicitation-related operations for interactive user input collection.
|
|
87
109
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../src/client/configuration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,MAAM,EACN,QAAQ,EACR,gBAAgB,EACjB,MAAM,oCAAoC,CAAC;AAI5C,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,UAAU,CAAC;AAI1D;;GAEG;AACH,MAAM,WAAW,gBAAgB;IA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,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;QAwBjD;;;;;;;;;;;;;;;;;;;;;WAqBG;oDAMA;YACD,UAAU,EAAE,MAAM,CAAC;YACnB,IAAI,EAAE,MAAM,CAAC;YACb,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;YAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;SAClB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAmBD;;;;;;;;;;;;;;;WAeG;oCAC+B,MAAM,WAAW,MAAM,IAAI;MAmBhE;IAED,OAAO,CAAC,kBAAkB;IAM1B,OAAO,CAAC,MAAM;IAOd;;;;;;;;;;;;;;OAcG;IACU,UAAU;IAsBvB;;;;;;;;;;;;;;;;;;;OAmBG;IACU,SAAS,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IAwB3E;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACU,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IAwB9F;;;;;;;;;;;;;;OAcG;IACH,IAAI,UAAU,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAQvC;YAEa,kBAAkB;YAyDlB,2BAA2B;YAQ3B,eAAe;CAe9B"}
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export type { LoggingLevel, LogMessage, LogHandler, MastraMCPServerDefinition, ElicitationHandler } from './
|
|
1
|
+
export type { LoggingLevel, LogMessage, LogHandler, MastraMCPServerDefinition, ElicitationHandler, ProgressHandler, InternalMastraMCPClientOptions, } from './types.js';
|
|
2
|
+
export * from './client.js';
|
|
2
3
|
export * from './configuration.js';
|
|
4
|
+
export * from './oauth-provider.js';
|
|
3
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACR,YAAY,EACZ,UAAU,EACV,UAAU,EACV,yBAAyB,EACzB,kBAAkB,EAClB,eAAe,EACf,8BAA8B,GACjC,MAAM,SAAS,CAAC;AACjB,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC"}
|