A robust subprocess execution MCP
Project description
async-bash-mcp
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 runcwd(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 commandwait(int): Wait time in millisecondsterminate(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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d05c4aac8eb463da1a23d4b8de5901dabf6170d22b70e97e2b225abd360cae82
|
|
| MD5 |
e95c5b2027819f40511eba13640b9bc8
|
|
| BLAKE2b-256 |
214e3a3435ef9a996bf4749eef217e7f5fba2879a5f0f136d8c35b1e78f2b01d
|
File details
Details for the file async_bash_mcp-0.1.3-py3-none-any.whl.
File metadata
- Download URL: async_bash_mcp-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8ee01355b3f936ce3d98767b3932471983023758b38fc5c2b0fbdedbb10637e
|
|
| MD5 |
58e5cc58db4467ab2961301958d1e155
|
|
| BLAKE2b-256 |
9c75c984d833901ae9c201b3faae598877e23d01eaecef1a26a05f4b7eaa054f
|