Skip to main content
Glama

Code MCP Server

by block

secure_run_command_sequence

Execute a sequence of commands securely with controlled parameters, including timeout, error handling, and optional auto-commit, ensuring reliable task automation in VS Code environments.

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