CLI Executor

by 0xbruno

1 stars
168 downloads
Not rated
GitHub

About

Provides a tool for executing local CLI commands asynchronously using FastMCP and asyncio, handling command arguments securely and offering error handling for failed commands.

Details

Author
0xbruno
Repository
0xBruno/MCPExec
GitHub stars
1
Downloads
168
Categories
Design, Developer Tools, AI, Infrastructure, Frontend, Other

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name CLI Executor
    Command (node, npx, python, etc.) /Users/bruno/.local/bin/uv
    Arguments
    • Argument 1 --directory
    • Argument 2 /Users/bruno/example/path
    • Argument 3 run
    • Argument 4 app.py

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Set up a Python

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "cli executor": {
            "cwd": "optional",
            "env": {},
            "args": [
                "--directory",
                "/Users/bruno/example/path",
                "run",
                "app.py"
            ],
            "shell": false,
            "command": "/Users/bruno/.local/bin/uv"
        }
    }
}

Linux

{
    "cwd": "optional",
    "env": [],
    "args": [
        "--directory",
        "/Users/bruno/example/path",
        "run",
        "app.py"
    ],
    "shell": false,
    "command": "/Users/bruno/.local/bin/uv"
}

Macos

{
    "cwd": "optional",
    "env": [],
    "args": [
        "--directory",
        "/Users/bruno/example/path",
        "run",
        "app.py"
    ],
    "shell": false,
    "command": "/Users/bruno/.local/bin/uv"
}

Windows

{
    "cwd": "optional",
    "env": [],
    "args": [
        "--directory",
        "/Users/bruno/example/path",
        "run",
        "app.py"
    ],
    "shell": false,
    "command": "/Users/bruno/.local/bin/uv"
}

MCPExec

MCP Server to exec local cli commands

Set up your environment
First, let’s install uv and set up our Python project and environment:
curl -LsSf https://astral.sh/uv/install.sh | sh
Make sure to restart your terminal afterwards to ensure that the uv command gets picked up.

Now, let’s create and set up our project:

Create a new directory for our project

uv init exec cd exec

Create virtual environment and activate it

uv venv source .venv/bin/activate

Install dependencies

uv add "mcp[cli]"

Add MCP Server

For Claude for Desktop:
{
    "mcpServers": {
        "exec-cli": {
            "command": "/Users/bruno/.local/bin/uv",
            "args": [
                "--directory",
                "/Users/bruno/example/path",
                "run",
                "app.py"
            ]
        }
    }
}
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.