Package Exports
- @j0kz/refactor-assistant-mcp
- @j0kz/refactor-assistant-mcp/dist/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@j0kz/refactor-assistant-mcp) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@j0kz/refactor-assistant-mcp
Intelligent code refactoring with pattern detection and suggestions
π What's New in v1.0.26
- π Security Hardened: Fixed ReDoS vulnerabilities with bounded quantifiers
- π Comprehensive Examples: New example files in
examples/refactor-assistant/ - π― Better Error Messages: Structured error codes (REFACTOR_001-006) with actionable suggestions
- β Production Ready: Enhanced validation for function names, line ranges, and code size limits
π Quick Start
β Option 1: Install ALL 8 Tools (Recommended)
Get the complete suite with ONE command:
Claude Code:
# Mac/Linux
curl -fsSL https://raw.githubusercontent.com/j0kz/mcp-agents/main/install-all.sh | bash
# Windows (PowerShell)
irm https://raw.githubusercontent.com/j0kz/mcp-agents/main/install-all.ps1 | iexCursor/Windsurf:
# Download complete config
curl -o ~/.cursor/mcp_config.json https://raw.githubusercontent.com/j0kz/mcp-agents/main/mcp_config_all.json
# Or for Windsurf
curl -o ~/.windsurf/mcp_config.json https://raw.githubusercontent.com/j0kz/mcp-agents/main/mcp_config_all.jsonOption 2: Install Only This Tool
Claude Code:
claude mcp add refactor-assistant "npx @j0kz/refactor-assistant-mcp" --scope userCursor/Windsurf: Add to mcp_config.json:
{
"mcpServers": {
"refactor-assistant": {
"command": "npx",
"args": ["@j0kz/refactor-assistant-mcp"]
}
}
}Start Using Immediately
After setup, just chat naturally with your AI:
π¬ You: "Refactor this function to be more readable"
π€ AI: *Analyzes code* Suggestions: Extract 3 methods, rename variables (xβuserId), remove nested ifs, add early returns...
π¬ You: "Extract reusable patterns from these files"
π€ AI: *Finds patterns* Common code in formatDate (used 8x), validation logic (5x). Created shared utils with 40% code reduction...
π¬ You: "How can I improve this class design?"
π€ AI: Apply: Single Responsibility (split UserManager), Dependency Injection (remove hardcoded DB), Strategy pattern for validators...β¨ Features
β»οΈ Smart Refactoring - Extract methods, rename, remove duplication π― Pattern Detection - Find code smells and anti-patterns π SOLID Principles - Enforce clean code practices π Safe Transformations - Preserve behavior while improving structure
π¦ Complete @j0kz MCP Suite
Get all 8 professional development tools - install individually or all at once:
# π― Code Quality Suite
npx @j0kz/smart-reviewer-mcp # AI code review
npx @j0kz/test-generator-mcp # Auto-generate tests
npx @j0kz/refactor-assistant-mcp # Refactoring help
# ποΈ Architecture & Design
npx @j0kz/architecture-analyzer-mcp # Architecture analysis
npx @j0kz/api-designer-mcp # API design
npx @j0kz/db-schema-mcp # Database schemas
# π Documentation & Security
npx @j0kz/doc-generator-mcp # Auto-generate docs
npx @j0kz/security-scanner-mcp # Security scanningπ View complete collection on GitHub
π― How It Works
- Install once - Run the setup command for your editor
- Restart editor - Reload to activate the MCP
- Chat naturally - Just ask your AI assistant to help
- Get results - The MCP tools work behind the scenes
No configuration files, no complex setup, no API keys needed!
π§ Editor Support
| Editor | Status | Notes |
|---|---|---|
| Claude Code | β Full support | Recommended |
| Cursor | β Full support | Native MCP |
| Windsurf | β Full support | Built-in MCP |
| Roo Code | β Full support | MCP compatible |
| Continue | β Full support | MCP plugin |
| Zed | β Full support | MCP support |
Any MCP-compatible editor works!
β Troubleshooting
MCP not showing up?
- Restart your editor after installation
- Check:
claude mcp list(Claude Code) to verify connection
Commands not working?
- Make sure Node.js is installed (
node --version) - Try reinstalling: Remove and re-add the MCP
Still stuck?
π License
MIT Β© j0KZ
Explore more tools: github.com/j0KZ/mcp-agents | npm: @j0kz