fix(plugins): reuse the portable Node package-runner bootstrap

This commit is contained in:
morluto
2026-10-13 21:45:00 +08:00
parent 3457e65be5
commit 3206274e0b
12 changed files with 284 additions and 25 deletions
@@ -197,8 +197,12 @@ describe("plugin manifests", () => {
version: packageJson.version,
mcpServers: {
rea: {
command: "npx",
args: ["-y", `${packageJson.name}@${packageJson.version}`, "mcp"],
command: "node",
args: [
`${path.startsWith(".claude") ? "${CLAUDE_PLUGIN_ROOT}/" : "./"}scripts/plugin-mcp-launcher.mjs`,
`${packageJson.name}@${packageJson.version}`,
],
...(path.startsWith(".codex") ? { cwd: "." } : {}),
},
},
});