We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5bfffbe commit 6e8cd31Copy full SHA for 6e8cd31
packages/opencode/src/mcp/index.ts
@@ -308,10 +308,12 @@ export namespace MCP {
308
309
if (mcp.type === "local") {
310
const [cmd, ...args] = mcp.command
311
+ const cwd = Instance.directory
312
const transport = new StdioClientTransport({
313
stderr: "ignore",
314
command: cmd,
315
args,
316
+ cwd,
317
env: {
318
...process.env,
319
...(cmd === "opencode" ? { BUN_BE_BUN: "1" } : {}),
@@ -334,6 +336,7 @@ export namespace MCP {
334
336
log.error("local mcp startup failed", {
335
337
key,
338
command: mcp.command,
339
340
error: error instanceof Error ? error.message : String(error),
341
})
342
status = {
0 commit comments