A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/GongRzhe/terminal-controller-mcp below:

GongRzhe/terminal-controller-mcp: A Model Context Protocol (MCP) server that enables secure terminal command execution, directory navigation, and file system operations through a standardized interface.

Terminal Controller for MCP

A Model Context Protocol (MCP) server that enables secure terminal command execution, directory navigation, and file system operations through a standardized interface.

To install Terminal Controller for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @GongRzhe/terminal-controller-mcp --client claude
Method 1: PyPI Installation (Recommended)

Install the package directly from PyPI:

pip install terminal-controller

Or if you prefer to use UV:

uv pip install terminal-controller

If you prefer to install from source:

  1. Clone this repository:

    git clone https://github.com/GongRzhe/terminal-controller-mcp.git
    cd terminal-controller-mcp
  2. Run the setup script:

There are two ways to configure Claude Desktop to use Terminal Controller:

Option 1: Using UVX (Recommended)

Add this to your Claude Desktop configuration file:

"terminal-controller": {
  "command": "uvx",
  "args": ["terminal_controller"]
}
Option 2: Using Python Directly
"terminal-controller": {
  "command": "python",
  "args": ["-m", "terminal_controller"]
}

The configuration path varies by operating system:

For Cursor, use similar configuration settings as Claude Desktop.

For other clients, refer to their documentation on how to configure external MCP servers.

Once configured, you can use natural language to interact with your terminal through your MCP client:

Terminal Controller exposes the following MCP tools:

Execute a terminal command and return its results.

Parameters:

Returns:

Get recent command execution history.

Parameters:

Returns:

Get the current working directory.

Returns:

Change the current working directory.

Parameters:

Returns:

List files and subdirectories in the specified directory.

Parameters:

Returns:

Write content to a file with overwrite or append options.

Parameters:

Returns:

Read content from a file with optional row selection.

Parameters:

Returns:

Insert content at specific row(s) in a file.

Parameters:

Returns:

Delete content at specific row(s) from a file.

Parameters:

Returns:

Update content at specific row(s) in a file.

Parameters:

Returns:

Terminal Controller implements several security measures:

If you encounter issues:

  1. Check that your Python version is 3.11 or higher
  2. Verify that your Claude Desktop configuration is correct
  3. Try running the terminal controller directly to check for errors:
    python -m terminal_controller
  4. For UVX-related issues, try:
  5. Review your MCP client's logs for connection errors

Contributions are welcome! Please feel free to submit a Pull Request.

MIT


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4