feat: add replaceEnvVarsInArray function and integrate it into server transport configuration (#241)

Co-authored-by: samanhappy@qq.com <my6051199>
This commit is contained in:
samanhappy
2025-07-22 23:24:04 +08:00
committed by GitHub
parent 69afb865c0
commit bc3c8facfa
2 changed files with 35 additions and 10 deletions

View File

@@ -183,7 +183,7 @@ const createTransportFromConfig = (name: string, conf: ServerConfig): any => {
transport = new StdioClientTransport({
command: conf.command,
args: conf.args,
args: replaceEnvVars(conf.args) as string[],
env: env,
stderr: 'pipe',
});