dce54c8a3a
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.
75 KiB
75 KiB