read_ssh_connections
Retrieve all active SSH connections on the Windows CLI MCP Server for monitoring and management within secure command-line environments.
Instructions
Read all SSH connections
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:835-838 (handler)The MCP tool handler for 'read_ssh_connections' in the CallToolRequestHandler switch statement. It calls 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)Registration of the 'read_ssh_connections' tool in the ListToolsRequestHandler response array, defining name, description, and input schema.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 'read_ssh_connections' tool, specifying an empty object (no parameters required).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 from config.ssh.connections.const readSSHConnections = (): object => { const config = loadConfig(); return config.ssh.connections; };