patchcord 0.3.74 → 0.3.76

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 CHANGED
@@ -800,13 +800,13 @@ if (!cmd || cmd === "install" || cmd === "agent" || cmd === "--token" || cmd ===
800
800
  console.log(`\n ${green}✓${r} Codex configured: ${dim}${configPath}${r}`);
801
801
  console.log(` ${green}✓${r} Plugin installed: ${dim}@patchcord${r}, ${dim}@patchcord-wait${r}`);
802
802
  } else {
803
- // Claude Code: write .mcp.json (use /mcp/bearer to avoid OAuth discovery override)
803
+ // Claude Code: write .mcp.json
804
804
  const mcpPath = join(cwd, ".mcp.json");
805
805
  const mcpConfig = {
806
806
  mcpServers: {
807
807
  patchcord: {
808
808
  type: "http",
809
- url: `${serverUrl}/mcp/bearer`,
809
+ url: `${serverUrl}/mcp`,
810
810
  headers: {
811
811
  Authorization: `Bearer ${token}`,
812
812
  "X-Patchcord-Machine": hostname,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchcord",
3
- "version": "0.3.74",
3
+ "version": "0.3.76",
4
4
  "description": "Cross-machine agent messaging for Claude Code and Codex",
5
5
  "author": "ppravdin",
6
6
  "license": "MIT",
@@ -55,7 +55,8 @@ if [ -n "$mcp_json" ]; then
55
55
  mcp_url=$(jq -r '.mcpServers.patchcord.url // empty' "$mcp_json" 2>/dev/null || true)
56
56
  mcp_auth=$(jq -r '.mcpServers.patchcord.headers.Authorization // empty' "$mcp_json" 2>/dev/null || true)
57
57
  if [ -n "$mcp_url" ] && [ -n "$mcp_auth" ]; then
58
- pc_url="${mcp_url%/mcp}"
58
+ pc_url="${mcp_url%/mcp/bearer}"
59
+ pc_url="${pc_url%/mcp}"
59
60
  pc_token="${mcp_auth#Bearer }"
60
61
  fi
61
62
  fi
@@ -132,7 +133,7 @@ fi
132
133
  line=""
133
134
 
134
135
  if $FULL; then
135
- model_name=$(echo "$input" | jq -r '.model.display_name // "Claude"')
136
+ model_name=$(echo "$input" | jq -r 'if .model | type == "object" then .model.display_name // "Claude" elif .model | type == "string" then .model else "Claude" end' 2>/dev/null || echo "Claude")
136
137
 
137
138
  size=$(echo "$input" | jq -r '.context_window.context_window_size // 200000')
138
139
  [ "$size" -eq 0 ] 2>/dev/null && size=200000