MCP server: terminal/PTY sessions for AI Agents (node-pty + xterm headless)
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add node-terminal -- npx -y @hazzel-cn/node-terminal-mcp@latest~/.codex/config.toml
[mcp_servers.node-terminal]
command = "npx"
args = ["-y", "@hazzel-cn/node-terminal-mcp@latest"]
# codex mcp add node-terminal -- npx -y @hazzel-cn/node-terminal-mcp@latest~/.cursor/mcp.json
{
"mcpServers": {
"node-terminal": {
"command": "npx",
"args": [
"-y",
"@hazzel-cn/node-terminal-mcp@latest"
]
}
}
}.vscode/mcp.json
{
"servers": {
"node-terminal": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@hazzel-cn/node-terminal-mcp@latest"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"node-terminal": {
"command": "npx",
"args": [
"-y",
"@hazzel-cn/node-terminal-mcp@latest"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"node-terminal": {
"command": "npx",
"args": [
"-y",
"@hazzel-cn/node-terminal-mcp@latest"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"node-terminal": {
"command": "npx",
"args": [
"-y",
"@hazzel-cn/node-terminal-mcp@latest"
]
}
}
}