@mergesafe-io/connect 0.1.0 → 0.2.0

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/README.md CHANGED
@@ -34,7 +34,7 @@ No dependencies, no telemetry, Node 18+.
34
34
  Not covered: Zed (its `settings.json` is JSONC with comments — a rewrite would
35
35
  destroy them; configure manually). For Claude Code CLI and Gemini CLI, use their
36
36
  built-in commands instead:
37
- `claude mcp add --transport sse mergesafe https://mcp.mergesafe.io/sse --header "Authorization: Bearer msk_…"`
37
+ `claude mcp add --transport http mergesafe https://mcp.mergesafe.io/mcp --header "Authorization: Bearer msk_…"`
38
38
 
39
39
  ## Options
40
40
 
package/lib/clients.js CHANGED
@@ -1,6 +1,10 @@
1
1
  /** Per-client knowledge: where the MCP config lives and what to write in it. */
2
2
  import path from "node:path";
3
3
 
4
+ export const MCP_HTTP_URL = "https://mcp.mergesafe.io/mcp";
5
+ // Legacy endpoint, kept for clients without solid Streamable HTTP support
6
+ // (opencode: SSE-only "remote" type; cline: open transport bugs; continue:
7
+ // header auth unverified on streamable-http). Revisit as they catch up.
4
8
  export const MCP_SSE_URL = "https://mcp.mergesafe.io/sse";
5
9
  export const SERVER_NAME = "mergesafe";
6
10
 
@@ -13,12 +17,13 @@ const CLIENTS = {
13
17
  label: "Claude Desktop",
14
18
  rootKey: "mcpServers",
15
19
  configPath: (ctx) => claudeDesktopConfigPath(ctx),
16
- // Claude Desktop has no native SSE + Bearer support; bridge via
17
- // mcp-remote. No space after "Authorization:" and env-expanded token —
18
- // both required by mcp-remote arg parsing.
20
+ // Claude Desktop has no native remote + Bearer support; bridge via
21
+ // mcp-remote (http-first: tries Streamable HTTP, falls back to SSE).
22
+ // No space after "Authorization:" and env-expanded token — both
23
+ // required by mcp-remote arg parsing.
19
24
  buildEntry: (key) => ({
20
25
  command: "npx",
21
- args: ["mcp-remote", MCP_SSE_URL, "--header", "Authorization:Bearer ${AUTH_TOKEN}"],
26
+ args: ["mcp-remote", MCP_HTTP_URL, "--header", "Authorization:Bearer ${AUTH_TOKEN}"],
22
27
  env: { AUTH_TOKEN: key },
23
28
  }),
24
29
  restartHint: "Fully quit and reopen Claude Desktop (needs Node.js 18+ for npx).",
@@ -30,21 +35,22 @@ const CLIENTS = {
30
35
  ctx.project
31
36
  ? path.join(ctx.cwd, ".cursor", "mcp.json")
32
37
  : path.join(ctx.home, ".cursor", "mcp.json"),
33
- buildEntry: (key) => ({ url: MCP_SSE_URL, headers: bearer(key) }),
38
+ // Cursor auto-detects Streamable HTTP from the URL (SSE fallback built in).
39
+ buildEntry: (key) => ({ url: MCP_HTTP_URL, headers: bearer(key) }),
34
40
  restartHint: "Restart Cursor or reload the window.",
35
41
  },
36
42
  windsurf: {
37
43
  label: "Windsurf",
38
44
  rootKey: "mcpServers",
39
45
  configPath: (ctx) => path.join(ctx.home, ".codeium", "windsurf", "mcp_config.json"),
40
- buildEntry: (key) => ({ serverUrl: MCP_SSE_URL, headers: bearer(key) }),
46
+ buildEntry: (key) => ({ serverUrl: MCP_HTTP_URL, headers: bearer(key) }),
41
47
  restartHint: "Fully quit and reopen Windsurf.",
42
48
  },
43
49
  vscode: {
44
50
  label: "VS Code (project)",
45
51
  rootKey: "servers",
46
52
  configPath: (ctx) => path.join(ctx.cwd, ".vscode", "mcp.json"),
47
- buildEntry: (key) => ({ type: "sse", url: MCP_SSE_URL, headers: bearer(key) }),
53
+ buildEntry: (key) => ({ type: "http", url: MCP_HTTP_URL, headers: bearer(key) }),
48
54
  restartHint: "Open mcp.json in VS Code and press the “Start” CodeLens.",
49
55
  },
50
56
  opencode: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mergesafe-io/connect",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "One-command MergeSafe MCP setup for Claude Desktop, Cursor, Windsurf, VS Code and opencode.",
5
5
  "keywords": ["mergesafe", "mcp", "model-context-protocol", "installer"],
6
6
  "homepage": "https://app.mergesafe.io",