From mcp-reconnect
Reconnect MCP servers in Claude Code tmux sessions after code deployments or server restarts. Use when MCP servers need reconnecting and sessions are running inside tmux.
How this skill is triggered — by the user, by Claude, or both
Slash command
/mcp-reconnect:mcp-reconnectThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You have access to the `mcp-reconnect` script that automates MCP server reconnection in Claude Code tmux sessions.
You have access to the mcp-reconnect script that automates MCP server reconnection in Claude Code tmux sessions.
Claude Code has no programmatic API for MCP reconnect. The only way is through the interactive /mcp menu. This skill automates that sequence via tmux send-keys:
Run the script from the plugin's bin directory:
# Reconnect all local Claude tmux sessions
mcp-reconnect
# Reconnect specific sessions
mcp-reconnect session-name-1 session-name-2
# Reconnect sessions on a remote host
mcp-reconnect --remote hostname
# Delayed start (when calling from within a Claude Code session)
nohup mcp-reconnect --delay 10 &>/dev/null & disown
/mcp/mcp double-typing and kill sibling sessions.nohup + disown with --delay so the Bash tool returns before Escape hits the calling session.| Flag | Default | Description |
|---|---|---|
--remote HOST | — | Reconnect on a remote machine via SSH |
--delay N | 0 | Wait N seconds before starting |
--settle-esc N | 5 | Seconds after Escape |
--settle-mcp N | 2 | Seconds after /mcp submit |
--settle-select N | 5 | Seconds after Reconnect selection |
--message MSG | (default) | Override continuation prompt |
--dry-run | — | Preview without sending keys |
npx claudepluginhub palios-taey/mcp-reconnect --plugin mcp-reconnectGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.