Skip to main content

MCP server for tmux operations

Project description

tmux-mcp-tools

Provide MCP tools for interacting with tmux sessions.

Configuration

  • Custom XDG: $XDG_CONFIG_HOME/tmux-mcp-tools/
  • mcp.json: MCP server configuration following Cursor format
  • prompt.md: System prompt template for the AI agent

Tmux Configuration

Add the following to your .tmux.conf file to create a keybinding that opens the client in a new pane:

bind-key M-k split-window -h -p 33 "uvx --from tmux-mcp-tools tmux-agent --target \"$(tmux display-message -t ! -p '#{pane_id}')\" ;"

This will bind Alt+K to open a new pane with the client, targeting the current pane.

Features

Tmux Tools

  • tmux_capture_pane: Capture the content of a tmux pane
  • tmux_send_command: Send commands to a tmux pane with automatic Enter key
  • tmux_send_keys: Send keys to a tmux pane without automatic Enter
  • tmux_write_file: Write content to a file using heredoc pattern in a tmux pane

Usage

{
  "mcpServers": {
    "tmux-mcp-tools": {
      "command": "uvx",
      "args": ["tmux-mcp-tools"]
    }
  }
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tmux_mcp_tools-0.2.4.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tmux_mcp_tools-0.2.4-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file tmux_mcp_tools-0.2.4.tar.gz.

File metadata

  • Download URL: tmux_mcp_tools-0.2.4.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tmux_mcp_tools-0.2.4.tar.gz
Algorithm Hash digest
SHA256 591cf504551ede09781b88a2802dcce332d998bccbb1968af489147a8620ed41
MD5 39e42884cb4c5e39e9c550f1638549ce
BLAKE2b-256 649aa3aa7c8f83574d0efcb8bc147e8a8b9212eb45e7b184146aeec88582eb20

See more details on using hashes here.

File details

Details for the file tmux_mcp_tools-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: tmux_mcp_tools-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 11.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tmux_mcp_tools-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 97ddd6cef0c167e9dc28355b0f9a2d9f7ceabbda8a0545bd14a5c0df63f4f5f9
MD5 bac0bdc8c6c2e4fa20daef5523e597f5
BLAKE2b-256 cf8743152e45da46d4a8e26eeda60db2f4dfe65604d1469200579f88393430b1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page