Skip to main content
Glama

Code MCP Server

by block

secure_run_command

Securely execute commands with restrictions, ensuring only allowed operations are performed. Specify working directory, timeout, environment variables, and auto-commit changes for controlled and safe execution.

Instructions

Execute a command with security restrictions (only allowed commands)

Input Schema

NameRequiredDescriptionDefault
commandYesCommand to execute securely
commitMessageNoCustom commit message if commitResult is true
commitResultNoAuto-commit changes after successful execution
cwdNoWorking directory
envNoEnvironment variables
timeoutNoCommand timeout in milliseconds

Input Schema (JSON Schema)

{ "properties": { "command": { "description": "Command to execute securely", "type": "string" }, "commitMessage": { "description": "Custom commit message if commitResult is true", "type": "string" }, "commitResult": { "description": "Auto-commit changes after successful execution", "type": "boolean" }, "cwd": { "description": "Working directory", "type": "string" }, "env": { "description": "Environment variables", "type": "object" }, "timeout": { "description": "Command timeout in milliseconds", "type": "number" } }, "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/block/vscode-mcp'

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