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
+1 -1
View File
@@ -1 +1 @@
4a478bdd2063e99f6bc7cf62ec091b03757fd54fd99fba4b662d02b1f51543bc
6df6bfd38005ef64f955d19b06f5723c581752c991bf6bcb1ce42b1cc3fe135e