add_connection
Adds or updates a named SSH connection and persists it in the config file for reuse across server restarts.
Instructions
Add or update a manual SSH connection. Persisted to config file across restarts.
Parameters:
name: Unique name for this connection (required)
host: Server hostname or IP address (required)
port: SSH port (default: 22)
username: SSH username (required)
privateKeyPath: Path to SSH private key (supports ~ expansion)
password: SSH password (if not using key auth)
Example: add_connection("staging", "10.0.0.5", 22, "deploy", "~/.ssh/deploy_key")
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"host": "<host>",
"username": "<username>"
},
"name": "add_connection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | Yes | Server hostname or IP address | |
| name | Yes | Unique name for this connection | |
| port | No | SSH port (default: 22) | |
| password | No | SSH password (if not using key auth) | |
| username | Yes | SSH username | |
| privateKeyPath | No | Path to SSH private key (supports ~ expansion) |