Skip to main content
Glama

MCP SSH Server

by mahathirmuh

ssh_read_output

Retrieve output from an active SSH shell session by specifying a session ID, with options to set timeout duration and clear the buffer after reading.

Instructions

Read output from an interactive shell session

Input Schema

NameRequiredDescriptionDefault
clearBufferNoClear the output buffer after reading
sessionIdYesInteractive session ID
timeoutNoTimeout in milliseconds to wait for output

Input Schema (JSON Schema)

{ "properties": { "clearBuffer": { "default": true, "description": "Clear the output buffer after reading", "type": "boolean" }, "sessionId": { "description": "Interactive session ID", "type": "string" }, "timeout": { "default": 5000, "description": "Timeout in milliseconds to wait for output", "type": "number" } }, "required": [ "sessionId" ], "type": "object" }

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/mahathirmuh/mcp-ssh-server'

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