Add Python Refactoring MCP Server#207
Merged
ipedrazas merged 1 commit intodocker:mainfrom Sep 4, 2025
Merged
Conversation
Educational Python refactoring assistant that provides guided suggestions for AI assistants. Features: - Step-by-step refactoring instructions without modifying code - Comprehensive analysis using professional tools (Rope, Radon, Vulture, Jedi, LibCST, Pyrefly) - Educational approach teaching refactoring patterns through guided practice - Support for both guide-only and apply-changes modes - Identifies long functions, high complexity, dead code, and type issues - Provides precise line numbers and specific refactoring instructions - Compatible with all AI assistants (Claude, GPT, Cursor, Continue, etc.) Perfect for developers learning refactoring patterns while maintaining full control. Acts as a refactoring mentor rather than an automated code modifier. Repository: https://github.com/slamer59/mcp-python-refactoring Category: development License: MIT
ipedrazas
approved these changes
Sep 4, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the Python Refactoring MCP Server to the Docker MCP Registry, providing educational refactoring assistance for Python developers using AI tools.
Server Overview
Key Features
🎓 Educational Approach: Provides step-by-step refactoring instructions without automatically modifying code
🛠️ Professional Tools: Uses industry-standard analysis tools (Rope, Radon, Vulture, Jedi, LibCST, Pyrefly)
🤖 AI Assistant Compatible: Works seamlessly with Claude, GPT, Cursor, Continue, and other AI coding assistants
📚 Learning Focused: Teaches refactoring patterns through guided practice and precise instructions
⚙️ Dual Mode Support: Both guide-only and apply-changes modes for different use cases
🎯 Precise Analysis: Identifies specific issues with exact line numbers and actionable recommendations
Analysis Capabilities
Available MCP Tools
analyze_python_code- Comprehensive code analysis with guided suggestionsextract_function- Extract method refactoring assistancequick_analyze- Fast analysis for immediate feedbackcheck_types_with_pyrefly- Advanced type checking and quality analysisDocker Implementation
✅ Dockerfile Created: Located at project root with Python 3.13-slim base
✅ No Additional Configuration: Server works out-of-the-box with no environment variables needed
✅ Container Ready: Optimized for containerized deployment with minimal footprint
Registry Benefits
This server will benefit from Docker MCP Registry's enhanced security features:
Installation Methods
Once published, users can access via:
mcp/mcp-python-refactoringCompliance Verification
✅ MIT License (allows consumption)
✅ Comprehensive documentation provided
✅ Working Dockerfile at repository root
✅ MCP standard compatibility verified
✅ Error handling and logging implemented
✅ Server configuration follows registry format
Target Audience
Perfect for:
This server fills a unique niche by focusing on education rather than automation, helping developers learn while maintaining full control over their code changes.