Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
SSH_MCP_KEYNoPrivate key material (or path) supplied via environment variable instead of a key file.
SSH_AUTH_SOCKNoPath to the SSH agent socket (recommended credential source; usually already set when an agent is running).
SSH_MCP_PASSWORDNoPassword for profiles using auth=password. Credentials must be supplied via environment variables, never CLI arguments.
SSH_MCP_SUDO_PASSWORDNoPassword used by privileged-command/sudo, piped via stdin rather than passed as an argument.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
list-connectionsA

List all configured SSH profiles and their connection status. Use this to discover available hosts before running commands.

list-sessionsB

List active sessions for a given SSH profile.

open-sessionA

Open a named session on a remote host. Use type="interactive" for stateful shell (CWD/env persists between commands) or type="background" for long-running processes.

close-sessionA

Close a named session. A background session's command is signalled on the host (INT, then TERM, then KILL) before its channel is dropped; an interactive session's shell is ended. The response says so if the command could not be signalled or had not stopped in time.

read-session-outputA

Read recent output from a background session (e.g., tail -f logs).

read-commandA

Execute a READ-ONLY command from an allowlist (ls, cat, grep, find, stat, df, etc.). This tool does NOT modify the system. Prefer this tool for all read operations. Single-line only: a command containing a line break is refused, so upload a multi-line script with sftp-upload and run it by path.

run-commandA

Execute an arbitrary shell command on the remote server. May modify the system. Commands classified destructive or privileged go through the approval gate; approvalPolicy on the profile decides whether that is a prompt, an automatic allow, or a refusal. Single-line only: a command containing a line break is refused, so upload a multi-line script with sftp-upload and run it by path.

destructive-commandA

Execute a shell command on a profile with approvalPolicy = "client-tool", where calling this tool is the approval: the MCP client asks the user before the call runs. Use it when run-command refuses a destructive or privileged command with APPROVAL_VIA_TOOL; it takes the same arguments. On a profile with any other approvalPolicy it runs nothing and points back at run-command (CLIENT_TOOL_ONLY). Single-line only: a command containing a line break is refused, so upload a multi-line script with sftp-upload and run it by path.

privileged-commandA

Execute a command with sudo elevation. Goes through the approval gate; approvalPolicy on the profile decides whether that is a prompt, an automatic allow, or a refusal. The sudo password is piped via stdin for the prompt only (never visible in process list); the command itself runs with stdin at /dev/null, so it can never read the password back. Single-line only: a command containing a line break is refused, so upload a multi-line script with sftp-upload and run it by path.

signal-processA

Send a signal (INT, TERM, KILL) to a remote process by PID.

sftp-uploadA

Upload a file to the remote server via SFTP (secure file transfer, not shell-based). Replaces an existing file at that path unconditionally — there is no overwrite flag and no way to require a new destination.

sftp-downloadB

Download a file from the remote server via SFTP.

sftp-listA

List a remote directory over SFTP, with a bounded number of entries and a bounded response size. Read-only.

sftp-upload-fileA

Upload a local file to the remote host over SFTP, streaming it without passing the contents through model context. The local file must be inside the transferRoot directory the operator configured; without that setting this tool refuses. Use this for binary or large files; use sftp-upload for short text you already have.

sftp-download-fileA

Download a remote file to local disk over SFTP, streaming it without passing the contents through model context. The destination must be inside the transferRoot directory the operator configured; without that setting this tool refuses. Use this for binary or large files; use sftp-download when you need to read the contents.

reload-configA

Report or reload the server's config file. action="status" (the default) shows the config path, when it was loaded, the sha256 of its bytes and the result of the last reload; never the contents. action="reload" re-reads the file, validates it exactly as startup does, and applies it only if every check passes; a refused reload changes nothing. Command-line flags are never reloaded. Applying closes connections, with their sessions, whose profile was removed or whose connection fields changed, and clears approval grants.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
connectionsList all SSH profiles and their connection status

TDQS

A3.7/5.0

Scored across 16 tools

Disambiguation3/5

read-command, run-command, destructive-command, and privileged-command all execute shell commands, and the boundaries are only clear after reading the approval-gate explanation; an agent can easily pick run-command when destructive-command was required. Likewise sftp-upload vs sftp-upload-file and sftp-download vs sftp-download-file differ only in streaming behavior, distinguished by name and description rather than obvious semantics.

Naming Consistency4/5

Most tools follow a predictable kebab-case verb-noun pattern (read-command, list-connections, open-session, close-session, read-session-output). The sftp-* family breaks the pattern with a namespace prefix plus noun-verb ordering, and sftp-upload-file is effectively double-suffixed, creating minor inconsistency.

Tool Count4/5

16 tools for a full SSH automation server (execution tiers, file transfer, session lifecycle, config and discovery) is well within a defensible range. Slightly heavy given that four command tools and four transfer tools exist, but each maps to a real mode.

Completeness3/5

Exec, transfer, session lifecycle, connection discovery, and config reload are covered, but the SFTP surface has no mkdir/remove/rename/stat, so remote file management dead-ends. There is also no tool to send input to an interactive session even though open-session offers an interactive type and read-session-output can read it back.

Maintenance

ActivityActive
ResponsivenessNo recent community issues