Skip to main content
Glama

MCP Filesystem Server

by A-Niranjan

bash_execute

Execute and capture Bash commands with defined working directories, environment variables, and time limits. Provides secure access to Bash functionality within MCP Filesystem Server's controlled environment.

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

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