Logo tmux-mcp

tmux-mcp

Tổ chức
MadAppGang

Quick and fast tmux mcp server

Nhà phát hànhMadAppGang
Kho mãtmux-mcp
Ngôn ngữGo
Bản fork
2
Sao
23
Công cụ có sẵn
0
Phương thức truyền tảistdio
Danh mục
Liên kết
  • Kết nối công cụ với quy trình làm việc AI

    tmux-mcp cung cấp các chức năng MCP cho các ứng dụng khách AI và tác nhân AI tương thích.

  • 0 công cụ có sẵn

    Xem các thao tác có thể gọi bên dưới, kèm tên và mô tả nếu máy chủ cung cấp.

  • Mẫu cấu hình có thể sao chép ngay

    Dùng các đoạn cấu hình mẫu để thiết lập máy chủ này trong ứng dụng khách MCP bạn muốn dùng.

  • Mức độ quan tâm của cộng đồng đến kho mã

    23 sao và 2 bản fork từ kho mã được liên kết.

tmux-mcp

Agent-oriented MCP server for tmux — native process detection, smart triggers, and one handle: the slot.

Quick start

Prerequisites: tmux installed, Go 1.26.1+ or a pre-built binary.

bash
# Install via Go
go install github.com/MadAppGang/tmux-mcp/v2@latest

# Or build from source
git clone https://github.com/MadAppGang/tmux-mcp
cd tmux-mcp && go build -o tmux-mcp .

Add to your MCP client config (~/.claude/settings.json for Claude Code):

json
{
  "mcpServers": {
    "tmux": {
      "command": "tmux-mcp",
      "args": ["--shell-type", "zsh"]
    }
  }
}

Get a terminal and run something in it — no setup call, no handle to carry:

json
// A pane beside the agent is created on first use. Synchronous: blocks until
// the command finishes, and returns output plus the exit code.
{"tool": "execute-command", "params": {"command": "go build ./..."}}
// → {"slot": 1, "created": true, "output": "", "exitCode": 0, "timedOut": false}

// The same slot is the same pane next time.
{"tool": "capture-pane", "params": {}}
// → the pane's text, with structuredContent {"slot": 1}

Why this exists

AI coding agents (Claude Code, Codex CLI, Gemini CLI, opencode) need terminal control. Existing MCP servers treat tmux as a dumb pipe: send a command, poll for output, repeat.

That model breaks down in four ways:

  • An agent starts npm run dev and needs to know when the server is ready — not when it produced any output.
  • An agent runs a database migration and needs to detect when psql is waiting for a password — not guess from screen text.
  • An agent chains five operations and cannot afford a lookup round-trip between each step.
  • An agent watches a build in a background pane while doing other work.

This project solves those four problems directly.

Comparison

nickgnd/tmux-mcpht-mcpmcp-interactive-terminaltmux-mcp (this)
LanguageTypeScriptRustNode.jsGo
Tools136713
DependenciesNode.js / npxNoneNode.js + node-ptyNone (single binary)
Binary size~node_modules~4MB~node_modules~7MB
Async monitoringNoNoNoYes (blocking tools with progress notifications)
Process input detectionNoNoHeuristicNative OS (kernel-level)
Structured JSON outputPartialNoNoYes (all tools)
Addressingpane IDs the agent must trackone sessionone shellStable slot numbers; no IDs anywhere
Invisible panesNoOnly invisibleOnly invisibleEither, per slot (isolated)
Works beside the userNoNoNoYes — panes open in the window they are looking at
execute-commandPollingN/AHeuristicSynchronous (tmux wait-for)

ht-mcp is fast and dependency-free but works only with headless terminals it creates itself. It cannot attach to existing sessions or manage pane layouts.

mcp-interactive-terminal detects prompt readiness via output-settling heuristics, which fail when prompts vary or output is slow.

nickgnd/tmux-mcp pioneered the concept but has known limitations: #31 (C-c sent as literal text), #28 (no consecutive command support), #36 (capture-pane returns too many lines). execute-command returns a task ID; the agent must call get-command-result in a polling loop.

Helper slots: the only way to name a pane

A slot is a small number — 1, 2, 3 — that stands for a pane. It is the only handle this server has. No tool accepts a pane, window or session identifier, no response returns one, and a request that sends one is refused rather than quietly redirected.

