ssh-mcp for VS Code
io.github.gelse/ssh-mcp
MCP gateway for controlled SSH access with per-client auth, command policies, and audit logging.
client:VS Code
transport:stdio
runtime:oci
Install ssh-mcp in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "config-dir",
"description": "CONFIG_DIR",
"password": true
},
{
"type": "promptString",
"id": "log-dir",
"description": "LOG_DIR",
"password": true
},
{
"type": "promptString",
"id": "config-api-enabled",
"description": "CONFIG_API_ENABLED",
"password": true
},
{
"type": "promptString",
"id": "config-api-token",
"description": "CONFIG_API_TOKEN",
"password": true
}
],
"servers": {
"ssh-mcp": {
"type": "stdio",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"ghcr.io/gelse/ssh-mcp:0.3.0"
],
"env": {
"CONFIG_DIR": "${input:config-dir}",
"LOG_DIR": "${input:log-dir}",
"CONFIG_API_ENABLED": "${input:config-api-enabled}",
"CONFIG_API_TOKEN": "${input:config-api-token}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs