SmartCLI — drive terminal TUIs MCP server
io.github.dwgx/smartcli·v0.3.5·4 starsLet agents drive vim, htop, lazygit: send keys, wait on screen state, read the rendered cell grid.
not scanned yet
4 stars218 downloads/wk
Reviews
Write oneNobody has reviewed SmartCLI — drive terminal TUIs yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
SmartCLI — drive terminal TUIs tools
No tool declarations could be read from the package source. They show once the server is installed.
How SmartCLI — drive terminal TUIs compares
Against every graded Productivity MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 92/100
- higher than 90% of 1,299 Productivity servers
- GitHub stars
- 4
- more than 68% of 854 Productivity servers
- Downloads a week
- 218
- more than 72% of 427 Productivity servers with a package
Release history: 3 versions in the registry since 2026-09-16, latest 2026-10-11, typically one every 15 days.
Install SmartCLI — drive terminal TUIs in Claude Code, Cursor or VS Code
claude mcp add smartcli -- uvx smartcli-toolkit
What the publisher says
From the SmartCLI — drive terminal TUIs repository's README, as published. We do not edit it. Read it on GitHub
<!-- Language: English | 简体中文 | 繁體中文 | 日本語 | 한국어 --> <!-- mcp-name: io.github.dwgx/smartcli --> <!-- ^ MCP Registry PyPI ownership marker: this string must appear in the published package's README (= PyPI description) and match server.json's "name". Do not remove or change without updating server.json. -->
SmartCLI
Read this in: English · 简体中文 · 繁體中文 · 日本語 · 한국어
A local Python toolkit for driving, perceiving, and rendering the terminal — three agent skills over one pluggable PTY + pyte core.
Let an AI drive, perceive, and render real terminal programs. SmartCLI reads the actual screen with a pyte cell model — not a byte pipe — so it knows which menu row is highlighted, presses the right keys, and waits for the screen to settle. Below: it drives the real lazygit TUI end-to-end (arrow-key navigation, opening a commit diff, highlighting a branch) — no script, no mock.
pip install smartcli-toolkitRequires Python 3.10 or newer. The install includes the shared Python library, the persistent TUI driver, and the stdio MCP server.
Drive something in 30 seconds
Copy-paste this. It starts a real Python REPL under a PTY, waits for the prompt (never a blind sleep), types into it, and reads the screen back:
pip install smartcli-toolkit
SID=$(smartcli-tui start --cmd "python3 -i -q" --cols 80 --rows 24 --json | python3 -c "import json,sys;print(json.load(sys.stdin)['sid'])")
smartcli-tui wait-regex --id $SID ">>> " --timeout-ms 15000
smartcli-tui send-line --id $SID "print(6*7)"
smartcli-tui wait-regex --id $SID "42" # prints the cell grid it sees
smartcli-tui close --id $SIDOn Windows use --cmd "py -i -q". Swap the command for vim, htop or lazygit and the same five verbs drive those too — that is the whole point: wait-regex and friends react to what the screen actually shows, so an agent never guesses whether its keystroke landed.
Want the same thing against a real editor, end to end and verifiable? examples/drivevim.py drives the actual vim binary — opens a file, appends a line, saves, and then checks the filesystem**, not the screen:
python examples/drive_vim.py
# [OK ] vim painted its screen
# [OK ] file contents visible on screen
# [OK ] alternate screen is active
# [OK ] vim entered insert mode (so G and o both landed)
# [OK ] typed text appears on screen
# [OK ] vim restored the main screen on exit
# [OK ] file on disk really changedShortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
SmartCLI — drive terminal TUIs: common questions
- Is SmartCLI — drive terminal TUIs MCP server safe?
- Yes, by our scan: it is graded A (92/100). Read the SmartCLI — drive terminal TUIs safety report
- How do I install SmartCLI — drive terminal TUIs?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does SmartCLI — drive terminal TUIs need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is SmartCLI — drive terminal TUIs maintained?
- The last commit was 34 days ago (2026-10-01). The latest release is v0.3.5.
- What can I use instead of SmartCLI — drive terminal TUIs?
- Servers from other publishers that do the same job: iPhone Use MCP server, Renforge MCP server and Argent MCP server.
- How does SmartCLI — drive terminal TUIs compare with other Productivity MCP servers?
- safety score 92/100 (higher than 90% of 1,299 Productivity servers); github stars 4 (more than 68% of 854 Productivity servers); downloads a week 218 (more than 72% of 427 Productivity servers with a package). Full comparison.
Alternatives to SmartCLI — drive terminal TUIs
Same job from other publishers: the closest match first, then the best rated.
iPhone UseDrive a real iPhone from a Mac: read the screen as text, tap, type, scroll, replay saved flows.not reviewedGrowingB- RenforgeInspect, drive and debug a running Ren'Py game: state, screenshots, guarded clicks, saves, builds.not reviewedGrowingA
- ArgentDrive iOS Simulators, Android emulators, TVs and Electron/web apps from your coding agentnot reviewedWidely usedA
SvGridChecks AI-written SvGrid code against the real API, plus version-pinned Svelte 5 grid docs.not reviewedEstablishedA- gflow-cliDrive Google Flow from an agent: Veo video and Imagen image generationnot reviewedEstablishedA