Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

Summary

npx -y exa-mcp-server fails with could not determine executable to run because npm's securePath (in @npmcli/package-json) returns empty string for any bin path starting with . — the .smithery/stdio/index.cjs bin target gets silently deleted during package normalization, so npx never finds an executable.

Fix: rename .smithery/smithery/ in all 5 files that reference it. No other changes.

Fixes #107.

Review & Testing Checklist for Human

  • Test npx resolution end-to-end after publishing: npm pack, then npx /path/to/exa-mcp-server-<version>.tgz — confirm the bin resolves and the server starts. This is the only way to verify the fix actually works since there's no automated test for it.
  • Verify npm run build still outputs to smithery/: the smithery CLI respects the -o flag so this should work, but confirm the build artifacts land correctly.
  • Bump version and npm publish after merging — existing 3.1.7 installs remain broken until a new version hits the registry.

Notes

  • The Dockerfile ENTRYPOINT references smithery/index.cjs (not smithery/stdio/index.cjs) — this matches pre-existing behavior and was not changed.
  • Requested by: ishan@exa.ai
  • Link to Devin run

…solution

npm's securePath in @npmcli/package-json strips bin paths starting with
a dot, causing npx -y exa-mcp-server to fail with 'could not determine
executable to run'. Fixes #107.

Co-Authored-By: ishan@exa.ai <ishan@exa.ai>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@vercel
Copy link

vercel bot commented Feb 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
exa-mcp-server Ready Ready Preview, Comment Feb 6, 2026 6:10pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

npx fails to resolve executable due to hidden directory in bin field (.smithery/stdio/index.cjs)

0 participants