@mcp-use/client 2.3.3 → 2.3.4-canary.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/core/browser.d.ts.map +1 -1
- package/dist/index-browser.js +7 -3
- package/dist/index-browser.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/react/index.js +11 -14
- package/dist/react/index.js.map +1 -1
- package/dist/react/view/ViewRenderer.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
package/dist/react/index.js
CHANGED
|
@@ -1880,7 +1880,7 @@ var HttpConnector = class extends BaseConnector {
|
|
|
1880
1880
|
};
|
|
1881
1881
|
|
|
1882
1882
|
// src/utils/version.ts
|
|
1883
|
-
var VERSION = "2.3.
|
|
1883
|
+
var VERSION = "2.3.4-canary.1";
|
|
1884
1884
|
function getPackageVersion() {
|
|
1885
1885
|
return VERSION;
|
|
1886
1886
|
}
|
|
@@ -4582,7 +4582,9 @@ var BrowserMCPClient = class _BrowserMCPClient extends BaseMCPClient {
|
|
|
4582
4582
|
timeout,
|
|
4583
4583
|
gatewayUrl,
|
|
4584
4584
|
serverId,
|
|
4585
|
-
reconnectionOptions
|
|
4585
|
+
reconnectionOptions,
|
|
4586
|
+
roots,
|
|
4587
|
+
defaultRequestOptions
|
|
4586
4588
|
} = serverConfig;
|
|
4587
4589
|
if (!url) {
|
|
4588
4590
|
throw new Error("Server URL is required");
|
|
@@ -4602,7 +4604,9 @@ var BrowserMCPClient = class _BrowserMCPClient extends BaseMCPClient {
|
|
|
4602
4604
|
authProvider,
|
|
4603
4605
|
detectMixedAuth,
|
|
4604
4606
|
wrapTransport,
|
|
4605
|
-
clientOptions,
|
|
4607
|
+
clientOptions: resolveClientOptions(clientOptions),
|
|
4608
|
+
roots,
|
|
4609
|
+
defaultRequestOptions,
|
|
4606
4610
|
onSampling: resolved.onSampling,
|
|
4607
4611
|
onElicitation: resolved.onElicitation,
|
|
4608
4612
|
onNotification: resolved.onNotification,
|
|
@@ -9105,17 +9109,10 @@ function ViewRendererBase({
|
|
|
9105
9109
|
const conn = connectionRef.current;
|
|
9106
9110
|
if (!conn) throw new Error("Server connection not available");
|
|
9107
9111
|
assertAppCanCallTool(conn.tools, name);
|
|
9108
|
-
|
|
9109
|
-
|
|
9110
|
-
|
|
9111
|
-
|
|
9112
|
-
});
|
|
9113
|
-
} catch (error) {
|
|
9114
|
-
bridge?.sendToolCancelled({
|
|
9115
|
-
reason: error instanceof Error ? error.message : String(error)
|
|
9116
|
-
});
|
|
9117
|
-
throw error;
|
|
9118
|
-
}
|
|
9112
|
+
return await conn.callTool(name, args || {}, {
|
|
9113
|
+
timeout: toolCallTimeout,
|
|
9114
|
+
resetTimeoutOnProgress: true
|
|
9115
|
+
});
|
|
9119
9116
|
});
|
|
9120
9117
|
}
|
|
9121
9118
|
if (capabilities.serverResources) {
|