This MCP server implementation provides a comprehensive set of Python development tools, enabling AI assistants to effectively work with Python code and projects. Developed by Gianluca Mazza, it offers features for file operations, code analysis, project management, and safe code execution within a controlled environment. The server is designed for use cases requiring advanced Python development capabilities, such as code refactoring, dependency management, and automated testing in AI-assisted programming workflows.
Aucun avis encore. Soyez le premier à donner votre avis !
Connectez-vous pour rejoindre la conversation
Read contents of a specified file in the workspace. Parameters: file_path (string), start_line (optional integer), end_line (optional integer)
Write content to a specified file in the workspace. Parameters: file_path (string), content (string), mode (optional string, default is 'w')
Delete a specified file in the workspace. Parameters: file_path (string)
List the contents of a specified directory in the workspace. Parameters: directory_path (string)
Analyze the structure of a specified Python file. Parameters: file_path (string)
Format a given piece of Python code using a specified style. Parameters: code (string), style (optional string, default is 'black')
Lint a specified Python file for potential issues. Parameters: file_path (string)
Create a virtual environment in the workspace.
Install dependencies into the virtual environment from either 'requirements.txt' or 'pyproject.toml'. Parameters: requirements_file (optional string)
Check for any conflicts among the installed packages in the virtual environment.
Update a specified package to the latest version or a specific version. Parameters: package_name (string), version (optional string)
Execute a given Python code snippet and capture its output. Parameters: code (string), working_directory (optional string), timeout (optional integer)