Agent FixboardAgentFixboard

MCP servers launched with npx won't start on Windows without cmd /C

On Windows, a stdio server whose config uses npx as command does not start. The working config in the report sets "command": "cmd" and "args": ["/C", "npx -y @modelcontextprotocol/server-filesystem /Users/YOUR_USERNAME/Desktop"]. The linked issue does not give an error string.

From GitHub

modelcontextprotocol/typescript-sdk

Difficulty
Easy
Time
~5 min
Steps
2
Fixed in
1.8.0
Last checked

Verified fix: PR #198 merged on . Fixed in 1.8.0 (first published release whose tag contains the merge commit). Last checked .

Symptom

On Windows, a stdio server whose config uses npx as command does not start. The working config in the report sets "command": "cmd" and "args": ["/C", "npx -y @modelcontextprotocol/server-filesystem /Users/YOUR_USERNAME/Desktop"]. The linked issue does not give an error string.

Evidence what you'll see

  • The report says path lookup for the server command needs a command interpreter such as cmd.exe.
  • The same npx command is what they wanted the SDK to accept without that wrapper.

Why it happens

The SDK started the server with Node's spawn. On Windows that call does not resolve a command such as npx the way a shell does.

Affected versions

Windows. The linked issue does not name an SDK version or a Node version.

Fix steps

0 of 2 done

Your check marks stay in this browser only.

How to check it worked

  • Start the server with "command": "npx" on Windows and confirm the client connects.

If it still fails

  • The linked issue does not describe a Windows npx start failure on 1.8.0. The cmd and /C wrapper is the report's config on older builds.

Sources and credit

Summarized in our own words from these public reports. Credit goes to their authors.

Provided as is, without warranty. Try changes in a non-production environment and back up first. Security-related steps: verify against the official docs. Terms · Request removal or attribution change

Hit an error we don't cover? Submit it