Skip to main content
Glama

MCP Filesystem Server

MIT License
35
7
  • Linux
  • Apple

bash_execute

Execute Bash commands with output capture and security restrictions on the MCP Filesystem Server. Specify working directory, timeout, and environment variables for controlled command execution.

Instructions

Execute a Bash command directly with output capture. More flexible than execute_command but still with security restrictions. Allows for direct access to Bash functionality.

Input Schema

NameRequiredDescriptionDefault
commandYesThe bash command to execute
envNoAdditional environment variables for the command
timeoutNoMaximum execution time in milliseconds (max 60s)
workingDirNoWorking directory for command execution

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "command": { "description": "The bash command to execute", "type": "string" }, "env": { "additionalProperties": { "type": "string" }, "description": "Additional environment variables for the command", "type": "object" }, "timeout": { "default": 30000, "description": "Maximum execution time in milliseconds (max 60s)", "exclusiveMinimum": 0, "maximum": 60000, "type": "integer" }, "workingDir": { "description": "Working directory for command execution", "type": "string" } }, "required": [ "command" ], "type": "object" }

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/gabrielmaialva33/mcp-filesystem'

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