Omit the argument entirely and the call goes to slot 1: a pane beside the agent, in the window the user is already looking at, opened on first use and reused by every later call.

json
{"tool": "execute-command", "params": {"command": "npm test"}}
{"tool": "capture-pane",    "params": {}}
{"tool": "close-pane",      "params": {"slot": "all"}}
slotMeaning
omittedSlot 1 — the default helper pane
2, 3, …A second, third, … helper pane, for running things side by side
"all"close-pane only: close every helper pane this server opened

Slots are plain numbers you choose. There is no "allocate me a free one" form: a caller that needs more than one pane already knows how many, and picking the numbers itself is what lets it address the same pane again on the next call.

Four properties are worth knowing.

  • The same slot is the same pane, every time. A dev server started in slot 2 is still running in slot 2 on the next call. That is what makes a bare number sufficient.
  • A slot is never the agent's own pane. Resolution can create a pane, reuse one, or adopt an idle unused shell already open in the window — the pane the server itself runs in is excluded from all three, so a tool call can never type into the conversation.
  • created tells you when a slot changed underneath you. Every creating call answers with slot and created. created: true means the pane is new to that slot, which is how an agent learns that the process it started there earlier is gone — the user closed the pane, and the process died with it.
  • Reading does not create. capture-pane, screenshot-pane, pane-state and watch-pane error on a slot that was never opened, rather than splitting the user's window to answer a question about a pane that did not exist. They carry no created field, because nothing they do can create.

Isolated slots: a pane nobody can see

The six tools that can open a pane also take isolated: true. The pane is then created on a private tmux server with no window and no client attached — nothing appears beside the user. Everything after that is identical: the same slot number reaches it, through tools that never mention the kind again.

json
// First call declares the kind. It needs a slot, because a pane you cannot see
// cannot be found again by looking at the screen.
{"tool": "start-and-watch", "params": {
  "slot": 4, "isolated": true,
  "command": "npm run build", "pattern": "compiled successfully"
}}

// Later calls just use the number.
{"tool": "capture-pane", "params": {"slot": 4}}

Omitting isolated means "whichever kind this slot already is" — not "visible". Asking for the wrong kind on an existing slot is an error, never a silent swap. execute-command is the one exception to the slot requirement: isolated: true with no slot opens a pane, runs the command, destroys the pane, and returns output with no slot at all.

Closing

close-pane kills panes the server created and merely interrupts (C-c) and releases panes it adopted from the user — their shell keeps running and their pane stays open. Closing a slot that was never opened is not an error; it answers action: "none". It refuses the pane the server itself is running in even when that pane carries a valid agent-owned record, which is what a subagent started inside an outer agent's helper pane looks like: closing it would destroy the session the request arrived through.

Tool reference

Thirteen tools. The six that can open a pane take isolated; the four that read take a slot that must already exist; list-slots and notify take no pane at all.

Working in a pane

ToolPurposeArgumentsReturns
open-paneGet a pane to work in. With no arguments returns slot 1, opening it if needed. Repeated calls for the same slot return the same pane (created: false)slot, isolated{slot, created, isolated}
execute-commandRun a shell command and wait for it to finishcommand (required), slot, isolated, timeoutSeconds{slot, created, output, exitCode, timedOut} — or {output, exitCode, timedOut} for the ephemeral isolated-with-no-slot form
send-keysSend keystrokes or literal textkeys (required), slot, isolated, literal, enter{slot, created}
run-in-replSend input to a running REPL and wait for its prompt to reappearinput (required), promptPattern (required), slot, isolated, timeout{slot, created, output, exited}
start-and-watchStart a command and monitor until a readiness pattern matches, a trigger fires, or the timeout expirescommand (required), pattern (required), slot, isolated, mode, triggers, timeoutWatchResult
write-to-displayWrite coaching text the user sees, without it entering the model's contexttext (required), slot, isolated, clear{slot, created}

Reading a pane

These four error on a slot that has not been opened. None of them accepts isolated: they read whichever kind the slot already is.

ToolPurposeArgumentsReturns
capture-paneRead terminal text. The preferred tool for output, logs and anything textualslot, lines, colorsraw text, plus structuredContent {slot}
screenshot-paneRender a PNG with full ANSI colors and layout via xterm.js. Use only when visual appearance mattersslot, theme, outputimage, file path or HTML, plus structuredContent {slot}
pane-stateOS-level process state — alive, waiting for input, exit codeslot{slot, panePid, foregroundPid, foregroundCmd, isAlive, waitingForInput, exitCode}
watch-paneMonitor an already-open pane until a trigger firesslot, mode, triggers, timeoutWatchResult (no created)

