Bug
The bin field in package.json points to dist/server.js, but the file is missing the #!/usr/bin/env node shebang line at the top.
This means running the package via npx @mastanley13/ghl-mcp-server fails because the OS tries to execute the JS file as a shell script instead of passing it to Node.js.
Error output
ghl-mcp-server: line 1: use strict: command not found
ghl-mcp-server: line 2: /Applications: is a directory
ghl-mcp-server: line 6: syntax error near unexpected token `('
Fix
Add #!/usr/bin/env node as the first line of dist/server.js (ideally in the TypeScript build config so it's added automatically during tsc compilation, or via a post-build script).
Environment
- macOS (Darwin 25.3.0)
- Node.js v24.7.0
- npm via npx
Bug
The
binfield inpackage.jsonpoints todist/server.js, but the file is missing the#!/usr/bin/env nodeshebang line at the top.This means running the package via
npx @mastanley13/ghl-mcp-serverfails because the OS tries to execute the JS file as a shell script instead of passing it to Node.js.Error output
Fix
Add
#!/usr/bin/env nodeas the first line ofdist/server.js(ideally in the TypeScript build config so it's added automatically duringtsccompilation, or via a post-build script).Environment