Skip to content

remote_host_add

MCP tools › Remote, rooms and agents

Add a host to Ferris IDEA's own SSH host list (an OpenSSH config in the user's settings folder; ~/.ssh/config is never written). Values are checked strictly; the identity file is referenced by path, never copied. No password is kept; unknown host keys are refused when connecting. Dry run unless dry_run false, which needs the settings and ssh rights and is logged.

Capabilityremote.remote_host_add
AreaRemote, rooms and agents
Accesschanges settings
Reaches—
Rightssettings, ssh
Dry rundry_run, on unless the call turns it off

Arguments

ArgumentTypeDescription
aliasrequiredstringThe alias to connect with: 1–64 letters, digits, ., _, -, starting with a letter or digit; not a host of either list yet.
hostnamerequiredstringThe host name or address (letters, digits, ., -, :).
portintegerThe port (default 22).minimum 0 · maximum 65535
userstringThe login user (default: the local one).
identity_filestringThe private key file: an absolute path or ~/…; referred to by path, never copied. Without it the user's keys and agent are used.
dry_runbooleanOnly check the entry and say where it would go (default true).

Call it from a shell

ferris-idea call runs one tool with the rights and safe mode of ferris-idea mcp. Replace the folder and the placeholder values.

Terminal window
ferris-idea call ~/my-project remote_host_add '{"alias":"<string>","hostname":"<string>"}'
Input schema as JSON
{
"type": "object",
"required": [
"alias",
"hostname"
],
"properties": {
"alias": {
"description": "The alias to connect with: 1–64 letters, digits, `.`, `_`, `-`, starting with a letter or\ndigit; not a host of either list yet.",
"type": "string"
},
"hostname": {
"description": "The host name or address (letters, digits, `.`, `-`, `:`).",
"type": "string"
},
"port": {
"description": "The port (default 22).",
"type": [
"integer",
"null"
],
"maximum": 65535,
"minimum": 0
},
"user": {
"description": "The login user (default: the local one).",
"type": [
"string",
"null"
]
},
"identity_file": {
"description": "The private key file: an absolute path or `~/…`; referred to by path, never copied.\nWithout it the user's keys and agent are used.",
"type": [
"string",
"null"
]
},
"dry_run": {
"description": "Only check the entry and say where it would go (default true).",
"type": [
"boolean",
"null"
]
}
}
}