@mcp-use/client 2.0.0-beta.8 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -19
- package/dist/.tsbuildinfo +1 -1
- package/dist/auth/browser.d.ts +62 -6
- package/dist/auth/browser.d.ts.map +1 -1
- package/dist/auth/callback.d.ts.map +1 -1
- package/dist/auth/flow.d.ts.map +1 -1
- package/dist/auth/node.d.ts +115 -5
- package/dist/auth/node.d.ts.map +1 -1
- package/dist/auth/session-store.d.ts +7 -1
- package/dist/auth/session-store.d.ts.map +1 -1
- package/dist/auth/storage.d.ts +12 -3
- package/dist/auth/storage.d.ts.map +1 -1
- package/dist/code-mode/executor-e2b.d.ts.map +1 -1
- package/dist/core/base.d.ts +4 -8
- package/dist/core/base.d.ts.map +1 -1
- package/dist/core/browser.d.ts +14 -2
- package/dist/core/browser.d.ts.map +1 -1
- package/dist/core/config.d.ts +82 -20
- package/dist/core/config.d.ts.map +1 -1
- package/dist/core/node.d.ts +7 -10
- package/dist/core/node.d.ts.map +1 -1
- package/dist/core/session.d.ts +102 -25
- package/dist/core/session.d.ts.map +1 -1
- package/dist/index-browser.d.ts +1 -0
- package/dist/index-browser.d.ts.map +1 -1
- package/dist/index-browser.js +568 -163
- package/dist/index-browser.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +407 -92
- package/dist/index.js.map +1 -1
- package/dist/react/McpClientProvider.d.ts +22 -10
- package/dist/react/McpClientProvider.d.ts.map +1 -1
- package/dist/react/index.d.ts +5 -2
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +1104 -368
- package/dist/react/index.js.map +1 -1
- package/dist/react/rpc-logger.d.ts +5 -0
- package/dist/react/rpc-logger.d.ts.map +1 -1
- package/dist/react/storage.d.ts +57 -10
- package/dist/react/storage.d.ts.map +1 -1
- package/dist/react/token-expiry.d.ts +9 -0
- package/dist/react/token-expiry.d.ts.map +1 -0
- package/dist/react/types.d.ts +134 -22
- package/dist/react/types.d.ts.map +1 -1
- package/dist/react/useMcp-helpers.d.ts.map +1 -1
- package/dist/react/useMcp-operations.d.ts +24 -6
- package/dist/react/useMcp-operations.d.ts.map +1 -1
- package/dist/react/useMcp.d.ts.map +1 -1
- package/dist/react/useMcpServerQueues.d.ts +36 -9
- package/dist/react/useMcpServerQueues.d.ts.map +1 -1
- package/dist/react/view/ViewRenderer.d.ts +12 -4
- package/dist/react/view/ViewRenderer.d.ts.map +1 -1
- package/dist/react/view/ext-apps-bridge.d.ts +1 -1
- package/dist/react/view/ext-apps-bridge.d.ts.map +1 -1
- package/dist/react/view/inject-openai-file-apis.d.ts.map +1 -1
- package/dist/react/view/parse-custom-props.d.ts +8 -0
- package/dist/react/view/parse-custom-props.d.ts.map +1 -1
- package/dist/react/view/resolve-view-resource.d.ts +10 -0
- package/dist/react/view/resolve-view-resource.d.ts.map +1 -1
- package/dist/react/view/sandbox-blob-url.d.ts +2 -0
- package/dist/react/view/sandbox-blob-url.d.ts.map +1 -1
- package/dist/react/view/types.d.ts +111 -4
- package/dist/react/view/types.d.ts.map +1 -1
- package/dist/react/view/view-detection.d.ts +18 -0
- package/dist/react/view/view-detection.d.ts.map +1 -1
- package/dist/react/view/view-host-policy.d.ts +61 -0
- package/dist/react/view/view-host-policy.d.ts.map +1 -0
- package/dist/sandbox.d.ts +2 -0
- package/dist/sandbox.d.ts.map +1 -0
- package/dist/sandbox.js +283 -0
- package/dist/sandbox.js.map +1 -0
- package/dist/telemetry/events.d.ts.map +1 -1
- package/dist/telemetry/tel-fetch.d.ts.map +1 -1
- package/dist/telemetry/telemetry.d.ts +5 -1
- package/dist/telemetry/telemetry.d.ts.map +1 -1
- package/dist/transport/base.d.ts +169 -34
- package/dist/transport/base.d.ts.map +1 -1
- package/dist/transport/connection-manager.d.ts +5 -1
- package/dist/transport/connection-manager.d.ts.map +1 -1
- package/dist/transport/http.d.ts +51 -2
- package/dist/transport/http.d.ts.map +1 -1
- package/dist/transport/stdio.d.ts +29 -1
- package/dist/transport/stdio.d.ts.map +1 -1
- package/dist/utils/elicitation.d.ts +4 -2
- package/dist/utils/elicitation.d.ts.map +1 -1
- package/dist/utils/logging.d.ts +1 -0
- package/dist/utils/logging.d.ts.map +1 -1
- package/dist/utils/version.d.ts +6 -0
- package/dist/utils/version.d.ts.map +1 -1
- package/package.json +9 -3
package/dist/transport/base.d.ts
CHANGED
|
@@ -4,9 +4,12 @@ import type { ConnectionManager } from "./connection-manager.js";
|
|
|
4
4
|
import type { ConnectorInitEventData } from "../telemetry/events.js";
|
|
5
5
|
import type { MCPServerInfo } from "../core/session.js";
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Handles a notification received from an MCP server.
|
|
8
|
+
*
|
|
9
|
+
* @param notification - Notification envelope supplied by the server.
|
|
8
10
|
*/
|
|
9
11
|
export type NotificationHandler = (notification: Notification) => void | Promise<void>;
|
|
12
|
+
/** Shared initialization options for all connector transports. */
|
|
10
13
|
export interface ConnectorInitOptions {
|
|
11
14
|
/**
|
|
12
15
|
* Options forwarded to the underlying MCP `Client` instance.
|
|
@@ -65,14 +68,22 @@ export interface ConnectorInitOptions {
|
|
|
65
68
|
* Controls retry behavior of the underlying `StreamableHTTPClientTransport`.
|
|
66
69
|
*/
|
|
67
70
|
reconnectionOptions?: {
|
|
71
|
+
/** Maximum delay between reconnection attempts in milliseconds. */
|
|
68
72
|
maxReconnectionDelay?: number;
|
|
73
|
+
/** Delay before the first reconnection attempt in milliseconds. */
|
|
69
74
|
initialReconnectionDelay?: number;
|
|
75
|
+
/** Multiplier applied to the delay after each failed attempt. */
|
|
70
76
|
reconnectionDelayGrowFactor?: number;
|
|
77
|
+
/** Maximum number of reconnection attempts. */
|
|
71
78
|
maxRetries?: number;
|
|
72
79
|
};
|
|
73
80
|
}
|
|
74
81
|
/**
|
|
75
|
-
*
|
|
82
|
+
* Implements protocol operations shared by MCP transport connectors.
|
|
83
|
+
*
|
|
84
|
+
* Subclasses provide transport-specific connection setup and a public
|
|
85
|
+
* identifier. Call {@link BaseConnector.connect}, then
|
|
86
|
+
* {@link BaseConnector.initialize}, before invoking protocol operations.
|
|
76
87
|
*/
|
|
77
88
|
export declare abstract class BaseConnector {
|
|
78
89
|
protected client: Client | null;
|
|
@@ -85,6 +96,11 @@ export declare abstract class BaseConnector {
|
|
|
85
96
|
protected notificationHandlers: NotificationHandler[];
|
|
86
97
|
protected rootsCache: Root[];
|
|
87
98
|
private activeProgressHandlers;
|
|
99
|
+
/**
|
|
100
|
+
* Creates a connector with shared SDK and callback options.
|
|
101
|
+
*
|
|
102
|
+
* @param opts - Connector initialization options.
|
|
103
|
+
*/
|
|
88
104
|
constructor(opts?: ConnectorInitOptions);
|
|
89
105
|
/**
|
|
90
106
|
* Track connector initialization event
|
|
@@ -155,7 +171,9 @@ export declare abstract class BaseConnector {
|
|
|
155
171
|
*/
|
|
156
172
|
setRoots(roots: Root[]): Promise<void>;
|
|
157
173
|
/**
|
|
158
|
-
*
|
|
174
|
+
* Returns the roots currently advertised to the server.
|
|
175
|
+
*
|
|
176
|
+
* @returns A copy of the configured roots.
|
|
159
177
|
*/
|
|
160
178
|
getRoots(): Root[];
|
|
161
179
|
/**
|
|
@@ -174,13 +192,25 @@ export declare abstract class BaseConnector {
|
|
|
174
192
|
* Must be registered after Client construction and before connect().
|
|
175
193
|
*/
|
|
176
194
|
protected setupElicitationHandler(): void;
|
|
177
|
-
/**
|
|
195
|
+
/**
|
|
196
|
+
* Establishes the transport connection and creates the SDK client.
|
|
197
|
+
*
|
|
198
|
+
* @returns A promise that resolves when the connector is connected.
|
|
199
|
+
*/
|
|
178
200
|
abstract connect(): Promise<void>;
|
|
179
|
-
/**
|
|
201
|
+
/**
|
|
202
|
+
* Returns transport-specific fields suitable for logs and telemetry.
|
|
203
|
+
*
|
|
204
|
+
* @returns A record identifying the connector without exposing credentials.
|
|
205
|
+
*/
|
|
180
206
|
abstract get publicIdentifier(): Record<string, string>;
|
|
181
|
-
/**
|
|
207
|
+
/**
|
|
208
|
+
* Disconnects the SDK client and releases transport resources.
|
|
209
|
+
*
|
|
210
|
+
* @returns A promise that resolves after cleanup completes.
|
|
211
|
+
*/
|
|
182
212
|
disconnect(): Promise<void>;
|
|
183
|
-
/**
|
|
213
|
+
/** Whether an SDK client currently exists for this connector. */
|
|
184
214
|
get isClientConnected(): boolean;
|
|
185
215
|
/**
|
|
186
216
|
* Initialise the MCP session **after** `connect()` has succeeded.
|
|
@@ -188,13 +218,21 @@ export declare abstract class BaseConnector {
|
|
|
188
218
|
* In the SDK, `Client.connect(transport)` automatically performs the
|
|
189
219
|
* protocol‑level `initialize` handshake, so we only need to cache the list of
|
|
190
220
|
* tools and expose some server info.
|
|
221
|
+
*
|
|
222
|
+
* @param defaultRequestOptions - Options used while fetching the initial tool list.
|
|
223
|
+
* @returns The capabilities advertised by the server.
|
|
224
|
+
* @throws When {@link BaseConnector.connect} has not completed.
|
|
191
225
|
*/
|
|
192
226
|
initialize(defaultRequestOptions?: RequestOptions): Promise<ReturnType<Client["getServerCapabilities"]>>;
|
|
193
|
-
/**
|
|
227
|
+
/**
|
|
228
|
+
* Returns the tool list cached during initialization.
|
|
229
|
+
*
|
|
230
|
+
* @throws When {@link BaseConnector.initialize} has not completed.
|
|
231
|
+
*/
|
|
194
232
|
get tools(): Tool[];
|
|
195
|
-
/**
|
|
233
|
+
/** Capabilities cached during initialization, or an empty object. */
|
|
196
234
|
get serverCapabilities(): Record<string, unknown>;
|
|
197
|
-
/**
|
|
235
|
+
/** Server identity cached during initialization, or `null`. */
|
|
198
236
|
get serverInfo(): MCPServerInfo | null;
|
|
199
237
|
/** Instructions supplied by the connected server, if any. */
|
|
200
238
|
get instructions(): string | undefined;
|
|
@@ -207,7 +245,15 @@ export declare abstract class BaseConnector {
|
|
|
207
245
|
get protocolEra(): ProtocolEra | undefined;
|
|
208
246
|
/** The protocol version string negotiated for the active connection. */
|
|
209
247
|
get negotiatedProtocolVersion(): string | undefined;
|
|
210
|
-
/**
|
|
248
|
+
/**
|
|
249
|
+
* Calls a tool on the connected server.
|
|
250
|
+
*
|
|
251
|
+
* @param name - Tool name.
|
|
252
|
+
* @param args - Tool arguments.
|
|
253
|
+
* @param options - Per-request timeout, cancellation, and progress options.
|
|
254
|
+
* @returns The tool result returned by the server.
|
|
255
|
+
* @throws When the connector is not connected or the tool call fails.
|
|
256
|
+
*/
|
|
211
257
|
callTool(name: string, args: Record<string, any>, options?: RequestOptions): Promise<CallToolResult>;
|
|
212
258
|
/**
|
|
213
259
|
* List all available tools from the MCP server.
|
|
@@ -250,9 +296,18 @@ export declare abstract class BaseConnector {
|
|
|
250
296
|
}[];
|
|
251
297
|
_meta?: {
|
|
252
298
|
[x: string]: unknown;
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
299
|
+
"io.modelcontextprotocol/serverInfo"?: {
|
|
300
|
+
version: string;
|
|
301
|
+
name: string;
|
|
302
|
+
websiteUrl?: string | undefined;
|
|
303
|
+
description?: string | undefined;
|
|
304
|
+
icons?: {
|
|
305
|
+
src: string;
|
|
306
|
+
mimeType?: string | undefined;
|
|
307
|
+
sizes?: string[] | undefined;
|
|
308
|
+
theme?: "light" | "dark" | undefined;
|
|
309
|
+
}[] | undefined;
|
|
310
|
+
title?: string | undefined;
|
|
256
311
|
} | undefined;
|
|
257
312
|
} | undefined;
|
|
258
313
|
nextCursor?: string | undefined;
|
|
@@ -264,6 +319,7 @@ export declare abstract class BaseConnector {
|
|
|
264
319
|
* @returns Complete list of all resources
|
|
265
320
|
*/
|
|
266
321
|
listAllResources(options?: RequestOptions): Promise<{
|
|
322
|
+
/** Resources returned across all result pages. */
|
|
267
323
|
resources: any[];
|
|
268
324
|
}>;
|
|
269
325
|
/**
|
|
@@ -297,9 +353,18 @@ export declare abstract class BaseConnector {
|
|
|
297
353
|
}[];
|
|
298
354
|
_meta?: {
|
|
299
355
|
[x: string]: unknown;
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
356
|
+
"io.modelcontextprotocol/serverInfo"?: {
|
|
357
|
+
version: string;
|
|
358
|
+
name: string;
|
|
359
|
+
websiteUrl?: string | undefined;
|
|
360
|
+
description?: string | undefined;
|
|
361
|
+
icons?: {
|
|
362
|
+
src: string;
|
|
363
|
+
mimeType?: string | undefined;
|
|
364
|
+
sizes?: string[] | undefined;
|
|
365
|
+
theme?: "light" | "dark" | undefined;
|
|
366
|
+
}[] | undefined;
|
|
367
|
+
title?: string | undefined;
|
|
303
368
|
} | undefined;
|
|
304
369
|
} | undefined;
|
|
305
370
|
nextCursor?: string | undefined;
|
|
@@ -312,7 +377,13 @@ export declare abstract class BaseConnector {
|
|
|
312
377
|
* @returns Completion suggestions from the server
|
|
313
378
|
*/
|
|
314
379
|
complete(params: CompleteRequestParams, options?: RequestOptions): Promise<CompleteResult>;
|
|
315
|
-
/**
|
|
380
|
+
/**
|
|
381
|
+
* Reads a resource by URI.
|
|
382
|
+
*
|
|
383
|
+
* @param uri - Resource URI to read.
|
|
384
|
+
* @param options - Per-request options.
|
|
385
|
+
* @returns The resource contents returned by the server.
|
|
386
|
+
*/
|
|
316
387
|
readResource(uri: string, options?: RequestOptions): Promise<{
|
|
317
388
|
[x: string]: unknown;
|
|
318
389
|
contents: ({
|
|
@@ -332,9 +403,18 @@ export declare abstract class BaseConnector {
|
|
|
332
403
|
})[];
|
|
333
404
|
_meta?: {
|
|
334
405
|
[x: string]: unknown;
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
406
|
+
"io.modelcontextprotocol/serverInfo"?: {
|
|
407
|
+
version: string;
|
|
408
|
+
name: string;
|
|
409
|
+
websiteUrl?: string | undefined;
|
|
410
|
+
description?: string | undefined;
|
|
411
|
+
icons?: {
|
|
412
|
+
src: string;
|
|
413
|
+
mimeType?: string | undefined;
|
|
414
|
+
sizes?: string[] | undefined;
|
|
415
|
+
theme?: "light" | "dark" | undefined;
|
|
416
|
+
}[] | undefined;
|
|
417
|
+
title?: string | undefined;
|
|
338
418
|
} | undefined;
|
|
339
419
|
} | undefined;
|
|
340
420
|
}>;
|
|
@@ -347,9 +427,18 @@ export declare abstract class BaseConnector {
|
|
|
347
427
|
subscribeToResource(uri: string, options?: RequestOptions): Promise<{
|
|
348
428
|
_meta?: {
|
|
349
429
|
[x: string]: unknown;
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
430
|
+
"io.modelcontextprotocol/serverInfo"?: {
|
|
431
|
+
version: string;
|
|
432
|
+
name: string;
|
|
433
|
+
websiteUrl?: string | undefined;
|
|
434
|
+
description?: string | undefined;
|
|
435
|
+
icons?: {
|
|
436
|
+
src: string;
|
|
437
|
+
mimeType?: string | undefined;
|
|
438
|
+
sizes?: string[] | undefined;
|
|
439
|
+
theme?: "light" | "dark" | undefined;
|
|
440
|
+
}[] | undefined;
|
|
441
|
+
title?: string | undefined;
|
|
353
442
|
} | undefined;
|
|
354
443
|
} | undefined;
|
|
355
444
|
}>;
|
|
@@ -362,12 +451,26 @@ export declare abstract class BaseConnector {
|
|
|
362
451
|
unsubscribeFromResource(uri: string, options?: RequestOptions): Promise<{
|
|
363
452
|
_meta?: {
|
|
364
453
|
[x: string]: unknown;
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
454
|
+
"io.modelcontextprotocol/serverInfo"?: {
|
|
455
|
+
version: string;
|
|
456
|
+
name: string;
|
|
457
|
+
websiteUrl?: string | undefined;
|
|
458
|
+
description?: string | undefined;
|
|
459
|
+
icons?: {
|
|
460
|
+
src: string;
|
|
461
|
+
mimeType?: string | undefined;
|
|
462
|
+
sizes?: string[] | undefined;
|
|
463
|
+
theme?: "light" | "dark" | undefined;
|
|
464
|
+
}[] | undefined;
|
|
465
|
+
title?: string | undefined;
|
|
368
466
|
} | undefined;
|
|
369
467
|
} | undefined;
|
|
370
468
|
}>;
|
|
469
|
+
/**
|
|
470
|
+
* Lists prompts exposed by the server.
|
|
471
|
+
*
|
|
472
|
+
* @returns The prompt list, or an empty list when prompts are unsupported.
|
|
473
|
+
*/
|
|
371
474
|
listPrompts(): Promise<{
|
|
372
475
|
[x: string]: unknown;
|
|
373
476
|
prompts: {
|
|
@@ -391,13 +494,29 @@ export declare abstract class BaseConnector {
|
|
|
391
494
|
}[];
|
|
392
495
|
_meta?: {
|
|
393
496
|
[x: string]: unknown;
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
497
|
+
"io.modelcontextprotocol/serverInfo"?: {
|
|
498
|
+
version: string;
|
|
499
|
+
name: string;
|
|
500
|
+
websiteUrl?: string | undefined;
|
|
501
|
+
description?: string | undefined;
|
|
502
|
+
icons?: {
|
|
503
|
+
src: string;
|
|
504
|
+
mimeType?: string | undefined;
|
|
505
|
+
sizes?: string[] | undefined;
|
|
506
|
+
theme?: "light" | "dark" | undefined;
|
|
507
|
+
}[] | undefined;
|
|
508
|
+
title?: string | undefined;
|
|
397
509
|
} | undefined;
|
|
398
510
|
} | undefined;
|
|
399
511
|
nextCursor?: string | undefined;
|
|
400
512
|
}>;
|
|
513
|
+
/**
|
|
514
|
+
* Gets a prompt with the supplied arguments.
|
|
515
|
+
*
|
|
516
|
+
* @param name - Prompt name.
|
|
517
|
+
* @param args - Prompt arguments.
|
|
518
|
+
* @returns The rendered prompt returned by the server.
|
|
519
|
+
*/
|
|
401
520
|
getPrompt(name: string, args: Record<string, any>): Promise<{
|
|
402
521
|
[x: string]: unknown;
|
|
403
522
|
messages: {
|
|
@@ -488,14 +607,30 @@ export declare abstract class BaseConnector {
|
|
|
488
607
|
}[];
|
|
489
608
|
_meta?: {
|
|
490
609
|
[x: string]: unknown;
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
610
|
+
"io.modelcontextprotocol/serverInfo"?: {
|
|
611
|
+
version: string;
|
|
612
|
+
name: string;
|
|
613
|
+
websiteUrl?: string | undefined;
|
|
614
|
+
description?: string | undefined;
|
|
615
|
+
icons?: {
|
|
616
|
+
src: string;
|
|
617
|
+
mimeType?: string | undefined;
|
|
618
|
+
sizes?: string[] | undefined;
|
|
619
|
+
theme?: "light" | "dark" | undefined;
|
|
620
|
+
}[] | undefined;
|
|
621
|
+
title?: string | undefined;
|
|
494
622
|
} | undefined;
|
|
495
623
|
} | undefined;
|
|
496
624
|
description?: string | undefined;
|
|
497
625
|
}>;
|
|
498
|
-
/**
|
|
626
|
+
/**
|
|
627
|
+
* Sends a raw, potentially non-standard request through the SDK client.
|
|
628
|
+
*
|
|
629
|
+
* @param method - JSON-RPC method name.
|
|
630
|
+
* @param params - Request parameters. Defaults to an empty object.
|
|
631
|
+
* @param options - Per-request options.
|
|
632
|
+
* @returns The unvalidated result returned by the server.
|
|
633
|
+
*/
|
|
499
634
|
request(method: string, params?: Record<string, any> | null, options?: RequestOptions): Promise<unknown>;
|
|
500
635
|
/**
|
|
501
636
|
* Helper to tear down the client & connection manager safely.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/transport/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,MAAM,EACN,aAAa,EACb,qBAAqB,EACrB,cAAc,EACd,uBAAuB,EACvB,sBAAsB,EACtB,YAAY,EACZ,YAAY,EAEZ,YAAY,EACZ,mBAAmB,EACnB,WAAW,EACX,cAAc,EACd,IAAI,EACJ,IAAI,EACL,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EACV,2BAA2B,EAC3B,2BAA2B,EAC5B,MAAM,mBAAmB,CAAC;AAe3B,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAErE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/transport/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,MAAM,EACN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;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUxD;;;;;OAKG;IACG,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc;;;;;;;;;;;;;;;;;;IAS/D;;;;;OAKG;IACG,uBAAuB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc;;;;;;;;;;;;;;;;;;IASnE;;;;OAIG;IACG,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyBjB;;;;;;OAMG;IACG,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IASvD;;;;;;;OAOG;IACG,OAAO,CACX,MAAM,EAAE,MAAM,EACd,MAAM,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAW,EACzC,OAAO,CAAC,EAAE,cAAc;IAiB1B;;OAEG;cACa,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;CAkClD"}
|
|
@@ -7,6 +7,8 @@ export declare abstract class ConnectionManager<T = any> {
|
|
|
7
7
|
private _connection;
|
|
8
8
|
private _task;
|
|
9
9
|
private _abortController;
|
|
10
|
+
private _startPromise;
|
|
11
|
+
private _stopPromise;
|
|
10
12
|
constructor();
|
|
11
13
|
/**
|
|
12
14
|
* Establish the connection.
|
|
@@ -24,7 +26,7 @@ export declare abstract class ConnectionManager<T = any> {
|
|
|
24
26
|
* This method should be implemented by subclasses to close the specific type
|
|
25
27
|
* of connection.
|
|
26
28
|
*
|
|
27
|
-
* @param connection The connection to close.
|
|
29
|
+
* @param connection - The connection to close.
|
|
28
30
|
*/
|
|
29
31
|
protected abstract closeConnection(connection: T): Promise<void>;
|
|
30
32
|
/**
|
|
@@ -34,10 +36,12 @@ export declare abstract class ConnectionManager<T = any> {
|
|
|
34
36
|
* @throws If the connection cannot be established.
|
|
35
37
|
*/
|
|
36
38
|
start(): Promise<T>;
|
|
39
|
+
private waitUntilReady;
|
|
37
40
|
/**
|
|
38
41
|
* Stop the connection manager and close the connection.
|
|
39
42
|
*/
|
|
40
43
|
stop(): Promise<void>;
|
|
44
|
+
private stopTask;
|
|
41
45
|
/**
|
|
42
46
|
* Reset all internal state.
|
|
43
47
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connection-manager.d.ts","sourceRoot":"","sources":["../../src/transport/connection-manager.ts"],"names":[],"mappings":"AAEA,8BAAsB,iBAAiB,CAAC,CAAC,GAAG,GAAG;IAC7C,OAAO,CAAC,aAAa,CAAiB;IACtC,OAAO,CAAC,cAAc,CAAc;IAEpC,OAAO,CAAC,YAAY,CAAiB;IACrC,OAAO,CAAC,aAAa,CAAc;IAEnC,OAAO,CAAC,UAAU,CAAsB;IACxC,OAAO,CAAC,WAAW,CAAkB;IACrC,OAAO,CAAC,KAAK,CAA8B;IAC3C,OAAO,CAAC,gBAAgB,CAAgC;;
|
|
1
|
+
{"version":3,"file":"connection-manager.d.ts","sourceRoot":"","sources":["../../src/transport/connection-manager.ts"],"names":[],"mappings":"AAEA,8BAAsB,iBAAiB,CAAC,CAAC,GAAG,GAAG;IAC7C,OAAO,CAAC,aAAa,CAAiB;IACtC,OAAO,CAAC,cAAc,CAAc;IAEpC,OAAO,CAAC,YAAY,CAAiB;IACrC,OAAO,CAAC,aAAa,CAAc;IAEnC,OAAO,CAAC,UAAU,CAAsB;IACxC,OAAO,CAAC,WAAW,CAAkB;IACrC,OAAO,CAAC,KAAK,CAA8B;IAC3C,OAAO,CAAC,gBAAgB,CAAgC;IACxD,OAAO,CAAC,aAAa,CAA2B;IAChD,OAAO,CAAC,YAAY,CAA8B;;IAMlD;;;;;;;;OAQG;IACH,SAAS,CAAC,QAAQ,CAAC,mBAAmB,IAAI,OAAO,CAAC,CAAC,CAAC;IAEpD;;;;;;;OAOG;IACH,SAAS,CAAC,QAAQ,CAAC,eAAe,CAAC,UAAU,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAEhE;;;;;OAKG;IACH,KAAK,IAAI,OAAO,CAAC,CAAC,CAAC;YAoBL,cAAc;IAgB5B;;OAEG;IACH,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;YAaP,QAAQ;IAwBtB;;OAEG;IACH,OAAO,CAAC,KAAK;IASb;;;OAGG;YACW,cAAc;IAqC5B;;OAEG;YACW,YAAY;CAqB3B"}
|
package/dist/transport/http.d.ts
CHANGED
|
@@ -1,23 +1,39 @@
|
|
|
1
1
|
import { type VersionNegotiationMode } from "@modelcontextprotocol/client";
|
|
2
2
|
import type { ConnectorInitOptions } from "./base.js";
|
|
3
3
|
import { BaseConnector } from "./base.js";
|
|
4
|
+
/** Client identity advertised to an MCP server during connection setup. */
|
|
4
5
|
export type ClientInfo = {
|
|
6
|
+
/** Stable programmatic client name. */
|
|
5
7
|
name: string;
|
|
8
|
+
/** Optional human-readable client title. */
|
|
6
9
|
title?: string;
|
|
10
|
+
/** Client version string. */
|
|
7
11
|
version: string;
|
|
12
|
+
/** Human-readable client description. */
|
|
8
13
|
description?: string;
|
|
14
|
+
/** Icons representing the client. */
|
|
9
15
|
icons?: Array<{
|
|
16
|
+
/** Icon URL. */
|
|
10
17
|
src: string;
|
|
18
|
+
/** Icon media type. */
|
|
11
19
|
mimeType?: string;
|
|
20
|
+
/** Supported icon sizes, such as `"48x48"`. */
|
|
12
21
|
sizes?: string[];
|
|
13
22
|
}>;
|
|
23
|
+
/** Public website describing the client. */
|
|
14
24
|
websiteUrl?: string;
|
|
15
25
|
};
|
|
26
|
+
/** HTTP-specific connector options. */
|
|
16
27
|
interface HttpConnectorOptions extends ConnectorInitOptions {
|
|
28
|
+
/** Bearer token added to the `Authorization` header. */
|
|
17
29
|
authToken?: string;
|
|
30
|
+
/** Fetch implementation used by transport requests. */
|
|
18
31
|
fetch?: typeof fetch;
|
|
32
|
+
/** Additional transport request headers. */
|
|
19
33
|
headers?: Record<string, string>;
|
|
34
|
+
/** Connection timeout in milliseconds. Defaults to `10000`. */
|
|
20
35
|
timeout?: number;
|
|
36
|
+
/** Client identity advertised to the server. */
|
|
21
37
|
clientInfo?: ClientInfo;
|
|
22
38
|
/**
|
|
23
39
|
* Protocol version negotiation mode passed to the SDK `Client`.
|
|
@@ -32,15 +48,28 @@ interface HttpConnectorOptions extends ConnectorInitOptions {
|
|
|
32
48
|
* - `{ pin: "2026-07-28" }`: modern era only, no fallback.
|
|
33
49
|
*/
|
|
34
50
|
protocolNegotiation?: VersionNegotiationMode;
|
|
51
|
+
/** Gateway endpoint through which MCP transport requests are routed. */
|
|
35
52
|
gatewayUrl?: string;
|
|
53
|
+
/** Server identifier forwarded to the gateway for observability. */
|
|
36
54
|
serverId?: string;
|
|
55
|
+
/** Retry settings for streamable HTTP reconnection. */
|
|
37
56
|
reconnectionOptions?: {
|
|
57
|
+
/** Maximum delay between reconnection attempts in milliseconds. */
|
|
38
58
|
maxReconnectionDelay?: number;
|
|
59
|
+
/** Delay before the first reconnection attempt in milliseconds. */
|
|
39
60
|
initialReconnectionDelay?: number;
|
|
61
|
+
/** Multiplier applied after each failed attempt. */
|
|
40
62
|
reconnectionDelayGrowFactor?: number;
|
|
63
|
+
/** Maximum number of reconnection attempts. */
|
|
41
64
|
maxRetries?: number;
|
|
42
65
|
};
|
|
43
66
|
}
|
|
67
|
+
/**
|
|
68
|
+
* Connects to an MCP server using streamable HTTP.
|
|
69
|
+
*
|
|
70
|
+
* The connector negotiates modern and legacy protocol eras by default and can
|
|
71
|
+
* route transport requests through an HTTP gateway.
|
|
72
|
+
*/
|
|
44
73
|
export declare class HttpConnector extends BaseConnector {
|
|
45
74
|
private readonly baseUrl;
|
|
46
75
|
private readonly headers;
|
|
@@ -53,11 +82,22 @@ export declare class HttpConnector extends BaseConnector {
|
|
|
53
82
|
private readonly reconnectionOptions?;
|
|
54
83
|
private transportType;
|
|
55
84
|
private streamableTransport;
|
|
85
|
+
/**
|
|
86
|
+
* Creates an HTTP connector.
|
|
87
|
+
*
|
|
88
|
+
* @param baseUrl - MCP endpoint URL.
|
|
89
|
+
* @param opts - Authentication, transport, SDK, and reconnection options.
|
|
90
|
+
*/
|
|
56
91
|
constructor(baseUrl: string, opts?: HttpConnectorOptions);
|
|
57
92
|
private buildClientOptions;
|
|
58
93
|
private unwrapStreamableError;
|
|
59
94
|
private classifyStreamableHttpFailure;
|
|
60
|
-
/**
|
|
95
|
+
/**
|
|
96
|
+
* Establishes a streamable HTTP connection to the MCP server.
|
|
97
|
+
*
|
|
98
|
+
* @returns A promise that resolves after protocol negotiation completes.
|
|
99
|
+
* @throws An error with `code: 401` when authentication is required.
|
|
100
|
+
*/
|
|
61
101
|
connect(): Promise<void>;
|
|
62
102
|
/**
|
|
63
103
|
* Tee an SSE response so v2 MRTR progress can be correlated even when the
|
|
@@ -65,8 +105,17 @@ export declare class HttpConnector extends BaseConnector {
|
|
|
65
105
|
*/
|
|
66
106
|
private observeSseProgress;
|
|
67
107
|
private connectWithStreamableHttp;
|
|
108
|
+
/**
|
|
109
|
+
* Returns fields that identify the endpoint and negotiated transport.
|
|
110
|
+
*
|
|
111
|
+
* @returns HTTP connector identity metadata.
|
|
112
|
+
*/
|
|
68
113
|
get publicIdentifier(): Record<string, string>;
|
|
69
|
-
/**
|
|
114
|
+
/**
|
|
115
|
+
* Returns the active transport type.
|
|
116
|
+
*
|
|
117
|
+
* @returns `"streamable-http"` after connection, otherwise `null`.
|
|
118
|
+
*/
|
|
70
119
|
getTransportType(): "streamable-http" | null;
|
|
71
120
|
protected cleanupResources(): Promise<void>;
|
|
72
121
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/transport/http.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,sBAAsB,EAC5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AA8C;IAEzE;;;;;OAKG;gBACS,OAAO,EAAE,MAAM,EAAE,IAAI,GAAE,oBAAyB;IAmC5D,OAAO,CAAC,kBAAkB;IAqD1B,OAAO,CAAC,qBAAqB;IAU7B,OAAO,CAAC,6BAA6B;IA0DrC;;;;;OAKG;IACG,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAyC9B;;;OAGG;IACH,OAAO,CAAC,kBAAkB;YAmDZ,yBAAyB;IAuNvC;;;;OAIG;IACH,IAAI,gBAAgB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAO7C;IAED;;;;OAIG;IACH,gBAAgB,IAAI,iBAAiB,GAAG,IAAI;cAQ5B,gBAAgB,IAAI,OAAO,CAAC,IAAI,CAAC;CA8BlD"}
|
|
@@ -6,7 +6,9 @@ import { ConnectionManager } from "./connection-manager.js";
|
|
|
6
6
|
import { StdioClientTransport } from "@modelcontextprotocol/client/stdio";
|
|
7
7
|
import { BaseConnector } from "./base.js";
|
|
8
8
|
import type { ClientInfo } from "./http.js";
|
|
9
|
+
/** Stdio-specific connector options. */
|
|
9
10
|
interface StdioConnectorOptions extends ConnectorInitOptions {
|
|
11
|
+
/** Client identity advertised to the server. */
|
|
10
12
|
clientInfo?: ClientInfo;
|
|
11
13
|
/**
|
|
12
14
|
* Protocol version negotiation mode. Defaults to `"legacy"` for stdio: the
|
|
@@ -17,6 +19,9 @@ interface StdioConnectorOptions extends ConnectorInitOptions {
|
|
|
17
19
|
*/
|
|
18
20
|
protocolNegotiation?: VersionNegotiationMode;
|
|
19
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Launches and connects to a local MCP server over standard input and output.
|
|
24
|
+
*/
|
|
20
25
|
export declare class StdioConnector extends BaseConnector {
|
|
21
26
|
private readonly command;
|
|
22
27
|
private readonly args;
|
|
@@ -25,6 +30,11 @@ export declare class StdioConnector extends BaseConnector {
|
|
|
25
30
|
private readonly errlog;
|
|
26
31
|
private readonly clientInfo;
|
|
27
32
|
private readonly protocolNegotiation;
|
|
33
|
+
/**
|
|
34
|
+
* Creates a stdio connector.
|
|
35
|
+
*
|
|
36
|
+
* @param options - Process launch, client identity, and shared connector options.
|
|
37
|
+
*/
|
|
28
38
|
constructor({ command, args, env, errlog, ...rest }?: {
|
|
29
39
|
command?: string;
|
|
30
40
|
args?: string[];
|
|
@@ -32,14 +42,32 @@ export declare class StdioConnector extends BaseConnector {
|
|
|
32
42
|
errlog?: Writable;
|
|
33
43
|
cwd?: string;
|
|
34
44
|
} & StdioConnectorOptions);
|
|
35
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* Starts the child process and establishes an MCP connection.
|
|
47
|
+
*
|
|
48
|
+
* @returns A promise that resolves after protocol negotiation completes.
|
|
49
|
+
*/
|
|
36
50
|
connect(): Promise<void>;
|
|
51
|
+
/**
|
|
52
|
+
* Returns fields identifying the launched command and arguments.
|
|
53
|
+
*
|
|
54
|
+
* @returns Stdio connector identity metadata.
|
|
55
|
+
*/
|
|
37
56
|
get publicIdentifier(): Record<string, string>;
|
|
38
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Owns the lifecycle of a stdio client transport.
|
|
60
|
+
*/
|
|
39
61
|
export declare class StdioConnectionManager extends ConnectionManager<StdioClientTransport> {
|
|
40
62
|
private readonly serverParams;
|
|
41
63
|
private readonly errlog;
|
|
42
64
|
private _transport;
|
|
65
|
+
/**
|
|
66
|
+
* Creates a connection manager for a local server process.
|
|
67
|
+
*
|
|
68
|
+
* @param serverParams - Process parameters passed to the SDK transport.
|
|
69
|
+
* @param errlog - Destination for the child process's standard error stream.
|
|
70
|
+
*/
|
|
43
71
|
constructor(serverParams: StdioServerParameters, errlog?: Writable);
|
|
44
72
|
protected establishConnection(): Promise<StdioClientTransport>;
|
|
45
73
|
protected closeConnection(_connection: StdioClientTransport): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["../../src/transport/stdio.ts"],"names":[],"mapp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AAM,CAAC,CAK7C;CACF;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,iBAAiB,CAAC,oBAAoB,CAAC;IACjF,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAwB;IACrD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAW;IAClC,OAAO,CAAC,UAAU,CAAqC;IAEvD;;;;;OAKG;gBAED,YAAY,EAAE,qBAAqB,EACnC,MAAM,GAAE,QAAyB;cAOnB,mBAAmB,IAAI,OAAO,CAAC,oBAAoB,CAAC;cAgBpD,eAAe,CAC7B,WAAW,EAAE,oBAAoB,GAChC,OAAO,CAAC,IAAI,CAAC;CAWjB"}
|
|
@@ -10,7 +10,9 @@ import type { ElicitRequestFormParams, ElicitRequestURLParams, ElicitResult } fr
|
|
|
10
10
|
export type ElicitContent = Record<string, string | number | boolean | string[]>;
|
|
11
11
|
/** Result of validate(params, content). */
|
|
12
12
|
export type ElicitValidationResult = {
|
|
13
|
+
/** Whether the submitted content satisfies the requested schema. */
|
|
13
14
|
valid: boolean;
|
|
15
|
+
/** Validation error messages when `valid` is `false`. */
|
|
14
16
|
errors?: string[];
|
|
15
17
|
};
|
|
16
18
|
type ElicitParams = ElicitRequestFormParams | ElicitRequestURLParams;
|
|
@@ -34,7 +36,7 @@ export declare function acceptWithDefaults(params: ElicitParams): ElicitResult;
|
|
|
34
36
|
export declare function accept(content: ElicitContent): ElicitResult;
|
|
35
37
|
/**
|
|
36
38
|
* Return an ElicitResult that declines the elicitation (user chose not to provide).
|
|
37
|
-
* Optional reason is for logging; the SDK result is { action: "decline" }
|
|
39
|
+
* Optional reason is for logging; the SDK result is `{ action: "decline" }`.
|
|
38
40
|
*/
|
|
39
41
|
export declare function decline(_reason?: string): ElicitResult;
|
|
40
42
|
/**
|
|
@@ -45,7 +47,7 @@ export declare function cancel(): ElicitResult;
|
|
|
45
47
|
* Validate content against the request's requestedSchema using Zod.
|
|
46
48
|
* Converts requestedSchema (JSON Schema) via `z.fromJSONSchema`, then
|
|
47
49
|
* safeParse(content). If conversion fails, returns
|
|
48
|
-
* { valid: false, errors: ["Unsupported or invalid schema"] }
|
|
50
|
+
* `{ valid: false, errors: ["Unsupported or invalid schema"] }`.
|
|
49
51
|
*/
|
|
50
52
|
export declare function validate(params: ElicitParams, content: ElicitContent): ElicitValidationResult;
|
|
51
53
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elicitation.d.ts","sourceRoot":"","sources":["../../src/utils/elicitation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,sBAAsB,EACtB,YAAY,EACb,MAAM,8BAA8B,CAAC;AAGtC,8DAA8D;AAC9D,MAAM,MAAM,aAAa,GAAG,MAAM,CAChC,MAAM,EACN,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,CACrC,CAAC;AAEF,2CAA2C;AAC3C,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAEF,KAAK,YAAY,GAAG,uBAAuB,GAAG,sBAAsB,CAAC;AAQrE;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,YAAY,GAAG,aAAa,CAoB/D;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa,GACtB,aAAa,CAIf;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,YAAY,CAErE;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,YAAY,CAE3D;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,YAAY,CAEtD;AAED;;GAEG;AACH,wBAAgB,MAAM,IAAI,YAAY,CAErC;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CACtB,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,aAAa,GACrB,sBAAsB,CAiBxB"}
|
|
1
|
+
{"version":3,"file":"elicitation.d.ts","sourceRoot":"","sources":["../../src/utils/elicitation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,sBAAsB,EACtB,YAAY,EACb,MAAM,8BAA8B,CAAC;AAGtC,8DAA8D;AAC9D,MAAM,MAAM,aAAa,GAAG,MAAM,CAChC,MAAM,EACN,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,EAAE,CACrC,CAAC;AAEF,2CAA2C;AAC3C,MAAM,MAAM,sBAAsB,GAAG;IACnC,oEAAoE;IACpE,KAAK,EAAE,OAAO,CAAC;IACf,yDAAyD;IACzD,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC;AAEF,KAAK,YAAY,GAAG,uBAAuB,GAAG,sBAAsB,CAAC;AAQrE;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,YAAY,GAAG,aAAa,CAoB/D;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,YAAY,EACpB,OAAO,CAAC,EAAE,aAAa,GACtB,aAAa,CAIf;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,YAAY,CAErE;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,OAAO,EAAE,aAAa,GAAG,YAAY,CAE3D;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,YAAY,CAEtD;AAED;;GAEG;AACH,wBAAgB,MAAM,IAAI,YAAY,CAErC;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CACtB,MAAM,EAAE,YAAY,EACpB,OAAO,EAAE,aAAa,GACrB,sBAAsB,CAiBxB"}
|
package/dist/utils/logging.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export declare class Logger {
|
|
|
27
27
|
static setDebug(enabled: boolean | 0 | 1 | 2): void;
|
|
28
28
|
static setFormat(format: LogFormat): void;
|
|
29
29
|
}
|
|
30
|
+
/** Default package logger used by client and connector operations. */
|
|
30
31
|
export declare const logger: SimpleConsoleLogger;
|
|
31
32
|
export {};
|
|
32
33
|
//# sourceMappingURL=logging.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging.d.ts","sourceRoot":"","sources":["../../src/utils/logging.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAChB,QAAQ,GACR,OAAO,GACP,MAAM,GACN,MAAM,GACN,MAAM,GACN,SAAS,GACT,OAAO,GACP,OAAO,CAAC;AAEZ,KAAK,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;AAwClD,cAAM,mBAAmB;IAErB,OAAO,CAAC,IAAI;IACL,KAAK,EAAE,QAAQ;IACf,MAAM,EAAE,SAAS;gBAFhB,IAAI,SAAY,EACjB,KAAK,GAAE,QAAiB,EACxB,MAAM,GAAE,SAAqB;IAGtC,OAAO,CAAC,KAAK;IAmCb,KAAK,GAAI,GAAG,MAAM,EAAE,GAAG,GAAG,OAAO,EAAE,UAA+B;IAClE,IAAI,GAAI,GAAG,MAAM,EAAE,GAAG,GAAG,OAAO,EAAE,UAA8B;IAChE,IAAI,GAAI,GAAG,MAAM,EAAE,GAAG,GAAG,OAAO,EAAE,UAA8B;IAChE,KAAK,GAAI,GAAG,MAAM,EAAE,GAAG,GAAG,OAAO,EAAE,UAA+B;IAClE,IAAI,GAAI,GAAG,MAAM,EAAE,GAAG,GAAG,OAAO,EAAE,UAA8B;IAChE,OAAO,GAAI,GAAG,MAAM,EAAE,GAAG,GAAG,OAAO,EAAE,UAAiC;IACtE,KAAK,GAAI,GAAG,MAAM,EAAE,GAAG,GAAG,OAAO,EAAE,UAA+B;IAElE,SAAS,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI;CAGn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