mcp-ssh-reloaded
v0.7.0MCP 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.
| Parameter | Type | Description |
|---|---|---|
command * | string | |
host * | string | |
enable_command | string | |
enable_password | ||
key_filename | ||
password | ||
port | ||
sudo_password | ||
timeout | integer | |
username |
probe Probe
Report what the target host is and what this tool is, without any address.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
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``.
| Parameter | Type | Description |
|---|---|---|
host * | string | |
remote_path * | string | |
encoding | string | |
errors | string | |
key_filename | ||
max_bytes | ||
offset | integer | |
password | ||
port | ||
start_line | integer | |
sudo_password | ||
use_sudo | boolean | |
username |
write_file Write File
Write content to a remote file over SSH.
| Parameter | Type | Description |
|---|---|---|
content * | string | |
host * | string | |
remote_path * | string | |
append | boolean | |
encoding | string | |
errors | string | |
key_filename | ||
make_dirs | boolean | |
max_bytes | ||
password | ||
permissions | ||
port | ||
sudo_password | ||
use_sudo | boolean | |
username |
execute_command_async Execute Command Async
Execute a command asynchronously. Returns a command ID.
| Parameter | Type | Description |
|---|---|---|
command * | string | |
host * | string | |
key_filename | ||
password | ||
port | ||
timeout | integer | |
username |
get_command_status Get Command Status
Get the status and output of an async command.
| Parameter | Type | Description |
|---|---|---|
command_id * | string |
interrupt_command_by_id Interrupt Command By Id
Interrupt a running async command by sending Ctrl+C.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
limit | integer |
send_input Send Input
Send input to a running async command.
| Parameter | Type | Description |
|---|---|---|
command_id * | string | |
input_text * | string |
send_input_by_session Send Input By Session
Send input to the active shell for a session.
| Parameter | Type | Description |
|---|---|---|
host * | string | |
input_text * | string | |
port | ||
username |
read_screen Read Screen
Read the terminal screen state (requires MCP_SSH_INTERACTIVE_MODE=1).
| Parameter | Type | Description |
|---|---|---|
host * | string | |
max_lines | integer | |
port | ||
username |
send_keys Send Keys
Send special keys to a session.
| Parameter | Type | Description |
|---|---|---|
host * | string | |
keys * | string | |
port | ||
username |
execute_command_enhanced Execute Command Enhanced
Execute a command with auto timeout extension and streaming.
| Parameter | Type | Description |
|---|---|---|
command * | string | |
host * | string | |
auto_extend_timeout | boolean | |
enable_command | string | |
enable_password | ||
key_filename | ||
max_timeout | integer | |
password | ||
port | ||
progress_callback | ||
streaming_mode | boolean | |
sudo_password | ||
timeout | integer | |
username |
get_session_diagnostics Get Session Diagnostics
Get comprehensive diagnostics for an SSH session.
| Parameter | Type | Description |
|---|---|---|
host * | string | |
port | ||
username |
reset_session_prompt Reset Session Prompt
Reset and recapture prompt detection.
| Parameter | Type | Description |
|---|---|---|
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.
| Parameter | Type | Description |
|---|---|---|
command_id * | string |
get_performance_metrics Get Performance Metrics
Get performance metrics.