tmux-mcp 标志

tmux-mcp

组织
MadAppGang

Quick and fast tmux mcp server

发布者MadAppGang
代码仓库tmux-mcp
语言Go
复刻数
2
星标数
23
可用工具
0
传输类型stdio
分类
链接
  • 将工具接入 AI 工作流

    tmux-mcp 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 23 个星标和 2 个复刻。

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

安装

TypingMind
前提条件:

Node.js 18+

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

将 tmux-mcp MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 tmux-mcp 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请勿关闭终端窗口或停止其中的连接器进程。
3

将 tmux-mcp 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 tmux-mcp MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "madappgang-tmux-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "tmux-mcp"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 tmux-mcp MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 tmux-mcp MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 tmux-mcp 帮我完成这项任务吗?
tmux-mcp
当然,我看过了。
以下是我使用 tmux-mcp 得到的结果。

常见问题

tmux-mcp MCP 服务器有什么用途?

tmux-mcp 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 tmux-mcp MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您无需为每个模型单独配置 MCP 服务器,就能在 Claude、ChatGPT、Gemini 或您在 TypingMind 中配置的其他 AI 模型中使用 tmux-mcp。

为什么在 TypingMind 中使用 tmux-mcp MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是最出色的大语言模型聊天前端之一。连接 tmux-mcp 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 tmux-mcp MCP 连接到 TypingMind?

tmux-mcp 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

tmux-mcp MCP 在 TypingMind 中提供哪些工具?

tmux-mcp 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 tmux-mcp MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行选择模型提供商,并自行管理 API 密钥、提示词和 MCP 配置。如果 tmux-mcp 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