idx-cli/web
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
..
public feat(web): idx website and user docs (Astro Starlight) 2026-10-15 05:12:45 +00:00
scripts feat(web): idx website and user docs (Astro Starlight) 2026-10-15 05:12:45 +00:00
src fix(npm): install the binary on first run when postinstall was skipped 2026-10-16 04:40:40 +00:00
.gitignore feat(web): idx website and user docs (Astro Starlight) 2026-10-15 05:12:45 +00:00
astro.config.mjs feat(web): Open Graph images for the landing page and docs pages 2026-10-15 06:32:14 +00:00
bun.lock feat(web): Open Graph images for the landing page and docs pages 2026-10-15 06:32:14 +00:00
DESIGN.md feat(web): Open Graph images for the landing page and docs pages 2026-10-15 06:32:14 +00:00
package.json feat(web): Open Graph images for the landing page and docs pages 2026-10-15 06:32:14 +00:00
tsconfig.json feat(web): idx website and user docs (Astro Starlight) 2026-10-15 05:12:45 +00:00