AiDD MCP Server

execute_code

Execute arbitrary code in various programming languages on the user's local machine within the current working directory. Supported languages: python, javascript, ruby, php, go, rust. Always review the code carefully before execution to prevent unintended consequences. You MUST explicitly show the user the code that will be executed and get his confirmation before using this tool. Examples: - Python: code='print(sum(range(10)))'. - JavaScript: code='console.log(Array.from({length: 5}, (_, i) => i*2))'. - Ruby: code='puts (1..5).reduce(:+)'.

Input Schema

NameRequiredDescriptionDefault
codeYesCode to execute on the user's local machine in the current working directory
languageYesProgramming language to use
timeoutNoMaximum execution time in seconds

Input Schema (JSON Schema)

{ "properties": { "code": { "description": "Code to execute on the user's local machine in the current working directory", "type": "string" }, "language": { "description": "Programming language to use", "enum": [ "python", "javascript", "ruby", "php", "go", "rust" ], "type": "string" }, "timeout": { "default": 5, "description": "Maximum execution time in seconds", "maximum": 30, "minimum": 1, "type": "integer" } }, "required": [ "language", "code" ], "type": "object" }