Skip to main content
Glama
simon-ami

Windows CLI MCP Server

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

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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
      }
    },
  • Input schema definition for the tool (empty object, no parameters).
    inputSchema: {
      type: "object",
      properties: {} // No input parameters needed
    }
  • Core helper function that loads the server configuration and returns the SSH connections object.
    const readSSHConnections = (): object => {
      const config = loadConfig();
      return config.ssh.connections;
    };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/simon-ami/win-cli-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server