Skip to content

remote_port_close

MCP tools › Remote, rooms and agents

Close a port forward of a remote project (SPEC-0318, Experimental): the local listener stops and the host side closes its connections. Returns whether one was open.

Capabilityremote.remote_port_close
AreaRemote, rooms and agents
Accesschanges ide, network
Reachesnetwork
Rightsports
Dry runnone

Arguments

ArgumentTypeDescription
hostrequiredstringHost the remote project was opened on.
folderrequiredstringIts folder.
forwardrequiredstringThe forward's id (remote_ports).

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_port_close '{"host":"<string>","folder":"<string>","forward":"<string>"}'
Input schema as JSON
{
"type": "object",
"required": [
"host",
"folder",
"forward"
],
"properties": {
"host": {
"description": "Host the remote project was opened on.",
"type": "string"
},
"folder": {
"description": "Its folder.",
"type": "string"
},
"forward": {
"description": "The forward's id (`remote_ports`).",
"type": "string"
}
}
}