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_capture_pane: Capture the content of a tmux pane
  • tmux_send_command: Send commands to a tmux pane with automatic Enter key
  • 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.2.tar.gz (9.4 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.2-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tmux_mcp_tools-0.2.2.tar.gz
  • Upload date:
  • Size: 9.4 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.2.tar.gz
Algorithm Hash digest
SHA256 d1ec182c3a33e62b38e52058600a66f52bb32f5acab18819b7719fc46b86f2bf
MD5 471332ce5d0cf1342e79505409de933d
BLAKE2b-256 26ab671345e4d1c6b76ea1bae9693290b4c4040a980311daf686f07729293718

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tmux_mcp_tools-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 10.8 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 37bf9b9bcfc9ad022d401ef7d814f144e82d1c6c44498d3eb93c23add07162c6
MD5 b3d8c9c27c5a308033498b9add882024
BLAKE2b-256 094ad51bdef0904f5c003e25baac594eae4653b5ec89aafd853b446cc30ee24e

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