Skip to main content

A robust subprocess execution MCP

Project description

MCP spawning and managing bash tasks

tools provided:

  1. spawn : lauch a command
  • parameters:
    • command: str, the bash command to run
    • cwd: str, optional path to the cwd to use.
  • Spawns a bash command in a subshell asynchronously, returns a ID (int) of the newly launched task
  1. list :
  • parameters: none
  • Returns a list of the currently running processes each is a dictionary of [{"ID": int, "command": str, "done": bool}]. Tasks will be removed from the list when their result has been accessed via wait or poll
  1. poll, check the progress of a task
  • parameters: ID: int the command to check, wait: int wait for the process to finish executing or for wait ms to elapse. terminate: bool = false an optional parameter which triggers the command to be terminated with SIG_TERM before returning the command results
  • If poll is executed multiple times for a single process it will only return the stdout and stderr that was produced since the last call to poll (no duplicate outputs)
  • returns dictionary {"stdout": str, "stderr": str, "elapsedTime": float, "finished": bool, "exitCode": int} exitCode will only be present if finished is true. elapsedTime will be the number of milliseconds since the command started.

Requirements

  1. Must support multiple concurrent clients
  2. Each tool must have a description which is well designed to be consumed by an LLM
  3. Results should be presented in a format which is suitable for and LLM
  4. Uses the users default shell (bash, zsh, fish)

launching the MCP

This MCP is launched with uv via

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.1.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.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: async_bash_mcp-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 b306d1c5c07eb4a8aee5e2f969b35a3f3b53ddfdcd24a910d5de7440e335079e
MD5 c3d05a3598bef45fab0e8272d590f20b
BLAKE2b-256 3a722d6e0057dae909bb7aa55a3e8088d5e5dc60c958392abf38d2d7c5f3829a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for async_bash_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4017184dcfb128a6ad136acee08fe1bb1ce680d2f78d5ad3690fa540bb08f391
MD5 ce5dc888fb9cd3a3489f2b06a97fe6a7
BLAKE2b-256 691bbb6d5c48ba58976c6ff7d7b3075eed7b9eacf16bf1302789a77969124c8f

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