AiDD MCP Server

execute_code

Execute code in various programming languages. Supported languages: python, javascript, ruby, php, go, rust. Please review the code carefully before execution. You MUST explicitly confirm with the user 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
languageYesProgramming language to use
timeoutNoMaximum execution time in seconds

Input Schema (JSON Schema)

{ "properties": { "code": { "description": "Code to execute", "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" }