mcp-ssh-reloaded

v0.7.0
mcp-ssh-reloaded Checked 3 days ago Published 27 days ago

MCP server for SSH sessions management.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

execute_command Execute Command

Execute a command on an SSH host using a persistent session.

ParameterTypeDescription
command *string
host *string
enable_commandstring
enable_password
key_filename
password
port
sudo_password
timeoutinteger
username

probe Probe

Report what the target host is and what this tool is, without any address.

ParameterTypeDescription
host *string
key_filename
password
port
username

list_sessions List Sessions

List all active SSH sessions.

close_session Close Session

Close a specific SSH session.

ParameterTypeDescription
host *string
port
username

close_all_sessions Close All Sessions

Close all active SSH sessions.

read_file Read File

Read a remote file over SSH. Falls back to sudo cat if permission denied. Returns at most ``max_bytes`` bytes, cut on a character (and line) boundary. A truncated result reports the line range and how to resume with ``start_line`` or ``offset``.

ParameterTypeDescription
host *string
remote_path *string
encodingstring
errorsstring
key_filename
max_bytes
offsetinteger
password
port
start_lineinteger
sudo_password
use_sudoboolean
username

write_file Write File

Write content to a remote file over SSH.

ParameterTypeDescription
content *string
host *string
remote_path *string
appendboolean
encodingstring
errorsstring
key_filename
make_dirsboolean
max_bytes
password
permissions
port
sudo_password
use_sudoboolean
username

execute_command_async Execute Command Async

Execute a command asynchronously. Returns a command ID.

ParameterTypeDescription
command *string
host *string
key_filename
password
port
timeoutinteger
username

get_command_status Get Command Status

Get the status and output of an async command.

ParameterTypeDescription
command_id *string

interrupt_command_by_id Interrupt Command By Id

Interrupt a running async command by sending Ctrl+C.

ParameterTypeDescription
command_id *string

list_running_commands List Running Commands

List all currently running async commands.

list_command_history List Command History

List recent command history.

ParameterTypeDescription
limitinteger

send_input Send Input

Send input to a running async command.

ParameterTypeDescription
command_id *string
input_text *string

send_input_by_session Send Input By Session

Send input to the active shell for a session.

ParameterTypeDescription
host *string
input_text *string
port
username

read_screen Read Screen

Read the terminal screen state (requires MCP_SSH_INTERACTIVE_MODE=1).

ParameterTypeDescription
host *string
max_linesinteger
port
username

send_keys Send Keys

Send special keys to a session.

ParameterTypeDescription
host *string
keys *string
port
username

execute_command_enhanced Execute Command Enhanced

Execute a command with auto timeout extension and streaming.

ParameterTypeDescription
command *string
host *string
auto_extend_timeoutboolean
enable_commandstring
enable_password
key_filename
max_timeoutinteger
password
port
progress_callback
streaming_modeboolean
sudo_password
timeoutinteger
username

get_session_diagnostics Get Session Diagnostics

Get comprehensive diagnostics for an SSH session.

ParameterTypeDescription
host *string
port
username

reset_session_prompt Reset Session Prompt

Reset and recapture prompt detection.

ParameterTypeDescription
host *string
port
username

get_connection_health_report Get Connection Health Report

Get health report for all active SSH connections.

get_command_status_enhanced Get Command Status Enhanced

Get enhanced status with detailed metrics.

ParameterTypeDescription
command_id *string

get_performance_metrics Get Performance Metrics

Get performance metrics.