idx-cli/docs
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
..
ARCHITECTURE.md refactor(core): move ownership queries, import, and sync into idx-core 2026-10-14 09:52:17 +00:00
CONVENTIONS.md refactor(core): compile the mock provider only with a testing feature 2026-10-14 09:31:12 +00:00
DESIGN.md chore: release 0.3.0 with idx-mcp 2026-10-14 19:01:29 +00:00
INSTALL.md chore: release 0.3.1 2026-10-15 03:14:45 +00:00
NPM_DISTRIBUTION.md fix(npm): install the binary on first run when postinstall was skipped 2026-10-16 04:40:40 +00:00
OWNERSHIP_PUBLISH.md fix(ownership): update syncs when a same-date snapshot is rebuilt 2026-10-14 18:52:13 +00:00
OWNERSHIP_SYNC.md fix: address release review (WAL-aware sync hash, empty MCP inputs) 2026-10-14 19:44:24 +00:00
SMOKE.md fix: address final review (path traversal, sync races, MCP limits) 2026-10-14 21:58:37 +00:00