Skip to main content
Glama

MCP Filesystem Server

MIT License
35
7
  • Linux
  • Apple

execute_command

Execute system commands securely with validation and detailed output. Configure working directory, timeout, and output capture for basic system operations within predefined directories.

Instructions

Execute a system command with security restrictions. Validates commands for safety and provides detailed output. Limited to basic system operations with security checks.

Input Schema

NameRequiredDescriptionDefault
captureOutputNoWhether to capture and return command output
commandYesThe command to execute
timeoutNoMaximum execution time in milliseconds (max 30s)
workingDirNoWorking directory for command execution

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "captureOutput": { "default": true, "description": "Whether to capture and return command output", "type": "boolean" }, "command": { "description": "The command to execute", "type": "string" }, "timeout": { "default": 5000, "description": "Maximum execution time in milliseconds (max 30s)", "exclusiveMinimum": 0, "maximum": 30000, "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