Skip to content

Conversation

@OrdinarySF
Copy link

Summary

Use the active runtime (Node or Bun) to launch the MCP bridge and CLI, improving compatibility when running under Bun or a custom runtime path.

Changes

  • MCP bridge now uses process.execPath as the command and passes the bridge script path as the first arg.
  • CLI spawn resolves runtime from HAPPY_NODE_BIN or process.execPath, with Bun detection by version/basename.
  • Node-only flags are skipped for Bun, and the resolved runtime is logged for debugging.

Risk / Notes

  • Runtime path falls back to node if no execPath is available.
  • Bun detection depends on process.versions.bun or runtime basename containing bun.

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