patchcord 0.3.61 → 0.3.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/patchcord.mjs +1 -11
- package/package.json +1 -1
package/bin/patchcord.mjs
CHANGED
|
@@ -676,7 +676,7 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
|
|
|
676
676
|
console.log(`\n ${green}✓${r} Codex configured: ${dim}${configPath}${r}`);
|
|
677
677
|
console.log(` ${green}✓${r} Slash commands: ${dim}/patchcord${r}, ${dim}/patchcord-wait${r}`);
|
|
678
678
|
} else {
|
|
679
|
-
// Claude Code: write .mcp.json (MCP server
|
|
679
|
+
// Claude Code: write .mcp.json (MCP server only — channel plugin disabled)
|
|
680
680
|
const mcpPath = join(cwd, ".mcp.json");
|
|
681
681
|
const mcpConfig = {
|
|
682
682
|
mcpServers: {
|
|
@@ -688,14 +688,6 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
|
|
|
688
688
|
"X-Patchcord-Machine": hostname,
|
|
689
689
|
},
|
|
690
690
|
},
|
|
691
|
-
"patchcord-channel": {
|
|
692
|
-
command: "npx",
|
|
693
|
-
args: ["patchcord@latest", "channel"],
|
|
694
|
-
env: {
|
|
695
|
-
PATCHCORD_TOKEN: token,
|
|
696
|
-
PATCHCORD_SERVER: serverUrl,
|
|
697
|
-
},
|
|
698
|
-
},
|
|
699
691
|
},
|
|
700
692
|
};
|
|
701
693
|
|
|
@@ -704,7 +696,6 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
|
|
|
704
696
|
const existing = JSON.parse(readFileSync(mcpPath, "utf-8"));
|
|
705
697
|
existing.mcpServers = existing.mcpServers || {};
|
|
706
698
|
existing.mcpServers.patchcord = mcpConfig.mcpServers.patchcord;
|
|
707
|
-
existing.mcpServers["patchcord-channel"] = mcpConfig.mcpServers["patchcord-channel"];
|
|
708
699
|
writeFileSync(mcpPath, JSON.stringify(existing, null, 2) + "\n");
|
|
709
700
|
} catch {
|
|
710
701
|
writeFileSync(mcpPath, JSON.stringify(mcpConfig, null, 2) + "\n");
|
|
@@ -713,7 +704,6 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
|
|
|
713
704
|
writeFileSync(mcpPath, JSON.stringify(mcpConfig, null, 2) + "\n");
|
|
714
705
|
}
|
|
715
706
|
console.log(`\n ${green}✓${r} Claude Code configured: ${dim}${mcpPath}${r}`);
|
|
716
|
-
console.log(` ${dim}Channel plugin: launch with${r} ${bold}claude --dangerously-load-development-channels server:patchcord-channel${r}`);
|
|
717
707
|
}
|
|
718
708
|
|
|
719
709
|
// Warn about gitignore for per-project configs with tokens
|