Skip to main content

A robust subprocess execution MCP

Project description

async-bash-mcp

pypi Test

An MCP server for spawning and managing bash commands asynchronously. Run multiple shell commands in parallel and check their progress independently.

Usage with opencode

Add to your opencode.json config:

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "async-bash": {
      "type": "local",
      "command": ["uvx", "async-bash-mcp"],
      "enabled": true
    }
  }
}

Then use commands like:

  • "Spawn a long-running build in the background"
  • "Run tests in parallel and show me the results"
  • "Start a server and tell me when it's ready"

Tools

spawn - Launch a bash command asynchronously

  • command (str): The bash command to run
  • cwd (str, optional): Working directory path
  • Returns a process ID for tracking

list_processes - Show all running/recent processes

  • No parameters
  • Returns array of {"ID": int, "command": str, "done": bool}

poll - Check progress of a spawned process

  • process_id (int): ID from spawn command
  • wait (int): Wait time in milliseconds
  • terminate (bool, optional): Kill process before returning results
  • Returns {"stdout": str, "stderr": str, "elapsedTime": float, "finished": bool, "exitCode": int}

Installation

uvx async-bash-mcp

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

async_bash_mcp-0.1.3.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

async_bash_mcp-0.1.3-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file async_bash_mcp-0.1.3.tar.gz.

File metadata

  • Download URL: async_bash_mcp-0.1.3.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.11

File hashes

Hashes for async_bash_mcp-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d05c4aac8eb463da1a23d4b8de5901dabf6170d22b70e97e2b225abd360cae82
MD5 e95c5b2027819f40511eba13640b9bc8
BLAKE2b-256 214e3a3435ef9a996bf4749eef217e7f5fba2879a5f0f136d8c35b1e78f2b01d

See more details on using hashes here.

File details

Details for the file async_bash_mcp-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for async_bash_mcp-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c8ee01355b3f936ce3d98767b3932471983023758b38fc5c2b0fbdedbb10637e
MD5 58e5cc58db4467ab2961301958d1e155
BLAKE2b-256 9c75c984d833901ae9c201b3faae598877e23d01eaecef1a26a05f4b7eaa054f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page