★ 213 Rust Apache-2.0 sse 更新 1小时前

Ht

Pure Rust implementation of MCP server for headless terminal

安装配置

{
    "mcpServers": {
        "ht-mcp": {
            "command": "ht-mcp",
            "args": [
                "--debug"
            ]
        }
    }
}

README 摘要

# ht-mcp [![Rust](https://img.shields.io/badge/rust-1.75+-orange.svg)](https://www.rust-lang.org) [![License: Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) A high-performance Rust implementation of a Model Context Protocol (MCP) server for headless terminal [ht](https://github.com/andyk/ht). ## Features - 🚀 **Pure Rust**: Single binary MCP server, no external dependencies - 🔗 **Direct Integration**: Embed excellent [ht](https://github.com/andyk/ht) headless terminal library for optimal performance - 🖥️ **Multi-Session**: Concurrent terminal session management - 🌐 **Web Interface**: Optional live terminal preview ## Demo ### ht-mcp in [Memex](https://memex.tech) ![ht-mcp in Memex](https://github.com/user-attachments/assets/6a1b6e76-5d5c-4ba4-87ee-70a31f0bc4ce) ### ht-mcp in [Claude Code](https://www.anthropic.com/claude-code) ![ht-mcp in Claude Code](https://github.com/user-attachments/assets/e70a3240-77f5-4ef2-953b-202b310dbf74) ## Installation ### 🍺 Homebrew (Recommended) ```bash brew tap memextech/tap brew install ht-mcp ``` ### 📦 Pre-built Binaries Download from [releases](https://github.com/memextech/ht-mcp/releases/latest): ```bash # macOS Intel curl -L https://github.com/memextech/ht-mcp/releases/latest/download/ht-mcp-x86_64-apple-darwin -o ht-mcp # macOS Apple Silicon curl -L https://github.com/memextech/ht-mcp/releases/latest/download/ht-mcp-aarch64-apple-darwin -o ht-mcp # Linux curl -L https://github.com/memextech/ht-mcp/releases/latest/download/ht-mcp-x86_64-unknown-linux-gnu -o ht-mcp # Windows (PowerShell) curl.exe -L https://github.com/memextech/ht-mcp/releases/latest/download/ht-mcp-x86_64-pc-windows-msvc -o ht-mcp.exe # Make executable and install chmod +x ht-mcp && sudo mv ht-mcp /usr/local/bin/ ``` ### 🦀 Cargo ```bash # From crates.io (stable) cargo install ht-mcp # From git (latest) cargo install --git https://github.com/memextech/ht-mcp ``` ### 🔧 Build from Source ```bash git clone https://github.com/memextech/ht-mcp.git cd ht-mcp git submodule update --init --recursive cargo install --path . ``` See [docs/INSTALLATION.md](docs/INSTALLATION.md) for detailed installation options. ## MCP Tools | Tool | Description | Parameters | |------|-------------|------------| | `ht_create_session` | Create new terminal session | `command?`, `enableWebServer?` | | `ht_send_keys` | Send keystrokes to session | `sessionId`, `keys[]` | | `ht_take_snapshot` | Capture terminal state | `sessionId` | | `ht_execute_command` | Execute command and get output | `sessionId`, `command` | | `ht_list_sessions` | List all active sessions | None | | `ht_close_session` | Close terminal session | `sessionId` | > **Note**: Parameters use camelCase (e.g., `sessionId`, `enableWebServer`) for MCP compatibility. ## Configuration Add to your MCP client configuration: ```json { "mcpServers": { "ht-mcp": { "command": "ht-mcp", "args": ["--debug"] } } } ``` For custom installation paths: ```json { "mcpServers": { "ht-mcp": { "command": "/path/to/ht-mcp", "args": [] } } } ``` ## Usage Example ```bash # Start the MCP server ht-mcp # With debug logging ht-mcp --debug ``` Once configured in your MCP client: 1. **Create session**: `ht_create_session` → Returns session ID 2. **Run commands**: `ht_execute_command` with session ID and command 3. **Interactive input**: `ht_send_keys` for multi-step interac...

相关 MCP

Libre Chat

Enhanced ChatGPT Clone: Features Agents, MCP, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, M...

★ 37614 TypeScript sse 待补充
mcp sse TypeScript

Github

GitHub's official MCP Server

★ 30243 Go sse 待补充
mcp sse Go

Fast

🚀 The fast, Pythonic way to build MCP servers and clients.

★ 25364 Python sse 待补充
mcp Python sse