Python Toolbox
Summary
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.
Available Actions(11)
read_file
Read the contents of a file. Parameters: file_path (string), start_line (optional int), end_line (optional int)
write_file
Write content to a file. Parameters: file_path (string), content (string), mode (optional string, default is 'w')
list_directory
List the contents of a directory with detailed metadata. Parameters: directory_path (string)
parse_python_file
Analyze the structure of a Python file and extract detailed information about functions, classes, and variables. Parameters: file_path (string)
format_code
Format Python code using a specified style. Parameters: code (string), style (string, default is 'black')
lint_code
Lint a Python file and return issues found. Parameters: file_path (string)
create_virtual_environment
Create a new virtual environment for the project.
install_dependencies
Install dependencies from a requirements file or pyproject.toml. Parameters: file_path (optional string)
check_dependency_conflicts
Check for version conflicts between installed packages.
update_package
Update a specific package to the latest version or a specified version. Parameters: package_name (string), version (optional string)
execute_code
Execute a block of Python code in a controlled environment. Parameters: code (string)
커뮤니티 리뷰
아직 리뷰가 없습니다. 첫 번째 리뷰를 작성해 보세요!
대화에 참여하려면 로그인하세요