This MCP Code Executor, developed by bazinga012, enables AI assistants to execute Python code within specified Conda environments. Built using TypeScript and the Model Context Protocol SDK, it provides a secure and configurable way to run code with access to predefined libraries and dependencies. The implementation focuses on isolating code execution, allowing for flexible environment management and code storage. It's particularly useful for AI workflows that require dynamic code generation and execution, such as data analysis, algorithm testing, or automated scripting tasks, without compromising system security or managing complex runtime setups.
Aucun avis encore. Soyez le premier à donner votre avis !
Connectez-vous pour rejoindre la conversation
Executes Python code in the configured environment. Best for short code snippets. Parameters: code (string), filename (string)
Installs Python packages in the environment. Parameters: packages (array of strings)
Checks if packages are already installed in the environment. Parameters: packages (array of strings)
Dynamically changes the environment configuration. Parameters: type (string), conda_name (string)
Gets the current environment configuration. Parameters: None
Creates a new Python file with initial content. Use this as the first step for longer code. Parameters: content (string), filename (string)
Appends content to an existing Python code file. Parameters: file_path (string), content (string)
Executes an existing Python file. Use this as the final step after building up code. Parameters: file_path (string)
Reads the content of an existing Python code file. Use this to verify the current state of a file. Parameters: file_path (string)