fix(mcp): bundle build with esbuild so plugin cache never needs node_modules

Claude Code spawns plugin MCP servers straight from the read-only
git-content plugin cache, which never gets an npm install for mcp/. The
old tsc-multi-file build imported bare specifiers that only resolved
via mcp/node_modules, so every fresh plugin install/update produced a
-32000 reconnect failure. Bundle mcp/src into a single dependency-free
build/index.js instead; the one CJS-heavy import (express, only used
by --transport=http) is now dynamic so the stdio path never evaluates it.
This commit is contained in:
2026-08-19 10:36:36 +07:00
parent 2fe465e36f
commit dce54c8a3a
29 changed files with 49260 additions and 3885 deletions
+48666 -180
View File
File diff suppressed because it is too large Load Diff