Hex1b.McpServer
0.118.0
dotnet tool install --global Hex1b.McpServer --version 0.118.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local Hex1b.McpServer --version 0.118.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Hex1b.McpServer&version=0.118.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package Hex1b.McpServer --version 0.118.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Hex1b.McpServer
A Model Context Protocol (MCP) server for terminal session management using Hex1b. This tool provides AI assistants and automation tools with the ability to create, control, and capture terminal sessions.
Installation
Install as a .NET global tool:
dotnet tool install -g Hex1b.McpServer
Usage
Run the MCP server:
hex1b-mcp
The server communicates via stdio using the MCP protocol.
Available Tools
Session Management
- start_bash_terminal - Start a new bash terminal session (Linux/macOS)
- start_pwsh_terminal - Start a new PowerShell terminal session (Windows/cross-platform)
- stop_terminal - Stop a terminal session's process
- remove_session - Remove a terminal session and dispose resources
- list_terminals - List all active terminal sessions
- resize_terminal - Resize a terminal session
Input
- send_terminal_input - Send text input to a terminal session
- send_terminal_key - Send a special key (Enter, Tab, Arrow keys, F1-F12, etc.)
Capture
- capture_terminal_text - Capture the terminal screen as plain text
- capture_terminal_screenshot - Capture the terminal screen as an SVG image
- wait_for_terminal_text - Wait for specific text to appear on the terminal
Recording
- start_asciinema_recording - Start recording a terminal session to an asciinema file. Captures the current terminal state as the initial frame, then records all subsequent output. Supports
idle_time_limitparameter (default 2s) to compress long pauses during playback. - stop_asciinema_recording - Stop an active recording and finalize the file. Returns the path to the completed
.castfile.
Utility
- ping - Verify the MCP server is running
Recording Example
1. start_bash_terminal → returns sessionId
2. send_terminal_input (run some commands)
3. start_asciinema_recording(sessionId, "/path/to/demo.cast")
→ Captures current screen state as initial frame
4. ... interact with terminal ...
5. stop_asciinema_recording(sessionId)
→ Finalizes recording
Play with: asciinema play /path/to/demo.cast
Configuration
VS Code MCP Configuration
Add to your VS Code settings:
{
"mcp": {
"servers": {
"terminal-mcp": {
"command": "hex1b-mcp"
}
}
}
}
Claude Desktop Configuration
Add to your claude_desktop_config.json:
{
"mcpServers": {
"terminal-mcp": {
"command": "hex1b-mcp"
}
}
}
Requirements
- .NET 10.0 or later
- Linux or macOS (PTY support via native interop)
License
MIT - See LICENSE file in the repository.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.118.0 | 0 | 3/14/2026 |
| 0.117.0 | 0 | 3/14/2026 |
| 0.116.0 | 31 | 3/13/2026 |
| 0.115.0 | 33 | 3/13/2026 |
| 0.114.0 | 68 | 3/11/2026 |
| 0.113.0 | 79 | 3/11/2026 |
| 0.112.0 | 70 | 3/10/2026 |
| 0.111.0 | 77 | 3/10/2026 |
| 0.110.0 | 77 | 3/9/2026 |
| 0.109.0 | 77 | 3/8/2026 |
| 0.108.0 | 80 | 3/7/2026 |
| 0.107.0 | 78 | 3/6/2026 |
| 0.106.0 | 80 | 3/4/2026 |
| 0.105.0 | 83 | 3/4/2026 |
| 0.104.0 | 83 | 3/3/2026 |
| 0.103.0 | 88 | 3/2/2026 |
| 0.102.0 | 87 | 3/2/2026 |
| 0.101.0 | 79 | 3/2/2026 |
| 0.100.0 | 83 | 3/2/2026 |
| 0.99.0 | 91 | 2/26/2026 |
Loading failed
See https://github.com/hex1b/hex1b/releases for release notes.