@mcp-use/client 2.2.3 → 2.2.4
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 +2 -2
- package/package.json +1 -1
- package/dist/.tsbuildinfo +0 -1
- package/dist/auth/browser.d.ts +0 -218
- package/dist/auth/browser.d.ts.map +0 -1
- package/dist/auth/callback.d.ts +0 -9
- package/dist/auth/callback.d.ts.map +0 -1
- package/dist/auth/flow.d.ts +0 -32
- package/dist/auth/flow.d.ts.map +0 -1
- package/dist/auth/node.d.ts +0 -212
- package/dist/auth/node.d.ts.map +0 -1
- package/dist/auth/popup.d.ts +0 -67
- package/dist/auth/popup.d.ts.map +0 -1
- package/dist/auth/session-store.d.ts +0 -125
- package/dist/auth/session-store.d.ts.map +0 -1
- package/dist/auth/storage-file.d.ts +0 -18
- package/dist/auth/storage-file.d.ts.map +0 -1
- package/dist/auth/storage.d.ts +0 -34
- package/dist/auth/storage.d.ts.map +0 -1
- package/dist/auth/url.d.ts +0 -17
- package/dist/auth/url.d.ts.map +0 -1
- package/dist/code-mode/connector.d.ts +0 -27
- package/dist/code-mode/connector.d.ts.map +0 -1
- package/dist/code-mode/executor-e2b.d.ts +0 -46
- package/dist/code-mode/executor-e2b.d.ts.map +0 -1
- package/dist/code-mode/executor-vm.d.ts +0 -39
- package/dist/code-mode/executor-vm.d.ts.map +0 -1
- package/dist/code-mode/executor.d.ts +0 -81
- package/dist/code-mode/executor.d.ts.map +0 -1
- package/dist/core/base.d.ts +0 -423
- package/dist/core/base.d.ts.map +0 -1
- package/dist/core/browser.d.ts +0 -32
- package/dist/core/browser.d.ts.map +0 -1
- package/dist/core/config.d.ts +0 -225
- package/dist/core/config.d.ts.map +0 -1
- package/dist/core/node.d.ts +0 -437
- package/dist/core/node.d.ts.map +0 -1
- package/dist/core/session.d.ts +0 -792
- package/dist/core/session.d.ts.map +0 -1
- package/dist/core/skills.d.ts +0 -47
- package/dist/core/skills.d.ts.map +0 -1
- package/dist/index-browser.d.ts +0 -26
- package/dist/index-browser.d.ts.map +0 -1
- package/dist/index-browser.js +0 -4767
- package/dist/index-browser.js.map +0 -1
- package/dist/index.d.ts +0 -23
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -6105
- package/dist/index.js.map +0 -1
- package/dist/react/McpClientProvider.d.ts +0 -254
- package/dist/react/McpClientProvider.d.ts.map +0 -1
- package/dist/react/index.d.ts +0 -39
- package/dist/react/index.d.ts.map +0 -1
- package/dist/react/index.js +0 -9444
- package/dist/react/index.js.map +0 -1
- package/dist/react/rpc-logger.d.ts +0 -47
- package/dist/react/rpc-logger.d.ts.map +0 -1
- package/dist/react/storage.d.ts +0 -98
- package/dist/react/storage.d.ts.map +0 -1
- package/dist/react/token-expiry.d.ts +0 -9
- package/dist/react/token-expiry.d.ts.map +0 -1
- package/dist/react/types.d.ts +0 -727
- package/dist/react/types.d.ts.map +0 -1
- package/dist/react/useMcp-helpers.d.ts +0 -99
- package/dist/react/useMcp-helpers.d.ts.map +0 -1
- package/dist/react/useMcp-operations.d.ts +0 -180
- package/dist/react/useMcp-operations.d.ts.map +0 -1
- package/dist/react/useMcp.d.ts +0 -48
- package/dist/react/useMcp.d.ts.map +0 -1
- package/dist/react/useMcpServerQueues.d.ts +0 -403
- package/dist/react/useMcpServerQueues.d.ts.map +0 -1
- package/dist/react/view/ViewRenderer.d.ts +0 -20
- package/dist/react/view/ViewRenderer.d.ts.map +0 -1
- package/dist/react/view/ext-apps-bridge.d.ts +0 -3
- package/dist/react/view/ext-apps-bridge.d.ts.map +0 -1
- package/dist/react/view/initialized-sync.d.ts +0 -13
- package/dist/react/view/initialized-sync.d.ts.map +0 -1
- package/dist/react/view/inject-openai-file-apis.d.ts +0 -9
- package/dist/react/view/inject-openai-file-apis.d.ts.map +0 -1
- package/dist/react/view/parse-custom-props.d.ts +0 -10
- package/dist/react/view/parse-custom-props.d.ts.map +0 -1
- package/dist/react/view/resolve-view-resource.d.ts +0 -22
- package/dist/react/view/resolve-view-resource.d.ts.map +0 -1
- package/dist/react/view/sandbox-blob-url.d.ts +0 -27
- package/dist/react/view/sandbox-blob-url.d.ts.map +0 -1
- package/dist/react/view/types.d.ts +0 -220
- package/dist/react/view/types.d.ts.map +0 -1
- package/dist/react/view/use-display-mode.d.ts +0 -19
- package/dist/react/view/use-display-mode.d.ts.map +0 -1
- package/dist/react/view/view-detection.d.ts +0 -22
- package/dist/react/view/view-detection.d.ts.map +0 -1
- package/dist/react/view/view-host-policy.d.ts +0 -61
- package/dist/react/view/view-host-policy.d.ts.map +0 -1
- package/dist/sandbox.d.ts +0 -2
- package/dist/sandbox.d.ts.map +0 -1
- package/dist/sandbox.js +0 -288
- package/dist/sandbox.js.map +0 -1
- package/dist/telemetry/client-telemetry.d.ts +0 -13
- package/dist/telemetry/client-telemetry.d.ts.map +0 -1
- package/dist/telemetry/configure-browser.d.ts +0 -2
- package/dist/telemetry/configure-browser.d.ts.map +0 -1
- package/dist/telemetry/configure-node.d.ts +0 -2
- package/dist/telemetry/configure-node.d.ts.map +0 -1
- package/dist/telemetry/connector-telemetry.d.ts +0 -8
- package/dist/telemetry/connector-telemetry.d.ts.map +0 -1
- package/dist/telemetry/events.d.ts +0 -91
- package/dist/telemetry/events.d.ts.map +0 -1
- package/dist/telemetry/index.d.ts +0 -3
- package/dist/telemetry/index.d.ts.map +0 -1
- package/dist/telemetry/tel-fetch.d.ts +0 -19
- package/dist/telemetry/tel-fetch.d.ts.map +0 -1
- package/dist/telemetry/telemetry-browser.d.ts +0 -6
- package/dist/telemetry/telemetry-browser.d.ts.map +0 -1
- package/dist/telemetry/telemetry-node.d.ts +0 -8
- package/dist/telemetry/telemetry-node.d.ts.map +0 -1
- package/dist/telemetry/telemetry.d.ts +0 -75
- package/dist/telemetry/telemetry.d.ts.map +0 -1
- package/dist/transport/base.d.ts +0 -656
- package/dist/transport/base.d.ts.map +0 -1
- package/dist/transport/connection-manager.d.ts +0 -59
- package/dist/transport/connection-manager.d.ts.map +0 -1
- package/dist/transport/http.d.ts +0 -137
- package/dist/transport/http.d.ts.map +0 -1
- package/dist/transport/stdio.d.ts +0 -97
- package/dist/transport/stdio.d.ts.map +0 -1
- package/dist/utils/elicitation.d.ts +0 -54
- package/dist/utils/elicitation.d.ts.map +0 -1
- package/dist/utils/favicon.d.ts +0 -6
- package/dist/utils/favicon.d.ts.map +0 -1
- package/dist/utils/json-schema-validator.d.ts +0 -13
- package/dist/utils/json-schema-validator.d.ts.map +0 -1
- package/dist/utils/logging.d.ts +0 -33
- package/dist/utils/logging.d.ts.map +0 -1
- package/dist/utils/version.d.ts +0 -9
- package/dist/utils/version.d.ts.map +0 -1
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
export declare abstract class ConnectionManager<T = any> {
|
|
2
|
-
private _readyPromise;
|
|
3
|
-
private _readyResolver;
|
|
4
|
-
private _donePromise;
|
|
5
|
-
private _doneResolver;
|
|
6
|
-
private _exception;
|
|
7
|
-
private _connection;
|
|
8
|
-
private _task;
|
|
9
|
-
private _abortController;
|
|
10
|
-
private _startPromise;
|
|
11
|
-
private _stopPromise;
|
|
12
|
-
constructor();
|
|
13
|
-
/**
|
|
14
|
-
* Establish the connection.
|
|
15
|
-
*
|
|
16
|
-
* This method should be implemented by subclasses to establish the specific
|
|
17
|
-
* type of connection needed.
|
|
18
|
-
*
|
|
19
|
-
* @returns The established connection.
|
|
20
|
-
* @throws If the connection cannot be established.
|
|
21
|
-
*/
|
|
22
|
-
protected abstract establishConnection(): Promise<T>;
|
|
23
|
-
/**
|
|
24
|
-
* Close the connection.
|
|
25
|
-
*
|
|
26
|
-
* This method should be implemented by subclasses to close the specific type
|
|
27
|
-
* of connection.
|
|
28
|
-
*
|
|
29
|
-
* @param connection - The connection to close.
|
|
30
|
-
*/
|
|
31
|
-
protected abstract closeConnection(connection: T): Promise<void>;
|
|
32
|
-
/**
|
|
33
|
-
* Start the connection manager and establish a connection.
|
|
34
|
-
*
|
|
35
|
-
* @returns The established connection.
|
|
36
|
-
* @throws If the connection cannot be established.
|
|
37
|
-
*/
|
|
38
|
-
start(): Promise<T>;
|
|
39
|
-
private waitUntilReady;
|
|
40
|
-
/**
|
|
41
|
-
* Stop the connection manager and close the connection.
|
|
42
|
-
*/
|
|
43
|
-
stop(): Promise<void>;
|
|
44
|
-
private stopTask;
|
|
45
|
-
/**
|
|
46
|
-
* Reset all internal state.
|
|
47
|
-
*/
|
|
48
|
-
private reset;
|
|
49
|
-
/**
|
|
50
|
-
* The background task responsible for establishing and maintaining the
|
|
51
|
-
* connection until it is cancelled.
|
|
52
|
-
*/
|
|
53
|
-
private connectionTask;
|
|
54
|
-
/**
|
|
55
|
-
* Helper that returns a promise which resolves when the abort signal fires.
|
|
56
|
-
*/
|
|
57
|
-
private waitForAbort;
|
|
58
|
-
}
|
|
59
|
-
//# sourceMappingURL=connection-manager.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
import { type VersionNegotiationMode } from "@modelcontextprotocol/client";
|
|
2
|
-
import type { MCPAuthorizationInfo } from "../core/session.js";
|
|
3
|
-
import type { ConnectorInitOptions } from "./base.js";
|
|
4
|
-
import { BaseConnector } from "./base.js";
|
|
5
|
-
/** Client identity advertised to an MCP server during connection setup. */
|
|
6
|
-
export type ClientInfo = {
|
|
7
|
-
/** Stable programmatic client name. */
|
|
8
|
-
name: string;
|
|
9
|
-
/** Optional human-readable client title. */
|
|
10
|
-
title?: string;
|
|
11
|
-
/** Client version string. */
|
|
12
|
-
version: string;
|
|
13
|
-
/** Human-readable client description. */
|
|
14
|
-
description?: string;
|
|
15
|
-
/** Icons representing the client. */
|
|
16
|
-
icons?: Array<{
|
|
17
|
-
/** Icon URL. */
|
|
18
|
-
src: string;
|
|
19
|
-
/** Icon media type. */
|
|
20
|
-
mimeType?: string;
|
|
21
|
-
/** Supported icon sizes, such as `"48x48"`. */
|
|
22
|
-
sizes?: string[];
|
|
23
|
-
}>;
|
|
24
|
-
/** Public website describing the client. */
|
|
25
|
-
websiteUrl?: string;
|
|
26
|
-
};
|
|
27
|
-
/** HTTP-specific connector options. */
|
|
28
|
-
interface HttpConnectorOptions extends ConnectorInitOptions {
|
|
29
|
-
/** Bearer token added to the `Authorization` header. */
|
|
30
|
-
authToken?: string;
|
|
31
|
-
/** Fetch implementation used by transport requests. */
|
|
32
|
-
fetch?: typeof fetch;
|
|
33
|
-
/** Additional transport request headers. */
|
|
34
|
-
headers?: Record<string, string>;
|
|
35
|
-
/** Connection timeout in milliseconds. Defaults to `10000`. */
|
|
36
|
-
timeout?: number;
|
|
37
|
-
/** Client identity advertised to the server. */
|
|
38
|
-
clientInfo?: ClientInfo;
|
|
39
|
-
/**
|
|
40
|
-
* Protocol version negotiation mode passed to the SDK `Client`.
|
|
41
|
-
* - `"auto"` (mcp-use HTTP default): probe with `server/discover`, falling
|
|
42
|
-
* back to the 2025 handshake against legacy servers.
|
|
43
|
-
* - `"legacy"`: classic 2025 `initialize` handshake, no probe. This matches
|
|
44
|
-
* the official SDK's default when used directly.
|
|
45
|
-
* - In auto mode, the probe performs OAuth discovery on auth-required
|
|
46
|
-
* servers and can fail on servers whose
|
|
47
|
-
* authorization-server issuer differs from the server URL (RFC 8414 §3.3),
|
|
48
|
-
* which would otherwise mask the normal 401 → auth flow.
|
|
49
|
-
* - `{ pin: "2026-07-28" }`: modern era only, no fallback.
|
|
50
|
-
*/
|
|
51
|
-
protocolNegotiation?: VersionNegotiationMode;
|
|
52
|
-
/** Gateway endpoint through which MCP transport requests are routed. */
|
|
53
|
-
gatewayUrl?: string;
|
|
54
|
-
/** Server identifier forwarded to the gateway for observability. */
|
|
55
|
-
serverId?: string;
|
|
56
|
-
/** Retry settings for streamable HTTP reconnection. */
|
|
57
|
-
reconnectionOptions?: {
|
|
58
|
-
/** Maximum delay between reconnection attempts in milliseconds. */
|
|
59
|
-
maxReconnectionDelay?: number;
|
|
60
|
-
/** Delay before the first reconnection attempt in milliseconds. */
|
|
61
|
-
initialReconnectionDelay?: number;
|
|
62
|
-
/** Multiplier applied after each failed attempt. */
|
|
63
|
-
reconnectionDelayGrowFactor?: number;
|
|
64
|
-
/** Maximum number of reconnection attempts. */
|
|
65
|
-
maxRetries?: number;
|
|
66
|
-
};
|
|
67
|
-
/** Detect RFC 9728 metadata after anonymous connection. Defaults to true. */
|
|
68
|
-
detectMixedAuth?: boolean;
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Connects to an MCP server using streamable HTTP.
|
|
72
|
-
*
|
|
73
|
-
* The connector negotiates modern and legacy protocol eras by default and can
|
|
74
|
-
* route transport requests through an HTTP gateway.
|
|
75
|
-
*/
|
|
76
|
-
export declare class HttpConnector extends BaseConnector {
|
|
77
|
-
private readonly baseUrl;
|
|
78
|
-
private readonly headers;
|
|
79
|
-
private readonly timeout;
|
|
80
|
-
private readonly customFetch?;
|
|
81
|
-
private readonly clientInfo;
|
|
82
|
-
private readonly protocolNegotiation;
|
|
83
|
-
private readonly gatewayUrl?;
|
|
84
|
-
private readonly serverId?;
|
|
85
|
-
private readonly reconnectionOptions?;
|
|
86
|
-
private readonly detectMixedAuth;
|
|
87
|
-
private transportType;
|
|
88
|
-
private streamableTransport;
|
|
89
|
-
private hadAccessTokenAtConnect;
|
|
90
|
-
private pendingOAuthCompletion;
|
|
91
|
-
private authorizationDiscovery;
|
|
92
|
-
/**
|
|
93
|
-
* Creates an HTTP connector.
|
|
94
|
-
*
|
|
95
|
-
* @param baseUrl - MCP endpoint URL.
|
|
96
|
-
* @param opts - Authentication, transport, SDK, and reconnection options.
|
|
97
|
-
*/
|
|
98
|
-
constructor(baseUrl: string, opts?: HttpConnectorOptions);
|
|
99
|
-
private get oauthProvider();
|
|
100
|
-
private completeInteractiveAuthorization;
|
|
101
|
-
protected executeRequest<T>(operation: () => Promise<T>): Promise<T>;
|
|
102
|
-
/** Authenticate an already-connected server without requiring a 401 first. */
|
|
103
|
-
authenticate(): Promise<void>;
|
|
104
|
-
discoverAuthorization(): Promise<MCPAuthorizationInfo | undefined>;
|
|
105
|
-
private discoverMixedAuthorization;
|
|
106
|
-
private buildClientOptions;
|
|
107
|
-
private unwrapStreamableError;
|
|
108
|
-
private classifyStreamableHttpFailure;
|
|
109
|
-
/**
|
|
110
|
-
* Establishes a streamable HTTP connection to the MCP server.
|
|
111
|
-
*
|
|
112
|
-
* @returns A promise that resolves after protocol negotiation completes.
|
|
113
|
-
* @throws An error with `code: 401` when authentication is required.
|
|
114
|
-
*/
|
|
115
|
-
connect(): Promise<void>;
|
|
116
|
-
/**
|
|
117
|
-
* Tee an SSE response so v2 MRTR progress can be correlated even when the
|
|
118
|
-
* upstream SDK does not carry the original callback to retry request IDs.
|
|
119
|
-
*/
|
|
120
|
-
private observeSseProgress;
|
|
121
|
-
private connectWithStreamableHttp;
|
|
122
|
-
/**
|
|
123
|
-
* Returns fields that identify the endpoint and negotiated transport.
|
|
124
|
-
*
|
|
125
|
-
* @returns HTTP connector identity metadata.
|
|
126
|
-
*/
|
|
127
|
-
get publicIdentifier(): Record<string, string>;
|
|
128
|
-
/**
|
|
129
|
-
* Returns the active transport type.
|
|
130
|
-
*
|
|
131
|
-
* @returns `"streamable-http"` after connection, otherwise `null`.
|
|
132
|
-
*/
|
|
133
|
-
getTransportType(): "streamable-http" | null;
|
|
134
|
-
protected cleanupResources(): Promise<void>;
|
|
135
|
-
}
|
|
136
|
-
export {};
|
|
137
|
-
//# sourceMappingURL=http.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../src/transport/http.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,KAAK,sBAAsB,EAC5B,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAG/D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAwB1C,2EAA2E;AAC3E,MAAM,MAAM,UAAU,GAAG;IACvB,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,yCAAyC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qCAAqC;IACrC,KAAK,CAAC,EAAE,KAAK,CAAC;QACZ,gBAAgB;QAChB,GAAG,EAAE,MAAM,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CA+BlD"}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import type { VersionNegotiationMode } from "@modelcontextprotocol/client";
|
|
2
|
-
import type { StdioServerParameters } from "@modelcontextprotocol/client/stdio";
|
|
3
|
-
import type { Writable } from "node:stream";
|
|
4
|
-
import type { ConnectorInitOptions } from "./base.js";
|
|
5
|
-
import { ConnectionManager } from "./connection-manager.js";
|
|
6
|
-
import { StdioClientTransport } from "@modelcontextprotocol/client/stdio";
|
|
7
|
-
import { BaseConnector } from "./base.js";
|
|
8
|
-
import type { ClientInfo } from "./http.js";
|
|
9
|
-
/**
|
|
10
|
-
* How a spawned server's standard error is handled.
|
|
11
|
-
*
|
|
12
|
-
* - `"pipe"` forwards the child's stderr to the connector's `errlog`.
|
|
13
|
-
* - `"inherit"` hands the parent's stderr file descriptor to the child, which
|
|
14
|
-
* preserves TTY detection and colorization but bypasses `errlog`.
|
|
15
|
-
* - `"ignore"` discards it.
|
|
16
|
-
*
|
|
17
|
-
* @defaultValue `"pipe"`
|
|
18
|
-
*/
|
|
19
|
-
export type StdioStderrMode = "pipe" | "inherit" | "ignore";
|
|
20
|
-
/** Stdio-specific connector options. */
|
|
21
|
-
interface StdioConnectorOptions extends ConnectorInitOptions {
|
|
22
|
-
/** Client identity advertised to the server. */
|
|
23
|
-
clientInfo?: ClientInfo;
|
|
24
|
-
/**
|
|
25
|
-
* Protocol version negotiation mode. Defaults to `"legacy"` for stdio: the
|
|
26
|
-
* SDK docs advise against `"auto"` for spawn-per-invocation CLI/debug tools
|
|
27
|
-
* (a legacy server that never answers unknown pre-`initialize` requests
|
|
28
|
-
* stalls the probe, and the probe round trip perturbs byte-stable
|
|
29
|
-
* transcripts). Opt into `"auto"` or a pin explicitly.
|
|
30
|
-
*/
|
|
31
|
-
protocolNegotiation?: VersionNegotiationMode;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Launches and connects to a local MCP server over standard input and output.
|
|
35
|
-
*/
|
|
36
|
-
export declare class StdioConnector extends BaseConnector {
|
|
37
|
-
private readonly command;
|
|
38
|
-
private readonly args;
|
|
39
|
-
private readonly env?;
|
|
40
|
-
private readonly cwd?;
|
|
41
|
-
private readonly errlog;
|
|
42
|
-
private readonly stderr;
|
|
43
|
-
private readonly clientInfo;
|
|
44
|
-
private readonly protocolNegotiation;
|
|
45
|
-
/**
|
|
46
|
-
* Creates a stdio connector.
|
|
47
|
-
*
|
|
48
|
-
* @param options - Process launch, client identity, and shared connector options.
|
|
49
|
-
*/
|
|
50
|
-
constructor({ command, args, env, errlog, stderr, ...rest }?: {
|
|
51
|
-
command?: string;
|
|
52
|
-
args?: string[];
|
|
53
|
-
env?: Record<string, string>;
|
|
54
|
-
errlog?: Writable;
|
|
55
|
-
/**
|
|
56
|
-
* How the child's standard error is handled. Defaults to `"pipe"` so
|
|
57
|
-
* {@link StdioStderrMode} forwarding to `errlog` works without extra
|
|
58
|
-
* configuration; pass `"inherit"` to keep the child on the parent's
|
|
59
|
-
* stderr file descriptor.
|
|
60
|
-
*/
|
|
61
|
-
stderr?: StdioStderrMode;
|
|
62
|
-
cwd?: string;
|
|
63
|
-
} & StdioConnectorOptions);
|
|
64
|
-
/**
|
|
65
|
-
* Starts the child process and establishes an MCP connection.
|
|
66
|
-
*
|
|
67
|
-
* @returns A promise that resolves after protocol negotiation completes.
|
|
68
|
-
*/
|
|
69
|
-
connect(): Promise<void>;
|
|
70
|
-
/**
|
|
71
|
-
* Returns fields identifying the launched command and arguments.
|
|
72
|
-
*
|
|
73
|
-
* @returns Stdio connector identity metadata.
|
|
74
|
-
*/
|
|
75
|
-
get publicIdentifier(): Record<string, string>;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Owns the lifecycle of a stdio client transport.
|
|
79
|
-
*/
|
|
80
|
-
export declare class StdioConnectionManager extends ConnectionManager<StdioClientTransport> {
|
|
81
|
-
private readonly serverParams;
|
|
82
|
-
private readonly errlog;
|
|
83
|
-
private _transport;
|
|
84
|
-
private _stderrSource;
|
|
85
|
-
private readonly _onErrlogError;
|
|
86
|
-
/**
|
|
87
|
-
* Creates a connection manager for a local server process.
|
|
88
|
-
*
|
|
89
|
-
* @param serverParams - Process parameters passed to the SDK transport.
|
|
90
|
-
* @param errlog - Destination for the child process's standard error stream.
|
|
91
|
-
*/
|
|
92
|
-
constructor(serverParams: StdioServerParameters, errlog?: Writable);
|
|
93
|
-
protected establishConnection(): Promise<StdioClientTransport>;
|
|
94
|
-
protected closeConnection(_connection: StdioClientTransport): Promise<void>;
|
|
95
|
-
}
|
|
96
|
-
export {};
|
|
97
|
-
//# sourceMappingURL=stdio.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stdio.d.ts","sourceRoot":"","sources":["../../src/transport/stdio.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,sBAAsB,EACvB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAG5C,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAItD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE5C;;;;;;;;;GASG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE5D,wCAAwC;AACxC,UAAU,qBAAsB,SAAQ,oBAAoB;IAC1D,gDAAgD;IAChD,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;;;;;OAMG;IACH,mBAAmB,CAAC,EAAE,sBAAsB,CAAC;CAC9C;AAED;;GAEG;AACH,qBAAa,cAAe,SAAQ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ACnC,MAAM,GAAE,QAAyB;cAOnB,mBAAmB,IAAI,OAAO,CAAC,oBAAoB,CAAC;cA8BpD,eAAe,CAC7B,WAAW,EAAE,oBAAoB,GAChC,OAAO,CAAC,IAAI,CAAC;CAgBjB"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Client-side helpers for MCP elicitation (form/URL mode).
|
|
3
|
-
*
|
|
4
|
-
* The server sends `requestedSchema` as JSON Schema. These helpers provide
|
|
5
|
-
* defaults extraction, validation (via Zod's `z.fromJSONSchema`), and typed
|
|
6
|
-
* ElicitResult builders.
|
|
7
|
-
*/
|
|
8
|
-
import type { ElicitRequestFormParams, ElicitRequestURLParams, ElicitResult } from "@modelcontextprotocol/client";
|
|
9
|
-
/** Content shape for ElicitResult when action is "accept". */
|
|
10
|
-
export type ElicitContent = Record<string, string | number | boolean | string[]>;
|
|
11
|
-
/** Result of validate(params, content). */
|
|
12
|
-
export type ElicitValidationResult = {
|
|
13
|
-
/** Whether the submitted content satisfies the requested schema. */
|
|
14
|
-
valid: boolean;
|
|
15
|
-
/** Validation error messages when `valid` is `false`. */
|
|
16
|
-
errors?: string[];
|
|
17
|
-
};
|
|
18
|
-
type ElicitParams = ElicitRequestFormParams | ElicitRequestURLParams;
|
|
19
|
-
/**
|
|
20
|
-
* Get default values from the elicitation request's requestedSchema (form mode).
|
|
21
|
-
* For URL mode or when no schema is present, returns an empty object.
|
|
22
|
-
*/
|
|
23
|
-
export declare function getDefaults(params: ElicitParams): ElicitContent;
|
|
24
|
-
/**
|
|
25
|
-
* Merge partial content with schema defaults. Keys present in partial are kept;
|
|
26
|
-
* missing keys are filled from requestedSchema.properties[*].default.
|
|
27
|
-
*/
|
|
28
|
-
export declare function applyDefaults(params: ElicitParams, partial?: ElicitContent): ElicitContent;
|
|
29
|
-
/**
|
|
30
|
-
* Return an ElicitResult that accepts with content built from schema defaults.
|
|
31
|
-
*/
|
|
32
|
-
export declare function acceptWithDefaults(params: ElicitParams): ElicitResult;
|
|
33
|
-
/**
|
|
34
|
-
* Return an ElicitResult that accepts with the given content.
|
|
35
|
-
*/
|
|
36
|
-
export declare function accept(content: ElicitContent): ElicitResult;
|
|
37
|
-
/**
|
|
38
|
-
* Return an ElicitResult that declines the elicitation (user chose not to provide).
|
|
39
|
-
* Optional reason is for logging; the SDK result is `{ action: "decline" }`.
|
|
40
|
-
*/
|
|
41
|
-
export declare function decline(_reason?: string): ElicitResult;
|
|
42
|
-
/**
|
|
43
|
-
* Return an ElicitResult that cancels the elicitation (user cancelled the operation).
|
|
44
|
-
*/
|
|
45
|
-
export declare function cancel(): ElicitResult;
|
|
46
|
-
/**
|
|
47
|
-
* Validate content against the request's requestedSchema using Zod.
|
|
48
|
-
* Converts requestedSchema (JSON Schema) via `z.fromJSONSchema`, then
|
|
49
|
-
* safeParse(content). If conversion fails, returns
|
|
50
|
-
* `{ valid: false, errors: ["Unsupported or invalid schema"] }`.
|
|
51
|
-
*/
|
|
52
|
-
export declare function validate(params: ElicitParams, content: ElicitContent): ElicitValidationResult;
|
|
53
|
-
export {};
|
|
54
|
-
//# sourceMappingURL=elicitation.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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/favicon.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Detect and retrieve an MCP server's favicon as a base64 data URL.
|
|
3
|
-
* Skips local/private hosts; walks subdomain levels until a non-default favicon is found.
|
|
4
|
-
*/
|
|
5
|
-
export declare function detectFavicon(serverUrl: string): Promise<string | null>;
|
|
6
|
-
//# sourceMappingURL=favicon.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"favicon.d.ts","sourceRoot":"","sources":["../../src/utils/favicon.ts"],"names":[],"mappings":"AAgDA;;;GAGG;AACH,wBAAsB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAgC7E"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { JsonSchemaType, jsonSchemaValidator } from "@modelcontextprotocol/client";
|
|
2
|
-
/**
|
|
3
|
-
* JSON Schema validator that maps common `$schema` dialect URIs to the
|
|
4
|
-
* matching `@cfworker/json-schema` draft. The v2 SDK default rejects any
|
|
5
|
-
* schema not declaring JSON Schema 2020-12 as an "unsupported dialect", which
|
|
6
|
-
* breaks `tools/call` against v1-era servers that emit draft-04/-07/2019-09
|
|
7
|
-
* `$schema` on tool `outputSchema` (mcp-use#1839). Unknown `$schema` URIs
|
|
8
|
-
* still fail fast via the SDK's strict default validator.
|
|
9
|
-
*/
|
|
10
|
-
export declare class DialectJsonSchemaValidator implements jsonSchemaValidator {
|
|
11
|
-
getValidator<T>(schema: JsonSchemaType): import("@modelcontextprotocol/client").JsonSchemaValidator<T>;
|
|
12
|
-
}
|
|
13
|
-
//# sourceMappingURL=json-schema-validator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"json-schema-validator.d.ts","sourceRoot":"","sources":["../../src/utils/json-schema-validator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACpB,MAAM,8BAA8B,CAAC;AAmCtC;;;;;;;GAOG;AACH,qBAAa,0BAA2B,YAAW,mBAAmB;IACpE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,cAAc;CAQvC"}
|
package/dist/utils/logging.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export type LogLevel = "silent" | "error" | "warn" | "info" | "http" | "verbose" | "debug" | "silly";
|
|
2
|
-
type LogFormat = "minimal" | "detailed" | "emoji";
|
|
3
|
-
declare class SimpleConsoleLogger {
|
|
4
|
-
private name;
|
|
5
|
-
level: LogLevel;
|
|
6
|
-
format: LogFormat;
|
|
7
|
-
constructor(name?: string, level?: LogLevel, format?: LogFormat);
|
|
8
|
-
private write;
|
|
9
|
-
error: (m: string, ...a: unknown[]) => void;
|
|
10
|
-
warn: (m: string, ...a: unknown[]) => void;
|
|
11
|
-
info: (m: string, ...a: unknown[]) => void;
|
|
12
|
-
debug: (m: string, ...a: unknown[]) => void;
|
|
13
|
-
http: (m: string, ...a: unknown[]) => void;
|
|
14
|
-
verbose: (m: string, ...a: unknown[]) => void;
|
|
15
|
-
silly: (m: string, ...a: unknown[]) => void;
|
|
16
|
-
setFormat(format: LogFormat): void;
|
|
17
|
-
}
|
|
18
|
-
export declare class Logger {
|
|
19
|
-
private static instances;
|
|
20
|
-
private static currentFormat;
|
|
21
|
-
private static currentLevel;
|
|
22
|
-
static get(name?: string): SimpleConsoleLogger;
|
|
23
|
-
static configure({ level, format, }?: {
|
|
24
|
-
level?: LogLevel;
|
|
25
|
-
format?: LogFormat;
|
|
26
|
-
}): void;
|
|
27
|
-
static setDebug(enabled: boolean | 0 | 1 | 2): void;
|
|
28
|
-
static setFormat(format: LogFormat): void;
|
|
29
|
-
}
|
|
30
|
-
/** Default package logger used by client and connector operations. */
|
|
31
|
-
export declare const logger: SimpleConsoleLogger;
|
|
32
|
-
export {};
|
|
33
|
-
//# sourceMappingURL=logging.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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;CAGnC;AAED,qBAAa,MAAM;IACjB,OAAO,CAAC,MAAM,CAAC,SAAS,CAA2C;IACnE,OAAO,CAAC,MAAM,CAAC,aAAa,CAAwB;IACpD,OAAO,CAAC,MAAM,CAAC,YAAY,CAAuB;IAElD,MAAM,CAAC,GAAG,CAAC,IAAI,SAAY,GAAG,mBAAmB;IAQjD,MAAM,CAAC,SAAS,CAAC,EACf,KAAkB,EAClB,MAAkB,GACnB,GAAE;QAAE,KAAK,CAAC,EAAE,QAAQ,CAAC;QAAC,MAAM,CAAC,EAAE,SAAS,CAAA;KAAO,GAAG,IAAI;IASvD,MAAM,CAAC,QAAQ,CAAC,OAAO,EAAE,OAAO,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,IAAI;IAcnD,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,GAAG,IAAI;CAG1C;AAED,sEAAsE;AACtE,eAAO,MAAM,MAAM,qBAAe,CAAC"}
|
package/dist/utils/version.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/** Installed `@mcp-use/client` package version. */
|
|
2
|
-
export declare const VERSION: string;
|
|
3
|
-
/**
|
|
4
|
-
* Returns the installed `@mcp-use/client` package version.
|
|
5
|
-
*
|
|
6
|
-
* @returns Package version string.
|
|
7
|
-
*/
|
|
8
|
-
export declare function getPackageVersion(): string;
|
|
9
|
-
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/utils/version.ts"],"names":[],"mappings":"AAEA,mDAAmD;AACnD,eAAO,MAAM,OAAO,QAA8B,CAAC;AAEnD;;;;GAIG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C"}
|