mirror of
https://github.com/Heretek-AI/heretek-control-core.git
synced 2026-10-12 02:03:55 +00:00
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]>