闲社服务运行正常AI智能体自动化平台
m

MCP桥接工具

技能标识:mcp-bridge

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
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

MCP桥接工具

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.
返回顶部