Terminal Controller for UVx
A Model Context Protocol (MCP) server that enables secure terminal command execution, directory navigation, and file system operations through a standardized interface, packaged for UVx.
Features
- Command Execution: Run terminal commands with timeout controls and comprehensive output capture
- Directory Management: Navigate and list directory contents with intuitive formatting
- Security Measures: Built-in safeguards against dangerous commands and operations
- Command History: Track and display recent command executions
- Cross-Platform Support: Works on both Windows and UNIX-based systems
- UVx Integration: Easily installable via UVx for seamless integration
Installation
Using UVx (Recommended)
Install using UVx with a single command:
uvx install terminal-controller
Manual Installation
For manual installation:
-
Clone this repository:
git clone https://github.com/GongRzhe/terminal-controller-uvx.git cd terminal-controller-uvx
-
Install the package:
pip install .
Usage
With UVx
After installation, you can use the Terminal Controller directly with UVx-compatible LLM clients.
As a Standalone MCP Server
You can also run the Terminal Controller as a standalone MCP server:
terminal-controller
Client Configuration
Claude Desktop
Configure Claude Desktop to use Terminal Controller by adding the following to your Claude Desktop configuration:
"terminal-controller": {
"command": "terminal-controller",
"args": [],
"env": {}
}
Other MCP Clients
For other clients, refer to their documentation on how to configure UVx or external MCP servers.
API Reference
Terminal Controller exposes the following MCP tools:
execute_command
Execute a terminal command and return its results.
Parameters:
command: The command line command to executetimeout: Command timeout in seconds (default: 30)
get_command_history
Get recent command execution history.
Parameters:
count: Number of recent commands to return (default: 10)
get_current_directory
Get the current working directory.
change_directory
Change the current working directory.
Parameters:
path: Directory path to switch to
list_directory
List files and subdirectories in the specified directory.
Parameters:
path: Directory path to list contents (default: current directory)
Security Considerations
Terminal Controller implements several security measures:
- Timeout controls to prevent long-running commands
- Blacklisting of dangerous commands (rm -rf /, format, mkfs)
- Proper error handling and isolation of command execution
- Access only to the commands and directories specifically granted
License
MIT
Metadata
Release files for terminal-controller-uvx 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| terminal_controller_uvx-0.1.4.tar.gz | 6.1 kB | Without provenance | Details for terminal_controller_uvx-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| terminal_controller_uvx-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for terminal_controller_uvx-0.1.4-py3-none-any.whl |
Total release size: 12.1 kB
Release files / terminal_controller_uvx-0.1.4.tar.gz
| Download URL | terminal_controller_uvx-0.1.4.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d13e0908bd58440bb2f3ebd86de9a547de0fa872253f2a4791ab0fe3046e33b6
|
|
BLAKE2b-256 checksum How to use checksums |
aa41df58182fa2e51cf1d5ad3c09e75d6aa3dc470532dfcc6b052ea26adfb74e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / terminal_controller_uvx-0.1.4-py3-none-any.whl
| Download URL | terminal_controller_uvx-0.1.4-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e3d5a8590ab40a75223fff8657596773973a1ffa04e938a34b20fceb15ec517f
|
|
BLAKE2b-256 checksum How to use checksums |
d8a464cc01e30ca85ceaf5328d8a13faef08edbb58b68ceb462385b1c35a8f02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for terminal-controller-uvx 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.