terminator-mcp-agent 0.23.8 → 0.23.10
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/index.js +8 -0
- package/package.json +6 -6
package/index.js
CHANGED
|
@@ -138,10 +138,17 @@ if (argv.includes("--add-to-app")) {
|
|
|
138
138
|
// Filter out --start if it exists, as it's for the wrapper script
|
|
139
139
|
const agentArgs = argv.filter((arg) => arg !== "--start");
|
|
140
140
|
|
|
141
|
+
// Set up environment variables for the child process
|
|
142
|
+
const childEnv = {
|
|
143
|
+
...process.env,
|
|
144
|
+
MCP_EXECUTION_MODE: process.env.MCP_EXECUTION_MODE || "local-copy",
|
|
145
|
+
};
|
|
146
|
+
|
|
141
147
|
let child = spawn(binary, agentArgs, {
|
|
142
148
|
stdio: ["pipe", "pipe", "pipe"],
|
|
143
149
|
shell: false,
|
|
144
150
|
detached: process.platform !== "win32",
|
|
151
|
+
env: childEnv,
|
|
145
152
|
});
|
|
146
153
|
|
|
147
154
|
process.stdin.pipe(child.stdin);
|
|
@@ -240,6 +247,7 @@ if (argv.includes("--add-to-app")) {
|
|
|
240
247
|
stdio: ["pipe", "pipe", "pipe"],
|
|
241
248
|
shell: false,
|
|
242
249
|
detached: process.platform !== "win32",
|
|
250
|
+
env: childEnv,
|
|
243
251
|
});
|
|
244
252
|
|
|
245
253
|
// Reconnect pipes
|
package/package.json
CHANGED
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
],
|
|
17
17
|
"name": "terminator-mcp-agent",
|
|
18
18
|
"optionalDependencies": {
|
|
19
|
-
"terminator-mcp-darwin-arm64": "0.23.
|
|
20
|
-
"terminator-mcp-darwin-x64": "0.23.
|
|
21
|
-
"terminator-mcp-linux-x64-gnu": "0.23.
|
|
22
|
-
"terminator-mcp-win32-arm64-msvc": "0.23.
|
|
23
|
-
"terminator-mcp-win32-x64-msvc": "0.23.
|
|
19
|
+
"terminator-mcp-darwin-arm64": "0.23.10",
|
|
20
|
+
"terminator-mcp-darwin-x64": "0.23.10",
|
|
21
|
+
"terminator-mcp-linux-x64-gnu": "0.23.10",
|
|
22
|
+
"terminator-mcp-win32-arm64-msvc": "0.23.10",
|
|
23
|
+
"terminator-mcp-win32-x64-msvc": "0.23.10"
|
|
24
24
|
},
|
|
25
25
|
"repository": {
|
|
26
26
|
"type": "git",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"sync-version": "node ./utils/sync-version.js",
|
|
33
33
|
"update-badges": "node ./utils/update-badges.js"
|
|
34
34
|
},
|
|
35
|
-
"version": "0.23.
|
|
35
|
+
"version": "0.23.10"
|
|
36
36
|
}
|