Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
MCP_PORTNoListen port for the MCP server.6222
SSH2MCP_BINDNoBind address the server listens on.127.0.0.1
SSH2MCP_PERMNoStartup permission level: ro, rw, full or selfcheck. The live value is read per request from the permission file.rw
SSH2MCP_ROOTNoRemote path jail applied to s_file, s_xfer and cwd. Unset by default.
SSH2MCP_SSH_BINNossh binary to invoke.ssh
SSH2MCP_SSH_HOSTNoHost alias from ~/.ssh/config for the single remote host reached over ssh (key-based access, BatchMode=yes is forced).myhost
SSH2MCP_PERM_FILENoPath to the hot-switch permission file; an unreadable or invalid file falls back to the startup level and never widens it.~/.ssh2mcp-perm
SSH2MCP_MAX_OUTPUTNoCharacters of stdout and stderr kept per call (first 70% and last 30%).20000
SSH2MCP_TIMEOUT_MSNoDefault run timeout in milliseconds, maximum 3600000.120000
SSH2MCP_TOKEN_FILENoPath to the file holding the bearer token required on every route; the server refuses to start without one. The file is re-read per request, so rotating it needs no restart.~/.ssh2mcp-token

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

Server capabilities have not been inspected yet.

Tools

Functions exposed to the LLM to take actions

NameDescription

No tools

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources