@aiwerk/mcp-bridge 2.8.6 → 2.8.7

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.
@@ -195,12 +195,21 @@ All logs go to stderr. Stdout is reserved for the MCP protocol (stdio mode).
195
195
  }
196
196
  function cmdInit(logger) {
197
197
  initConfigDir(logger);
198
- // Check if installed globally
199
- const isGlobal = __dirname.includes("node_modules") && !__dirname.includes(homedir());
198
+ // Detect global install: check if we're in a global node_modules (not under a project)
199
+ // Global paths: ~/.nvm/.../lib/node_modules, /usr/lib/node_modules, etc.
200
+ // Local paths: ~/projects/.../node_modules, ~/node_modules/
201
+ const isGlobal = __dirname.includes("node_modules") && (__dirname.includes("/lib/node_modules/") || __dirname.includes("\\lib\\node_modules\\"));
202
+ const cmd = isGlobal ? "mcp-bridge" : `node ${join(__dirname, "..", "bin", "mcp-bridge.js")}`;
200
203
  process.stdout.write(`
201
204
  Next step: add mcp-bridge to your MCP client.
202
205
 
203
- Add this to your client's MCP server config:
206
+ Claude Code: claude mcp add -s user mcp-bridge -- ${cmd} serve
207
+ Cursor: Add to ~/.cursor/mcp.json
208
+ Claude Desktop: Add to claude_desktop_config.json
209
+ Windsurf: Add to ~/.windsurf/mcp.json
210
+ OpenClaw: openclaw plugins install @aiwerk/openclaw-mcp-bridge
211
+
212
+ For Cursor/Claude Desktop/Windsurf, add this JSON block:
204
213
 
205
214
  {
206
215
  "mcp-bridge": {
@@ -208,9 +217,6 @@ Add this to your client's MCP server config:
208
217
  "args": ${isGlobal ? '["serve"]' : `["${join(__dirname, "..", "bin", "mcp-bridge.js")}", "serve"]`}
209
218
  }
210
219
  }
211
-
212
- Supported clients: Claude Code (~/.claude/settings.json),
213
- Cursor (~/.cursor/mcp.json), Claude Desktop, Windsurf, OpenClaw, etc.
214
220
  ${!isGlobal ? "\nTip: Install globally for a cleaner setup:\n npm install -g @aiwerk/mcp-bridge\n" : ""}
215
221
  After adding, restart your client. The bridge will appear as an 'mcp' tool
216
222
  with search, install, and catalog actions to discover and add MCP servers.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiwerk/mcp-bridge",
3
- "version": "2.8.6",
3
+ "version": "2.8.7",
4
4
  "description": "Standalone MCP server that multiplexes multiple MCP servers into one interface",
5
5
  "type": "module",
6
6
  "main": "./dist/src/index.js",