Skip to content

fix: rename .smithery to smithery to fix npx executable resolution#172

Open
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1770391683-fix-npx-executable
Open

fix: rename .smithery to smithery to fix npx executable resolution#172
devin-ai-integration[bot] wants to merge 1 commit intomainfrom
devin/1770391683-fix-npx-executable

Conversation

@devin-ai-integration
Copy link
Contributor

fix: rename .smithery to smithery to fix npx executable resolution

Summary

Fixes #49npx -y exa-mcp-server fails with npm error could not determine executable to run.

Root cause: npm's package normalization (securePath in @npmcli/package-json) strips any bin path that starts with a dot. The path .smithery/stdio/index.cjs gets normalized to an empty string, the bin entry is deleted, and npx can't find an executable to run.

Fix: Rename the build output directory from .smithery to smithery across all references: package.json (bin, files, build scripts), .gitignore, .vercelignore, Dockerfile, tsconfig.json, and package-lock.json.

Review & Testing Checklist for Human

  • After merging, a new npm version must be published for the fix to reach end users. The code change alone doesn't fix anything until npm publish runs.
  • Test end-to-end locally: run npm pack, then npx /path/to/exa-mcp-server-<version>.tgz to confirm the bin resolves correctly before publishing.
  • Docker build: verify docker build . still works — the Dockerfile paths were updated but this wasn't tested.
  • No missed references: confirm no other configs, CI workflows, or deployment scripts reference .smithery that weren't updated here.

Notes

  • The Dockerfile ENTRYPOINT references smithery/index.cjs (not smithery/stdio/index.cjs). This matches the pre-existing behavior and was not changed by this PR.
  • Requested by: unknown ()
  • Link to Devin run

npm's package normalization (securePath in @npmcli/package-json) rejects
bin paths starting with a dot, causing the bin field to be stripped from
the manifest. This made 'npx -y exa-mcp-server' fail with 'could not
determine executable to run'.

Fixes #49

Co-Authored-By: unknown <>
@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 3:31pm

@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

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.

BUG: npm error could not determine executable to run

0 participants