read_ssh_connections
Retrieve all active SSH connections on Windows systems through secure command-line access. This tool displays current SSH sessions for monitoring and management purposes.
Instructions
Read all SSH connections
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "read_ssh_connections"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:835-838 (handler)The MCP tool handler for 'read_ssh_connections' that invokes the readSSHConnections helper and returns the connections as JSON content.
case 'read_ssh_connections': { const connections = readSSHConnections(); return { content: [{ type: 'json', text: JSON.stringify(connections, null, 2) }] }; } - src/index.ts:464-470 (registration)Tool registration in the ListTools handler, including name, description, and input schema (no parameters required).
name: "read_ssh_connections", description: "Read all SSH connections", inputSchema: { type: "object", properties: {} // No input parameters needed } }, - src/index.ts:466-469 (schema)Input schema definition for the tool (empty object, no parameters).
inputSchema: { type: "object", properties: {} // No input parameters needed } - src/utils/sshManager.ts:61-64 (helper)Core helper function that loads the server configuration and returns the SSH connections object.
const readSSHConnections = (): object => { const config = loadConfig(); return config.ssh.connections; };