Skip to main content
Glama

BashCommand

Execute and manage bash commands on the mcp-wcgw server. Monitor command status and output, avoid file-related errors by verifying the working directory, and handle long-running tasks efficiently using screen. Ensure single command execution at a time.

Instructions

  • Execute a bash command. This is stateful (beware with subsequent calls).

  • Status of the command and the current working directory will always be returned at the end.

  • The first or the last line might be (...truncated) if the output is too long.

  • Always run pwd if you get any file or directory not found error to make sure you're not lost.

  • Run long running commands in background using screen instead of "&".

  • Do not use 'cat' to read files, use ReadFiles tool instead

  • In order to check status of previous command, use status_check with empty command argument.

  • Only command is allowed to run at a time. You need to wait for any previous command to finish before running a new one.

  • Programs don't hang easily, so most likely explanation for no output is usually that the program is still running, and you need to check status again.

  • Do not send Ctrl-c before checking for status till 10 minutes or whatever is appropriate for the program to finish.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
action_jsonYes
thread_idYes
wait_for_secondsNo

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rusiaaman/wcgw'

If you have feedback or need assistance with the MCP directory API, please join our Discord server