anthropics / anthropics/claude-code
[BUG] desktop-commander plugin fails to start on Windows — npm error Invalid Version: (empty version spec)
- Vorherrschende Sprache
- Python
- Sterne
- 145k
- Forks
- 23.1k
- PR-Merge-Kennzahlen
- PR-Kennzahlen ausstehend
Beschreibung
### Preflight Checklist
- [x] I have searched [existing issues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug) and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
### What's Wrong?
Filed against: Claude plugin distribution / desktop-commander plugin manifest
(not the upstream @wonderwhy-er/desktop-commander package, which runs correctly
standalone — see "Evidence" below).
Summary
The desktop-commander plugin's MCP server never starts. npm exits during launch
with Invalid Version: and an empty version value, before the server process runs.
The client then reports CONNECTION_CLOSED. Reproduces on every session start and
survives a plugin reinstall.
Environment
|
-- | --
OS | Windows 11 Pro 10.0.26200
Node | v24.19.0
npm | v11.17.0
Package | @wonderwhy-er/desktop-commander
Client | Claude desktop app, packaged (MSIX) install, Cowork mode
Global install | present and functional at %APPDATA%\npm\desktop-commander.cmd
Observed error
From the client's MCP log (mcp-logs-plugin-desktop-commander-desktop-commander/*.jsonl):
{"debug":"Starting connection with timeout of 30000ms"}
{"error":"Server stderr: npm error Invalid Version: \nnpm error A complete log of this run can be found in: ...\\npm-cache\\_logs\\...-debug-0.log\n"}
{"debug":"Connection failed after 6526ms (CONNECTION_CLOSED): Connection closed"}
{"error":"Connection failed (CONNECTION_CLOSED): Connection closed"}Note the empty value after Invalid Version: — npm received a package specifier
with no version (e.g. a trailing @ with nothing following it).
Identical failure captured in three separate sessions, ~6s each:
2026-09-09T15-19-272026-09-09T15-20-162026-09-09T15-24-04
Reproduction
- Windows 11, Node 24.19.0, npm 11.17.0, packaged Claude desktop app.
- Install the
desktop-commanderplugin. - Start a session.
- Server fails to connect; log shows the error above. No tools are exposed.
Evidence this is not a local environment problem
npx @wonderwhy-er/desktop-commanderrun manually works — it blocks on stdin
awaiting JSON-RPC, which is correct stdio-server behavior.- Node and npm are on PATH and current.
- The package is installed globally and its shims exist and run.
- No proxy; registry reachable (other plugins' servers install and start fine from
the same npm cache in the same session — e.g.@modelcontextprotocol/server-pdf
logsexit 0). - Uninstalling and reinstalling the plugin does not change the result.
Suspected cause
The plugin manifest's server definition passes an empty or malformed version
specifier. The client invokes servers as:
npm exec --yes -- <package> <args>so a spec like @wonderwhy-er/desktop-commander@ (trailing @, no version) would
produce exactly this npm error before the server is reached.
Suggested fix
Either pin an explicit version, or omit the @ entirely:
@wonderwhy-er/desktop-commander@latest
@wonderwhy-er/desktop-commanderWorkaround attempted
Repointing the server at the working global install
(command: %APPDATA%\npm\desktop-commander.cmd, args: []) would bypass npm
version resolution, but the plugin's manifest file could not be located on disk —
it appears to live in a generated per-session directory, so a hand edit would not
persist in any case.
Impact
The plugin is entirely unusable on this configuration. Its skills load and are
offered to the model, but every tool they depend on is absent, so the skills
trigger and then cannot execute.
### What Should Happen?
I expect new 'desktop-commander' plugin for Windows distro, that will work.
### Error Messages/Logs
```shell
```
### Steps to Reproduce
Windows 11, Node 24.19.0, npm 11.17.0, packaged Claude desktop app.
Install the desktop-commander plugin.
Start a session.
Server fails to connect; log shows the error above. No tools are exposed.
### Claude Model
Opus
### Is this a regression?
I don't know
### Last Working Version
_No response_
### Claude Code Version
Claude 1.49585.0.0
### Platform
Anthropic API
### Operating System
Windows
### Terminal/Shell
Windows Terminal
### Additional Information
_No response_
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Start by finding the desktop-commander plugin manifest or server definition used by the Claude desktop plugin distribution. Compare its package spec with the reported npm exec form and reproduce with the Windows/Node/npm versions from the issue. Done means the manifest no longer passes an empty version spec and the MCP server starts without CONNECTION_CLOSED.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- node.js
- Bereich
- desktop, tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 62/100