Refactoring MCP Server
MCP server exposing Martin Fowler's refactoring catalog to LLMs with 71+ refactorings
Connector by marshally · GitHub account verified by the MCP Registry
Install
Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.
npx agentmarket install connector/marshally-mcp-refactoring
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this server can do and what it asks for, from its tool list and install config. Checked Oct 25, 2026.
- Tools
- 4 read · 1 write · 0 delete
- Secrets
- None asked for
- Install scripts
- Not scanned yet
- Runs as
- Python package
Tools by what they do 5
Read from the source code; the running server may list different tools.
Read 4 · Look things up without changing anything.
analyze_codeinspect_structurelist_refactoringspreview_refactoring
Write 1 · Create, change, send or run things.
apply_refactoring
Files it touches
- Any path the agent passes to its tools
Tools (5)
Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].
analyze_codeAnalyze Code for Smellsread-onlyAnalyze code for smells and suggest refactorings. Detects code smells like long methods, large classes, feature envy, and suggests appropriate refactorings to address them. Note: This feature requires backend support. Returns backend_supported: false for backends that don't implement analysis yet. Args: path: File or directory path to analyze smells: Optional list of smell types to check for (e.g., ['long-method', 'large-class', 'feature-envy']) Returns: TOON-formatted string with analysis results. Supported smell types (when backend supports analysis): - long-meth…
apply_refactoringApply RefactoringApply a refactoring to the codebase. This actually modifies files. Use preview_refactoring first to see what changes will be made. Changes can be reverted with git. Args: refactoring: Name of the refactoring (e.g., 'extract-method') target: Target in language-native format (e.g., 'src/order.py::Order::calculate#L10-L15') params: Refactoring-specific parameters Returns: TOON-formatted string with results of the applied refactoring. Example: apply_refactoring( refactoring="rename-method", target="src/order.py::Order::calc_total", params={"new_name"…
inspect_structureInspect Code Structureread-onlyGet structural information about code (classes, methods, line numbers). Inspects a file to return information about its structure. Use this to understand the code before applying refactorings. Args: path: File path to inspect (e.g., 'src/order.py') depth: Level of detail - 'file', 'class', or 'method' (default: 'class') Returns: TOON-formatted string with structural information. Example: inspect_structure(path="src/order.py", depth="method")
list_refactoringsList Available Refactoringsread-onlyList available refactorings with their parameter contracts. Returns the catalog of available refactorings from all enabled backends, optionally filtered by language and/or category. Args: language: Filter by language (e.g., 'python'). If not specified, returns all. category: Filter by Fowler category (e.g., 'composing_methods') Returns: TOON-formatted string containing refactoring specifications. Categories: - composing_methods: Extract/inline methods, variables - moving_features: Move methods/fields between classes - organizing_data: Encapsulation, type codes -…
preview_refactoringPreview Refactoring Changesread-onlyPreview what changes a refactoring would make without applying them. This is a dry-run mode that shows the diff of what would change, without actually modifying any files. Always preview before applying. Args: refactoring: Name of the refactoring (e.g., 'extract-method') target: Target in language-native format (e.g., 'src/order.py::Order::calculate#L10-L15') params: Refactoring-specific parameters (e.g., {'name': 'calculate_tax'}) Returns: TOON-formatted string with preview results including diff. Example: preview_refactoring( refactoring="extract-method", …
Signals
- Stars
- 5
- Forks
- 0
- Open issues
- 0
- Weekly downloads
- 48
- Last commit
- Nov 29, 2025 (11 months ago)
- Last release
- Nov 29, 2025 (11 months ago)
- Last package publish
- Nov 29, 2025 (11 months ago)
From GitHub (fetched Oct 24, 2026) and the package registry.
Details
- Registry name
io.github.marshally/mcp-refactoring- Version
- 0.1.2
- Auth
- No auth
- Packages
- pypi mcp-refactoring
- License
- MIT
- Repository
- github.com/marshally/mcp-refactoring
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
Cite this page
Refactoring MCP Server. Agent Mart. https://agentmart.dev/connectors/marshally-mcp-refactoring (last updated 2026-10-24)