Rope
0
Exposes Python Rope refactoring library capabilities to Claude Code and command-line users.
About
Rope provides both a Model Context Protocol (MCP) server and a command-line interface (CLI) that empowers users with Python Rope refactoring library functionality. It enables safe code refactoring with features like symbol renaming and method extraction, backed by safety checks. The tool also supports code analysis capabilities such as symbol definition finding, reference tracking, and object information. With an automatic file backup system and identical functionality across both interfaces, Rope aims to be a robust tool for enhancing Python code quality within Claude Code and command-line environments.
Key Features
- 0 GitHub stars
- Dual interface: MCP server and CLI
- Code analysis: Symbol definition finding and reference tracking
- Automatic file backups
- Shared functionality across MCP and CLI
- Safe refactoring with safety checks
Use Cases
- Refactoring Python code within Claude Code.
- Analyzing Python code structure and dependencies.
- Automating code refactoring tasks via the command line.