Skip to main content
Glama

Code MCP Server

by block

secure_run_command_sequence

Execute multiple commands in sequence with security restrictions, using a specific working directory, timeout, and error handling. Supports auto-commit with custom messages for successful operations.

Instructions

Execute multiple commands in sequence with security restrictions

Input Schema

NameRequiredDescriptionDefault
commandsYesArray of commands to execute in sequence
commitMessageNoCustom commit message
commitResultNoAuto-commit after successful sequence
cwdNoWorking directory for all commands
stopOnErrorNoStop execution on first error (default: true)
timeoutNoTimeout per command in milliseconds

Input Schema (JSON Schema)

{ "properties": { "commands": { "description": "Array of commands to execute in sequence", "items": { "type": "string" }, "type": "array" }, "commitMessage": { "description": "Custom commit message", "type": "string" }, "commitResult": { "description": "Auto-commit after successful sequence", "type": "boolean" }, "cwd": { "description": "Working directory for all commands", "type": "string" }, "stopOnError": { "description": "Stop execution on first error (default: true)", "type": "boolean" }, "timeout": { "description": "Timeout per command in milliseconds", "type": "number" } }, "required": [ "commands" ], "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