Urgent.News

What's breaking now, across thousands of outlets.

Tech

Fix spawn npx ENOENT for MCP servers on Windows (the cmd /c fix)

Fix "spawn npx ENOENT" for MCP servers on Windows Checked against the official docs: Oct 27, 2026 You add a local MCP server that starts with npx , it works on a Mac, and on Windows your AI client reports spawn npx ENOENT (or a vague "Connection closed" or "Failed to connect"). This is a well-known Windows quirk, and the usual fix is a three-word change to your config. This guide explains why it…

When attempting to create a local MCP server using npx on Windows, users often encounter the error "spawn npx ENOENT". This occurs because npx is a script launcher on Windows, not a standalone executable. Many MCP clients do not account for this and start server processes directly, causing the error. The recommended solution is to wrap the npx command with cmd /c, which instructs Windows to run the command and then exit.

To implement this fix, change the command in your MCP configuration from "npx" to "cmd /c npx". For example:

command: cmd

args: [ /c, npx, -y, @modelcontextprotocol/server-memory ]

This change allows cmd to execute npx correctly on Windows. It's important to note that not all clients require this fix; some, like Claude Desktop, can work with plain npx. However, if you experience the "spawn npx ENOENT" error, applying the cmd /c wrapper will resolve the issue. Additionally, ensure that you fully quit and reopen your MCP client after making the configuration change for it to take effect.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Run your coding agents in tmux and let a local model tell you which replies to read

In two weeks I sent my coding agents 1,523 prompts and read every closing message. I was fed up, so I put a small local model in front of them. It left me 696 to read. The tool is TLDRack.

  • Author ran 1,523 coding prompts, reviewing all outcomes
  • Integrated open-source tool TLDRack to assist agents
  • TLDRack uses local model to grade agent replies

Cursor rules vs AGENTS.md: which to use (and .cursorrules)

Cursor rules vs AGENTS.md Checked against the official docs: Oct 27, 2026 Cursor gives you three ways to hand your coding agent standing instructions: project rules in .cursor/rules , an AGENTS.md…

  • AGENTS.md is a markdown file for project instructions, supported by multiple coding agents.
  • .cursor/rules/.mdc files are Cursor-specific rules for certain situations, scoped by globs.
  • .cursorrules is legacy and will be deprecated, migrate to .cursor/rules/.mdc format.

SMR vs CMR Hard Drives: The Capacity Trick That Costs You Latency

A hard drive platter is a finite piece of glass, and the industry has been squeezing more bits onto it for decades. Conventional magnetic recording, or CMR, writes each track independently with a…

  • SMR improves capacity by up to 20-25% compared to CMR
  • Overlapping tracks in SMR cause higher random write latency
  • SMR's shingled design sacrifices rewrite flexibility for density

JIT vs AOT Compilation: Startup Pain Versus Peak Speed

Every program must eventually become machine code, but the moment that translation happens changes almost everything about how the program behaves.

  • AOT compiles code before launch, similar to C or Rust toolchains
  • JIT compiles code during runtime, like Java Virtual Machine and JavaScript engines
  • JIT offers peak speed but slower startup times compared to AOT

More from Friday 20 November →