Replies: 3 comments 1 reply
|
Windows 无 TTY 下 MCP stdio server 用 npx 拉起崩溃(node.exe error popup + fetch failed)——Windows 上 stdio 传输的经典问题:无 TTY 时 npx 子进程的 stdio 握手不稳定。 临时:1) MCP server 用本地安装(非 npx 即时拉取)2) 检查 PATH 里 node 可达性。MCP 接入细节见第 9 章:https://github.com/Electricitysheep/dsh-handbook/blob/main/docs/09-mcp-subagent-workflow.md |
|
@Electricitysheep Thanks for confirming the root cause — and the handbook ch.9 was exactly the reference I needed! Here's how I handled it on my end:
Your suggested local-install approach (pre-install the server, then run via Thanks again! |
|
@Electricitysheep Confirmed — your fix works. ✅ What I did:
Result:
So for anyone else hitting this: pre-install the MCP server and launch it via |
Uh oh!
There was an error while loading. Please reload this page.
Environment
0.1.0-rc.6, Windows 11@modelcontextprotocol/server-github@2025.4.8(stdio transport)Config
Symptoms
mcp__github__*tools fails withMCP error -32603: fetch failed.What works fine on the same machine
initializecorrectly:npx -y @modelcontextprotocol/server-github@2025.4.8→serverInfo: github-mcp-server 0.6.2.cmd /c npx ...(mimicking the dsh spawn path).GITHUB_TOKENis valid:GET https://api.github.com/userwith the token returns the authenticated user.Hypothesis
The failure only happens when the server is spawned by dsh (no TTY, stdio pipes owned by the host). This looks like the known class of issues where npx-based MCP servers fail silently in no-TTY environments (e.g. anthropics/claude-code#25044, modelcontextprotocol/servers#1082). npx does its own version resolution and child-process indirection, which can misbehave when stdin/stdout are pipes rather than a TTY.
Suggested improvements
npx(avoid the.cmd/ps1 wrapper + npx indirection).Happy to provide more logs or test another configuration if useful. Thanks for the great project!
All reactions