idx-cli/web/src
hermes bdbcf62a7b fix(npm): install the binary on first run when postinstall was skipped
npm 12 blocks install scripts of unapproved packages under `npx` and
`npm install -g` (its allow-scripts policy). The postinstall download never
ran, so `npx -y idx-mcp` exited with "installed binary not found" and MCP
clients saw only "Connection closed". Hermes Agent hits this by default: it
runs a bare `npx` with its own npm 12.

The launcher now runs the installer itself when the binary is missing,
logging to stderr so the idx-mcp stdout channel stays clean. This also covers
pnpm 10+ and bun, which skip dependency scripts by default.

npm-smoke installs idx-mcp with --ignore-scripts and checks that the first
run still starts cleanly.

Fixes #41

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WB13omP6h7YeyJx7GNtUnF
2026-10-16 04:40:40 +00:00
..
assets feat(web): idx website and user docs (Astro Starlight) 2026-10-15 05:12:45 +00:00
components fix(web): address PR review (clean .md output, one MCP config source) 2026-10-15 05:29:02 +00:00
content/docs fix(npm): install the binary on first run when postinstall was skipped 2026-10-16 04:40:40 +00:00
data fix(web): address PR review (clean .md output, one MCP config source) 2026-10-15 05:29:02 +00:00
og feat(web): Open Graph images for the landing page and docs pages 2026-10-15 06:32:14 +00:00
pages feat(web): Open Graph images for the landing page and docs pages 2026-10-15 06:32:14 +00:00
styles fix(web): compact prev/next links on docs pages 2026-10-15 06:35:10 +00:00
content.config.ts feat(web): idx website and user docs (Astro Starlight) 2026-10-15 05:12:45 +00:00
routeData.ts feat(web): Open Graph images for the landing page and docs pages 2026-10-15 06:32:14 +00:00