Skip to main content
Glama

secure_run_command

Execute restricted commands securely on the Code MCP Server, specifying working directory, timeout, and environment variables, with optional auto-commit functionality.

Instructions

Execute a command with security restrictions (only allowed commands)

Input Schema

TableJSON 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

Latest Blog Posts

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