NT

nickgnd/tmux-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

306 stars 57 forks Качество 60 Тренд 19MIT

nickgnd/tmux-mcp — это кандидат на сервер MCP, импортированный из https://github.com/nickgnd/tmux-mcp.

Обзор

nickgnd/tmux-mcp — это кандидат на сервер MCP, импортированный из https://github.com/nickgnd/tmux-mcp.

Обзор (машинный перевод)

Сервер Model Context Protocol, который позволяет Claude Desktop взаимодействовать с контентом сессии tmux и просматривать их. Эта интеграция позволяет ассистентам ИИ читать, контролировать и наблюдать ваши сессии терминала.

Особенности

  • Список и поиск сессий tmux
  • Просмотр и навигация по окнам и панелям tmux
  • Захват и экспозиция терминального содержимого с любой панели
  • Выполнять команды в tmux-панелях и получать результаты (используйте это на свой страх и риск ⚠️)
  • Создание новых сессий tmux и окон
  • Горизонтальное или вертикальное разделение панелей с настраиваемыми размерами
  • Устранение сессий TMUX, окон и панелей

Посмотрите это короткое видео, чтобы порадоваться!

Предварительные требования

  • Node.js
  • установлен и запущен TMUX

Использование

Настраивать Claude Desktop

Добавьте этот MCP-сервер в конфигурацию Claude Desktop:

Опции MCP-серверов

Вы можете по желанию указать командную строку, которую используете, если не указано, по умолчанию отображается bash

MCP-сервер должен знать оболочку только при выполнении команд, чтобы правильно прочитать статус выхода.

Доступные ресурсы

  • tmux://sessions - Перечислить все сессии tmux
  • tmux://pane/{paneId} - Просмотр содержимого определённого панели TMUX

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Tmux MCP Server

Model Context Protocol server that enables Claude Desktop to interact with and view tmux session content. This integration allows AI assistants to read from, control, and observe your terminal sessions.

Features

  • List and search tmux sessions
  • View and navigate tmux windows and panes
  • Capture and expose terminal content from any pane
  • Execute commands in tmux panes and retrieve results (use it at your own risk ⚠️)
  • Create new tmux sessions and windows
  • Split panes horizontally or vertically with customizable sizes
  • Kill tmux sessions, windows, and panes

Check out this short video to get excited!

Prerequisites

  • Node.js
  • tmux installed and running

Usage

Configure Claude Desktop

Add this MCP server to your Claude Desktop configuration:

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

MCP server options

You can optionally specify the command line shell you are using, if unspecified it defaults to bash

"mcpServers": {
  "tmux": {
    "command": "npx",
    "args": ["-y", "tmux-mcp", "--shell-type=fish"]
  }
}

The MCP server needs to know the shell only when executing commands, to properly read its exit status.

Available Resources

  • tmux://sessions - List all tmux sessions
  • tmux://pane/{paneId} - View content of a specific tmux pane
  • tmux://command/{commandId}/result - Results from executed commands

Available Tools

  • list-sessions - List all active tmux sessions
  • find-session - Find a tmux session by name
  • list-windows - List windows in a tmux session
  • list-panes - List panes in a tmux window
  • capture-pane - Capture content from a tmux pane
  • create-session - Create a new tmux session
  • create-window - Create a new window in a tmux session
  • split-pane - Split a tmux pane horizontally or vertically with optional size
  • kill-session - Kill a tmux session by ID
  • kill-window - Kill a tmux window by ID
  • kill-pane - Kill a tmux pane by ID
  • execute-command - Execute a command in a tmux pane
  • get-command-result - Get the result of an executed command
Открыть полный README на GitHub

Установка

npx -y tmux-mcp
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

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