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.
아직 리뷰가 없습니다. 첫 번째 리뷰를 작성해 보세요!
대화에 참여하려면 로그인하세요
Read the contents of a file within the workspace. Parameters: filename (string), start_line (optional int), end_line (optional int)
Write content to a file within the workspace. Parameters: filename (string), content (string), mode (optional string, default is 'w')
Delete a file within the workspace. Parameters: filename (string)
List the contents of a directory within the workspace, providing metadata. Parameters: directory (string)
Parse and analyze the structure of a Python file, returning details about imports, functions, classes, and variables. Parameters: filename (string)
Format Python code using a specified style guide. Parameters: code (string), style (optional string, default is 'black')
Lint a Python file and return any issues found. Parameters: filename (string)
Create a virtual environment for the project.
Install dependencies into the virtual environment from requirements.txt or pyproject.toml. Parameters: filename (optional string)
Check for conflicts between installed packages in the virtual environment.
Update a specific package to the latest version or a specified version. Parameters: package_name (string), version (optional string)
Execute a given Python code snippet and capture the output, errors, and exit code. Parameters: code (string)