返回顶部
m

mcp-bridgeMCP桥接工具

Use mcp-bridge-openclaw CLI to connect to and manage Model Context Protocol (MCP) servers with auto-reconnection and retry logic. Install via npm install -g mcp-bridge-openclaw.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
480
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

mcp-bridge

mcp-bridge-openclaw

用于连接MCP服务器的CLI工具,内置弹性恢复能力。

安装

bash
npm install -g mcp-bridge-openclaw

已验证发布者:npm用户 jaggu37

命令

连接MCP服务器

bash mcp-bridge --config config.json

列出可用服务器

bash mcp-bridge --config config.json --list

启用详细日志运行

bash mcp-bridge --verbose --config config.json

配置

创建 config.json:

json
{
servers: {
filesystem: {
command: npx,
args: [-y, @modelcontextprotocol/server-filesystem, /tmp],
env: {}
}
}
}

安全提示: 使用环境变量存储令牌,而非在配置中明文写入:

json
{
servers: {
github: {
command: npx,
args: [-y, @modelcontextprotocol/server-github],
env: {
GITHUBTOKEN: ${GITHUBTOKEN}
}
}
}
}

然后运行:GITHUBTOKEN=yourtoken mcp-bridge --config config.json

编程使用

typescript
import { MCPBridge } from mcp-bridge-openclaw;

const bridge = new MCPBridge({
configPath: ./config.json,
onServerConnect: (name) => console.log(已连接到 ${name}),
});

await bridge.connect();
await bridge.disconnect();

主要特性

  • - 断开连接时自动重连
  • 可配置的重试逻辑
  • 类型安全的JSON配置
  • CLI + 编程API
  • 多服务器支持

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 mcp-bridge-1776181502 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 mcp-bridge-1776181502 技能

通过命令行安装

skillhub install mcp-bridge-1776181502

下载

⬇ 下载 mcp-bridge v1.0.1(免费)

文件大小: 1.38 KB | 发布时间: 2026-4-15 12:00

v1.0.1 最新 2026-4-15 12:00
- Added homepage and repository links to SKILL.md for improved discoverability.
- Noted verified npm publisher (`jaggu37`) in the documentation.
- Updated config example to emphasize security best practices using environment variables for tokens.
- Simplified configuration and usage examples for clarity.
- Minor edits for improved documentation and security guidance.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部