GitHub
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
作者提供的说明(英文原文)
MCP PTY server providing AI agents with real interactive terminal access
这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。
我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。
选择你使用的 AI 应用,然后复制设置。
你需要
你用的是哪个应用?
在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。
打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json
{
"mcpServers": {
"smart-terminal": {
"command": "npx",
"args": [
"-y",
"smart-terminal-mcp"
]
}
}
}在终端中运行这条命令
claude mcp add smart-terminal -- npx -y smart-terminal-mcp粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json
{
"mcpServers": {
"smart-terminal": {
"command": "npx",
"args": [
"-y",
"smart-terminal-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
粘贴到项目中的 .vscode/mcp.json
{
"servers": {
"smart-terminal": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"smart-terminal-mcp"
]
}
}
}浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。
这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。
你的选择通过 Cookie 保存在这台设备上,无需账户。
这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。
它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。
我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日
注册名称已通过 GitHub 账户 pungggi 验证,该账户拥有此仓库
我们还没有从 GitHub 读取这个仓库
我们还没有从 GitHub 读取这个仓库
它在你的电脑上运行,没有互联网端点
在你的电脑上运行,改用本地设置
它在你的电脑上运行;我们只能读取互联网端点的工具列表
与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。
它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。
注册中心没有列出必需的密钥,不过有些服务器会在首次使用时要求你登录。
它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。
GitHub 仓库最后更新于–,最新版本(1.2.42)于12天前进入注册中心。
支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。
同一分类中有:GitHub, Desktop Commander, Cloudflare MCP
同一分类中其他作者的服务器,按星标数排序。
如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
MCP server for terminal commands, file operations, and process management
Cloudflare MCP servers
按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。
A PTY-based MCP server with strong Windows support, giving MCP-capable AI clients and their agents persistent, interactive shell access via pseudo-terminals (node-pty).
Unlike simple exec-based approaches, this keeps PTY-backed shell sessions alive across steps, with bidirectional communication for interactive CLI tools, incremental reads, and session state that carries forward.
See the Changelog for recent updates.
Install this if you want a more consistent terminal workflow across AI clients, instead of relying on whatever built-in terminal behavior a single client happens to provide.
This MCP is most useful when you want:
terminal_wait, terminal_retry, terminal_run_paged, and terminal_get_history are easier to reuse across teams and clients, with less lock-in to one client's terminal behavior.vim, npm prompts, or interactive installers that often hang on standard piped stdin. Support full interactive sessions with REPLs, Ctrl+C, arrow keys, and dynamic prompts.If your AI client already provides a stable, stateful, interactive terminal with good output handling, you may not need this MCP for basic command execution. The main reason to add it is to make terminal-driven workflows more explicit, reusable, and portable across clients.
Think of this as a controlled keyboard + terminal for an agent running inside an MCP client. It opens a persistent PTY-backed shell session so the agent can send commands and keystrokes, read output, and continue working in the same session.
terminal_exec uses unique markers so it can tell when a command has finished.terminal_exec reports the current folder after each command.terminal_write + terminal_read support prompts, REPLs, and other interactive programs without leaving the current session.terminal_read accepts a since byte position to return only new output since the last read, avoiding re-reading the full buffer on every poll.terminal_wait can pause until specific text appears, such as server listening on port.terminal_watch waits for trigger patterns in session output, returning only on match, quiet, timeout, or exit. Eliminates poll-loop token waste.terminal_exec can return early when output goes silent (quietExitMs), instead of waiting for a hard timeout.terminal_retry can re-run flaky commands with bounded backoff and optional output matching.terminal_exec / terminal_wait calls can emit notifications/progress when the client provides a progress token.terminal_exec and terminal_read shorten very large output by returning the beginning and the end.terminal_run_paged returns large read-only output one page at a time instead of sending the full result at once.terminal_diff compares two command results and returns a unified diff.terminal_stop can capture a tail snapshot or write a full transcript to disk before stopping.terminal_run executes binaries directly with cmd + args and shell=false for more predictable automation.GIT_PAGER=cat, PAGER=cat), suppresses PowerShell progress output, and sets UTF-8 for cmd.exe on Windows.terminal_stop kills the entire process group on Unix, preventing orphan child processes.calm-reef).pwsh.exe > powershell.exe > cmd.exe. Linux/macOS: $SHELL > bash > sh.Progress notifications are not the same as full stdout streaming. They currently send periodic status updates for terminal_exec and terminal_wait, usually based on elapsed time and the latest output line. Whether you see them depends on your MCP client.
This MCP does not magically compress terminal output, but it can help agents use fewer tokens in terminal-heavy workflows by returning smaller, more targeted responses and making it easier to revisit output only when needed.
The main benefit is model-context efficiency, not guaranteed savings in the underlying command's runtime or total bytes produced.
position, instead of re-reading the full buffer. Reduces token usage by up to ~87% on repeated polling.terminal_run when the agent benefits more from structured results than raw text.In practice, this lets agents inspect terminal state more selectively instead of repeatedly dumping large logs back into the conversation.
By default, the 8 most-used tools are registered with full schemas and 8 convenience tools are collected behind a single lightweight terminal_extra meta-tool (~30 tokens instead of ~1,700).
Default core tools: terminal_start, terminal_exec, terminal_run, terminal_read, terminal_write, terminal_wait, terminal_stop, terminal_list
Default extra tools (behind terminal_extra): terminal_run_paged, terminal_retry, terminal_diff, terminal_resize, terminal_send_key, terminal_get_history, terminal_write_file, terminal_watch
Extra tools are not hidden — the agent sees the tool names in the terminal_extra description and can:
terminal_extra({ list: true }) → returns full parameter schemasterminal_extra({ tool: "terminal_resize", args: { sessionId: "...", cols: 200, rows: 50 } })Use SMART_TERMINAL_DISABLED_TOOLS to customize which tools are extra, or set it to an empty string to register all 15 tools with full schemas:
All tools with full schemas (no meta-tool):
{
"mcpServers": { "smart-terminal": { "command": "npx", "args": ["-y", "smart-terminal-mcp@stable"], "env": { "SMART_TERMINAL_DISABLED_TOOLS": "" } } } }
Minimal setup — only terminal_exec for simple command execution:
"env": {
"SMART_TERMINAL_DISABLED_TOOLS": "terminal_run,terminal_run_paged,terminal_retry,terminal_diff,terminal_write_file,terminal_resize,terminal_send_key,terminal_get_history,terminal_watch" }
5 core tools + terminal_extra holding 9 tools on demand.
Agent-focused setup -- terminal_run instead of terminal_exec:
"env": {
"SMART_TERMINAL_DISABLED_TOOLS": "terminal_exec,terminal_diff,terminal_retry,terminal_resize,terminal_send_key,terminal_write,terminal_read,terminal_get_history,terminal_watch" }
7 core tools + terminal_extra holding 9 tools on demand.
Recommended: run the stable release directly via npx:
npx smart-terminal-mcp@stable
Or install globally:
npm install -g smart-terminal-mcp
Or clone for development:
git clone <repo-url>
cd smart-terminal-mcp npm install
Set SMART_TERMINAL_SHELL to a shell name or absolute path to pin the shell used by terminal_start when its shell parameter is omitted. This keeps command syntax and startup behavior consistent across MCP clients and server restarts.
"env": {
"SMART_TERMINAL_SHELL": "pwsh" }
Shell selection follows this precedence:
terminal_start({ shell }) overrides environment settings.SMART_TERMINAL_SHELL applies on Windows, Linux, and macOS.PWSH_PATH remains available on Windows.An unavailable SMART_TERMINAL_SHELL value is ignored, allowing legacy or platform detection to continue.
Startup arguments match the selected shell:
-NoLogo -NoProfile. Windows auto-detection uses the same flags.cmd, bash, zsh, fish, and sh start without added arguments.This prevents PowerShell profiles, aliases, and prompt customization from changing automation behavior between machines.
Add to your claude_desktop_config.json:
{
"mcpServers": { "smart-terminal": { "command": "npx", "args": ["-y", "smart-terminal-mcp@stable"] } } }
claude mcp add smart-terminal -- npx -y smart-terminal-mcp@stable
Add to your Augment MCP settings:
{
"mcpServers": { "Sma
只显示了开头部分;其余内容请在仓库中阅读