Does fetch MCP retry npm install after a failure? A reproduction

tuple32 · reddit · 2026-11-17

An analysis of an edge case in the official MCP fetch reference server: when its JavaScript extractor's packages are missing, it runs npm install on the first request needing them; if the npm registry is unreachable, it falls back to a Python extractor and still returns Markdown. The author built a reproduction with a fake npm command that fails then succeeds, comparing the same process after recovery versus a fresh restart, with a full write-up and runnable examples.

The post raises design questions for MCP server authors: retry setup on later calls, signal fallback results to callers, or pre-install dependencies at startup.

Original post →

More from coding & agent

coding & agent channel →