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.
More from coding & agent
- Product idea: cloud Android VMs and home WiFi proxies to make agents look human — Darpinian · 2026-11-29
- Clairvoyance dev reveals 'staff model' agent architecture: one PM, named agents, per-agent inboxes — draginol · 2026-11-29
- Claude Opus Configures Karabiner Media Keys End-to-End, No Human Hands — cantrell · 2026-11-29
- Agentic GraphRAG unifies enterprise knowledge and agent memory in one traversable graph — vm324234 · 2026-11-29
- Coding agent blocked from npm rewrote the whole package from memory — and it worked — Panther1537 · 2026-11-29
- AI agents solve 909 open math problems in 2 days on 18-year-old's Left to Solve site — julianibarz · 2026-11-29