-
fix(mcp): inject global npm path into module.globalPaths at startup
发布于
2026-01-28 09:42:44 +00:00 The shell wrapper approach didn't work in the plugin context.
Instead, inject a banner into the bundled mcp-server.cjs that
dynamically adds the global npm root to module.globalPaths at
startup. This ensures @ast-grep/napi (and other global native
modules) can be resolved when running from the plugin cache.Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com
下载附件