Terminal Server
БесплатноНе проверенExposes authenticated shell tools for remote command execution and task management, enabling grok.com to run shell commands on the host machine.
Описание
Exposes authenticated shell tools for remote command execution and task management, enabling grok.com to run shell commands on the host machine.
README
HTTP MCP server that exposes authenticated shell tools so grok.com can run commands on this machine.
Quick start
cd /root/terminal-mcp
cp .env.example .env
# Set TERMINAL_MCP_TOKEN: openssl rand -hex 32
chmod +x scripts/*.sh
./scripts/start.sh
curl http://127.0.0.1:3001/health
grok.com setup
- Set tunnel mode in
.env:TERMINAL_MCP_TUNNEL_MODE=true - Restart:
./scripts/stop.sh && ./scripts/start.sh - Tunnel:
./scripts/tunnel.sh— copy the URL and setTERMINAL_MCP_TUNNEL_HOST - Restart again after setting tunnel host
- Register at grok.com/connectors → Custom:
- URL:
https://<tunnel-host>/mcp - Auth:
Bearer <TERMINAL_MCP_TOKEN>
- URL:
Stable tunnel URLs
- ngrok paid: reserved domain — set
TERMINAL_MCP_TUNNEL_HOSTonce - Cloudflare named tunnel: Cloudflare Tunnel docs — persistent hostname
Tools
| Tool | Description |
|---|---|
run_command |
Run shell command (shell_mode: auto/shell/exec) |
get_command_output |
Poll background job (supports tail_bytes) |
list_tasks |
List all jobs |
kill_task |
Terminate background job |
get_cwd_info |
Environment and policy summary |
Resources
terminal://tasks/{task_id}/log— task output log
Security
Configured in config.toml:
mode:blocklist(default),allowlist, orpermissive- Command blocklist / allowlist
- Webhook approval for destructive commands (
[security.webhook]) - Sanitized child environment (no inherited secrets)
- Audit log:
logs/audit.jsonl
systemd
sudo cp deploy/terminal-mcp.service /etc/systemd/system/
sudo systemctl enable --now terminal-mcp
Tests
.venv/bin/pip install -e ".[dev]"
.venv/bin/pytest -q
Local Grok CLI
grok mcp add terminal --transport http \
--header "Authorization=Bearer ${TERMINAL_MCP_TOKEN}" \
http://127.0.0.1:3001/mcp
Установить Terminal Server в Claude Desktop, Claude Code, Cursor
unyly install terminal-mcp-serverСтавит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.
Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh
Или настроить вручную
Выполни в терминале:
claude mcp add terminal-mcp-server -- uvx terminal-mcpFAQ
Terminal Server MCP бесплатный?
Да, Terminal Server MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Terminal Server?
Нет, Terminal Server работает без API-ключей и переменных окружения.
Terminal Server — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить Terminal Server в Claude Desktop, Claude Code или Cursor?
Открой Terminal Server на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Notion
Read and write pages in your workspace
автор: NotionLinear
Issues, cycles, triage — from Claude
автор: LinearGoogle Drive
Search and read your Drive files
автор: Googlemindsdb/mindsdb
Connect and unify data across various platforms and databases with [MindsDB as a single MCP server](https://docs.mindsdb.com/mcp/overview).
автор: mindsdbCompare Terminal Server with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории productivity
