Skip to content

fix: rename npx bin to mcp-mongo-server (v3.0.1) - #45

Merged
kiliczsh merged 1 commit into
mainfrom
fix/npx-bin-name
Jul 29, 2026
Merged

fix: rename npx bin to mcp-mongo-server (v3.0.1)#45
kiliczsh merged 1 commit into
mainfrom
fix/npx-bin-name

Conversation

@kiliczsh

Copy link
Copy Markdown
Owner

Summary

Renames the CLI bin from mongodb to mcp-mongo-server so npx resolves it directly. Patch release 3.0.1.

Why

The package name is mcp-mongo-server, but the bin was named mongodb. When the package name and bin name differ, npx -y mcp-mongo-server "<connection-string>" (the form documented in the README) fails to resolve the single bin and errors with:

sh: mongodb: command not found

The only working invocation was the explicit npx -y -p mcp-mongo-server mongodb "<connection-string>", which is awkward and undocumented.

Change

  • package.json bin: mongodbmcp-mongo-server.
  • Version bump 3.0.03.0.1 (also updated in the server handshake in src/server.ts).

After this release, npx -y mcp-mongo-server "<connection-string>" — exactly what the README shows — works out of the box, no -p needed.

Notes

  • The README already documents the npx -y mcp-mongo-server … form, so no docs change is required.
  • Verified: the built server starts and connects over stdio (Connected to MongoDB database … Server connected successfully via stdio).

@kiliczsh
kiliczsh merged commit 55310c0 into main Jul 29, 2026
2 checks passed
@kiliczsh
kiliczsh deleted the fix/npx-bin-name branch July 29, 2026 11:44
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.

1 participant