ssh_disconnect
Terminate SSH connections to remote servers managed through the mcpHydroSSH server, freeing resources and ending sessions when remote work is complete.
Instructions
Disconnect from an SSH server
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| connectionId | No | Connection ID (optional, disconnects most recent if not provided) |
Implementation Reference
- src/index.ts:402-418 (handler)The handler implementation for the 'ssh_disconnect' tool, which uses sshManager.disconnect(connectionId) to perform the action.
case 'ssh_disconnect': { const connectionId = args.connectionId as string | undefined; try { sshManager.disconnect(connectionId); return { content: [ { type: 'text', text: JSON.stringify({ success: true }, null, 2), }, ], }; } catch (err: unknown) { return { content: [ { type: 'text', - src/index.ts:120-132 (schema)The tool registration and schema definition for 'ssh_disconnect'.
{ name: 'ssh_disconnect', description: 'Disconnect from an SSH server', inputSchema: { type: 'object', properties: { connectionId: { type: 'string', description: 'Connection ID (optional, disconnects most recent if not provided)', }, }, required: [], },