@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.
@@ -128,7 +128,7 @@ var Logger = class {
128
128
  var logger = Logger.get();
129
129
 
130
130
  // src/utils/version.ts
131
- var VERSION = "2.0.0";
131
+ var VERSION = "2.0.1-canary.0";
132
132
  function getPackageVersion() {
133
133
  return VERSION;
134
134
  }
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
- env: mergedEnv,
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
  }