GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(mcp log): print mcp stderr to opencode log file (#9982) · bpd1069/opencode@29cebd7

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • packages/opencode/src/mcp
    • index.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/opencode/src/mcp/index.ts‎

Copy file name to clipboardExpand all lines: packages/opencode/src/mcp/index.ts
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ export namespace MCP {
409409
const [cmd, ...args] = mcp.command
410410
const cwd = Instance.directory
411411
const transport = new StdioClientTransport({
412-
stderr: "ignore",
412+
stderr: "pipe",
413413
command: cmd,
414414
args,
415415
cwd,
@@ -419,6 +419,9 @@ export namespace MCP {
419419
...mcp.environment,
420420
},
421421
})
422+
transport.stderr?.on("data", (chunk: Buffer) => {
423+
log.info(`mcp stderr: ${chunk.toString()}`, { key })
424+
})
422425

423426
const connectTimeout = mcp.timeout ?? DEFAULT_TIMEOUT
424427
try {

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.