Skip to content

Conversation

@bolinfest
Copy link
Collaborator

@bolinfest bolinfest commented Nov 22, 2025

When running npx @openai/codex-shell-tool-mcp, the old code derived __dirname from process.argv[1], which points to npx’s transient wrapper script in ~/.npm/_npx/134d0fb7e1a27652/node_modules/.bin/codex-shell-tool-mcp. That made vendorRoot resolve to <npx cache>/vendor, so the startup checks failed with "Required binary missing" because it looked for codex-execve-wrapper in the wrong place.

By relying on the real module __dirname and path.resolve(__dirname, "..", "vendor"), the package now anchors to its installed location under node_modules/@openai/codex-shell-tool-mcp/, so the bundled binaries are found and npx launches correctly.

@bolinfest bolinfest requested a review from zhao-oai December 2, 2025 23:43
@bolinfest bolinfest enabled auto-merge (squash) December 2, 2025 23:54
@bolinfest bolinfest merged commit ee191db into main Dec 3, 2025
12 checks passed
@bolinfest bolinfest deleted the pr7134 branch December 3, 2025 00:37
@github-actions github-actions bot locked and limited conversation to collaborators Dec 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants