MCP server: terminal/PTY sessions for AI Agents (node-pty + xterm headless)
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
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"
]
}
}
}