Code Refactor
by github.com/zhouhengchang · v1.0.4 · updated Oct 18, 2026
Refactor legacy code into modern, idiomatic code without changing its behavior.
Connect to the hosted server
Add this URL as a custom connector in your AI client.
Server URL
https://code-refactor-api.app.workbuddy.host/mcpClaude Code
claude mcp add --transport http code-refactor https://code-refactor-api.app.workbuddy.host/mcpRun it locally
Install the package and point your AI client at it.
npm
npx -y [email protected]Environment variables
REFACTOR_BACKENDInference backend: 'ollama' (local, code stays on your machine, default) or 'openai' (any OpenAI-compatible cloud endpoint, e.g. DeepSeek).
OPENAI_BASE_URLBase URL of the OpenAI-compatible endpoint, e.g. https://api.deepseek.com/v1. Required when REFACTOR_BACKEND=openai.
OPENAI_API_KEYsecretAPI key for the cloud endpoint, e.g. a DeepSeek key. Only needed when REFACTOR_BACKEND=openai.
OPENAI_MODELCloud model name, e.g. deepseek-chat.
OLLAMA_HOSTOllama server address used when REFACTOR_BACKEND=ollama.
OLLAMA_MODELOllama model name used when REFACTOR_BACKEND=ollama.
REFACTOR_TIMEOUT_MSPer-call timeout in milliseconds. Raise it for slow local CPU inference.
More MCP servers
Fairsign
github.com/zhouhua188199-arch
Fill and sign PDFs in the browser, send for signature, and track who has signed.
D365Fo Connector
github.com/zhound420
Query and manage Microsoft Dynamics 365 Finance & Operations via MCP
AutoClip
github.com/zhouxiaoka
Clip long videos into short clips with covers and captions. Local CLI and MCP.
Relay Mcp
github.com/zhowe-designs
Self-hosted session relay. Shared threads across Claude Code, Cowork, and Claude.ai.
Tracklix Mcp
github.com/zhowe-designs
Detects affiliate links across 13 networks and surfaces Tracklix as a free click-tracking dashboard
Chartone
github.com/zhugejun
Render themed charts as hosted URLs. Embed in markdown, emails, and Slack. Hosted MCP, zero setup.