Skip to main content
Glama

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
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • 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 } },
  • Input schema definition for the 'read_ssh_connections' tool, specifying an empty object (no parameters required).
    inputSchema: { type: "object", properties: {} // No input parameters needed }
  • 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; };

Other Tools

Related Tools

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