patchcord 0.3.69 → 0.3.71
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 +17 -7
- package/package.json +1 -1
package/bin/patchcord.mjs
CHANGED
|
@@ -555,7 +555,7 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
|
|
|
555
555
|
let geminiSettings = (existsSync(geminiPath) && safeReadJson(geminiPath)) || {};
|
|
556
556
|
if (!geminiSettings.mcpServers) geminiSettings.mcpServers = {};
|
|
557
557
|
geminiSettings.mcpServers.patchcord = {
|
|
558
|
-
httpUrl: `${serverUrl}/mcp`,
|
|
558
|
+
httpUrl: `${serverUrl}/mcp/bearer`,
|
|
559
559
|
headers: {
|
|
560
560
|
Authorization: `Bearer ${token}`,
|
|
561
561
|
"X-Patchcord-Machine": hostname,
|
|
@@ -578,7 +578,7 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
|
|
|
578
578
|
let zedSettings = (existsSync(zedPath) && safeReadJson(zedPath)) || {};
|
|
579
579
|
if (!zedSettings.context_servers) zedSettings.context_servers = {};
|
|
580
580
|
zedSettings.context_servers.patchcord = {
|
|
581
|
-
url: `${serverUrl}/mcp`,
|
|
581
|
+
url: `${serverUrl}/mcp/bearer`,
|
|
582
582
|
headers: {
|
|
583
583
|
Authorization: `Bearer ${token}`,
|
|
584
584
|
"X-Patchcord-Machine": hostname,
|
|
@@ -603,7 +603,7 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
|
|
|
603
603
|
if (!ocConfig.mcp) ocConfig.mcp = {};
|
|
604
604
|
ocConfig.mcp.patchcord = {
|
|
605
605
|
type: "remote",
|
|
606
|
-
url: `${serverUrl}/mcp`,
|
|
606
|
+
url: `${serverUrl}/mcp/bearer`,
|
|
607
607
|
headers: {
|
|
608
608
|
Authorization: `Bearer ${token}`,
|
|
609
609
|
"X-Patchcord-Machine": hostname,
|
|
@@ -620,7 +620,7 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
|
|
|
620
620
|
servers: {
|
|
621
621
|
patchcord: {
|
|
622
622
|
type: "http",
|
|
623
|
-
url: `${serverUrl}/mcp`,
|
|
623
|
+
url: `${serverUrl}/mcp/bearer`,
|
|
624
624
|
headers: {
|
|
625
625
|
Authorization: `Bearer ${token}`,
|
|
626
626
|
"X-Patchcord-Machine": hostname,
|
|
@@ -644,7 +644,17 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
|
|
|
644
644
|
console.log(`\n ${green}✓${r} VS Code configured: ${dim}${vscodePath}${r}`);
|
|
645
645
|
console.log(` ${dim}Requires GitHub Copilot extension with agent mode enabled.${r}`);
|
|
646
646
|
} else if (isCodex) {
|
|
647
|
-
// Codex: write MCP config +
|
|
647
|
+
// Codex: write MCP config + per-project skills + global plugin
|
|
648
|
+
// Per-project skills (working @patchcord in Codex v0.117)
|
|
649
|
+
const skillDest = join(cwd, ".agents", "skills", "patchcord");
|
|
650
|
+
mkdirSync(skillDest, { recursive: true });
|
|
651
|
+
writeFileSync(join(skillDest, "SKILL.md"),
|
|
652
|
+
readFileSync(join(pluginRoot, "skills", "codex", "SKILL.md"), "utf-8"));
|
|
653
|
+
const waitDest = join(cwd, ".agents", "skills", "patchcord-wait");
|
|
654
|
+
mkdirSync(waitDest, { recursive: true });
|
|
655
|
+
writeFileSync(join(waitDest, "SKILL.md"),
|
|
656
|
+
readFileSync(join(pluginRoot, "skills", "wait", "SKILL.md"), "utf-8"));
|
|
657
|
+
|
|
648
658
|
const codexDir = join(cwd, ".codex");
|
|
649
659
|
mkdirSync(codexDir, { recursive: true });
|
|
650
660
|
const configPath = join(codexDir, "config.toml");
|
|
@@ -736,13 +746,13 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
|
|
|
736
746
|
console.log(`\n ${green}✓${r} Codex configured: ${dim}${configPath}${r}`);
|
|
737
747
|
console.log(` ${green}✓${r} Plugin installed: ${dim}@patchcord${r}, ${dim}@patchcord-wait${r}`);
|
|
738
748
|
} else {
|
|
739
|
-
// Claude Code: write .mcp.json (
|
|
749
|
+
// Claude Code: write .mcp.json (use /mcp/bearer to avoid OAuth discovery override)
|
|
740
750
|
const mcpPath = join(cwd, ".mcp.json");
|
|
741
751
|
const mcpConfig = {
|
|
742
752
|
mcpServers: {
|
|
743
753
|
patchcord: {
|
|
744
754
|
type: "http",
|
|
745
|
-
url: `${serverUrl}/mcp`,
|
|
755
|
+
url: `${serverUrl}/mcp/bearer`,
|
|
746
756
|
headers: {
|
|
747
757
|
Authorization: `Bearer ${token}`,
|
|
748
758
|
"X-Patchcord-Machine": hostname,
|