Skip to content

chore(email-mcp): drop bin field from core package#40

Merged
stevenobiajulu merged 1 commit intomainfrom
chore/drop-duplicate-bin
Apr 20, 2026
Merged

chore(email-mcp): drop bin field from core package#40
stevenobiajulu merged 1 commit intomainfrom
chore/drop-duplicate-bin

Conversation

@stevenobiajulu
Copy link
Copy Markdown
Member

Summary

  • Follow-up to fix(cli): detect direct run through npm bin symlinks #39. The @usejunior/email-mcp package and the email-agent-mcp wrapper both declared a bin named email-agent-mcp pointing at different files. When both are installed, npm can only create one symlink — the core package wins and the wrapper's bin becomes unreachable. That's what caused the silent-exit bug fixed in fix(cli): detect direct run through npm bin symlinks #39 (v0.1.6).
  • fix(cli): detect direct run through npm bin symlinks #39 made the direct-run detection robust to the symlinked path, so the bug is already gone. This PR removes the duplicate bin declaration entirely so the two packages stop fighting over the same bin name at install time — belt-and-suspenders.
  • The @usejunior/email-mcp package is a library consumed by the email-agent-mcp wrapper; end users are not expected to invoke its CLI directly. Anyone who was doing so via the bin symlink can still run node node_modules/@usejunior/email-mcp/dist/cli.js.
  • No version bump — rides the next release cycle.

Test plan

  • npm run build (all workspaces)
  • npm run test:run → 492 tests passed across 38 files

The core `@usejunior/email-mcp` package and the wrapper `email-agent-mcp`
package both declared a `bin` called `email-agent-mcp`, pointing at
different files. When both are installed, npm can only create one
symlink — the core package wins and the wrapper's bin becomes
unreachable.

v0.1.6 fixed the resulting silent-exit bug by making cli.js's direct-run
guard robust to the symlinked path. This change removes the duplicate
bin declaration entirely so the two packages stop fighting for the same
bin name at install time.

Belt-and-suspenders. The `@usejunior/email-mcp` package is a library
consumed by the `email-agent-mcp` wrapper; end users are not expected
to invoke its CLI directly. Anyone who was doing so via its bin symlink
can still run `node node_modules/@usejunior/email-mcp/dist/cli.js`.
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 20, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@stevenobiajulu stevenobiajulu merged commit b0f0ae3 into main Apr 20, 2026
14 checks passed
@stevenobiajulu stevenobiajulu deleted the chore/drop-duplicate-bin branch April 20, 2026 17:03
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