agents 0.0.0-cb5957e → 0.0.0-cccbd0f
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 +5 -3
- package/dist/ai-chat-agent.d.ts +91 -20
- package/dist/ai-chat-agent.js +798 -644
- package/dist/ai-chat-agent.js.map +1 -1
- package/dist/ai-chat-v5-migration-BSiGZmYU.js +155 -0
- package/dist/ai-chat-v5-migration-BSiGZmYU.js.map +1 -0
- package/dist/ai-chat-v5-migration.d.ts +7 -4
- package/dist/ai-chat-v5-migration.js +3 -20
- package/dist/ai-react.d.ts +19 -24
- package/dist/ai-react.js +393 -349
- package/dist/ai-react.js.map +1 -1
- package/dist/ai-types-81H_-Uxh.d.ts +103 -0
- package/dist/ai-types-CrMqkwc_.js +24 -0
- package/dist/ai-types-CrMqkwc_.js.map +1 -0
- package/dist/ai-types.d.ts +6 -92
- package/dist/ai-types.js +3 -8
- package/dist/cli.d.ts +8 -0
- package/dist/cli.js +27 -0
- package/dist/cli.js.map +1 -0
- package/dist/client-B3SR12TQ.js +117 -0
- package/dist/client-B3SR12TQ.js.map +1 -0
- package/dist/client-BAQA84dr.d.ts +104 -0
- package/dist/client-BZ-xTxF5.js +901 -0
- package/dist/client-BZ-xTxF5.js.map +1 -0
- package/dist/client-ctTw3KHG.d.ts +1440 -0
- package/dist/client.d.ts +11 -92
- package/dist/client.js +4 -13
- package/dist/codemode/ai.d.ts +19 -17
- package/dist/codemode/ai.js +90 -5051
- package/dist/codemode/ai.js.map +1 -1
- package/dist/do-oauth-client-provider-Cs9QpXYp.js +93 -0
- package/dist/do-oauth-client-provider-Cs9QpXYp.js.map +1 -0
- package/dist/do-oauth-client-provider-UhQDpDb8.d.ts +134 -0
- package/dist/index-BUle9RiP.d.ts +58 -0
- package/dist/index-D2dnUH0r.d.ts +578 -0
- package/dist/index.d.ts +55 -542
- package/dist/index.js +7 -32
- package/dist/mcp/client.d.ts +4 -12
- package/dist/mcp/client.js +4 -10
- package/dist/mcp/do-oauth-client-provider.d.ts +2 -42
- package/dist/mcp/do-oauth-client-provider.js +3 -8
- package/dist/mcp/index.d.ts +190 -76
- package/dist/mcp/index.js +1428 -1080
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/x402.d.ts +22 -27
- package/dist/mcp/x402.js +190 -3187
- package/dist/mcp/x402.js.map +1 -1
- package/dist/{mcp-BH1fJeiU.d.ts → mcp-BwPscEiF.d.ts} +6 -3
- package/dist/observability/index.d.ts +3 -34
- package/dist/observability/index.js +7 -12
- package/dist/react-B_ENAdCe.d.ts +113 -0
- package/dist/react.d.ts +10 -127
- package/dist/react.js +173 -200
- package/dist/react.js.map +1 -1
- package/dist/schedule.d.ts +13 -10
- package/dist/schedule.js +43 -33
- package/dist/schedule.js.map +1 -1
- package/dist/serializable-faDkMCai.d.ts +39 -0
- package/dist/serializable.d.ts +7 -32
- package/dist/serializable.js +1 -1
- package/dist/src-C6rC6ZpH.js +1248 -0
- package/dist/src-C6rC6ZpH.js.map +1 -0
- package/package.json +58 -32
- package/dist/_esm-LV5FJ3HK.js +0 -3922
- package/dist/_esm-LV5FJ3HK.js.map +0 -1
- package/dist/ai-chat-v5-migration.js.map +0 -1
- package/dist/ai-types.js.map +0 -1
- package/dist/ccip-CMBYN64O.js +0 -15
- package/dist/ccip-CMBYN64O.js.map +0 -1
- package/dist/chunk-254F4GDT.js +0 -1343
- package/dist/chunk-254F4GDT.js.map +0 -1
- package/dist/chunk-3OT2NNEW.js +0 -941
- package/dist/chunk-3OT2NNEW.js.map +0 -1
- package/dist/chunk-5Y6BEZDY.js +0 -276
- package/dist/chunk-5Y6BEZDY.js.map +0 -1
- package/dist/chunk-BER7KXUJ.js +0 -18
- package/dist/chunk-BER7KXUJ.js.map +0 -1
- package/dist/chunk-JJBFIGUC.js +0 -5202
- package/dist/chunk-JJBFIGUC.js.map +0 -1
- package/dist/chunk-PR4QN5HX.js +0 -43
- package/dist/chunk-PR4QN5HX.js.map +0 -1
- package/dist/chunk-QEVM4BVL.js +0 -116
- package/dist/chunk-QEVM4BVL.js.map +0 -1
- package/dist/chunk-TYAY6AU6.js +0 -159
- package/dist/chunk-TYAY6AU6.js.map +0 -1
- package/dist/chunk-UJVEAURM.js +0 -150
- package/dist/chunk-UJVEAURM.js.map +0 -1
- package/dist/chunk-Z44WASMA.js +0 -114
- package/dist/chunk-Z44WASMA.js.map +0 -1
- package/dist/client-DVoPb3-C.d.ts +0 -5120
- package/dist/client.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/mcp/client.js.map +0 -1
- package/dist/mcp/do-oauth-client-provider.js.map +0 -1
- package/dist/observability/index.js.map +0 -1
- package/dist/secp256k1-M22GZP2U.js +0 -2193
- package/dist/secp256k1-M22GZP2U.js.map +0 -1
- package/dist/serializable.js.map +0 -1
- package/src/index.ts +0 -2031
|
@@ -0,0 +1,1440 @@
|
|
|
1
|
+
import { t as MCPObservabilityEvent } from "./mcp-BwPscEiF.js";
|
|
2
|
+
import {
|
|
3
|
+
i as MCPServerRow,
|
|
4
|
+
r as MCPClientStorage,
|
|
5
|
+
t as AgentsOAuthProvider
|
|
6
|
+
} from "./do-oauth-client-provider-UhQDpDb8.js";
|
|
7
|
+
import { Client } from "@modelcontextprotocol/sdk/client/index.js";
|
|
8
|
+
import {
|
|
9
|
+
SSEClientTransport,
|
|
10
|
+
SSEClientTransportOptions
|
|
11
|
+
} from "@modelcontextprotocol/sdk/client/sse.js";
|
|
12
|
+
import {
|
|
13
|
+
StreamableHTTPClientTransport,
|
|
14
|
+
StreamableHTTPClientTransportOptions
|
|
15
|
+
} from "@modelcontextprotocol/sdk/client/streamableHttp.js";
|
|
16
|
+
import {
|
|
17
|
+
CallToolRequest,
|
|
18
|
+
CallToolResultSchema,
|
|
19
|
+
CompatibilityCallToolResultSchema,
|
|
20
|
+
ElicitRequest,
|
|
21
|
+
ElicitResult,
|
|
22
|
+
GetPromptRequest,
|
|
23
|
+
Prompt,
|
|
24
|
+
ReadResourceRequest,
|
|
25
|
+
Resource,
|
|
26
|
+
ResourceTemplate,
|
|
27
|
+
ServerCapabilities,
|
|
28
|
+
Tool
|
|
29
|
+
} from "@modelcontextprotocol/sdk/types.js";
|
|
30
|
+
import * as ai0 from "ai";
|
|
31
|
+
import { ToolSet } from "ai";
|
|
32
|
+
import * as zod0 from "zod";
|
|
33
|
+
import { RequestOptions } from "@modelcontextprotocol/sdk/shared/protocol.js";
|
|
34
|
+
|
|
35
|
+
//#region src/core/events.d.ts
|
|
36
|
+
interface Disposable {
|
|
37
|
+
dispose(): void;
|
|
38
|
+
}
|
|
39
|
+
type Event<T> = (listener: (e: T) => void) => Disposable;
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region src/mcp/types.d.ts
|
|
42
|
+
type MaybePromise<T> = T | Promise<T>;
|
|
43
|
+
type BaseTransportType = "sse" | "streamable-http";
|
|
44
|
+
type TransportType = BaseTransportType | "auto";
|
|
45
|
+
interface CORSOptions {
|
|
46
|
+
origin?: string;
|
|
47
|
+
methods?: string;
|
|
48
|
+
headers?: string;
|
|
49
|
+
maxAge?: number;
|
|
50
|
+
exposeHeaders?: string;
|
|
51
|
+
}
|
|
52
|
+
interface ServeOptions {
|
|
53
|
+
binding?: string;
|
|
54
|
+
corsOptions?: CORSOptions;
|
|
55
|
+
transport?: BaseTransportType;
|
|
56
|
+
jurisdiction?: DurableObjectJurisdiction;
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
//#region src/mcp/client-connection.d.ts
|
|
60
|
+
/**
|
|
61
|
+
* Connection state machine for MCP client connections.
|
|
62
|
+
*
|
|
63
|
+
* State transitions:
|
|
64
|
+
* - Non-OAuth: init() → "connecting" → "discovering" → "ready"
|
|
65
|
+
* - OAuth: init() → "authenticating" → (callback) → "connecting" → "discovering" → "ready"
|
|
66
|
+
* - Any state can transition to "failed" on error
|
|
67
|
+
*/
|
|
68
|
+
type MCPConnectionState =
|
|
69
|
+
/**
|
|
70
|
+
* Waiting for OAuth authorization to complete.
|
|
71
|
+
* Server requires OAuth and user must complete the authorization flow.
|
|
72
|
+
* Next state: "connecting" (after handleCallbackRequest + establishConnection)
|
|
73
|
+
*/
|
|
74
|
+
| "authenticating"
|
|
75
|
+
/**
|
|
76
|
+
* Establishing transport connection to MCP server.
|
|
77
|
+
* OAuth (if required) is complete, now connecting to the actual MCP endpoint.
|
|
78
|
+
* Next state: "discovering" (after transport connected)
|
|
79
|
+
*/
|
|
80
|
+
| "connecting"
|
|
81
|
+
/**
|
|
82
|
+
* Fully connected and ready to use.
|
|
83
|
+
* Tools, resources, and prompts have been discovered and registered.
|
|
84
|
+
* This is the terminal success state.
|
|
85
|
+
*/
|
|
86
|
+
| "ready"
|
|
87
|
+
/**
|
|
88
|
+
* Discovering server capabilities (tools, resources, prompts).
|
|
89
|
+
* Transport is connected, now fetching available capabilities via MCP protocol.
|
|
90
|
+
* Next state: "ready" (after capabilities fetched)
|
|
91
|
+
*/
|
|
92
|
+
| "discovering"
|
|
93
|
+
/**
|
|
94
|
+
* Connection failed at some point.
|
|
95
|
+
* Check observability events for error details.
|
|
96
|
+
* This is a terminal error state.
|
|
97
|
+
*/
|
|
98
|
+
| "failed";
|
|
99
|
+
type MCPTransportOptions = (
|
|
100
|
+
| SSEClientTransportOptions
|
|
101
|
+
| StreamableHTTPClientTransportOptions
|
|
102
|
+
) & {
|
|
103
|
+
authProvider?: AgentsOAuthProvider;
|
|
104
|
+
type?: TransportType;
|
|
105
|
+
};
|
|
106
|
+
declare class MCPClientConnection {
|
|
107
|
+
url: URL;
|
|
108
|
+
options: {
|
|
109
|
+
transport: MCPTransportOptions;
|
|
110
|
+
client: ConstructorParameters<typeof Client>[1];
|
|
111
|
+
};
|
|
112
|
+
client: Client;
|
|
113
|
+
connectionState: MCPConnectionState;
|
|
114
|
+
lastConnectedTransport: BaseTransportType | undefined;
|
|
115
|
+
instructions?: string;
|
|
116
|
+
tools: Tool[];
|
|
117
|
+
prompts: Prompt[];
|
|
118
|
+
resources: Resource[];
|
|
119
|
+
resourceTemplates: ResourceTemplate[];
|
|
120
|
+
serverCapabilities: ServerCapabilities | undefined;
|
|
121
|
+
private readonly _onObservabilityEvent;
|
|
122
|
+
readonly onObservabilityEvent: Event<MCPObservabilityEvent>;
|
|
123
|
+
constructor(
|
|
124
|
+
url: URL,
|
|
125
|
+
info: ConstructorParameters<typeof Client>[0],
|
|
126
|
+
options?: {
|
|
127
|
+
transport: MCPTransportOptions;
|
|
128
|
+
client: ConstructorParameters<typeof Client>[1];
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
/**
|
|
132
|
+
* Initialize a client connection
|
|
133
|
+
*
|
|
134
|
+
* @returns
|
|
135
|
+
*/
|
|
136
|
+
init(): Promise<void>;
|
|
137
|
+
/**
|
|
138
|
+
* Finish OAuth by probing transports based on configured type.
|
|
139
|
+
* - Explicit: finish on that transport
|
|
140
|
+
* - Auto: try streamable-http, then sse on 404/405/Not Implemented
|
|
141
|
+
*/
|
|
142
|
+
private finishAuthProbe;
|
|
143
|
+
/**
|
|
144
|
+
* Complete OAuth authorization
|
|
145
|
+
*/
|
|
146
|
+
completeAuthorization(code: string): Promise<void>;
|
|
147
|
+
/**
|
|
148
|
+
* Establish connection after successful authorization
|
|
149
|
+
*/
|
|
150
|
+
establishConnection(): Promise<void>;
|
|
151
|
+
/**
|
|
152
|
+
* Discover server capabilities and register tools, resources, prompts, and templates
|
|
153
|
+
*/
|
|
154
|
+
private discoverAndRegister;
|
|
155
|
+
/**
|
|
156
|
+
* Notification handler registration
|
|
157
|
+
*/
|
|
158
|
+
registerTools(): Promise<Tool[]>;
|
|
159
|
+
registerResources(): Promise<Resource[]>;
|
|
160
|
+
registerPrompts(): Promise<Prompt[]>;
|
|
161
|
+
registerResourceTemplates(): Promise<ResourceTemplate[]>;
|
|
162
|
+
fetchTools(): Promise<
|
|
163
|
+
{
|
|
164
|
+
name: string;
|
|
165
|
+
inputSchema: {
|
|
166
|
+
type: "object";
|
|
167
|
+
required?: string[] | undefined;
|
|
168
|
+
properties?:
|
|
169
|
+
| {
|
|
170
|
+
[x: string]: object;
|
|
171
|
+
}
|
|
172
|
+
| undefined;
|
|
173
|
+
};
|
|
174
|
+
_meta?:
|
|
175
|
+
| {
|
|
176
|
+
[x: string]: unknown;
|
|
177
|
+
}
|
|
178
|
+
| undefined;
|
|
179
|
+
icons?:
|
|
180
|
+
| {
|
|
181
|
+
src: string;
|
|
182
|
+
mimeType?: string | undefined | undefined;
|
|
183
|
+
sizes?: string[] | undefined;
|
|
184
|
+
}[]
|
|
185
|
+
| undefined;
|
|
186
|
+
title?: string | undefined | undefined;
|
|
187
|
+
description?: string | undefined | undefined;
|
|
188
|
+
outputSchema?:
|
|
189
|
+
| {
|
|
190
|
+
type: "object";
|
|
191
|
+
required?: string[] | undefined;
|
|
192
|
+
properties?:
|
|
193
|
+
| {
|
|
194
|
+
[x: string]: object;
|
|
195
|
+
}
|
|
196
|
+
| undefined;
|
|
197
|
+
additionalProperties?: boolean | undefined | undefined;
|
|
198
|
+
}
|
|
199
|
+
| undefined;
|
|
200
|
+
annotations?:
|
|
201
|
+
| {
|
|
202
|
+
title?: string | undefined | undefined;
|
|
203
|
+
readOnlyHint?: boolean | undefined | undefined;
|
|
204
|
+
destructiveHint?: boolean | undefined | undefined;
|
|
205
|
+
idempotentHint?: boolean | undefined | undefined;
|
|
206
|
+
openWorldHint?: boolean | undefined | undefined;
|
|
207
|
+
}
|
|
208
|
+
| undefined;
|
|
209
|
+
}[]
|
|
210
|
+
>;
|
|
211
|
+
fetchResources(): Promise<
|
|
212
|
+
{
|
|
213
|
+
name: string;
|
|
214
|
+
uri: string;
|
|
215
|
+
_meta?:
|
|
216
|
+
| {
|
|
217
|
+
[x: string]: unknown;
|
|
218
|
+
}
|
|
219
|
+
| undefined;
|
|
220
|
+
mimeType?: string | undefined | undefined;
|
|
221
|
+
icons?:
|
|
222
|
+
| {
|
|
223
|
+
src: string;
|
|
224
|
+
mimeType?: string | undefined | undefined;
|
|
225
|
+
sizes?: string[] | undefined;
|
|
226
|
+
}[]
|
|
227
|
+
| undefined;
|
|
228
|
+
title?: string | undefined | undefined;
|
|
229
|
+
description?: string | undefined | undefined;
|
|
230
|
+
}[]
|
|
231
|
+
>;
|
|
232
|
+
fetchPrompts(): Promise<
|
|
233
|
+
{
|
|
234
|
+
name: string;
|
|
235
|
+
_meta?:
|
|
236
|
+
| {
|
|
237
|
+
[x: string]: unknown;
|
|
238
|
+
}
|
|
239
|
+
| undefined;
|
|
240
|
+
icons?:
|
|
241
|
+
| {
|
|
242
|
+
src: string;
|
|
243
|
+
mimeType?: string | undefined | undefined;
|
|
244
|
+
sizes?: string[] | undefined;
|
|
245
|
+
}[]
|
|
246
|
+
| undefined;
|
|
247
|
+
title?: string | undefined | undefined;
|
|
248
|
+
description?: string | undefined | undefined;
|
|
249
|
+
arguments?:
|
|
250
|
+
| {
|
|
251
|
+
name: string;
|
|
252
|
+
description?: string | undefined | undefined;
|
|
253
|
+
required?: boolean | undefined | undefined;
|
|
254
|
+
}[]
|
|
255
|
+
| undefined;
|
|
256
|
+
}[]
|
|
257
|
+
>;
|
|
258
|
+
fetchResourceTemplates(): Promise<
|
|
259
|
+
{
|
|
260
|
+
name: string;
|
|
261
|
+
uriTemplate: string;
|
|
262
|
+
_meta?:
|
|
263
|
+
| {
|
|
264
|
+
[x: string]: unknown;
|
|
265
|
+
}
|
|
266
|
+
| undefined;
|
|
267
|
+
mimeType?: string | undefined | undefined;
|
|
268
|
+
icons?:
|
|
269
|
+
| {
|
|
270
|
+
src: string;
|
|
271
|
+
mimeType?: string | undefined | undefined;
|
|
272
|
+
sizes?: string[] | undefined;
|
|
273
|
+
}[]
|
|
274
|
+
| undefined;
|
|
275
|
+
title?: string | undefined | undefined;
|
|
276
|
+
description?: string | undefined | undefined;
|
|
277
|
+
}[]
|
|
278
|
+
>;
|
|
279
|
+
/**
|
|
280
|
+
* Handle elicitation request from server
|
|
281
|
+
* Automatically uses the Agent's built-in elicitation handling if available
|
|
282
|
+
*/
|
|
283
|
+
handleElicitationRequest(_request: ElicitRequest): Promise<ElicitResult>;
|
|
284
|
+
/**
|
|
285
|
+
* Get the transport for the client
|
|
286
|
+
* @param transportType - The transport type to get
|
|
287
|
+
* @returns The transport for the client
|
|
288
|
+
*/
|
|
289
|
+
getTransport(
|
|
290
|
+
transportType: BaseTransportType
|
|
291
|
+
): SSEClientTransport | StreamableHTTPClientTransport;
|
|
292
|
+
private tryConnect;
|
|
293
|
+
private _capabilityErrorHandler;
|
|
294
|
+
}
|
|
295
|
+
//#endregion
|
|
296
|
+
//#region src/mcp/client.d.ts
|
|
297
|
+
/**
|
|
298
|
+
* Options that can be stored in the server_options column
|
|
299
|
+
* This is what gets JSON.stringify'd and stored in the database
|
|
300
|
+
*/
|
|
301
|
+
type MCPServerOptions = {
|
|
302
|
+
client?: ConstructorParameters<typeof Client>[1];
|
|
303
|
+
transport?: {
|
|
304
|
+
headers?: HeadersInit;
|
|
305
|
+
type?: TransportType;
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
/**
|
|
309
|
+
* Options for registering an MCP server
|
|
310
|
+
*/
|
|
311
|
+
type RegisterServerOptions = {
|
|
312
|
+
url: string;
|
|
313
|
+
name: string;
|
|
314
|
+
callbackUrl: string;
|
|
315
|
+
client?: ConstructorParameters<typeof Client>[1];
|
|
316
|
+
transport?: MCPTransportOptions;
|
|
317
|
+
authUrl?: string;
|
|
318
|
+
clientId?: string;
|
|
319
|
+
};
|
|
320
|
+
/**
|
|
321
|
+
* Result of attempting to connect to an MCP server.
|
|
322
|
+
* Returns the current connection state after the operation.
|
|
323
|
+
*
|
|
324
|
+
* - "ready": Connection established and ready to use (non-OAuth)
|
|
325
|
+
* - "authenticating": OAuth required, user must visit authUrl to authorize
|
|
326
|
+
*/
|
|
327
|
+
type MCPConnectionResult =
|
|
328
|
+
| {
|
|
329
|
+
state: "ready";
|
|
330
|
+
}
|
|
331
|
+
| {
|
|
332
|
+
state: "authenticating";
|
|
333
|
+
authUrl: string;
|
|
334
|
+
clientId?: string;
|
|
335
|
+
};
|
|
336
|
+
type MCPClientOAuthCallbackConfig = {
|
|
337
|
+
successRedirect?: string;
|
|
338
|
+
errorRedirect?: string;
|
|
339
|
+
customHandler?: (result: MCPClientOAuthResult) => Response;
|
|
340
|
+
};
|
|
341
|
+
type MCPClientOAuthResult = {
|
|
342
|
+
serverId: string;
|
|
343
|
+
authSuccess: boolean;
|
|
344
|
+
authError?: string;
|
|
345
|
+
};
|
|
346
|
+
type MCPClientManagerOptions = {
|
|
347
|
+
storage: MCPClientStorage;
|
|
348
|
+
};
|
|
349
|
+
/**
|
|
350
|
+
* Utility class that aggregates multiple MCP clients into one
|
|
351
|
+
*/
|
|
352
|
+
declare class MCPClientManager {
|
|
353
|
+
private _name;
|
|
354
|
+
private _version;
|
|
355
|
+
mcpConnections: Record<string, MCPClientConnection>;
|
|
356
|
+
private _didWarnAboutUnstableGetAITools;
|
|
357
|
+
private _oauthCallbackConfig?;
|
|
358
|
+
private _connectionDisposables;
|
|
359
|
+
private _storage;
|
|
360
|
+
private _isRestored;
|
|
361
|
+
private readonly _onObservabilityEvent;
|
|
362
|
+
readonly onObservabilityEvent: Event<MCPObservabilityEvent>;
|
|
363
|
+
private readonly _onServerStateChanged;
|
|
364
|
+
/**
|
|
365
|
+
* Event that fires whenever any MCP server state changes (registered, connected, removed, etc.)
|
|
366
|
+
* This is useful for broadcasting server state to clients.
|
|
367
|
+
*/
|
|
368
|
+
readonly onServerStateChanged: Event<void>;
|
|
369
|
+
/**
|
|
370
|
+
* @param _name Name of the MCP client
|
|
371
|
+
* @param _version Version of the MCP Client
|
|
372
|
+
* @param options Storage adapter for persisting MCP server state
|
|
373
|
+
*/
|
|
374
|
+
constructor(
|
|
375
|
+
_name: string,
|
|
376
|
+
_version: string,
|
|
377
|
+
options: MCPClientManagerOptions
|
|
378
|
+
);
|
|
379
|
+
jsonSchema: typeof ai0.jsonSchema | undefined;
|
|
380
|
+
/**
|
|
381
|
+
* Create an auth provider for a server
|
|
382
|
+
* @internal
|
|
383
|
+
*/
|
|
384
|
+
private createAuthProvider;
|
|
385
|
+
/**
|
|
386
|
+
* Restore MCP server connections from storage
|
|
387
|
+
* This method is called on Agent initialization to restore previously connected servers
|
|
388
|
+
*
|
|
389
|
+
* @param clientName Name to use for OAuth client (typically the agent instance name)
|
|
390
|
+
*/
|
|
391
|
+
restoreConnectionsFromStorage(clientName: string): Promise<void>;
|
|
392
|
+
/**
|
|
393
|
+
* Connect to and register an MCP server
|
|
394
|
+
*
|
|
395
|
+
* @deprecated This method is maintained for backward compatibility.
|
|
396
|
+
* For new code, use registerServer() and connectToServer() separately.
|
|
397
|
+
*
|
|
398
|
+
* @param url Server URL
|
|
399
|
+
* @param options Connection options
|
|
400
|
+
* @returns Object with server ID, auth URL (if OAuth), and client ID (if OAuth)
|
|
401
|
+
*/
|
|
402
|
+
connect(
|
|
403
|
+
url: string,
|
|
404
|
+
options?: {
|
|
405
|
+
reconnect?: {
|
|
406
|
+
id: string;
|
|
407
|
+
oauthClientId?: string;
|
|
408
|
+
oauthCode?: string;
|
|
409
|
+
};
|
|
410
|
+
transport?: MCPTransportOptions;
|
|
411
|
+
client?: ConstructorParameters<typeof Client>[1];
|
|
412
|
+
}
|
|
413
|
+
): Promise<{
|
|
414
|
+
id: string;
|
|
415
|
+
authUrl?: string;
|
|
416
|
+
clientId?: string;
|
|
417
|
+
}>;
|
|
418
|
+
/**
|
|
419
|
+
* Create an in-memory connection object and set up observability
|
|
420
|
+
* Does NOT save to storage - use registerServer() for that
|
|
421
|
+
*/
|
|
422
|
+
private createConnection;
|
|
423
|
+
/**
|
|
424
|
+
* Register an MCP server connection without connecting
|
|
425
|
+
* Creates the connection object, sets up observability, and saves to storage
|
|
426
|
+
*
|
|
427
|
+
* @param id Server ID
|
|
428
|
+
* @param options Registration options including URL, name, callback URL, and connection config
|
|
429
|
+
* @returns Server ID
|
|
430
|
+
*/
|
|
431
|
+
registerServer(id: string, options: RegisterServerOptions): Promise<string>;
|
|
432
|
+
/**
|
|
433
|
+
* Connect to an already registered MCP server and initialize the connection.
|
|
434
|
+
*
|
|
435
|
+
* For OAuth servers, this returns `{ state: "authenticating", authUrl, clientId? }`
|
|
436
|
+
* without establishing the connection. The user must complete the OAuth flow via
|
|
437
|
+
* the authUrl, which will trigger a callback handled by `handleCallbackRequest()`.
|
|
438
|
+
*
|
|
439
|
+
* For non-OAuth servers, this establishes the connection immediately and returns
|
|
440
|
+
* `{ state: "ready" }`.
|
|
441
|
+
*
|
|
442
|
+
* Updates storage with auth URL and client ID after connection.
|
|
443
|
+
*
|
|
444
|
+
* @param id Server ID (must be registered first via registerServer())
|
|
445
|
+
* @returns Connection result with current state and OAuth info (if applicable)
|
|
446
|
+
*/
|
|
447
|
+
connectToServer(id: string): Promise<MCPConnectionResult>;
|
|
448
|
+
isCallbackRequest(req: Request): Promise<boolean>;
|
|
449
|
+
handleCallbackRequest(req: Request): Promise<
|
|
450
|
+
| {
|
|
451
|
+
serverId: string;
|
|
452
|
+
authSuccess: boolean;
|
|
453
|
+
authError: string;
|
|
454
|
+
}
|
|
455
|
+
| {
|
|
456
|
+
serverId: string;
|
|
457
|
+
authSuccess: boolean;
|
|
458
|
+
authError?: undefined;
|
|
459
|
+
}
|
|
460
|
+
>;
|
|
461
|
+
/**
|
|
462
|
+
* Establish connection in the background after OAuth completion
|
|
463
|
+
* This method is called asynchronously and doesn't block the OAuth callback response
|
|
464
|
+
* @param serverId The server ID to establish connection for
|
|
465
|
+
*/
|
|
466
|
+
establishConnection(serverId: string): Promise<void>;
|
|
467
|
+
/**
|
|
468
|
+
* Configure OAuth callback handling
|
|
469
|
+
* @param config OAuth callback configuration
|
|
470
|
+
*/
|
|
471
|
+
configureOAuthCallback(config: MCPClientOAuthCallbackConfig): void;
|
|
472
|
+
/**
|
|
473
|
+
* Get the current OAuth callback configuration
|
|
474
|
+
* @returns The current OAuth callback configuration
|
|
475
|
+
*/
|
|
476
|
+
getOAuthCallbackConfig(): MCPClientOAuthCallbackConfig | undefined;
|
|
477
|
+
/**
|
|
478
|
+
* @returns namespaced list of tools
|
|
479
|
+
*/
|
|
480
|
+
listTools(): NamespacedData["tools"];
|
|
481
|
+
/**
|
|
482
|
+
* Lazy-loads the jsonSchema function from the AI SDK.
|
|
483
|
+
*
|
|
484
|
+
* This defers importing the "ai" package until it's actually needed, which helps reduce
|
|
485
|
+
* initial bundle size and startup time. The jsonSchema function is required for converting
|
|
486
|
+
* MCP tools into AI SDK tool definitions via getAITools().
|
|
487
|
+
*
|
|
488
|
+
* @internal This method is for internal use only. It's automatically called before operations
|
|
489
|
+
* that need jsonSchema (like getAITools() or OAuth flows). External consumers should not need
|
|
490
|
+
* to call this directly.
|
|
491
|
+
*/
|
|
492
|
+
ensureJsonSchema(): Promise<void>;
|
|
493
|
+
/**
|
|
494
|
+
* @returns a set of tools that you can use with the AI SDK
|
|
495
|
+
*/
|
|
496
|
+
getAITools(): ToolSet;
|
|
497
|
+
/**
|
|
498
|
+
* @deprecated this has been renamed to getAITools(), and unstable_getAITools will be removed in the next major version
|
|
499
|
+
* @returns a set of tools that you can use with the AI SDK
|
|
500
|
+
*/
|
|
501
|
+
unstable_getAITools(): ToolSet;
|
|
502
|
+
/**
|
|
503
|
+
* Closes all connections to MCP servers
|
|
504
|
+
*/
|
|
505
|
+
closeAllConnections(): Promise<void>;
|
|
506
|
+
/**
|
|
507
|
+
* Closes a connection to an MCP server
|
|
508
|
+
* @param id The id of the connection to close
|
|
509
|
+
*/
|
|
510
|
+
closeConnection(id: string): Promise<void>;
|
|
511
|
+
/**
|
|
512
|
+
* Remove an MCP server from storage
|
|
513
|
+
*/
|
|
514
|
+
removeServer(serverId: string): Promise<void>;
|
|
515
|
+
/**
|
|
516
|
+
* List all MCP servers from storage
|
|
517
|
+
*/
|
|
518
|
+
listServers(): Promise<MCPServerRow[]>;
|
|
519
|
+
/**
|
|
520
|
+
* Dispose the manager and all resources.
|
|
521
|
+
*/
|
|
522
|
+
dispose(): Promise<void>;
|
|
523
|
+
/**
|
|
524
|
+
* @returns namespaced list of prompts
|
|
525
|
+
*/
|
|
526
|
+
listPrompts(): NamespacedData["prompts"];
|
|
527
|
+
/**
|
|
528
|
+
* @returns namespaced list of tools
|
|
529
|
+
*/
|
|
530
|
+
listResources(): NamespacedData["resources"];
|
|
531
|
+
/**
|
|
532
|
+
* @returns namespaced list of resource templates
|
|
533
|
+
*/
|
|
534
|
+
listResourceTemplates(): NamespacedData["resourceTemplates"];
|
|
535
|
+
/**
|
|
536
|
+
* Namespaced version of callTool
|
|
537
|
+
*/
|
|
538
|
+
callTool(
|
|
539
|
+
params: CallToolRequest["params"] & {
|
|
540
|
+
serverId: string;
|
|
541
|
+
},
|
|
542
|
+
resultSchema?:
|
|
543
|
+
| typeof CallToolResultSchema
|
|
544
|
+
| typeof CompatibilityCallToolResultSchema,
|
|
545
|
+
options?: RequestOptions
|
|
546
|
+
): Promise<
|
|
547
|
+
| zod0.objectOutputType<
|
|
548
|
+
{
|
|
549
|
+
_meta: zod0.ZodOptional<
|
|
550
|
+
zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>
|
|
551
|
+
>;
|
|
552
|
+
} & {
|
|
553
|
+
content: zod0.ZodDefault<
|
|
554
|
+
zod0.ZodArray<
|
|
555
|
+
zod0.ZodUnion<
|
|
556
|
+
[
|
|
557
|
+
zod0.ZodObject<
|
|
558
|
+
{
|
|
559
|
+
type: zod0.ZodLiteral<"text">;
|
|
560
|
+
text: zod0.ZodString;
|
|
561
|
+
_meta: zod0.ZodOptional<
|
|
562
|
+
zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>
|
|
563
|
+
>;
|
|
564
|
+
},
|
|
565
|
+
"strip",
|
|
566
|
+
zod0.ZodTypeAny,
|
|
567
|
+
{
|
|
568
|
+
type: "text";
|
|
569
|
+
text: string;
|
|
570
|
+
_meta?: Record<string, unknown> | undefined;
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
type: "text";
|
|
574
|
+
text: string;
|
|
575
|
+
_meta?: Record<string, unknown> | undefined;
|
|
576
|
+
}
|
|
577
|
+
>,
|
|
578
|
+
zod0.ZodObject<
|
|
579
|
+
{
|
|
580
|
+
type: zod0.ZodLiteral<"image">;
|
|
581
|
+
data: zod0.ZodEffects<zod0.ZodString, string, string>;
|
|
582
|
+
mimeType: zod0.ZodString;
|
|
583
|
+
_meta: zod0.ZodOptional<
|
|
584
|
+
zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>
|
|
585
|
+
>;
|
|
586
|
+
},
|
|
587
|
+
"strip",
|
|
588
|
+
zod0.ZodTypeAny,
|
|
589
|
+
{
|
|
590
|
+
type: "image";
|
|
591
|
+
data: string;
|
|
592
|
+
mimeType: string;
|
|
593
|
+
_meta?: Record<string, unknown> | undefined;
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
type: "image";
|
|
597
|
+
data: string;
|
|
598
|
+
mimeType: string;
|
|
599
|
+
_meta?: Record<string, unknown> | undefined;
|
|
600
|
+
}
|
|
601
|
+
>,
|
|
602
|
+
zod0.ZodObject<
|
|
603
|
+
{
|
|
604
|
+
type: zod0.ZodLiteral<"audio">;
|
|
605
|
+
data: zod0.ZodEffects<zod0.ZodString, string, string>;
|
|
606
|
+
mimeType: zod0.ZodString;
|
|
607
|
+
_meta: zod0.ZodOptional<
|
|
608
|
+
zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>
|
|
609
|
+
>;
|
|
610
|
+
},
|
|
611
|
+
"strip",
|
|
612
|
+
zod0.ZodTypeAny,
|
|
613
|
+
{
|
|
614
|
+
type: "audio";
|
|
615
|
+
data: string;
|
|
616
|
+
mimeType: string;
|
|
617
|
+
_meta?: Record<string, unknown> | undefined;
|
|
618
|
+
},
|
|
619
|
+
{
|
|
620
|
+
type: "audio";
|
|
621
|
+
data: string;
|
|
622
|
+
mimeType: string;
|
|
623
|
+
_meta?: Record<string, unknown> | undefined;
|
|
624
|
+
}
|
|
625
|
+
>,
|
|
626
|
+
zod0.ZodObject<
|
|
627
|
+
zod0.objectUtil.extendShape<
|
|
628
|
+
zod0.objectUtil.extendShape<
|
|
629
|
+
zod0.objectUtil.extendShape<
|
|
630
|
+
{
|
|
631
|
+
name: zod0.ZodString;
|
|
632
|
+
title: zod0.ZodOptional<zod0.ZodString>;
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
uri: zod0.ZodString;
|
|
636
|
+
description: zod0.ZodOptional<zod0.ZodString>;
|
|
637
|
+
mimeType: zod0.ZodOptional<zod0.ZodString>;
|
|
638
|
+
_meta: zod0.ZodOptional<
|
|
639
|
+
zod0.ZodObject<
|
|
640
|
+
{},
|
|
641
|
+
"passthrough",
|
|
642
|
+
zod0.ZodTypeAny,
|
|
643
|
+
zod0.objectOutputType<
|
|
644
|
+
{},
|
|
645
|
+
zod0.ZodTypeAny,
|
|
646
|
+
"passthrough"
|
|
647
|
+
>,
|
|
648
|
+
zod0.objectInputType<
|
|
649
|
+
{},
|
|
650
|
+
zod0.ZodTypeAny,
|
|
651
|
+
"passthrough"
|
|
652
|
+
>
|
|
653
|
+
>
|
|
654
|
+
>;
|
|
655
|
+
}
|
|
656
|
+
>,
|
|
657
|
+
{
|
|
658
|
+
icons: zod0.ZodOptional<
|
|
659
|
+
zod0.ZodArray<
|
|
660
|
+
zod0.ZodObject<
|
|
661
|
+
{
|
|
662
|
+
src: zod0.ZodString;
|
|
663
|
+
mimeType: zod0.ZodOptional<zod0.ZodString>;
|
|
664
|
+
sizes: zod0.ZodOptional<
|
|
665
|
+
zod0.ZodArray<zod0.ZodString, "many">
|
|
666
|
+
>;
|
|
667
|
+
},
|
|
668
|
+
"strip",
|
|
669
|
+
zod0.ZodTypeAny,
|
|
670
|
+
{
|
|
671
|
+
src: string;
|
|
672
|
+
mimeType?: string | undefined;
|
|
673
|
+
sizes?: string[] | undefined;
|
|
674
|
+
},
|
|
675
|
+
{
|
|
676
|
+
src: string;
|
|
677
|
+
mimeType?: string | undefined;
|
|
678
|
+
sizes?: string[] | undefined;
|
|
679
|
+
}
|
|
680
|
+
>,
|
|
681
|
+
"many"
|
|
682
|
+
>
|
|
683
|
+
>;
|
|
684
|
+
}
|
|
685
|
+
>,
|
|
686
|
+
{
|
|
687
|
+
type: zod0.ZodLiteral<"resource_link">;
|
|
688
|
+
}
|
|
689
|
+
>,
|
|
690
|
+
"strip",
|
|
691
|
+
zod0.ZodTypeAny,
|
|
692
|
+
{
|
|
693
|
+
type: "resource_link";
|
|
694
|
+
name: string;
|
|
695
|
+
uri: string;
|
|
696
|
+
_meta?:
|
|
697
|
+
| zod0.objectOutputType<
|
|
698
|
+
{},
|
|
699
|
+
zod0.ZodTypeAny,
|
|
700
|
+
"passthrough"
|
|
701
|
+
>
|
|
702
|
+
| undefined;
|
|
703
|
+
mimeType?: string | undefined;
|
|
704
|
+
icons?:
|
|
705
|
+
| {
|
|
706
|
+
src: string;
|
|
707
|
+
mimeType?: string | undefined;
|
|
708
|
+
sizes?: string[] | undefined;
|
|
709
|
+
}[]
|
|
710
|
+
| undefined;
|
|
711
|
+
title?: string | undefined;
|
|
712
|
+
description?: string | undefined;
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
type: "resource_link";
|
|
716
|
+
name: string;
|
|
717
|
+
uri: string;
|
|
718
|
+
_meta?:
|
|
719
|
+
| zod0.objectInputType<
|
|
720
|
+
{},
|
|
721
|
+
zod0.ZodTypeAny,
|
|
722
|
+
"passthrough"
|
|
723
|
+
>
|
|
724
|
+
| undefined;
|
|
725
|
+
mimeType?: string | undefined;
|
|
726
|
+
icons?:
|
|
727
|
+
| {
|
|
728
|
+
src: string;
|
|
729
|
+
mimeType?: string | undefined;
|
|
730
|
+
sizes?: string[] | undefined;
|
|
731
|
+
}[]
|
|
732
|
+
| undefined;
|
|
733
|
+
title?: string | undefined;
|
|
734
|
+
description?: string | undefined;
|
|
735
|
+
}
|
|
736
|
+
>,
|
|
737
|
+
zod0.ZodObject<
|
|
738
|
+
{
|
|
739
|
+
type: zod0.ZodLiteral<"resource">;
|
|
740
|
+
resource: zod0.ZodUnion<
|
|
741
|
+
[
|
|
742
|
+
zod0.ZodObject<
|
|
743
|
+
zod0.objectUtil.extendShape<
|
|
744
|
+
{
|
|
745
|
+
uri: zod0.ZodString;
|
|
746
|
+
mimeType: zod0.ZodOptional<zod0.ZodString>;
|
|
747
|
+
_meta: zod0.ZodOptional<
|
|
748
|
+
zod0.ZodRecord<
|
|
749
|
+
zod0.ZodString,
|
|
750
|
+
zod0.ZodUnknown
|
|
751
|
+
>
|
|
752
|
+
>;
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
text: zod0.ZodString;
|
|
756
|
+
}
|
|
757
|
+
>,
|
|
758
|
+
"strip",
|
|
759
|
+
zod0.ZodTypeAny,
|
|
760
|
+
{
|
|
761
|
+
uri: string;
|
|
762
|
+
text: string;
|
|
763
|
+
_meta?: Record<string, unknown> | undefined;
|
|
764
|
+
mimeType?: string | undefined;
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
uri: string;
|
|
768
|
+
text: string;
|
|
769
|
+
_meta?: Record<string, unknown> | undefined;
|
|
770
|
+
mimeType?: string | undefined;
|
|
771
|
+
}
|
|
772
|
+
>,
|
|
773
|
+
zod0.ZodObject<
|
|
774
|
+
zod0.objectUtil.extendShape<
|
|
775
|
+
{
|
|
776
|
+
uri: zod0.ZodString;
|
|
777
|
+
mimeType: zod0.ZodOptional<zod0.ZodString>;
|
|
778
|
+
_meta: zod0.ZodOptional<
|
|
779
|
+
zod0.ZodRecord<
|
|
780
|
+
zod0.ZodString,
|
|
781
|
+
zod0.ZodUnknown
|
|
782
|
+
>
|
|
783
|
+
>;
|
|
784
|
+
},
|
|
785
|
+
{
|
|
786
|
+
blob: zod0.ZodEffects<
|
|
787
|
+
zod0.ZodString,
|
|
788
|
+
string,
|
|
789
|
+
string
|
|
790
|
+
>;
|
|
791
|
+
}
|
|
792
|
+
>,
|
|
793
|
+
"strip",
|
|
794
|
+
zod0.ZodTypeAny,
|
|
795
|
+
{
|
|
796
|
+
uri: string;
|
|
797
|
+
blob: string;
|
|
798
|
+
_meta?: Record<string, unknown> | undefined;
|
|
799
|
+
mimeType?: string | undefined;
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
uri: string;
|
|
803
|
+
blob: string;
|
|
804
|
+
_meta?: Record<string, unknown> | undefined;
|
|
805
|
+
mimeType?: string | undefined;
|
|
806
|
+
}
|
|
807
|
+
>
|
|
808
|
+
]
|
|
809
|
+
>;
|
|
810
|
+
_meta: zod0.ZodOptional<
|
|
811
|
+
zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>
|
|
812
|
+
>;
|
|
813
|
+
},
|
|
814
|
+
"strip",
|
|
815
|
+
zod0.ZodTypeAny,
|
|
816
|
+
{
|
|
817
|
+
type: "resource";
|
|
818
|
+
resource:
|
|
819
|
+
| {
|
|
820
|
+
uri: string;
|
|
821
|
+
text: string;
|
|
822
|
+
_meta?: Record<string, unknown> | undefined;
|
|
823
|
+
mimeType?: string | undefined;
|
|
824
|
+
}
|
|
825
|
+
| {
|
|
826
|
+
uri: string;
|
|
827
|
+
blob: string;
|
|
828
|
+
_meta?: Record<string, unknown> | undefined;
|
|
829
|
+
mimeType?: string | undefined;
|
|
830
|
+
};
|
|
831
|
+
_meta?: Record<string, unknown> | undefined;
|
|
832
|
+
},
|
|
833
|
+
{
|
|
834
|
+
type: "resource";
|
|
835
|
+
resource:
|
|
836
|
+
| {
|
|
837
|
+
uri: string;
|
|
838
|
+
text: string;
|
|
839
|
+
_meta?: Record<string, unknown> | undefined;
|
|
840
|
+
mimeType?: string | undefined;
|
|
841
|
+
}
|
|
842
|
+
| {
|
|
843
|
+
uri: string;
|
|
844
|
+
blob: string;
|
|
845
|
+
_meta?: Record<string, unknown> | undefined;
|
|
846
|
+
mimeType?: string | undefined;
|
|
847
|
+
};
|
|
848
|
+
_meta?: Record<string, unknown> | undefined;
|
|
849
|
+
}
|
|
850
|
+
>
|
|
851
|
+
]
|
|
852
|
+
>,
|
|
853
|
+
"many"
|
|
854
|
+
>
|
|
855
|
+
>;
|
|
856
|
+
structuredContent: zod0.ZodOptional<
|
|
857
|
+
zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>
|
|
858
|
+
>;
|
|
859
|
+
isError: zod0.ZodOptional<zod0.ZodBoolean>;
|
|
860
|
+
},
|
|
861
|
+
zod0.ZodTypeAny,
|
|
862
|
+
"passthrough"
|
|
863
|
+
>
|
|
864
|
+
| zod0.objectOutputType<
|
|
865
|
+
{
|
|
866
|
+
_meta: zod0.ZodOptional<
|
|
867
|
+
zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>
|
|
868
|
+
>;
|
|
869
|
+
} & {
|
|
870
|
+
toolResult: zod0.ZodUnknown;
|
|
871
|
+
},
|
|
872
|
+
zod0.ZodTypeAny,
|
|
873
|
+
"passthrough"
|
|
874
|
+
>
|
|
875
|
+
>;
|
|
876
|
+
/**
|
|
877
|
+
* Namespaced version of readResource
|
|
878
|
+
*/
|
|
879
|
+
readResource(
|
|
880
|
+
params: ReadResourceRequest["params"] & {
|
|
881
|
+
serverId: string;
|
|
882
|
+
},
|
|
883
|
+
options: RequestOptions
|
|
884
|
+
): Promise<
|
|
885
|
+
zod0.objectOutputType<
|
|
886
|
+
{
|
|
887
|
+
_meta: zod0.ZodOptional<
|
|
888
|
+
zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>
|
|
889
|
+
>;
|
|
890
|
+
} & {
|
|
891
|
+
contents: zod0.ZodArray<
|
|
892
|
+
zod0.ZodUnion<
|
|
893
|
+
[
|
|
894
|
+
zod0.ZodObject<
|
|
895
|
+
zod0.objectUtil.extendShape<
|
|
896
|
+
{
|
|
897
|
+
uri: zod0.ZodString;
|
|
898
|
+
mimeType: zod0.ZodOptional<zod0.ZodString>;
|
|
899
|
+
_meta: zod0.ZodOptional<
|
|
900
|
+
zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>
|
|
901
|
+
>;
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
text: zod0.ZodString;
|
|
905
|
+
}
|
|
906
|
+
>,
|
|
907
|
+
"strip",
|
|
908
|
+
zod0.ZodTypeAny,
|
|
909
|
+
{
|
|
910
|
+
uri: string;
|
|
911
|
+
text: string;
|
|
912
|
+
_meta?: Record<string, unknown> | undefined;
|
|
913
|
+
mimeType?: string | undefined;
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
uri: string;
|
|
917
|
+
text: string;
|
|
918
|
+
_meta?: Record<string, unknown> | undefined;
|
|
919
|
+
mimeType?: string | undefined;
|
|
920
|
+
}
|
|
921
|
+
>,
|
|
922
|
+
zod0.ZodObject<
|
|
923
|
+
zod0.objectUtil.extendShape<
|
|
924
|
+
{
|
|
925
|
+
uri: zod0.ZodString;
|
|
926
|
+
mimeType: zod0.ZodOptional<zod0.ZodString>;
|
|
927
|
+
_meta: zod0.ZodOptional<
|
|
928
|
+
zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>
|
|
929
|
+
>;
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
blob: zod0.ZodEffects<zod0.ZodString, string, string>;
|
|
933
|
+
}
|
|
934
|
+
>,
|
|
935
|
+
"strip",
|
|
936
|
+
zod0.ZodTypeAny,
|
|
937
|
+
{
|
|
938
|
+
uri: string;
|
|
939
|
+
blob: string;
|
|
940
|
+
_meta?: Record<string, unknown> | undefined;
|
|
941
|
+
mimeType?: string | undefined;
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
uri: string;
|
|
945
|
+
blob: string;
|
|
946
|
+
_meta?: Record<string, unknown> | undefined;
|
|
947
|
+
mimeType?: string | undefined;
|
|
948
|
+
}
|
|
949
|
+
>
|
|
950
|
+
]
|
|
951
|
+
>,
|
|
952
|
+
"many"
|
|
953
|
+
>;
|
|
954
|
+
},
|
|
955
|
+
zod0.ZodTypeAny,
|
|
956
|
+
"passthrough"
|
|
957
|
+
>
|
|
958
|
+
>;
|
|
959
|
+
/**
|
|
960
|
+
* Namespaced version of getPrompt
|
|
961
|
+
*/
|
|
962
|
+
getPrompt(
|
|
963
|
+
params: GetPromptRequest["params"] & {
|
|
964
|
+
serverId: string;
|
|
965
|
+
},
|
|
966
|
+
options: RequestOptions
|
|
967
|
+
): Promise<
|
|
968
|
+
zod0.objectOutputType<
|
|
969
|
+
{
|
|
970
|
+
_meta: zod0.ZodOptional<
|
|
971
|
+
zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>
|
|
972
|
+
>;
|
|
973
|
+
} & {
|
|
974
|
+
description: zod0.ZodOptional<zod0.ZodString>;
|
|
975
|
+
messages: zod0.ZodArray<
|
|
976
|
+
zod0.ZodObject<
|
|
977
|
+
{
|
|
978
|
+
role: zod0.ZodEnum<["user", "assistant"]>;
|
|
979
|
+
content: zod0.ZodUnion<
|
|
980
|
+
[
|
|
981
|
+
zod0.ZodObject<
|
|
982
|
+
{
|
|
983
|
+
type: zod0.ZodLiteral<"text">;
|
|
984
|
+
text: zod0.ZodString;
|
|
985
|
+
_meta: zod0.ZodOptional<
|
|
986
|
+
zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>
|
|
987
|
+
>;
|
|
988
|
+
},
|
|
989
|
+
"strip",
|
|
990
|
+
zod0.ZodTypeAny,
|
|
991
|
+
{
|
|
992
|
+
type: "text";
|
|
993
|
+
text: string;
|
|
994
|
+
_meta?: Record<string, unknown> | undefined;
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
type: "text";
|
|
998
|
+
text: string;
|
|
999
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1000
|
+
}
|
|
1001
|
+
>,
|
|
1002
|
+
zod0.ZodObject<
|
|
1003
|
+
{
|
|
1004
|
+
type: zod0.ZodLiteral<"image">;
|
|
1005
|
+
data: zod0.ZodEffects<zod0.ZodString, string, string>;
|
|
1006
|
+
mimeType: zod0.ZodString;
|
|
1007
|
+
_meta: zod0.ZodOptional<
|
|
1008
|
+
zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>
|
|
1009
|
+
>;
|
|
1010
|
+
},
|
|
1011
|
+
"strip",
|
|
1012
|
+
zod0.ZodTypeAny,
|
|
1013
|
+
{
|
|
1014
|
+
type: "image";
|
|
1015
|
+
data: string;
|
|
1016
|
+
mimeType: string;
|
|
1017
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
type: "image";
|
|
1021
|
+
data: string;
|
|
1022
|
+
mimeType: string;
|
|
1023
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1024
|
+
}
|
|
1025
|
+
>,
|
|
1026
|
+
zod0.ZodObject<
|
|
1027
|
+
{
|
|
1028
|
+
type: zod0.ZodLiteral<"audio">;
|
|
1029
|
+
data: zod0.ZodEffects<zod0.ZodString, string, string>;
|
|
1030
|
+
mimeType: zod0.ZodString;
|
|
1031
|
+
_meta: zod0.ZodOptional<
|
|
1032
|
+
zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>
|
|
1033
|
+
>;
|
|
1034
|
+
},
|
|
1035
|
+
"strip",
|
|
1036
|
+
zod0.ZodTypeAny,
|
|
1037
|
+
{
|
|
1038
|
+
type: "audio";
|
|
1039
|
+
data: string;
|
|
1040
|
+
mimeType: string;
|
|
1041
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
type: "audio";
|
|
1045
|
+
data: string;
|
|
1046
|
+
mimeType: string;
|
|
1047
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1048
|
+
}
|
|
1049
|
+
>,
|
|
1050
|
+
zod0.ZodObject<
|
|
1051
|
+
zod0.objectUtil.extendShape<
|
|
1052
|
+
zod0.objectUtil.extendShape<
|
|
1053
|
+
zod0.objectUtil.extendShape<
|
|
1054
|
+
{
|
|
1055
|
+
name: zod0.ZodString;
|
|
1056
|
+
title: zod0.ZodOptional<zod0.ZodString>;
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
uri: zod0.ZodString;
|
|
1060
|
+
description: zod0.ZodOptional<zod0.ZodString>;
|
|
1061
|
+
mimeType: zod0.ZodOptional<zod0.ZodString>;
|
|
1062
|
+
_meta: zod0.ZodOptional<
|
|
1063
|
+
zod0.ZodObject<
|
|
1064
|
+
{},
|
|
1065
|
+
"passthrough",
|
|
1066
|
+
zod0.ZodTypeAny,
|
|
1067
|
+
zod0.objectOutputType<
|
|
1068
|
+
{},
|
|
1069
|
+
zod0.ZodTypeAny,
|
|
1070
|
+
"passthrough"
|
|
1071
|
+
>,
|
|
1072
|
+
zod0.objectInputType<
|
|
1073
|
+
{},
|
|
1074
|
+
zod0.ZodTypeAny,
|
|
1075
|
+
"passthrough"
|
|
1076
|
+
>
|
|
1077
|
+
>
|
|
1078
|
+
>;
|
|
1079
|
+
}
|
|
1080
|
+
>,
|
|
1081
|
+
{
|
|
1082
|
+
icons: zod0.ZodOptional<
|
|
1083
|
+
zod0.ZodArray<
|
|
1084
|
+
zod0.ZodObject<
|
|
1085
|
+
{
|
|
1086
|
+
src: zod0.ZodString;
|
|
1087
|
+
mimeType: zod0.ZodOptional<zod0.ZodString>;
|
|
1088
|
+
sizes: zod0.ZodOptional<
|
|
1089
|
+
zod0.ZodArray<zod0.ZodString, "many">
|
|
1090
|
+
>;
|
|
1091
|
+
},
|
|
1092
|
+
"strip",
|
|
1093
|
+
zod0.ZodTypeAny,
|
|
1094
|
+
{
|
|
1095
|
+
src: string;
|
|
1096
|
+
mimeType?: string | undefined;
|
|
1097
|
+
sizes?: string[] | undefined;
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
src: string;
|
|
1101
|
+
mimeType?: string | undefined;
|
|
1102
|
+
sizes?: string[] | undefined;
|
|
1103
|
+
}
|
|
1104
|
+
>,
|
|
1105
|
+
"many"
|
|
1106
|
+
>
|
|
1107
|
+
>;
|
|
1108
|
+
}
|
|
1109
|
+
>,
|
|
1110
|
+
{
|
|
1111
|
+
type: zod0.ZodLiteral<"resource_link">;
|
|
1112
|
+
}
|
|
1113
|
+
>,
|
|
1114
|
+
"strip",
|
|
1115
|
+
zod0.ZodTypeAny,
|
|
1116
|
+
{
|
|
1117
|
+
type: "resource_link";
|
|
1118
|
+
name: string;
|
|
1119
|
+
uri: string;
|
|
1120
|
+
_meta?:
|
|
1121
|
+
| zod0.objectOutputType<
|
|
1122
|
+
{},
|
|
1123
|
+
zod0.ZodTypeAny,
|
|
1124
|
+
"passthrough"
|
|
1125
|
+
>
|
|
1126
|
+
| undefined;
|
|
1127
|
+
mimeType?: string | undefined;
|
|
1128
|
+
icons?:
|
|
1129
|
+
| {
|
|
1130
|
+
src: string;
|
|
1131
|
+
mimeType?: string | undefined;
|
|
1132
|
+
sizes?: string[] | undefined;
|
|
1133
|
+
}[]
|
|
1134
|
+
| undefined;
|
|
1135
|
+
title?: string | undefined;
|
|
1136
|
+
description?: string | undefined;
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
type: "resource_link";
|
|
1140
|
+
name: string;
|
|
1141
|
+
uri: string;
|
|
1142
|
+
_meta?:
|
|
1143
|
+
| zod0.objectInputType<
|
|
1144
|
+
{},
|
|
1145
|
+
zod0.ZodTypeAny,
|
|
1146
|
+
"passthrough"
|
|
1147
|
+
>
|
|
1148
|
+
| undefined;
|
|
1149
|
+
mimeType?: string | undefined;
|
|
1150
|
+
icons?:
|
|
1151
|
+
| {
|
|
1152
|
+
src: string;
|
|
1153
|
+
mimeType?: string | undefined;
|
|
1154
|
+
sizes?: string[] | undefined;
|
|
1155
|
+
}[]
|
|
1156
|
+
| undefined;
|
|
1157
|
+
title?: string | undefined;
|
|
1158
|
+
description?: string | undefined;
|
|
1159
|
+
}
|
|
1160
|
+
>,
|
|
1161
|
+
zod0.ZodObject<
|
|
1162
|
+
{
|
|
1163
|
+
type: zod0.ZodLiteral<"resource">;
|
|
1164
|
+
resource: zod0.ZodUnion<
|
|
1165
|
+
[
|
|
1166
|
+
zod0.ZodObject<
|
|
1167
|
+
zod0.objectUtil.extendShape<
|
|
1168
|
+
{
|
|
1169
|
+
uri: zod0.ZodString;
|
|
1170
|
+
mimeType: zod0.ZodOptional<zod0.ZodString>;
|
|
1171
|
+
_meta: zod0.ZodOptional<
|
|
1172
|
+
zod0.ZodRecord<
|
|
1173
|
+
zod0.ZodString,
|
|
1174
|
+
zod0.ZodUnknown
|
|
1175
|
+
>
|
|
1176
|
+
>;
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
text: zod0.ZodString;
|
|
1180
|
+
}
|
|
1181
|
+
>,
|
|
1182
|
+
"strip",
|
|
1183
|
+
zod0.ZodTypeAny,
|
|
1184
|
+
{
|
|
1185
|
+
uri: string;
|
|
1186
|
+
text: string;
|
|
1187
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1188
|
+
mimeType?: string | undefined;
|
|
1189
|
+
},
|
|
1190
|
+
{
|
|
1191
|
+
uri: string;
|
|
1192
|
+
text: string;
|
|
1193
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1194
|
+
mimeType?: string | undefined;
|
|
1195
|
+
}
|
|
1196
|
+
>,
|
|
1197
|
+
zod0.ZodObject<
|
|
1198
|
+
zod0.objectUtil.extendShape<
|
|
1199
|
+
{
|
|
1200
|
+
uri: zod0.ZodString;
|
|
1201
|
+
mimeType: zod0.ZodOptional<zod0.ZodString>;
|
|
1202
|
+
_meta: zod0.ZodOptional<
|
|
1203
|
+
zod0.ZodRecord<
|
|
1204
|
+
zod0.ZodString,
|
|
1205
|
+
zod0.ZodUnknown
|
|
1206
|
+
>
|
|
1207
|
+
>;
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
blob: zod0.ZodEffects<
|
|
1211
|
+
zod0.ZodString,
|
|
1212
|
+
string,
|
|
1213
|
+
string
|
|
1214
|
+
>;
|
|
1215
|
+
}
|
|
1216
|
+
>,
|
|
1217
|
+
"strip",
|
|
1218
|
+
zod0.ZodTypeAny,
|
|
1219
|
+
{
|
|
1220
|
+
uri: string;
|
|
1221
|
+
blob: string;
|
|
1222
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1223
|
+
mimeType?: string | undefined;
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
uri: string;
|
|
1227
|
+
blob: string;
|
|
1228
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1229
|
+
mimeType?: string | undefined;
|
|
1230
|
+
}
|
|
1231
|
+
>
|
|
1232
|
+
]
|
|
1233
|
+
>;
|
|
1234
|
+
_meta: zod0.ZodOptional<
|
|
1235
|
+
zod0.ZodRecord<zod0.ZodString, zod0.ZodUnknown>
|
|
1236
|
+
>;
|
|
1237
|
+
},
|
|
1238
|
+
"strip",
|
|
1239
|
+
zod0.ZodTypeAny,
|
|
1240
|
+
{
|
|
1241
|
+
type: "resource";
|
|
1242
|
+
resource:
|
|
1243
|
+
| {
|
|
1244
|
+
uri: string;
|
|
1245
|
+
text: string;
|
|
1246
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1247
|
+
mimeType?: string | undefined;
|
|
1248
|
+
}
|
|
1249
|
+
| {
|
|
1250
|
+
uri: string;
|
|
1251
|
+
blob: string;
|
|
1252
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1253
|
+
mimeType?: string | undefined;
|
|
1254
|
+
};
|
|
1255
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
type: "resource";
|
|
1259
|
+
resource:
|
|
1260
|
+
| {
|
|
1261
|
+
uri: string;
|
|
1262
|
+
text: string;
|
|
1263
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1264
|
+
mimeType?: string | undefined;
|
|
1265
|
+
}
|
|
1266
|
+
| {
|
|
1267
|
+
uri: string;
|
|
1268
|
+
blob: string;
|
|
1269
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1270
|
+
mimeType?: string | undefined;
|
|
1271
|
+
};
|
|
1272
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1273
|
+
}
|
|
1274
|
+
>
|
|
1275
|
+
]
|
|
1276
|
+
>;
|
|
1277
|
+
},
|
|
1278
|
+
"strip",
|
|
1279
|
+
zod0.ZodTypeAny,
|
|
1280
|
+
{
|
|
1281
|
+
role: "user" | "assistant";
|
|
1282
|
+
content:
|
|
1283
|
+
| {
|
|
1284
|
+
type: "text";
|
|
1285
|
+
text: string;
|
|
1286
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1287
|
+
}
|
|
1288
|
+
| {
|
|
1289
|
+
type: "image";
|
|
1290
|
+
data: string;
|
|
1291
|
+
mimeType: string;
|
|
1292
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1293
|
+
}
|
|
1294
|
+
| {
|
|
1295
|
+
type: "audio";
|
|
1296
|
+
data: string;
|
|
1297
|
+
mimeType: string;
|
|
1298
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1299
|
+
}
|
|
1300
|
+
| {
|
|
1301
|
+
type: "resource";
|
|
1302
|
+
resource:
|
|
1303
|
+
| {
|
|
1304
|
+
uri: string;
|
|
1305
|
+
text: string;
|
|
1306
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1307
|
+
mimeType?: string | undefined;
|
|
1308
|
+
}
|
|
1309
|
+
| {
|
|
1310
|
+
uri: string;
|
|
1311
|
+
blob: string;
|
|
1312
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1313
|
+
mimeType?: string | undefined;
|
|
1314
|
+
};
|
|
1315
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1316
|
+
}
|
|
1317
|
+
| {
|
|
1318
|
+
type: "resource_link";
|
|
1319
|
+
name: string;
|
|
1320
|
+
uri: string;
|
|
1321
|
+
_meta?:
|
|
1322
|
+
| zod0.objectOutputType<
|
|
1323
|
+
{},
|
|
1324
|
+
zod0.ZodTypeAny,
|
|
1325
|
+
"passthrough"
|
|
1326
|
+
>
|
|
1327
|
+
| undefined;
|
|
1328
|
+
mimeType?: string | undefined;
|
|
1329
|
+
icons?:
|
|
1330
|
+
| {
|
|
1331
|
+
src: string;
|
|
1332
|
+
mimeType?: string | undefined;
|
|
1333
|
+
sizes?: string[] | undefined;
|
|
1334
|
+
}[]
|
|
1335
|
+
| undefined;
|
|
1336
|
+
title?: string | undefined;
|
|
1337
|
+
description?: string | undefined;
|
|
1338
|
+
};
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
role: "user" | "assistant";
|
|
1342
|
+
content:
|
|
1343
|
+
| {
|
|
1344
|
+
type: "text";
|
|
1345
|
+
text: string;
|
|
1346
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1347
|
+
}
|
|
1348
|
+
| {
|
|
1349
|
+
type: "image";
|
|
1350
|
+
data: string;
|
|
1351
|
+
mimeType: string;
|
|
1352
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1353
|
+
}
|
|
1354
|
+
| {
|
|
1355
|
+
type: "audio";
|
|
1356
|
+
data: string;
|
|
1357
|
+
mimeType: string;
|
|
1358
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1359
|
+
}
|
|
1360
|
+
| {
|
|
1361
|
+
type: "resource";
|
|
1362
|
+
resource:
|
|
1363
|
+
| {
|
|
1364
|
+
uri: string;
|
|
1365
|
+
text: string;
|
|
1366
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1367
|
+
mimeType?: string | undefined;
|
|
1368
|
+
}
|
|
1369
|
+
| {
|
|
1370
|
+
uri: string;
|
|
1371
|
+
blob: string;
|
|
1372
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1373
|
+
mimeType?: string | undefined;
|
|
1374
|
+
};
|
|
1375
|
+
_meta?: Record<string, unknown> | undefined;
|
|
1376
|
+
}
|
|
1377
|
+
| {
|
|
1378
|
+
type: "resource_link";
|
|
1379
|
+
name: string;
|
|
1380
|
+
uri: string;
|
|
1381
|
+
_meta?:
|
|
1382
|
+
| zod0.objectInputType<{}, zod0.ZodTypeAny, "passthrough">
|
|
1383
|
+
| undefined;
|
|
1384
|
+
mimeType?: string | undefined;
|
|
1385
|
+
icons?:
|
|
1386
|
+
| {
|
|
1387
|
+
src: string;
|
|
1388
|
+
mimeType?: string | undefined;
|
|
1389
|
+
sizes?: string[] | undefined;
|
|
1390
|
+
}[]
|
|
1391
|
+
| undefined;
|
|
1392
|
+
title?: string | undefined;
|
|
1393
|
+
description?: string | undefined;
|
|
1394
|
+
};
|
|
1395
|
+
}
|
|
1396
|
+
>,
|
|
1397
|
+
"many"
|
|
1398
|
+
>;
|
|
1399
|
+
},
|
|
1400
|
+
zod0.ZodTypeAny,
|
|
1401
|
+
"passthrough"
|
|
1402
|
+
>
|
|
1403
|
+
>;
|
|
1404
|
+
}
|
|
1405
|
+
type NamespacedData = {
|
|
1406
|
+
tools: (Tool & {
|
|
1407
|
+
serverId: string;
|
|
1408
|
+
})[];
|
|
1409
|
+
prompts: (Prompt & {
|
|
1410
|
+
serverId: string;
|
|
1411
|
+
})[];
|
|
1412
|
+
resources: (Resource & {
|
|
1413
|
+
serverId: string;
|
|
1414
|
+
})[];
|
|
1415
|
+
resourceTemplates: (ResourceTemplate & {
|
|
1416
|
+
serverId: string;
|
|
1417
|
+
})[];
|
|
1418
|
+
};
|
|
1419
|
+
declare function getNamespacedData<T extends keyof NamespacedData>(
|
|
1420
|
+
mcpClients: Record<string, MCPClientConnection>,
|
|
1421
|
+
type: T
|
|
1422
|
+
): NamespacedData[T];
|
|
1423
|
+
//#endregion
|
|
1424
|
+
export {
|
|
1425
|
+
MCPConnectionResult as a,
|
|
1426
|
+
getNamespacedData as c,
|
|
1427
|
+
CORSOptions as d,
|
|
1428
|
+
MaybePromise as f,
|
|
1429
|
+
MCPClientOAuthResult as i,
|
|
1430
|
+
MCPConnectionState as l,
|
|
1431
|
+
TransportType as m,
|
|
1432
|
+
MCPClientManagerOptions as n,
|
|
1433
|
+
MCPServerOptions as o,
|
|
1434
|
+
ServeOptions as p,
|
|
1435
|
+
MCPClientOAuthCallbackConfig as r,
|
|
1436
|
+
RegisterServerOptions as s,
|
|
1437
|
+
MCPClientManager as t,
|
|
1438
|
+
BaseTransportType as u
|
|
1439
|
+
};
|
|
1440
|
+
//# sourceMappingURL=client-ctTw3KHG.d.ts.map
|