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.0.tar.gz (10.9 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.0-py3-none-any.whl (12.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tmux_mcp_tools-0.3.0.tar.gz
  • Upload date:
  • Size: 10.9 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.0.tar.gz
Algorithm Hash digest
SHA256 d941645aa05e71ee82bb41307a809a8555d8dd76b82c41659f656c384518a095
MD5 5fd8285c67ad7b9bea6adea65c71afe5
BLAKE2b-256 72b59b77d7b799d46c7f6f583a485da4fcee11bcc4b3dd75cb71c9eda47a0815

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tmux_mcp_tools-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 12.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5baea29cbff0e9070eee9fcf7ae2b1cc012b50fd9cb19db9222b6da82f1fdad
MD5 32f7584d580e0851f280dd9555eb8363
BLAKE2b-256 e1a4a9f05658c42ceec577a6a256fdc2ffb49e074a0b79fdddbfa1cca7606928

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