Slots and the user

ToolPurposeArgumentsReturns
list-slotsWhat this agent has open, and what is running in each. Other agents' panes and the user's own panes are not listed—[{slot, isolated, origin, foregroundCmd, isAlive}]
close-paneClose a helper pane. Created panes are killed; adopted panes are interrupted and releasedslot (a number or "all")[{slot, action, detail}] — action is killed, released, none or error
notifyShow a transient message to the user. One-way: it cannot report anything about the terminalmessage (required), durationtext

execute-command wraps your command with tee and tmux wait-for so it blocks synchronously until the command finishes. Output and exit code come back in one response — no polling, no separate result-fetch call.

send-keys separates literal text (literal: true, the default) from tmux key names (literal: false). This fixes the original project's issue where C-c was sent as five literal characters instead of an interrupt signal. To cancel a running process:

json
{"tool": "send-keys", "params": {"keys": "C-c", "literal": false}}

start-and-watch and watch-pane block until a trigger fires or the timeout expires, then return the result directly. Progress notifications are sent while monitoring.

WatchResult structure:

json
{
  "slot": 2,
  "created": true,
  "event": "pattern:Serving HTTP",
  "detail": "Ready — matched: Serving HTTP on port 8765",
  "elapsed": 2.14,
  "output": "Serving HTTP on port 8765 ...",
  "paneState": {
    "panePid": 12345,
    "foregroundPid": 12347,
    "foregroundCmd": "python3",
    "isAlive": true,
    "waitingForInput": false
  }
}

created appears on start-and-watch, which can open a pane, and never on watch-pane, which cannot.

Smart trigger system

Triggers control when start-and-watch and watch-pane stop monitoring. Pass them as a comma-separated string in the triggers parameter.

Notification modes

ModePoll intervalNotify after
quick500ms1s elapsed or 10 new lines
medium1s5s elapsed or 40 new lines
slow2s30s elapsed or 100 new lines
line200msevery new line
bunch500msevery 10 new lines
screen1severy 40 new lines

Named triggers

