@mcp-use/client 2.0.0 → 2.0.1-canary.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/dist/.tsbuildinfo +1 -1
- package/dist/index-browser.js +1 -1
- package/dist/index.js +4 -12
- package/dist/index.js.map +1 -1
- package/dist/react/index.js +1 -1
- package/dist/transport/stdio.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index-browser.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1047,20 +1047,12 @@ var init_stdio = __esm({
|
|
|
1047
1047
|
}
|
|
1048
1048
|
logger.debug(`Connecting to MCP implementation via stdio: ${this.command}`);
|
|
1049
1049
|
try {
|
|
1050
|
-
let mergedEnv;
|
|
1051
|
-
if (this.env) {
|
|
1052
|
-
mergedEnv = {};
|
|
1053
|
-
for (const [key, value] of Object.entries(process2.env)) {
|
|
1054
|
-
if (value !== void 0) {
|
|
1055
|
-
mergedEnv[key] = value;
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1058
|
-
Object.assign(mergedEnv, this.env);
|
|
1059
|
-
}
|
|
1060
1050
|
const serverParams = {
|
|
1061
1051
|
command: this.command,
|
|
1062
1052
|
args: this.args,
|
|
1063
|
-
|
|
1053
|
+
// The SDK layers explicit values over getDefaultEnvironment(). Passing
|
|
1054
|
+
// the configured env through avoids exposing unrelated parent secrets.
|
|
1055
|
+
env: this.env,
|
|
1064
1056
|
cwd: this.cwd
|
|
1065
1057
|
};
|
|
1066
1058
|
this.connectionManager = new StdioConnectionManager(
|
|
@@ -1206,7 +1198,7 @@ init_connector_telemetry();
|
|
|
1206
1198
|
init_logging();
|
|
1207
1199
|
|
|
1208
1200
|
// src/utils/version.ts
|
|
1209
|
-
var VERSION = "2.0.0";
|
|
1201
|
+
var VERSION = "2.0.1-canary.0";
|
|
1210
1202
|
function getPackageVersion() {
|
|
1211
1203
|
return VERSION;
|
|
1212
1204
|
}
|