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:
+1
-1
@@ -1 +1 @@
|
||||
4a478bdd2063e99f6bc7cf62ec091b03757fd54fd99fba4b662d02b1f51543bc
|
||||
6df6bfd38005ef64f955d19b06f5723c581752c991bf6bcb1ce42b1cc3fe135e
|
||||
|
||||
Reference in New Issue
Block a user