MCP Server
MCP
SSH Session MCP
Shared SSH PTY runtime for MCP clients with viewer, input lock, async tracking, and policy rules.
Install
npx -y [email protected]
Configuration Example
{
"remotes": [],
"packages": [
{
"registryType": "npm",
"identifier": "ssh-session-mcp",
"version": "2.7.1",
"transport": {
"type": "stdio"
},
"environmentVariables": [
{
"description": "Optional explicit path to ssh-session-mcp.config.json when the config is not in the current working directory.",
"format": "string",
"name": "SSH_MCP_CONFIG"
},
{
"description": "Optional runtime instance id used to isolate state across multiple MCP clients or agents.",
"format": "string",
"name": "SSH_MCP_INSTANCE"
},
{
"description": "Viewer HTTP port. Use auto to allocate a free local port, or 0 to disable the browser viewer.",
"format": "string",
"name": "VIEWER_PORT"
},
{
"description": "Optional viewer bind host. Defaults to 127.0.0.1 for local-only browser access.",
"format": "string",
"name": "VIEWER_HOST"
},
{
"description": "Set to true or 1 to automatically open the browser terminal when a session is created.",
"format": "string",
"name": "AUTO_OPEN_TERMINAL"
},
{
"description": "Operation mode. safe blocks risky or unsuitable terminal actions by default, while full allows broader execution.",
"format": "string",
"name": "SSH_MCP_MODE"
},
{
"description": "Set to true or 1 to run a local shell instead of opening a real SSH connection. Useful for demos and offline testing.",
"format": "string",
"name": "SSH_MCP_LOCAL"
},
{
"description": "Set to true or 1 to expose browser-side debug controls intended for demos and local troubleshooting.",
"format": "string",
"name": "SSH_MCP_DEBUG"
},
{
"description": "Legacy single-target SSH host when not using ssh-session-mcp.config.json device profiles.",
"format": "string",
"name": "SSH_HOST"
},
{
"description": "Legacy single-target SSH port when not using ssh-session-mcp.config.json device profiles.",
"format": "string",
"name": "SSH_PORT"
},
{
"description": "Legacy single-target SSH username when not using ssh-session-mcp.config.json device profiles.",
"format": "string",
"name": "SSH_USER"
},
{
"description": "Optional legacy password-based SSH authentication value.",
"format": "string",
"isSecret": true,
"name": "SSH_PASSWORD"
},
{
"description": "Optional path to a local SSH private key file for legacy single-target mode.",
"format": "string",
"name": "SSH_KEY"
}
]
}
]
}
mcp
model-context-protocol
npm
By
Comments
Sign in to leave a comment