
howardpen9/tmux-bridge-mcp 是从 https://github.com/howardpen9/tmux-bridge-mcp. 导入的 MCP 服务器候选
概览
howardpen9/tmux-bridge-mcp 是从 https://github.com/howardpen9/tmux-bridge-mcp. 导入的 MCP 服务器候选
概述(AI 翻译)
英语 |简体中文
一个独立的MCP服务器,允许AI代理(Claude Code、Gemini CLI、Codex、Kimi CLI)通过tmux面板相互通信。它直接与tmux通信——除了tmux本身外没有外部依赖。
🖥️ 什么是 tmux?
TMUx 是一个终端复用器——它允许你将一个终端窗口拆分成多个窗格,每个窗格独立运行自己的进程。可以把它看作是终端的“强化标签页”。
每个面板都是一个完整的终端。你可以在一个面板上运行Claude Code,在另一个窗口运行Codex,在第三个窗口中运行Gemini——所有这些都在同一台机器上同时可见。
**问题是:**这些窗格无法相互交流。窗格1中的特工根本不知道窗格2中发生了什么。
tmux-bridge 解决了这个问题。 它让每个代理都能读取、输入并发送消息到任何其他面板。
⚡ TMMUX桥能做什么?
安装后,你的AI代理可以:
| 动作 | 如何 | 示例 |
|---|---|---|
看看另一个特工在做什么tmux_read |
读Codex面板的最后20行 | |
| 将任务发送给其他代理 | tmux_message + tmux_keys |
告诉克劳德审查文件 |
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
tmux-bridge-mcp
English | 简体中文
A standalone MCP server that lets AI agents (Claude Code, Gemini CLI, Codex, Kimi CLI) communicate with each other through tmux panes. It talks directly to tmux – no external dependencies beyond tmux itself.
🖥️ What is tmux?
tmux is a terminal multiplexer – it lets you split one terminal window into multiple panes, each running its own process independently. Think of it as “tabs on steroids” for your terminal.
+-------------------------------+
| Pane 1 | Pane 2 |
| Claude Code | Codex |
| writing code | reviewing |
| | |
+---------------+---------------+
| Pane 3 | Pane 4 |
| Gemini CLI | tail -f logs |
| researching | monitoring |
+-------------------------------+
Each pane is a full terminal. You can have Claude Code running in one, Codex in another, Gemini in a third – all visible at the same time, all on the same machine.
The problem: these panes can’t talk to each other. An agent in Pane 1 has no idea what’s happening in Pane 2.
tmux-bridge fixes this. It gives every agent the ability to read, type, and send messages into any other pane.
⚡ What can you do with tmux-bridge?
Once installed, your AI agents can:
| Action | How | Example |
|---|---|---|
| See what another agent is doing | tmux_read |
Read the last 20 lines of Codex’s pane |
| Send a task to another agent | tmux_message + tmux_keys |
Tell Claude to review a file |
| Coordinate multi-agent workflows | Chain tool calls | Gemini researches -> Claude implements -> Codex reviews |
| Monitor processes | tmux_read on a shell pane |
Watch build logs, test output, server status |
| Label panes by role | tmux_name |
Name panes “claude”, “codex”, “gemini” for easy targeting |
All of this happens through standard MCP tool calls – your agent doesn’t need to learn any new syntax. If it supports MCP, it already knows how.
🤖 Supported Agents
Tested and documented
| Agent | Connection | Setup path |
|---|---|---|
| Claude Code | Native MCP (stdio) | claude mcp add -s user / ~/.claude.json |
| Codex CLI | Native MCP (stdio) | codex mcp add |
| OpenCode | Native MCP (stdio) | ~/.config/opencode/opencode.json(c) (mcp key) |
| CodeBuddy | Native MCP (stdio) | codebuddy mcp add -s user / ~/.codebuddy/.mcp.json |
安装
npx -y tmux-bridge-mcp配置
{
"mcpServers": {
"tmux-bridge": {
"command": "npx",
"args": ["-y", "tmux-bridge-mcp"]
}
}
}