Skip to main content
Glama

mcp-wcgw

Apache 2.0
510
  • Apple
  • Linux

BashCommand

Execute bash commands on the MCP server 'mcp-wcgw', track their status and working directory, and manage background processes efficiently.

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

NameRequiredDescriptionDefault
action_jsonYes
thread_idYes
wait_for_secondsNo

Input Schema (JSON Schema)

{ "$defs": { "Command": { "additionalProperties": false, "properties": { "command": { "title": "Command", "type": "string" } }, "required": [ "command" ], "title": "Command", "type": "object" }, "SendAscii": { "additionalProperties": false, "properties": { "send_ascii": { "items": { "type": "integer" }, "title": "Send Ascii", "type": "array" } }, "required": [ "send_ascii" ], "title": "SendAscii", "type": "object" }, "SendSpecials": { "additionalProperties": false, "properties": { "send_specials": { "items": { "enum": [ "Enter", "Key-up", "Key-down", "Key-left", "Key-right", "Ctrl-c", "Ctrl-d" ], "type": "string" }, "title": "Send Specials", "type": "array" } }, "required": [ "send_specials" ], "title": "SendSpecials", "type": "object" }, "SendText": { "additionalProperties": false, "properties": { "send_text": { "title": "Send Text", "type": "string" } }, "required": [ "send_text" ], "title": "SendText", "type": "object" }, "StatusCheck": { "additionalProperties": false, "properties": { "status_check": { "const": true, "title": "Status Check", "type": "boolean" } }, "required": [ "status_check" ], "title": "StatusCheck", "type": "object" } }, "additionalProperties": false, "properties": { "action_json": { "anyOf": [ { "$ref": "#/$defs/Command" }, { "$ref": "#/$defs/StatusCheck" }, { "$ref": "#/$defs/SendText" }, { "$ref": "#/$defs/SendSpecials" }, { "$ref": "#/$defs/SendAscii" } ], "title": "Action Json" }, "thread_id": { "title": "Thread Id", "type": "string" }, "wait_for_seconds": { "anyOf": [ { "type": "number" }, { "type": "null" } ], "default": null, "title": "Wait For Seconds" } }, "required": [ "action_json", "thread_id" ], "title": "BashCommand", "type": "object" }
Install Server

Other Tools from mcp-wcgw

Related Tools

    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