Files
heretek-control-core/tests
Mian Shahzad RazaandClaude Opus 4.8 6e960f84f6 fix(connect): MCPB args use ${__dirname} so node resolves server/index.js
Claude Desktop does not cd into the extracted bundle directory before
running `node`, so the relative path `server/index.js` resolved against
the wrong CWD → "Cannot find module" → instant "Server disconnected".
Prefix the entry-point with the MCPB ${__dirname} substitution variable
(the bundle's install path), matching the canonical DXT/MCPB pattern.

Verified: generated server/index.js passes `node --check` and boots
cleanly (prints startup logs, exits 0) with credentials embedded and the
correct /mcp/emcp-tools-server route.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
2026-06-30 05:47:58 +05:00
..