@aiwerk/mcp-bridge 2.8.4 → 2.8.5
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/dist/bin/mcp-bridge.js +20 -0
- package/package.json +1 -1
package/dist/bin/mcp-bridge.js
CHANGED
|
@@ -195,6 +195,26 @@ 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());
|
|
200
|
+
process.stdout.write(`
|
|
201
|
+
Next step: add mcp-bridge to your MCP client.
|
|
202
|
+
|
|
203
|
+
Add this to your client's MCP server config:
|
|
204
|
+
|
|
205
|
+
{
|
|
206
|
+
"mcp-bridge": {
|
|
207
|
+
"command": "${isGlobal ? "mcp-bridge" : "node"}",
|
|
208
|
+
"args": ${isGlobal ? '["serve"]' : `["${join(__dirname, "..", "bin", "mcp-bridge.js")}", "serve"]`}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
Supported clients: Claude Code (~/.claude/settings.json),
|
|
213
|
+
Cursor (~/.cursor/mcp.json), Claude Desktop, Windsurf, OpenClaw, etc.
|
|
214
|
+
${!isGlobal ? "\nTip: Install globally for a cleaner setup:\n npm install -g @aiwerk/mcp-bridge\n" : ""}
|
|
215
|
+
After adding, restart your client. The bridge will appear as an 'mcp' tool
|
|
216
|
+
with search, install, and catalog actions to discover and add MCP servers.
|
|
217
|
+
`);
|
|
198
218
|
}
|
|
199
219
|
function cmdCatalog(logger) {
|
|
200
220
|
const catalogPath = join(PACKAGE_ROOT, "servers", "index.json");
|