A lightweight Model Context Protocol (MCP) server written in Go that enables secure terminal command execution on macOS and Linux. Supports persistent shell sessions, configurable timeouts, and both HTTP (StreamableHTTP) and STDIO transports. Designed for AI integrations and automation use cases with flexible session management and platform-aware execution.
Server Config
{
"mcpServers": {
"terminal": {
"type": "streamable-http",
"url": "http://localhost:8080/mcp",
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-p",
"8080:8080",
"-e",
"MCP_COMMAND_TIMEOUT=30",
"-e",
"MCP_SHELL=/bin/bash",
"shanurcsenitap/terminator:latest",
"--http",
"--host",
"0.0.0.0",
"--port",
"8080"
]
}
}
}