TriggerFires when
exitForeground process exits
shellTerminal foreground command returns to an interactive shell
user_inputOS kernel reports the foreground process is blocked reading from the tty
errorNew output matches `error:
belltmux window bell flag is set
idle:NNo new output for N seconds
pattern:REGEXA new output line matches the regex

start-and-watch defaults to exit,error. watch-pane defaults to exit,user_input,error.

Watch a build, stop on error or after 10 seconds of silence:

json
{
  "tool": "watch-pane",
  "params": {
    "slot": 2,
    "mode": "medium",
    "triggers": "exit,error,idle:10",
    "timeout": 120
  }
}

Start a dev server, stop when it prints a ready message:

json
{
  "tool": "start-and-watch",
  "params": {
    "command": "npm run dev",
    "pattern": "Local:.*http|ready in|listening on",
    "mode": "quick",
    "triggers": "exit,error",
    "timeout": 60
  }
}

Native process detection

pane-state and the user_input trigger use OS-level process inspection — not regex pattern matching on screen output.

Linux reads /proc/<pid>/wchan. When a process blocks in n_tty_read, the kernel writes that function name to wchan. The server also checks /proc/<pid>/syscall: syscall number 0 (read) with file descriptor 0x0 (stdin) confirms the process is waiting for terminal input.

macOS uses sysctl kern.proc.pid to fetch kinfo_proc. Two signals are combined: the kernel wait message field (Wmesg == "ttyin") and a structural check — when the terminal foreground process group ID equals the shell's own process group and the shell is in interruptible sleep, no child has seized the terminal.

Both platforms identify the foreground process by scanning the terminal foreground process group (TPGID), not just the pane's shell PID.

Why this matters:

# Regex-based approach guesses from screen text:
"Enter password:"                    → maybe waiting for input?
"[sudo] password for jack:"          → probably?
"Password:"                          → could be a log line

# Native detection is definitive:
pane-state → {"waitingForInput": true, "foregroundCmd": "sudo"}

No false positives from log messages. No missed prompts from non-standard prompt formats.

pane-state response:

json
{
  "slot": 1,
  "panePid": 8421,
  "foregroundPid": 8456,
  "foregroundCmd": "sudo",
  "isAlive": true,
  "waitingForInput": true
}

Agent scenarios

1. Dev server in one slot, error monitoring in another

json
// Slot 1 gets the server. The pane is opened beside the agent, in the window
// the user is looking at, and start-and-watch blocks until it is ready.
{"tool": "start-and-watch", "params": {
  "command": "npm run dev",
  "pattern": "Local:.*http|ready in",
  "timeout": 60
}}
// → {"slot": 1, "created": true, "event": "pattern:ready in", "elapsed": 1.8,
//    "output": "ready in 843ms"}

// Slot 2 tails the log in a second pane, side by side with the first.
{"tool": "execute-command", "params": {"slot": 2, "command": "touch dev.log"}}
{"tool": "start-and-watch", "params": {
  "slot": 2,
  "command": "tail -f dev.log",
  "pattern": "never-matches-on-purpose",
  "triggers": "error,pattern:UnhandledPromiseRejection",
  "mode": "medium",
  "timeout": 300
}}

// The server is still in slot 1 whenever you come back to it.
{"tool": "capture-pane", "params": {"slot": 1, "lines": 200}}

2. REPL session with multiple queries

json
// Start psql in slot 2 — execute-command blocks until the shell prompt returns.
{"tool": "execute-command", "params": {"slot": 2, "command": "psql -U app mydb"}}

// First query — returns the output between the input and the next prompt.
{"tool": "run-in-repl", "params": {
  "slot": 2,
  "input": "SELECT count(*) FROM users;",
  "promptPattern": "mydb=#",
  "timeout": 10
}}
// → {"slot": 2, "created": false, "output": " count \n-------\n  1247", "exited": false}

// Second query, same REPL, same slot.
{"tool": "run-in-repl", "params": {
  "slot": 2,
  "input": "SELECT id, email FROM users LIMIT 5;",
  "promptPattern": "mydb=#"
}}

If a later call comes back with created: true, the REPL is gone — the user closed that pane — and the next run-in-repl would be talking to a bare shell.

3. Build with an exit code check, out of sight

json
// isolated:true with no slot opens a pane, runs the command, and destroys the
// pane inside the call. Nothing appears beside the user, and there is no slot
// afterwards because there is no pane left to address.
{"tool": "execute-command", "params": {
  "command": "go build ./...",
  "isolated": true
}}
// success → {"output": "", "exitCode": 0, "timedOut": false}
// failure → {"output": "./main.go:12: syntax error", "exitCode": 1, "timedOut": false}

No polling. No parsing return values from a separate call. The exit code is in the response.

execute-command tees stdout+stderr to a temp file and signals completion via tmux wait-for, so the exit code accurately reflects the original command even through pipelines.

4. Coaching display pane

json
// Slot 3 becomes a display pane. The text goes on the user's screen and the
// tool returns only the slot, so it never enters the model's context.
{"tool": "write-to-display", "params": {
  "slot": 3,
  "text": "Running database migration — do not interrupt",
  "clear": true
}}
// → {"slot": 3, "created": true}

// Run the migration in slot 1 while the message stays up.
{"tool": "execute-command", "params": {
  "command": "migrate -path ./migrations -database $DATABASE_URL up"
}}

// Tell the user it is done, and hand the panes back.
{"tool": "notify",     "params": {"message": "Migration complete", "duration": 4}}
{"tool": "close-pane", "params": {"slot": "all"}}

clear wipes the pane's line buffer only on a pane the server created. On a pane adopted from the user it never does: a half-typed command line belongs to them, so the screen is redrawn around it and successive writes append.

Comparison with the original TypeScript implementation

This project started as a port of nickgnd/tmux-mcp (TypeScript, 239 stars) and became a different design.

Areanickgnd/tmux-mcpThis project
execute-commandReturns task ID; agent polls get-command-resultSynchronous via tmux wait-for; output + exit code in one response
Input detectionNone; agent regexes screen textNative OS: /proc/wchan (Linux), sysctl kern.proc.pid (macOS)
send-keys vs executeOverloaded execute-command with rawMode+noEnter flagsSeparate send-keys (text or key names) and execute-command
C-c handlingIssue #31: sends literal "C-c" instead of SIGINTsend-keys with literal: false interprets C-c as interrupt
Consecutive commandsIssue #28: unreliableEach call gets a unique UUID wait channel
AddressingAgent tracks pane IDs and passes them backA slot number the caller picks; the server holds the mapping
Async monitoringNoneSmart triggers with progress notifications and optional channel push
RuntimeNode.js / npxSingle 7MB Go binary
Tool count1313

The polling model requires an agent to call get-command-result in a loop, wasting round trips and complicating timeout handling. tmux wait-for blocks inside the server process instead, so the agent gets the result in a single call.

Configuration

tmux-mcp [--shell-type bash|zsh|fish] [--backend tmux] [--channel] [--version]

--shell-type controls how execute-command captures exit codes from a pipeline:

ShellExit code expression
bash (default)${PIPESTATUS[0]}
zsh${pipestatus[1]}
fish$status captured before the pipe

Match this to the shell running inside your tmux panes. A mismatch causes execute-command to report exit code 0 for every command.

--backend selects the multiplexer. tmux is the only implementation today; the flag exists because the policy layer talks to a Backend port rather than to tmux directly.

--channel enables Claude Code channel mode. See the Channel mode section below.

There are no MCP resources and no tool-group switch: the server registers one surface of thirteen tools and nothing else.

Channel mode

tmux-mcp can act as a Claude Code channel, pushing terminal events into your session proactively — without a pending tool call.

Start with --channel:

bash
claude --channels server:tmux-mcp

Or via .mcp.json:

json
{
  "mcpServers": {
    "tmux": {
      "command": "tmux-mcp",
      "args": ["--shell-type", "zsh", "--channel"]
    }
  }
}

When a trigger fires during watch-pane or start-and-watch, the tool result is returned as usual and a notifications/claude/channel notification is pushed. Claude sees the event even while working on something else.

Channel notifications include:

  • content: human-readable event summary, e.g. slot 2: exit — process exited (code 1)
  • meta.slot: which helper slot fired — the same number every tool takes
  • meta.event: trigger type (exit, error, user_input, timeout, etc.)
  • meta.detail: explanation
  • meta.exitCode / meta.isAlive: process state (for exit events)

Without --channel, no channel capability is declared and no notifications are sent.

Development

Prerequisites: Go 1.26.1+, tmux 3.2+

bash
go build -o tmux-mcp .
go test -short ./...   # skip tests requiring tmux
go test ./...          # full suite (tmux must be running)

Project structure:

FilePurpose
main.goMCP server setup, flags, tool registration
backend_tmux.goThe Backend implementation: every tmux invocation in the program lives here, and it is the only file that knows what a pane identifier looks like
agent_tools.goThe thirteen tool registrations and their handlers
helper_panes.goHelper-pane policy: slot resolution, placement, adoption, ownership marks, teardown
pane_arg.goThe shared slot/isolated argument parser, the retired-argument rejection, and the response types
channel.goChannel mode: ChannelEmitter, notifications, instructions
triggers.goNotificationMode, Trigger, monitorPane loop, parseTriggers, WatchResult
screenshot.goxterm.js rendering for screenshot-pane
process.goPaneState struct, GetPaneState (OS dispatch)
process_darwin.gomacOS: sysctl kern.proc.pid, wmesg ttyin detection
process_linux.goLinux: /proc/wchan, /proc/syscall detection
process_other.goStub for other platforms (WaitingForInput always false)
Test fileCovers
contract_test.goThe wire contract: no schema declares a retired argument, no response carries an identifier, retired arguments are refused rather than ignored, created and isolated appear on exactly the right tools
isolated_test.goInvisible slots: round trip, namespace isolation, the fixed kind, duplicate healing, orphan reaping
reading_test.goThe four reading tools do not create, with the pane-count control that proves the probe can see a pane appear
slot_tools_test.goSlot resolution per tool, ownership-aware clearing, records living in tmux rather than in this process
pane_safety_test.goAdoption safety, idle-shell detection, attribution of every pane the server makes
helper_panes_test.go, pane_arg_test.goPolicy and argument-parsing units
e2e_test.go, scenarios_test.goMCP client harness, individual tools, multi-step scenarios including channel mode
missing_tests_test.go, process_test.go, screenshot_test.goReview-driven gap coverage, OS process inspection, renderer

Troubleshooting

execute-command always returns exit code 0

--shell-type does not match the shell in the pane.

bash
tmux-mcp --shell-type=zsh    # for zsh panes
tmux-mcp --shell-type=fish   # for fish panes

A tool says "slot N does not exist"

The four reading tools do not open panes. Open the slot first with open-pane, or run something in it with execute-command or start-and-watch, then read it. list-slots shows every slot this agent currently has.

A call comes back with created: true when you expected a running process

The pane that was in that slot is gone — usually the user closed it — and the process died with it. created: true is the only signal you get, so treat it as "restart whatever was running there".

start-and-watch times out without firing

The readiness pattern never appeared in the output. Check what the pane actually printed with capture-pane on the same slot, and test the regex against that before putting it back in start-and-watch.

A request is refused with "… is not accepted; address the pane by slot"

The call carried a pane, window or session identifier. This server has no such argument: use slot. The refusal is deliberate — an ignored identifier would send the call to slot 1 and report success.

pane-state reports waitingForInput=false when a prompt is visible

On Linux, some shells use select() or poll() rather than blocking read(), so /proc/wchan shows ep_poll instead of n_tty_read. The tool falls back to isAlive: true, waitingForInput: false. Use idle:N as a complement when precise input detection is required.

MCP client does not see the tools

The binary path in the MCP config is wrong or the binary is not executable.

bash
chmod +x /path/to/tmux-mcp
/path/to/tmux-mcp --help    # verify it starts

Bundled agent skill: tmux-control

The repo ships a Claude Code project skill at .claude/skills/tmux-control/ that teaches an agent to drive raw tmux from the shell — a different capability from this MCP server, not an overlapping one.

Use the MCP tools whenever a slot will do: they are safe beside the user, they monitor, and they never hand out a raw identifier. Reach for the skill when a task genuinely needs tmux itself — layouts, windows, sessions, other people's panes, or anything this server deliberately does not expose. That is also the migration path for anyone who used the raw-tmux tool group removed in v2.0.0; see CHANGELOG.md.

The skill's guidance is empirically verified on tmux 3.6a and was refined through blind multi-model review (see .claude/skills/tmux-control/evals/).

License

MIT

Cài đặt

TypingMind
Yêu cầu:

Node.js 18+

{
  "mcpServers": {
    "madappgang-tmux-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "tmux-mcp"
      ]
    }
  }
}

Dùng MCP tmux-mcp với nhiều mô hình AI

TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên sau khi kết nối tmux-mcp, bạn có thể dùng với nhiều mô hình AI khác nhau trong TypingMind thay vì phải thiết lập riêng cho từng mô hình. MCP này chạy cục bộ thông qua trình kết nối MCP của TypingMind trên thiết bị của bạn.

Hướng dẫn thiết lập để dùng trình kết nối cục bộ

Dùng cách này khi máy chủ MCP cần truy cập các tệp, ứng dụng hoặc tài nguyên riêng tư trên máy tính của bạn.

1

Mở cài đặt MCP

Trong TypingMind, vào Cài đặt, Cài đặt nâng cao, rồi đến Giao thức ngữ cảnh mô hình và chọn Thiết lập trình kết nối.

  1. Mở TypingMind trong trình duyệt của bạn.
  2. Nhấp vào biểu tượng Cài đặt.
  3. Vào Cài đặt nâng cao.
  4. Mở mục Giao thức ngữ cảnh mô hình.
  5. Nhấp vào Thiết lập trình kết nối rồi chọn Thiết bị này.
Màn hình thiết lập trình kết nối MCP của TypingMind với tùy chọn Thiết bị này được chọn
2

Chạy lệnh thiết lập trình kết nối

Chọn Thiết bị này, sao chép lệnh từ TypingMind và chạy trong Terminal. Để tiến trình tiếp tục chạy trong khi bạn dùng MCP.

  1. Sao chép lệnh thiết lập hiển thị trong TypingMind.
  2. Mở Terminal trên macOS hoặc Windows Terminal trên Windows.
  3. Dán và chạy lệnh.
  4. Xác nhận cài đặt gói nếu Terminal hỏi bạn có muốn tiếp tục không.
  5. Để tiến trình tiếp tục chạy trong cửa sổ Terminal khi bạn dùng các công cụ MCP.
3

Thêm tmux-mcp làm máy chủ

Khi trạng thái trình kết nối là Sẵn sàng, nhấp vào Sửa máy chủ và dán cấu hình máy chủ MCP.

  1. Đợi đến khi trạng thái trình kết nối hiển thị Sẵn sàng.
  2. Nhấp vào Sửa máy chủ.
  3. Dán cấu hình máy chủ MCP của tmux-mcp.
  4. Lưu danh sách máy chủ.
  5. Làm mới nếu bạn muốn xác nhận trình kết nối vẫn sẵn sàng.
Cài đặt MCP của TypingMind hiển thị máy chủ đang hoạt động và nút Sửa máy chủ
{
  "mcpServers": {
    "madappgang-tmux-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "tmux-mcp"
      ]
    }
  }
}
4

Dùng kết nối với nhiều mô hình

Lưu danh sách máy chủ, mở Plugin, bật các công cụ MCP của tmux-mcp, sau đó chọn bất kỳ mô hình AI nào được hỗ trợ trong TypingMind và dùng các công cụ trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.

  1. Mở trang Plugin trong TypingMind.
  2. Bật các công cụ MCP của tmux-mcp.
  3. Bắt đầu cuộc trò chuyện và chọn mô hình AI bạn muốn dùng.
  4. Dùng các công cụ MCP trong cuộc trò chuyện hoặc gán chúng cho một tác nhân AI.
  5. Chuyển sang mô hình AI khác bất cứ khi nào cần mà không phải kết nối lại MCP.
Cuộc trò chuyện trên TypingMind dùng các công cụ MCP đã bật với mô hình AI đã chọn
Bạn có thể dùng tmux-mcp giúp tôi làm việc này không?
tmux-mcp
Được. Tôi đọc rồi.
Đây là kết quả tôi tìm được bằng tmux-mcp.

Câu hỏi thường gặp

Máy chủ MCP tmux-mcp dùng để làm gì?

tmux-mcp là máy chủ MCP cho phép các ứng dụng AI tương thích kết nối với công cụ và ngữ cảnh bên ngoài. Trong TypingMind, bạn chỉ cần thêm máy chủ MCP này một lần để các công cụ của nó có sẵn trong không gian làm việc AI của bạn.

Bạn có thể dùng MCP tmux-mcp với nhiều mô hình AI trong TypingMind không?

Có. TypingMind kết nối các công cụ MCP ở cấp không gian làm việc, nên bạn có thể dùng tmux-mcp với nhiều mô hình AI như Claude, ChatGPT, Gemini hoặc các mô hình khác đã cấu hình trong TypingMind mà không cần thiết lập máy chủ MCP riêng cho từng mô hình.

Vì sao nên dùng MCP tmux-mcp với TypingMind?

TypingMind là một trong những giao diện trò chuyện với LLM tốt nhất vì tập hợp nhiều mô hình AI, prompt, plugin, tác nhân AI, khóa API và công cụ MCP vào một không gian làm việc. Khi kết nối tmux-mcp, bạn có thể dùng các công cụ MCP của dịch vụ này với những mô hình ưa thích, đồng thời giữ quy trình trò chuyện gọn gàng trong TypingMind.

Làm cách nào để kết nối MCP tmux-mcp với TypingMind?

tmux-mcp hoạt động thông qua trình kết nối MCP cục bộ của TypingMind. Đây là lựa chọn phù hợp nhất khi máy chủ MCP cần truy cập tệp cục bộ, ứng dụng máy tính, công cụ dòng lệnh hoặc tài nguyên riêng trên máy tính của bạn.

MCP tmux-mcp cung cấp những công cụ nào trong TypingMind?

tmux-mcp cung cấp các chức năng MCP mà bạn có thể bật từ trang Plugin của TypingMind để dùng trong trò chuyện hoặc gán cho tác nhân AI.

Bạn có cần chia sẻ khóa API với TypingMind để dùng MCP tmux-mcp không?

Không. TypingMind ưu tiên xử lý cục bộ và cho phép bạn kiểm soát nhà cung cấp mô hình, khóa API, prompt và cấu hình MCP. Nếu tmux-mcp yêu cầu xác thực, hãy thêm các header, cài đặt OAuth hoặc cấu hình cục bộ cần thiết cho máy chủ MCP đó khi tạo kết nối.

Máy chủ MCP liên quan

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