
终端MCP服务器——用于TUI/CLI自动化的模型上下文协议服务器,采用结构化终端状态树(TST)
概览
MCP服务器使AI代理通过结构化终端状态树表示与终端应用交互。可与任何支持模型上下文协议的AI助手配合使用。 从Releases下载预构建的二进制文件。 添加到 ~/.claude.json(macOS/Linux)或 %APPDATA%\Claude\claude_desktop_config.json(Windows): VS Code 1.101+ 支持 MCP。添加到你的 VS Code 设置(settings.json): 在你的项目中添加 ~/.cursor/mcp.json 或 .cursor/mcp.json: 添加到 ~/.codeium/windsurf/mcp_config.json: 添加到你的Zed设置(偏好设置→设置): 点击“MCP 服务器”图标→配置→高级 MCP 设置,然后添加:
概述(AI 翻译)
MCP服务器使AI代理通过结构化终端状态树表示与终端应用交互。可与任何支持模型上下文协议的AI助手配合使用。
安装
通过 npm(推荐)
来自GitHub发布
从Releases下载预构建的二进制文件。
从源头构建
配置
克劳德
克劳德代码(CLI)
克劳德桌面
添加到 ~/.claude.json(macOS/Linux)或%APPDATA%\Claude\claude_desktop_config.json(Windows):
OpenAI 法典
Codex CLI
法典配置文件
添加到~/.codex/config.toml:
谷歌双子座
双子座CLI
VS Code / GitHub Copilot
VS Code 1.101+ 支持 MCP。添加到你的 VS Code 设置中(settings.json):
光标
在你的项目中添加 ~/.cursor/mcp.json 或 .cursor/mcp.json :
风帆冲浪
加到~/.codeium/windsurf/mcp_config.json:
泽德
添加到你的Zed设置(偏好设置→设置):
克莱恩(VS代码扩展)
点击“MCP 服务器”图标→配置→高级 MCP 设置,然后添加:
AWS 基岩
添加到你的Bedrock代理MCP配置中:
其他MCP客户端
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Terminal MCP Server
MCP server enabling AI agents to interact with terminal applications through structured Terminal State Tree representation. Works with any AI assistant that supports the Model Context Protocol.
Installation
Via npm (Recommended)
npx mcp-server-terminal
Via GitHub Releases
Download pre-built binaries from Releases.
Build from Source
git clone https://github.com/aybelatchane/mcp-server-terminal.git
cd mcp-server-terminal
cargo build --release
# Binary: ./target/release/terminal-mcp
Configuration
Claude
Claude Code (CLI)
claude mcp add terminal -- npx mcp-server-terminal
Claude Desktop
Add to ~/.claude.json (macOS/Linux) or %APPDATA%\Claude\claude_desktop_config.json (Windows):
{
"mcpServers": {
"terminal": {
"command": "npx",
"args": ["mcp-server-terminal"]
}
}
}
OpenAI Codex
Codex CLI
codex mcp add terminal -- npx mcp-server-terminal
Codex Configuration File
Add to ~/.codex/config.toml:
[mcp_servers.terminal]
command = "npx"
args = ["mcp-server-terminal"]
Google Gemini
Gemini CLI
gemini mcp add terminal npx mcp-server-terminal
VS Code / GitHub Copilot
VS Code 1.101+ supports MCP. Add to your VS Code settings (settings.json):
{
"mcp.servers": {
"terminal": {
"command": "npx",
"args": ["mcp-server-terminal"]
}
}
}
Cursor
Add to ~/.cursor/mcp.json or .cursor/mcp.json in your project:
{
"mcpServers": {
"terminal": {
"command": "npx",
"args": ["mcp-server-terminal"]
}
}
}
Windsurf
Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"terminal": {
"command": "npx",
"args": ["mcp-server-terminal"]
}
}
}
Zed
Add to your Zed settings (Preferences → Settings):
{
"context_servers": {
"terminal": {
"command": {
"path": "npx",
"args": ["mcp-server-terminal"]
}
}
}
}
Cline (VS Code Extension)
Click MCP Servers icon → Configure → Advanced MCP Settings, then add:
{
"mcpServers": {
"terminal": {
"command": "npx",
"args": ["mcp-server-terminal"]
}
}
}
AWS Bedrock
Add to your Bedrock agent MCP configuration:
{
"mcpServers": {
"terminal": {
"command": "npx",
"args": ["mcp-server-terminal"]
安装
npx mcp-server-terminal配置
{
"mcpServers": {
"terminal": {
"command": "npx",
"args": ["mcp-server-terminal"]
}
}
}