经 AI Skill Hub 精选评估,MCP工具 获评「推荐使用」。这款MCP工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。
MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
MCP工具 是一款遵循 MCP(Model Context Protocol)标准协议的 AI 工具扩展。通过 MCP 协议,它可以让 Claude、Cursor 等主流 AI 客户端直接访问和操作外部工具、数据源和服务,实现 AI 能力的无缝扩展。无论是文件操作、数据库查询还是 API 调用,都可以通过自然语言在 AI 对话中直接触发,极大提升生产效率。
# 方式一:通过 Claude Code CLI 一键安装
claude skill install https://github.com/quilin-ai/agent-bridge
# 方式二:手动配置 claude_desktop_config.json
{
"mcpServers": {
"mcp--": {
"command": "npx",
"args": ["-y", "agent-bridge"]
}
}
}
# 配置文件位置
# macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
# Windows: %APPDATA%/Claude/claude_desktop_config.json
# 安装后在 Claude 对话中直接使用 # 示例: 用户: 请帮我用 MCP工具 执行以下任务... Claude: [自动调用 MCP工具 MCP 工具处理请求] # 查看可用工具列表 # 在 Claude 中输入:"列出所有可用的 MCP 工具"
// claude_desktop_config.json 配置示例
{
"mcpServers": {
"mcp__": {
"command": "npx",
"args": ["-y", "agent-bridge"],
"env": {
// "API_KEY": "your-api-key-here"
}
}
}
}
// 保存后重启 Claude Desktop 生效
Local bridge for bidirectional communication between Claude Code and Codex inside the same working session.
AgentBridge uses a two-process architecture:
When Claude Code closes, the foreground MCP process exits while the background daemon and Codex proxy keep running. When Claude Code starts again, it reconnects automatically with exponential backoff.
| Dependency | Version | Install |
|---|---|---|
| [Bun](https://bun.sh) | v1.0+ | curl -fsSL https://bun.sh/install \| bash |
| [Claude Code](https://docs.anthropic.com/en/docs/claude-code) | v2.1.80+ | npm install -g @anthropic-ai/claude-code |
| [Codex CLI](https://github.com/openai/codex) | latest | npm install -g @openai/codex |
Note: Bun is required as the runtime for the AgentBridge daemon and plugin server. Node.js alone is not sufficient.
git clone https://github.com/raysonmeng/agent-bridge.git cd agent-bridge bun install bun link
Install AgentBridge directly from Claude Code using the plugin marketplace:
```bash
/plugin install agentbridge@agentbridge
npm install -g @raysonmeng/agentbridge
If you want to modify AgentBridge source code, use the local development setup instead:
```bash
abg init
agentbridge dev # Register local marketplace + install plugin agentbridge init # Check dependencies, generate .agentbridge/config.json
Running agentbridge init creates a .agentbridge/ directory in your project root:
| File | Purpose |
|---|---|
config.json | Machine-readable project config (Codex ports, turn coordination, idle shutdown) |
The config is loaded by the CLI and daemon at startup. Re-running init is idempotent and will not overwrite existing files.
| Variable | Default | Description |
|---|---|---|
CODEX_WS_PORT | 4500 | Codex app-server WebSocket port |
CODEX_PROXY_PORT | 4501 | Bridge proxy port for the Codex TUI |
AGENTBRIDGE_CONTROL_PORT | 4502 | Control port between bridge.ts and daemon.ts |
AGENTBRIDGE_LIVENESS_PROBE_TIMEOUT_MS | 3000 | Maximum wait for incumbent Claude pong before evicting on contention (issue #68) |
AGENTBRIDGE_TURN_WATCHDOG_MS | 300000 | Per-turn inactivity watchdog: force-completes a turn after this many ms of app-server silence so a lost turn/completed can't lock injection forever (issue #69) |
AGENTBRIDGE_CODEX_TRANSPORT | auto | How the daemon reaches the Codex app-server: auto (probe codex app-server --help, use ws:// if supported else fall back to a unix:// socket via a transparent relay), ws (force ws), or unix (force unix socket + relay). For builds that drop ws:// listen support (issue #85) |
AGENTBRIDGE_STATE_DIR | Platform default | State directory for pid, status, logs (macOS: ~/Library/Application Support/agentbridge/, Linux: $XDG_STATE_HOME/agentbridge/) |
AGENTBRIDGE_DAEMON_ENTRY | ./daemon.ts | Override daemon entry point (used by plugin bundles) |
NO_UPDATE_NOTIFIER | unset | Set to any value to disable the "update available" notice (ecosystem-standard opt-out) |
AGENTBRIDGE_NO_UPDATE_NOTIFIER | unset | Namespaced opt-out for the update notice (same effect as NO_UPDATE_NOTIFIER) |
AGENTBRIDGE_UPDATE_CHECK_INTERVAL_MS | 86400000 | How often abg claude/abg codex may check npm for a newer version (default once/day). The notice is otherwise printed from cache — zero network on most runs |
All commands work with bothagentbridgeand the short aliasabg.
| Command | Description |
|---|---|
abg init | Install plugin, check dependencies (bun/claude/codex), generate .agentbridge/config.json |
abg claude [args...] | Start Claude Code with push channel enabled. **Runs with --dangerously-skip-permissions by default** (opt out: --safe or AGENTBRIDGE_SAFE=1). Clears any killed sentinel from a previous kill. Pass-through args are forwarded to claude |
abg codex [args...] | Start Codex TUI connected to AgentBridge daemon. **Bare abg codex auto-resumes the pair's last thread; use abg codex --new for a fresh thread. TUI launches run with --yolo by default** (opt out: --safe or AGENTBRIDGE_SAFE=1; non-TUI subcommands like exec are never touched). Manages TUI process lifecycle (pid tracking, cleanup). Pass-through args forwarded to codex |
abg resume [claude\|codex] | No target: print the resume commands for this directory's last Claude Code session and this pair's current Codex thread. With a target: resume that side directly (delegates to abg claude --resume <id> / abg codex resume-current) |
abg pairs | List registered pairs; abg pairs rm <name\|id> removes one; abg pairs prune previews reclaimable orphan dirs + stranded registry entries (cwd-gone, dead, >1 day), abg pairs prune --apply deletes them |
abg doctor [--json] | Read-only diagnosis: env, daemon health/readiness, build drift, artifact alignment, TUI attachment, logs |
abg budget [--json] | Both agents' subscription quota snapshot (5h/weekly windows, drift, pause state) |
abg kill | Gracefully stop this pair's daemon and managed Codex TUI, write killed sentinel; abg kill --all stops every pair |
abg dev | (Dev only) Register local marketplace + force-sync plugin to cache |
abg --help | Show help |
abg --version | Show version |
The pair-aware commands (claude, codex, resume, kill, doctor, budget) accept --pair <name> to target a specific pair — one pair per project directory by default, with ports allocated per pair in +10 strides from 4500.
/reload-plugins
Then install the CLI tool:
bash
agentbridge claude
高质量的MCP工具,实现双向协作
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
AI Skill Hub 点评:MCP工具 的核心功能完整,质量良好。对于Claude Desktop / Claude Code 用户来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。
| 原始名称 | agent-bridge |
| 原始描述 | 开源MCP工具:A local bridge for bidirectional collaboration between Claude Code and Codex. 连接。⭐129 · TypeScript |
| Topics | agent-collaborationclaude-codecodexdeveloper-tools |
| GitHub | https://github.com/quilin-ai/agent-bridge |
| License | MIT |
| 语言 | TypeScript |
收录时间:2026-06-10 · 更新时间:2026-06-10 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。
选择 Agent 类型,复制安装指令后粘贴到对应客户端