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.3.2.tar.gz (11.2 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.3.2-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tmux_mcp_tools-0.3.2.tar.gz
  • Upload date:
  • Size: 11.2 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.3.2.tar.gz
Algorithm Hash digest
SHA256 3adde09e48bcc6cf7c0be574600bfea5dbd47b6e174c6cfa559d24f622c754e8
MD5 b5e91922a7202c3591ced4e7780a4a7b
BLAKE2b-256 8317fb5d2bd37ff708d3665281609ee78b95d38de8c44baa76f5a9b16d4dedd9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tmux_mcp_tools-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 12.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.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dad1c41e93905a5f7e376f30bad8f6a3728856ce19661fb8c47a23cad9bc9a68
MD5 9a5c3a6e10f349d9c8796ccea0409661
BLAKE2b-256 4f9fa796dab079e4b90a321e81b2c81b7ac9361ba9b9bcbb807fa99331a9fad4

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