MCP Python Refactoring
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| analyze_python_fileB | Analyze Python file for refactoring opportunities with precise guidance |
| get_extraction_guidanceC | Get detailed step-by-step guidance for extracting functions |
| find_long_functionsB | Find functions that are candidates for extraction |
| analyze_test_coverageC | Analyze Python test coverage and suggest improvements |
| tdd_refactoring_guidanceA | Generate TDD-based refactoring guidance: test first, refactor, test again |
| analyze_python_packageC | Comprehensive package/folder analysis for refactoring opportunities |
| get_package_metricsC | Get aggregated metrics for a Python package |
| find_package_issuesB | Identify package-level refactoring opportunities and structural issues |
| analyze_security_and_patternsC | Comprehensive security scanning and modern Python patterns analysis |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 9 tools
Most tools have distinct purposes (file vs package analysis, metrics vs guidance, security vs tests). However, 'find_package_issues' and 'analyze_python_package' may have some overlap in identifying structural issues.
All tools use consistent snake_case and follow a verb_noun pattern (find_, analyze_, get_, etc.), with no mixing of conventions.
9 tools is well-scoped for a refactoring analysis server, covering files, packages, functions, tests, security, and patterns without being excessive.
The server covers analysis and guidance well but lacks any tool for applying refactoring (e.g., rename, extract). Users get recommendations but cannot execute changes via the server.